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