blob: b98d5d6609945d84a90da583ecdccd0a6465a902 [file] [log] [blame]
Iftekharul Islam99d199f2017-03-24 15:28:25 -05001/**
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.3.164.147'
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 };
48 });
49
50})(window.angular);