2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END============================================
20 * ===================================================================
28 var app = angular.module('clds-app', ['ngRoute',
31 'angular-loading-bar',
38 .config(['cfpLoadingBarProvider', function(cfpLoadingBarProvider) {
40 cfpLoadingBarProvider.includeBar = true;
41 cfpLoadingBarProvider.includeSpinner = true;
44 function($httpProvider) {
46 $httpProvider.responseInterceptors
47 .push('myHttpInterceptor');
49 var spinnerFunction = function spinnerFunction(data,
55 $httpProvider.defaults.transformRequest
56 .push(spinnerFunction);
63 'cfpLoadingBarProvider',
64 function($routeProvider, $locationProvider,
65 cfpLoadingBarProvider, $timeout, dialogs,
67 $locationProvider.html5Mode(false);
72 templateUrl: 'please_wait.html',
73 controller: QueryParamsHandlerCtrl
76 // when('/dashboard_submit', { templateUrl:
77 // 'partials/portfolios/dashboard_submit.html',
78 // controller: CreateNewPrjCtrl }).
81 templateUrl: 'partials/portfolios/clds_modelling.html',
82 controller: DashboardCtrl
85 // when('/dashboard_upload', { templateUrl:
86 // 'partials/portfolios/dashboard_upload.html',
87 // controller: DashboardCtrl }).
89 '/activity_modelling', {
90 templateUrl: 'partials/portfolios/clds_modelling.html',
91 controller: DashboardCtrl
92 }).when('/authenticate', {
93 templateUrl: 'authenticate.html',
94 controller: AuthenticateCtrl
95 }).when('/invalidlogin', {
96 templateUrl: 'invalid_login.html',
97 controller: PageUnderConstructionCtrl
99 redirectTo: '/otherwise'
106 function($scope, $rootScope, $timeout, dialogs) {
110 $scope.lang = 'en-US';
111 $scope.language = 'English';
116 $scope.confirmed = 'No confirmation yet!';
122 // -- Listeners & Watchers --//
124 $scope.$watch('lang', function(val, old) {
128 $scope.language = 'English';
131 $scope.language = 'Spanish';
137 $rootScope.testCaseRequirements = [];
138 $rootScope.validTestRequirements = [];
139 /* $rootScope.testCaseValue=[]; */
140 $scope.setLanguage = function(lang) {
143 $translate.use(lang);
146 $rootScope.launch = function(which) {
154 // dialogs.wait(undefined,undefined,_progress);
155 // _fakeWaitProgress();
158 // var dlg = dialogs.wait('Custom Wait
159 // Header','Custom Wait Message',_progress);
160 // _fakeWaitProgress();
166 var dlg = dialogs.confirm();
167 dlg.result.then(function(btn) {
169 $scope.confirmed = 'You confirmed "Yes."';
172 $scope.confirmed = 'You confirmed "No."';
176 var dlg = dialogs.create('/dialogs/custom.html',
177 'customDialogCtrl', {}, {
181 windowClass: 'my-class'
191 if (angular.equals($scope.name,
193 $scope.name = 'You did not enter in your name!';
197 var dlg = dialogs.create('/dialogs/custom2.html',
198 'customDialogCtrl2', $scope.custom, {
206 'All is not supported, Please select interface(s)/version(s) to fetch real time federated coverage report.');
212 'You are about to fetch real time federated coverage report.This may take sometime!!!.');
213 dlg.result.then(function(btn) {
215 $scope.confirmed = 'You confirmed "Yes."';
218 $scope.confirmed = 'You confirmed "No."';
222 var dlg = dialogs.notify('Success',
223 'Request has been successfully processed.');
226 var dlg = dialogs.notify('Message',
227 'Please type Testscenario Name');
232 var _fakeWaitProgress = function() {
234 $timeout(function() {
236 if (_progress < 100) {
238 $rootScope.$broadcast('dialogs.wait.progress', {
239 'progress': _progress
243 $rootScope.$broadcast('dialogs.wait.complete');
258 'userPreferencesService',
260 'extraUserInfoService',
261 function($scope, $rootScope, $timeout, dialogs,
262 $location, MenuService, Datafactory,
263 userPreferencesService, cldsModelService, extraUserInfoService) {
264 console.log("MenuCtrl");
265 $rootScope.screenName = "Universal Test Modeler";
266 $rootScope.testSet = null;
267 var testingType = "";
268 $rootScope.contactUs = function() {
269 console.log("contactUs");
270 var link = "mailto:onap-discuss@lists.onap.org?subject=CLAMP&body=Please send us suggestions or feature enhancements or defect. If possible, please send us the steps to replicate any defect.";
271 window.location.href = link;
278 $scope.userInfo = pars;
279 if (!($scope.userInfo["permissionUpdateCl"])) {
284 $scope.emptyMenuClick = function(value, name) {
285 if ($rootScope.isNewClosed &&
287 name != "Close Model" &&
288 name != "Properties CL") {
289 saveConfirmationNotificationPopUp();
294 function saveConfirmationNotificationPopUp() {
296 .saveConfirmationNotificationPopUp(function(
299 if ($rootScope.isNewClosed) {
300 isSaveCheck("Save CL");
302 $rootScope.isNewClosed = false;
309 function isSaveCheck(name) {
310 if (name == "User Info") {
311 $scope.extraUserInfo();
312 } else if (name == "Wiki") {
314 } else if (name == "Contact Us") {
315 $rootScope.contactUs();
316 } else if (name == "Revert Model Changes") {
317 $scope.cldsRevertModel();
318 } else if (name == "Close Model") {
320 } else if (name == "Refresh ASDC") {
321 $scope.cldsRefreshASDC();
322 } else if (name == "Create CL") {
323 $rootScope.isNewClosed = true;
324 $scope.cldsCreateModel();
325 } else if (name == "Open CL") {
326 $scope.cldsOpenModel();
327 } else if (name == "Save CL") {
328 $rootScope.isNewClosed = false;
329 $scope.cldsPerformAction("SAVE");
330 } else if (name == "Validation Test") {
331 $scope.cldsPerformAction("TEST");
332 } else if (name == "Submit") {
334 .cldsConfirmPerformAction("SUBMIT");
335 } else if (name == "Resubmit") {
337 .cldsConfirmPerformAction("RESUBMIT");
338 } else if (name == "Update") {
340 .cldsConfirmPerformAction("UPDATE");
341 } else if (name.toLowerCase() == "delete") {
343 .manageConfirmPerformAction("DELETE");
344 } else if (name == "Stop") {
345 $scope.cldsConfirmPerformAction("STOP");
346 } else if (name == "Restart") {
348 .cldsConfirmPerformAction("RESTART");
349 } else if (name == "Refresh Status") {
350 $scope.refreshStatus();
351 } else if (name == "Properties CL") {
352 $scope.cldsOpenModelProperties();
353 } else if (name == "Deploy") {
355 .cldsAskDeployParametersPerformAction();
356 } else if (name == "UnDeploy") {
358 .cldsConfirmToggleDeployPerformAction("UnDeploy");
360 $rootScope.screenName = name;
361 $scope.updatebreadcrumb(value);
362 $location.path(value);
367 $rootScope.impAlerts = function() {
373 link: "/cldsCreateModel",
376 link: "/cldsOpenModel",
379 link: "/cldsSaveModel",
382 link: "/cldsOpenModelProperties",
383 name: "Properties CL"
385 link: "/RevertChanges",
386 name: "Revert Model Changes"
392 link: "/cldsTestActivate",
393 name: "Validation Test"
398 link: "/cldsResubmit",
407 link: "/cldsRestart",
416 link: "/cldsUnDeploy",
420 link: "/refreshStatus",
421 name: "Refresh Status"
423 link: "/cldsRefreshASDC",
427 link: "http://wiki.onap.org",
433 link: "/extraUserInfo",
439 Object.keys = function(obj) {
443 if (obj.hasOwnProperty(i)) {
450 $scope.keyList = Object.keys($scope.tabs);
452 $scope.keyList = Object.keys($scope.tabs);
455 $scope.updatebreadcrumb = function(path) {
457 var currentURL = $location.path();
458 if (path != undefined) {
462 if (currentURL == "/dashboard") {
463 $rootScope.screenName = "Universal Test Modeler";
464 $rootScope.parentMenu = "Home";
465 $rootScope.rightTabName = "UTM Build Configuration";
468 * else if(currentURL=="/quicksearch") {
469 * $rootScope.screenName = "Quick Search";
470 * $rootScope.parentMenu = "Home"; }
478 function(value, key) {
481 $rootScope.parentMenu = value;
490 if (currentURL == value.link) {
491 $rootScope.screenName = value.name;
500 $scope.updatebreadcrumb();
502 $scope.homePage = function() {
504 $location.path('/dashboard');
506 $scope.propertyExplorerErrorMessage = function(msg) {
508 var dlg = dialogs.notify('Error', msg);
511 // $scope.fromTstMultipleFlag=false;
512 /* onclicking of review testset / generate testset */
514 $scope.reviewTestSet = function() {
516 $rootScope.modeltestset = list_model_test_sets[selected_model];
518 $rootScope.isPalette = false;
519 $rootScope.isTestset = true;
520 $rootScope.isRequirementCoverage = false;
521 document.getElementById("modeler_name").textContent = "UTM Test Set";
522 // document.getElementById('propertyExplorer').classList.add('visible');
524 // $( "#propertyExplorer" ).prev().css(
525 // "display", "none" );
526 $('div').find('.k-collapse-next').click();
528 // $rootScope.$apply();
531 $scope.requirementCoverage = function() {
533 $rootScope.testCaseRequirements = [];
534 $rootScope.validTestRequirementArray = [];
535 $rootScope.validTestRequirements = {};
536 $rootScope.modeltestset = list_model_test_sets[selected_model];
537 var allPathDetails = [];
538 $scope.currentSelectedModel = {};
539 // $scope.getPathDetails($rootScope.utmModels,selected_model);
540 // $scope.populatePathDetails(allPathDetails,$scope.currentSelectedModel);
541 $rootScope.pathDetailsList = list_model_path_details[selected_model];
543 * for(var p=0;p<100;p++){
544 * $rootScope.testCaseRequirements.push("Requirement"+p); }
545 * for(var p=0;p<100;p++){
546 * $rootScope.testCaseValue.push("TestCase"+p); }
548 for (var x = 0; x < allPathDetails.length; x++) {
549 var tempPathDetails = allPathDetails[x];
550 if (tempPathDetails != null) {
551 for (var i = 0; i < tempPathDetails.length; i++) {
552 var pathDetails = tempPathDetails[i];
553 if (pathDetails.requirement !== '' &&
554 pathDetails.requirement !== null) {
555 $rootScope.testCaseRequirements
556 .push(pathDetails.requirement);
560 * for (var j = 0; j <
561 * pathDetails.decisionIdentifiers.length;
563 * if(pathDetails.decisionIdentifiers[j].requirement
565 * pathDetails.decisionIdentifiers[j].requirement
567 * $rootScope.testCaseRequirements.push(pathDetails.decisionIdentifiers[j].requirement); } }
573 for (var p = 0; p < $rootScope.modeltestset.activityTestCases.length; p++) {
574 var activityTestCases = $rootScope.modeltestset.activityTestCases[p];
575 if (activityTestCases.mappedRequirements != null) {
576 for (var i = 0; i < activityTestCases.mappedRequirements.length; i++) {
577 // $rootScope.testCaseRequirements
578 // .push(activityTestCases.mappedRequirements[i]);
579 var testCaseNames = $rootScope.validTestRequirements[activityTestCases.mappedRequirements[i]];
580 if (testCaseNames == null) {
583 if (activityTestCases.version != null)
584 var testCase = activityTestCases.testCaseName +
586 activityTestCases.version;
588 var testCase = activityTestCases.testCaseName;
589 testCaseNames.push(testCase);
590 $rootScope.validTestRequirements[activityTestCases.mappedRequirements[i]] = testCaseNames;
595 $rootScope.isPalette = false;
596 $rootScope.isTestset = false;
597 $rootScope.isRequirementCoverage = true;
598 document.getElementById("modeler_name").textContent = "Test Case / Requirement Coverage";
600 $('div').find('.k-collapse-next').click();
605 $scope.activityModelling = function() {
609 $scope.cldsClose = function() {
613 'partials/portfolios/confirmation_window.html',
614 'CldsOpenModelCtrl', {
621 windowClass: 'my-class'
624 dlg.result.then(function(name) {
626 // $scope.name = name;
629 // if(angular.equals($scope.name,''))
630 // $scope.name = 'You did not enter in your
634 $scope.saveConfirmationNotificationPopUp = function(
639 'partials/portfolios/save_confirmation.html',
640 'saveConfirmationModalPopUpCtrl', {
647 windowClass: 'my-class'
650 dlg.result.then(function(name) {
658 $scope.cldsRefreshASDC = function() {
662 'partials/portfolios/refresh_asdc.html',
663 'CldsOpenModelCtrl', {
670 windowClass: 'my-class'
672 dlg.result.then(function(name) {
674 // $scope.name = name;
677 // if(angular.equals($scope.name,''))
678 // $scope.name = 'You did not enter in your
682 $scope.cldsRevertModel = function() {
686 'partials/portfolios/ConfirmRevertChanges.html',
687 'CldsOpenModelCtrl', {
694 windowClass: 'my-class'
697 dlg.result.then(function(name) {
699 // $scope.name = name;
702 // if(angular.equals($scope.name,''))
703 // $scope.name = 'You did not enter in your
709 $rootScope.cldsOpenModelProperties = function() {
713 'partials/portfolios/global_properties.html',
714 'GlobalPropertiesCtrl', {}, {
718 windowClass: 'my-class'
721 dlg.result.then(function(name) {}, function() {});
724 $scope.cldsOpenModel = function() {
728 'partials/portfolios/clds_open_model.html',
729 'CldsOpenModelCtrl', {
736 windowClass: 'my-class'
739 dlg.result.then(function(name) {
741 // $scope.name = name;
744 // if(angular.equals($scope.name,''))
745 // $scope.name = 'You did not enter in your
749 $scope.cldsCreateModel = function() {
753 'partials/portfolios/clds_create_model_off_Template.html',
754 'CldsOpenModelCtrl', {
761 windowClass: 'my-class'
764 dlg.result.then(function(name) {
766 // $scope.name = name;
769 // if(angular.equals($scope.name,''))
770 // $scope.name = 'You did not enter in your
775 $scope.extraUserInfo = function() {
779 'partials/portfolios/extra_user_info.html',
780 'ExtraUserInfoCtrl', {
787 windowClass: 'my-class'
790 dlg.result.then(function(name) {}, function() {});
793 $scope.cldsPerformAction = function(uiAction) {
795 var modelName = selected_model;
796 var controlNamePrefix = "ClosedLoop-";
797 var bpmnText = modelXML;
798 // serialize model properties
799 var propText = JSON.stringify(elementMap);
800 var templateName = selected_template
802 var svgXml = $("#svgContainer").html();
804 console.log("cldsPerformAction: " + uiAction +
805 " modelName=" + modelName);
806 console.log("cldsPerformAction: " + uiAction +
807 " controlNamePrefix=" +
809 console.log("cldsPerformAction: " + uiAction +
810 " bpmnText=" + bpmnText);
811 console.log("cldsPerformAction: " + uiAction +
812 " propText=" + propText);
813 console.log("cldsPerformAction: " + uiAction +
814 " typeID=" + typeID);
815 console.log("cldsPerformAction: " + uiAction +
816 " deploymentId=" + deploymentId);
818 .processAction(uiAction, modelName,
819 controlNamePrefix, bpmnText,
820 propText, svgXml, templateName,
821 typeID, deploymentId)
825 .log("cldsPerformAction: pars=" +
828 .processRefresh(pars);
832 // alert("setModel failed: "
836 $scope.refreshStatus = function() {
837 var modelName = selected_model;
838 var svgXml = $("#svgContainer").html();
839 console.log("refreStatus modelName=" + modelName);
845 .log("refreStatus: pars=" +
848 .processRefresh(pars);
853 $scope.cldsConfirmPerformAction = function(uiAction) {
854 var dlg = dialogs.confirm('Message',
856 uiAction.toLowerCase() +
857 ' the closed loop?');
858 dlg.result.then(function(btn) {
860 $scope.cldsPerformAction(uiAction);
863 // $modalInstance.close("closed");
867 $scope.cldsAskDeployParametersPerformAction = function() {
868 var dlg = dialogs.create('partials/portfolios/deploy_parameters.html',
870 {}, {keyboard: true, backdrop: true, windowClass: 'deploy-parameters'});
871 dlg.result.then(function() {
872 var confirm = dialogs.confirm('Deploy', 'Are you sure you want to deploy the closed loop?');
873 confirm.result.then(function() {
874 cldsToggleDeploy("deploy");
879 $scope.cldsConfirmToggleDeployPerformAction = function(
882 var dlg = dialogs.confirm('Message',
884 uiAction.toLowerCase() +
885 ' the closed loop?');
886 dlg.result.then(function(btn) {
887 cldsToggleDeploy(uiAction.toLowerCase());
890 // $modalInstance.close("closed");
894 function cldsToggleDeploy(uiAction) {
895 var modelName = selected_model;
896 var controlNamePrefix = "ClosedLoop-";
897 var bpmnText = modelXML;
898 // serialize model properties
899 var propText = JSON.stringify(elementMap);
900 var templateName = selected_template;
901 var svgXml = $("#svgContainer").html();
903 console.log("cldsPerformAction: " + uiAction +
904 " modelName=" + modelName);
905 console.log("cldsPerformAction: " + uiAction +
906 " controlNamePrefix=" +
908 console.log("cldsPerformAction: " + uiAction +
909 " bpmnText=" + bpmnText);
910 console.log("cldsPerformAction: " + uiAction +
911 " propText=" + propText);
912 console.log("cldsPerformAction: " + uiAction +
913 " modelEventService=" +
915 console.log("cldsPerformAction: " + uiAction +
916 " typeID=" + typeID);
917 console.log("cldsPerformAction: " + uiAction +
918 " deploymentId=" + deploymentId);
920 .toggleDeploy(uiAction, modelName,
921 controlNamePrefix, bpmnText,
922 propText, svgXml, templateName,
923 typeID, controlNameUuid,
924 modelEventService, deploymentId)
927 typeID = pars.typeId;
928 controlNameUuid = pars.controlNameUuid;
929 selected_template = pars.templateName;
930 modelEventService = pars.event;
932 // pars.event.actionCd;
933 actionStateCd = pars.event.actionStateCd;
934 deploymentId = pars.deploymentId;
936 .processActionResponse(
945 $scope.managePerformAction = function(action) {
946 if (action.toLowerCase() === "delete") {
950 "805b9f83-261f-48d9-98c7-8011fc2cc8e8",
951 "ClosedLoop-ABCD-0000.yml")
952 .then(function(pars) {
956 // alert("setModel failed: " +
961 $scope.manageConfirmPerformAction = function(
964 var dlg = dialogs.confirm('Message',
966 uiAction.toLowerCase() +
967 ' the closed loop?');
968 dlg.result.then(function(btn) {
970 $scope.managePerformAction(uiAction);
973 // $modalInstance.close("closed");
976 $scope.VesCollectorWindow = function(vesCollector) {
980 'partials/portfolios/vesCollector_properties.html',
981 'ImportSchemaCtrl', {
988 windowClass: 'my-class'
991 dlg.result.then(function(name) {
1000 $scope.HolmesWindow = function(holmes) {
1002 var partial = 'partials/portfolios/holmes_properties.html'
1015 windowClass: 'my-class'
1019 $scope.TCAWindow = function(tca) {
1023 'partials/portfolios/tca_properties.html',
1024 'ImportSchemaCtrl', {
1031 windowClass: 'my-class'
1034 dlg.result.then(function(name) {
1035 // $scope.name = name;
1037 // if(angular.equals($scope.name,''))
1038 // $scope.name = 'You did not enter in
1044 $scope.PolicyWindow = function(policy) {
1047 'partials/portfolios/PolicyWindow_properties.html',
1048 'ImportSchemaCtrl', {
1055 windowClass: 'my-class'
1058 dlg.result.then(function(name) {
1060 // $scope.name = name;
1063 // if(angular.equals($scope.name,''))
1064 // $scope.name = 'You did not enter in
1073 app.service('MenuService', ['$http', '$q', function($http, $q) {
1076 * this.generateMDTTestSet = function(utmMDTRequest, generateTestSetMDTURL){
1078 * console.log("generateMDTTestSet"); //alert("In generateMDTTestSet :: " +
1079 * JSON.stringify(utmMDTRequest)); var def = $q.defer(); var sets = [];
1081 * $http.post(generateTestSetMDTURL, utmMDTRequest) .success(function(data){
1082 * console.log("success"); sets = data; def.resolve(data); })
1083 * .error(function(data){ console.log("error");
1084 * def.reject("GenerateMDTTestSet not successful"); });
1086 * return def.promise; };
1090 app.directive('focus', function($timeout) {
1096 link: function(scope, element) {
1097 scope.$watch('trigger', function(value) {
1099 if (value === "true") {
1100 $timeout(function() {
1109 app.directive('draggable', function($document) {
1111 return function(scope, element, attr) {
1118 position: 'relative',
1120 backgroundColor: 'white',
1125 element.on('mousedown', function(event) {
1127 // Prevent default dragging of selected content
1128 // event.preventDefault();
1129 startX = event.screenX - x;
1130 startY = event.screenY - y;
1131 $document.on('mousemove', mousemove);
1132 $document.on('mouseup', mouseup);
1135 function mousemove(event) {
1137 y = event.screenY - startY;
1138 x = event.screenX - startX;
1145 function mouseup() {
1147 $document.off('mousemove', mousemove);
1148 $document.off('mouseup', mouseup);
1153 app.factory('myHttpInterceptor', function($q, $window) {
1155 return function(promise) {
1157 return promise.then(function(response) {
1160 }, function(response) {
1162 return $q.reject(response);
1167 app.run(['$route', function($route) {
1172 function TestCtrl($scope) {
1174 $scope.msg = "Hello from a controller method.";
1175 $scope.returnHello = function() {
1181 function importshema() {
1183 angular.element(document.getElementById('navbar')).scope().importSchema();
1187 function VesCollectorWindow(vesCollectorWin) {
1188 angular.element(document.getElementById('navbar')).scope()
1189 .VesCollectorWindow(vesCollectorWin);
1192 function HolmesWindow(holmesWin) {
1193 angular.element(document.getElementById('navbar')).scope()
1194 .HolmesWindow(holmesWin);
1197 function F5Window() {
1199 angular.element(document.getElementById('navbar')).scope().F5Window();
1203 function TCAWindow(tca) {
1205 angular.element(document.getElementById('navbar')).scope().TCAWindow(tca);
1209 function GOCWindow() {
1211 angular.element(document.getElementById('navbar')).scope().GOCWindow();
1215 function PolicyWindow(PolicyWin) {
1217 angular.element(document.getElementById('navbar')).scope().PolicyWindow(
1222 function pathDetails(bpmnElementID, bpmnElementName, pathIdentifiers) {
1224 angular.element(document.getElementById('navbar')).scope().pathDetails(
1225 bpmnElementID, bpmnElementName, pathIdentifiers);
1229 function setdefaultvalue() {
1231 angular.element(document.getElementById('navbar')).scope()
1236 function upgradeSchemaVersion() {
1238 angular.element(document.getElementById('navbar')).scope()
1239 .upgradeSchemaVersion();
1243 function saveProject() {
1245 angular.element(document.getElementById('navbar')).scope().saveProject();
1249 function modifySchema() {
1251 angular.element(document.getElementById('navbar')).scope().modifySchema();
1255 function definePID() {
1257 angular.element(document.getElementById('navbar')).scope().definePID();
1261 function defineServiceAcronym() {
1263 angular.element(document.getElementById('navbar')).scope()
1264 .defineServiceAcronym();
1268 function errorProperty(msg) {
1270 angular.element(document.getElementById('navbar')).scope()
1271 .propertyExplorerErrorMessage(msg);
1274 function invisiblepropertyExplorer() {
1276 angular.element(document.getElementById('navbar')).scope()
1277 .invisibleproperty();
1280 function updateDecisionLabel(originalLabel, newLabel) {
1282 angular.element(document.getElementById('navbar')).scope()
1283 .updateDecisionLabels(originalLabel, newLabel);
1286 // Used to logout the session , when browser window was closed
1287 window.onunload = function() {
1288 window.localStorage.removeItem("isAuth");
1289 window.localStorage.removeItem("loginuser");
1290 window.localStorage.removeItem("invalidUser");