'use strict';

angular.module('etestApp')
  .config(function ($stateProvider) {
    $stateProvider
      .state('main.verbal', {
        url: 'exam/verbal',
        templateUrl: 'app/exam/verbal/verbal.html',
        controller: 'VerbalController as vm'
      }).state('main.tcsverbal', {
        url: 'exam/tcs/verbal',
        templateUrl: 'app/exam/verbal/tcs/tcs.verbal.html',
        controller: 'TCSVerbalController as vm'
      }).state('main.tcsverbalexam', {
        authenticate:true,
        url: 'exam/tcs/verbal/:id',
        templateUrl: 'app/exam/verbal/tcs/tcs.verbal.exam.html',
        controller: 'TCSVerbalExamController as vm'
      }).state('main.tcsverbalexamresult', {
        url: 'exam/tcs/verbal/:id/result',
        templateUrl: 'app/exam/verbal/tcs/tcs.verbal.exam.result.html',
        controller: 'TCSVerbalExamResultController as vm'
      }).state('main.aptitude', {
        url: 'exam/aptitude',
        templateUrl: 'app/exam/aptitude/aptitude.html',
        controller: 'AptitudeController as vm'
      }).state('main.tcsaptitude', {
        url: 'exam/tcs/aptitude',
        templateUrl: 'app/exam/aptitude/tcs/tcs.aptitude.html',
        controller: 'TCSAptitudeController as vm'
      }).state('main.tcsaptitudeexam', {
      url: 'exam/tcs/aptitude/:id',
      templateUrl: 'app/exam/aptitude/tcs/tcs.aptitude.exam.html',
      controller: 'TCSAptitudeExamController as vm'
    }).state('main.tcsaptitudeexamresult', {
      url: 'exam/tcs/aptitude/:id/result',
      templateUrl: 'app/exam/aptitude/tcs/tcs.aptitude.exam.result.html',
      controller: 'TCSAptitudeExamResultController as vm'
    });
  });

@@ -280,34 +280,32 @@
 erbal', %7B%0A      
-  
 url: 'exam/tcs/v
@@ -304,34 +304,32 @@
 am/tcs/verbal',%0A
-  
       templateUr
@@ -368,34 +368,32 @@
 al.html',%0A      
- 
- 
 controller: 'TCS
@@ -412,34 +412,32 @@
 ller as vm'%0A    
-  
 %7D).state('main.t
@@ -459,18 +459,16 @@
 %7B%0A      
- 
- 
 authenti
@@ -476,16 +476,15 @@
 ate:
+ 
 true,%0A
-  
     
@@ -511,34 +511,32 @@
 bal/:id',%0A      
- 
- 
 templateUrl: 'ap
@@ -574,34 +574,32 @@
 am.html',%0A      
-  
 controller: 'TCS
@@ -622,34 +622,32 @@
 ller as vm'%0A    
- 
- 
 %7D).state('main.t
@@ -667,34 +667,32 @@
 esult', %7B%0A      
-  
 url: 'exam/tcs/v
@@ -706,26 +706,24 @@
 id/result',%0A
-  
       templa
@@ -778,34 +778,32 @@
 lt.html',%0A      
-  
 controller: 'TCS
@@ -828,34 +828,32 @@
 ntroller as vm'%0A
-  
     %7D).state('ma
@@ -866,34 +866,32 @@
 itude', %7B%0A      
-  
 url: 'exam/aptit
@@ -888,34 +888,32 @@
 exam/aptitude',%0A
-  
       templateUr
@@ -948,34 +948,32 @@
 de.html',%0A      
-  
 controller: 'Apt
@@ -987,34 +987,32 @@
 ntroller as vm'%0A
-  
     %7D).state('ma
@@ -1028,34 +1028,32 @@
 itude', %7B%0A      
-  
 url: 'exam/tcs/a
@@ -1058,26 +1058,24 @@
 /aptitude',%0A
-  
       templa
@@ -1122,34 +1122,32 @@
 de.html',%0A      
- 
- 
 controller: 'TCS
@@ -1168,34 +1168,32 @@
 ller as vm'%0A    
-  
 %7D).state('main.t
@@ -1207,24 +1207,50 @@
 udeexam', %7B%0A
+      authenticate: true,%0A
       url: '
@@ -1384,32 +1384,32 @@
 ntroller as vm'%0A
-
     %7D).state('ma
@@ -1429,32 +1429,58 @@
 eexamresult', %7B%0A
+      authenticate: true,%0A
       url: 'exam

Add authentication to routes