1/**
2 * common Constant service
3 *
4 * @module app/common/services/constants
5 * @exports Constants
6 * @name Constants
7
8 * @version 0.0.1
9 */
10
11window.angular && (function (angular) {
12    'use strict';
13
14    angular
15        .module('app.common.services')
16        .service('Constants', function () {
17            return {
18                LOGIN_CREDENTIALS: {
19                    username: "test",
20                    password: "testpass",
21                },
22                API_CREDENTIALS: {
23                    host: 'https://9.41.165.233/'
24                },
25                API_RESPONSE: {
26                    ERROR_STATUS: 'error',
27                    ERROR_MESSAGE: '401 Unauthorized',
28                    SUCCESS_STATUS: 'ok',
29                    SUCCESS_MESSAGE: '200 OK'
30                },
31                CHASSIS_POWER_STATE: {
32                    on: 'On',
33                    off: 'Off'
34                },
35                HOST_STATE_TEXT: {
36                    on: 'Running',
37                    off: 'Off',
38                    booting: 'Quiesced',
39                    unreachable: 'Unreachable'
40                },
41                HOST_STATE: {
42                    on: 1,
43                    off: -1,
44                    booting: 0,
45                    unreachable: -2
46                },
47                LED_STATE: {
48                    on: true,
49                    off: false
50                },
51                LED_STATE_TEXT: {
52                    on: 'on',
53                    off: 'off'
54                },
55                SEVERITY_TO_PRIORITY_MAP:{
56                    Informational: 'Low',
57                    Error: 'High',
58                    Warning: 'Medium'
59                },
60                PAGINATION: {
61                    LOG_ITEMS_PER_PAGE: 4
62                }
63            };
64        });
65
66})(window.angular);
67