1/** 2 * A module for the serverControl 3 * 4 * @module app/server-control/index 5 * @exports app/server-control/index 6 */ 7 8window.angular && (function(angular) { 9 'use strict'; 10 11 angular 12 .module('app.serverControl', ['ngRoute', 'app.common.services']) 13 // Route configuration 14 .config([ 15 '$routeProvider', 16 function($routeProvider) { 17 $routeProvider 18 .when('/server-control/bmc-reboot', { 19 'template': require('./controllers/bmc-reboot-controller.html'), 20 'controller': 'bmcRebootController', 21 authenticated: true 22 }) 23 .when('/server-control/server-led', { 24 'template': require('./controllers/server-led-controller.html'), 25 'controller': 'serverLEDController', 26 authenticated: true 27 }) 28 .when('/server-control/power-operations', { 29 'template': 30 require('./controllers/power-operations-controller.html'), 31 'controller': 'powerOperationsController', 32 authenticated: true 33 }) 34 .when('/server-control/power-usage', { 35 'template': 36 require('./controllers/power-usage-controller.html'), 37 'controller': 'powerUsageController', 38 authenticated: true 39 }) 40 .when('/server-control/remote-console', { 41 'template': 42 require('./controllers/remote-console-controller.html'), 43 authenticated: true 44 }) 45 .when('/server-control/remote-console-window', { 46 'template': require( 47 './controllers/remote-console-window-controller.html'), 48 'controller': 'remoteConsoleWindowController', 49 authenticated: true 50 }) 51 .when('/server-control/kvm', { 52 'template': require('./controllers/kvm-controller.html'), 53 authenticated: true 54 }) 55 .when('/server-control/kvm-window', { 56 'template': require('./controllers/kvm-window-controller.html'), 57 'controller': 'kvmWindowController', 58 authenticated: true 59 }) 60 .when('/server-control/virtual-media', { 61 'template': 62 require('./controllers/virtual-media-controller.html'), 63 'controller': 'virtualMediaController', 64 authenticated: true 65 }) 66 .when('/server-control', { 67 'template': 68 require('./controllers/power-operations-controller.html'), 69 'controller': 'powerOperationsController', 70 authenticated: true 71 }); 72 } 73 ]); 74})(window.angular); 75