blob: 6139e3f32333eb6f837d6ce84b8fe91bc7535df7 [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
6 * @version 0.0.1
7 */
8
9window.angular && (function (angular) {
10 'use strict';
11
12 angular
13 .module('app.serverHealth', [
14 'ngRoute',
15 'app.constants',
16 'app.common.services'
17 ])
18 // Route configuration
19 .config(['$routeProvider', function ($routeProvider) {
20 $routeProvider
21 .when('/server-health/event-log', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070022 'template': require('./controllers/log-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050023 'controller': 'logController',
24 authenticated: true
25 })
Michael Davisdf3bd122017-08-10 11:03:42 -050026 .when('/server-health/event-log/:type', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070027 'template': require('./controllers/log-controller.html'),
Michael Davisdf3bd122017-08-10 11:03:42 -050028 'controller': 'logController',
29 authenticated: true
30 })
Iftekharul Islam96bbf312017-08-22 13:44:38 -050031 .when('/server-health/event-log/:type/:id', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070032 'template': require('./controllers/log-controller.html'),
Iftekharul Islam96bbf312017-08-22 13:44:38 -050033 'controller': 'logController',
34 authenticated: true
35 })
Iftekharul Islamcd789502017-04-19 14:37:55 -050036 .when('/server-health/inventory-overview', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070037 'template': require('./controllers/inventory-overview-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050038 'controller': 'inventoryOverviewController',
39 authenticated: true
40 })
41 .when('/server-health/inventory', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070042 'template': require('./controllers/inventory-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050043 'controller': 'inventoryController',
44 authenticated: true
45 })
46 .when('/server-health/sensors-overview', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070047 'template': require('./controllers/sensors-overview-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050048 'controller': 'sensorsOverviewController',
49 authenticated: true
50 })
Iftekharul Islamd2269e22017-05-02 09:32:45 -050051 .when('/server-health/sensors/:type', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070052 'template': require('./controllers/sensors-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050053 'controller': 'sensorsController',
54 authenticated: true
55 })
56 .when('/server-health/power-consumption', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070057 'template': require('./controllers/power-consumption-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050058 'controller': 'powerConsumptionController',
59 authenticated: true
60 })
Iftekharul Islamcd789502017-04-19 14:37:55 -050061 .when('/server-health/diagnostics', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070062 'template': require('./controllers/diagnostics-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050063 'controller': 'diagnosticsController',
64 authenticated: true
65 })
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050066 .when('/server-health', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070067 'template': require('./controllers/log-controller.html'),
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050068 'controller': 'logController',
69 authenticated: true
70 });
Iftekharul Islamcd789502017-04-19 14:37:55 -050071 }]);
72
73})(window.angular);