blob: 57670ce17f101318a958756506de143fd4a15385 [file] [log] [blame]
Iftekharul Islamcd789502017-04-19 14:37:55 -05001/**
2 * A module for the serverHealth
3 *
4 * @module app/server-health/index
5 * @exports app/server-health/index
Iftekharul Islamcd789502017-04-19 14:37:55 -05006 */
7
8window.angular && (function (angular) {
9 'use strict';
10
11 angular
12 .module('app.serverHealth', [
13 'ngRoute',
14 'app.constants',
15 'app.common.services'
16 ])
17 // Route configuration
18 .config(['$routeProvider', function ($routeProvider) {
19 $routeProvider
20 .when('/server-health/event-log', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070021 'template': require('./controllers/log-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050022 'controller': 'logController',
23 authenticated: true
24 })
Michael Davisdf3bd122017-08-10 11:03:42 -050025 .when('/server-health/event-log/:type', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070026 'template': require('./controllers/log-controller.html'),
Michael Davisdf3bd122017-08-10 11:03:42 -050027 'controller': 'logController',
28 authenticated: true
29 })
Iftekharul Islam96bbf312017-08-22 13:44:38 -050030 .when('/server-health/event-log/:type/:id', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070031 'template': require('./controllers/log-controller.html'),
Iftekharul Islam96bbf312017-08-22 13:44:38 -050032 'controller': 'logController',
33 authenticated: true
34 })
Iftekharul Islamcd789502017-04-19 14:37:55 -050035 .when('/server-health/inventory-overview', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070036 'template': require('./controllers/inventory-overview-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050037 'controller': 'inventoryOverviewController',
38 authenticated: true
39 })
40 .when('/server-health/inventory', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070041 'template': require('./controllers/inventory-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050042 'controller': 'inventoryController',
43 authenticated: true
44 })
45 .when('/server-health/sensors-overview', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070046 'template': require('./controllers/sensors-overview-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050047 'controller': 'sensorsOverviewController',
48 authenticated: true
49 })
Iftekharul Islamd2269e22017-05-02 09:32:45 -050050 .when('/server-health/sensors/:type', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070051 'template': require('./controllers/sensors-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050052 'controller': 'sensorsController',
53 authenticated: true
54 })
55 .when('/server-health/power-consumption', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070056 'template': require('./controllers/power-consumption-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050057 'controller': 'powerConsumptionController',
58 authenticated: true
59 })
Iftekharul Islamcd789502017-04-19 14:37:55 -050060 .when('/server-health/diagnostics', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070061 'template': require('./controllers/diagnostics-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050062 'controller': 'diagnosticsController',
63 authenticated: true
64 })
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050065 .when('/server-health', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070066 'template': require('./controllers/log-controller.html'),
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050067 'controller': 'logController',
68 authenticated: true
69 });
Iftekharul Islamcd789502017-04-19 14:37:55 -050070 }]);
71
72})(window.angular);