1*afc8a799Smiramurali23/** 2*afc8a799Smiramurali23 * A module for the access control 3*afc8a799Smiramurali23 * 4*afc8a799Smiramurali23 * @module app/access-control/index 5*afc8a799Smiramurali23 * @exports app/access-control/index 6*afc8a799Smiramurali23 */ 7*afc8a799Smiramurali23 8*afc8a799Smiramurali23window.angular && (function(angular) { 9*afc8a799Smiramurali23 'use strict'; 10*afc8a799Smiramurali23 11*afc8a799Smiramurali23 angular 12*afc8a799Smiramurali23 .module('app.accessControl', ['ngRoute', 'app.common.services']) 13*afc8a799Smiramurali23 // Route access-control 14*afc8a799Smiramurali23 .config([ 15*afc8a799Smiramurali23 '$routeProvider', 16*afc8a799Smiramurali23 function($routeProvider) { 17*afc8a799Smiramurali23 $routeProvider 18*afc8a799Smiramurali23 .when('/access-control', { 19*afc8a799Smiramurali23 'template': require('./controllers/ldap-controller.html'), 20*afc8a799Smiramurali23 'controller': 'ldapController', 21*afc8a799Smiramurali23 authenticated: true 22*afc8a799Smiramurali23 }) 23*afc8a799Smiramurali23 .when('/access-control/ldap', { 24*afc8a799Smiramurali23 'template': require('./controllers/ldap-controller.html'), 25*afc8a799Smiramurali23 'controller': 'ldapController', 26*afc8a799Smiramurali23 authenticated: true 27*afc8a799Smiramurali23 }) 28*afc8a799Smiramurali23 .when('/access-control/local-users', { 29*afc8a799Smiramurali23 'template': require('./controllers/user-controller.html'), 30*afc8a799Smiramurali23 'controller': 'userController', 31*afc8a799Smiramurali23 authenticated: true 32*afc8a799Smiramurali23 }) 33*afc8a799Smiramurali23 .when('/access-control/ssl-certificates', { 34*afc8a799Smiramurali23 'template': 35*afc8a799Smiramurali23 require('./controllers/certificate-controller.html'), 36*afc8a799Smiramurali23 'controller': 'certificateController', 37*afc8a799Smiramurali23 authenticated: true 38*afc8a799Smiramurali23 }); 39*afc8a799Smiramurali23 } 40*afc8a799Smiramurali23 ]); 41*afc8a799Smiramurali23})(window.angular); 42