2 * Copyright (c) 2016 Tech Mahindra Ltd. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 define([ 'angularAMD', 'app/routingConfig', 'app/core/core.services',
10 'common/config/env.module' ,
11 'app/mwtnCommons/mwtnCommons.module'], function(ng) {
12 var mwtnEventsApp = angular.module('app.mwtnEvents', [ 'app.core',
13 'ui.router.state', 'config' ]);
15 mwtnEventsApp.config(function($stateProvider, $compileProvider,
16 $controllerProvider, $provide, NavHelperProvider, $translateProvider) {
17 mwtnEventsApp.register = {
18 controller : $controllerProvider.register,
19 directive : $compileProvider.directive,
20 factory : $provide.factory,
21 service : $provide.service
25 NavHelperProvider.addControllerUrl('app/mwtnEvents/mwtnEvents.controller');
26 NavHelperProvider.addToMenu('mwtnEvents', {
27 "link" : "#/pnfEvents",
28 "active" : "main.mwtnEvents",
29 "title" : "pnf Events",
30 "icon" : "fa fa-bolt", // Add navigation icon css class here
32 "title" : "pnf Events",
33 "description" : "Events"
37 var access = routingConfig.accessLevels;
39 $stateProvider.state('main.mwtnEvents', {
41 access : access.admin,
44 templateUrl : 'src/app/mwtnEvents/mwtnEvents.tpl.html',
45 controller : 'mwtnEventsCtrl'