api/app/assets/javascripts/mno_enterprise/config.js.coffee.erb
# Configuration module
#
# Recompile if the settings change
# = depend_on_config
angular.module('mnoEnterprise.configuration', [])
.constant('IMPAC_CONFIG', <%= Settings.impac.to_json %>)
.constant('I18N_CONFIG', {
enabled: <%= MnoEnterprise.i18n_enabled %>,
available_locales: <%= I18n.available_locales.to_json %>
})
.constant('PRICING_CONFIG', <%= Hash(Settings.pricing).to_json %>)
.constant('DOCK_CONFIG', <%= Hash(Settings.dock).to_json %>)
.constant('DEVELOPER_SECTION_CONFIG', <%= Hash(Settings.developer).to_json %>)
.constant('ONBOARDING_WIZARD_CONFIG', <%= Hash(Settings.onboarding_wizard).to_json %>)
.constant('REVIEWS_CONFIG', <%= Hash(Settings.reviews).to_json %>)
.constant('QUESTIONS_CONFIG', <%= Hash(Settings.questions).to_json %>)
.constant('MARKETPLACE_CONFIG', <%= Hash(Settings.marketplace).to_json %>)
.constant('ADMIN_PANEL_CONFIG', <%= Hash(Settings.admin_panel).to_json %>)
.constant('PAYMENT_CONFIG', <%= Hash(Settings.payment).to_json %>)
.constant('ORGANIZATION_MANAGEMENT', <%= Hash(Settings.organization_management).to_json %>)
.constant('USER_MANAGEMENT', <%= Hash(Settings.user_management).to_json %>)
.constant('AUDIT_LOG', <%= Hash(Settings.audit_log).to_json %>)
.constant('GOOGLE_TAG_CONTAINER_ID', <%= MnoEnterprise.google_tag_container.to_json %>)
.constant('INTERCOM_ID', <%= MnoEnterprise.intercom_app_id.to_json %>)
.constant('APP_NAME', <%= MnoEnterprise.app_name.to_json %>)
.constant('URL_CONFIG', <%= Hash(Settings.url_config).to_json %>)
.constant('DEVISE_CONFIG', <%=
Hash(Settings.devise).merge(min_password_length: Devise.password_length.min, timeout_in: Devise.timeout_in).to_json
%>)