'use strict';

// Global application configuration

var Config = angular.module('config.services', [])
    .factory('Config', [
        function() {
            var defaultConfig = {
                BASE_LOCALIZE_URL: '/Qusion/Scripts/local',
                API_BASE_URL: '/qusion/cms/',
                API_LOGIN_URL: '/qusion/account/login',
                LOG_LEVEL: 'debug', // possible values: 'disable' || 'error' || 'warn' || 'info' || 'debug'
                SYSTEM_MESSAGE: 'system.message',
                SYSTEM_ERROR_KEY: 'error',
                SYSTEM_INFO_KEY: 'info',
                SYSTEM_WARNING_KEY: 'warning',
                SYSTEM_SUCCESS_KEY: 'success',
                HTTP_STATUS_KEY: 'http.status',
                HTTP_ERROR_KEY: 'http.error',
                HTTP_REQUEST_STATUS: {
                    NONE: 'none',
                    LOADING: 'loading',
                    UPDATING: 'updating',
                    CREATING: 'creating',
                    REMOVING: 'removing',
                    SUCCESS: 'success'
                }
            };

            return defaultConfig;
        }
    ]);