From 8e2d0d472cba59d9e5a308474a70d8998dc12091 Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Tue, 12 Jun 2018 14:52:32 -0700 Subject: [VVP] captcha v1 no longer works in portal Change-Id: I1958bc626105e31e5a029219cbf9ea2ac3e9a8ae Issue-ID: VVP-75 Signed-off-by: stark, steven --- .../addVendorContact/addVendorContact.html | 2 + .../activation/register/register.controller.js | 2 +- vvp/app/main/activation/register/register.html | 2 +- vvp/dist/index.html | 4 +- vvp/dist/scripts/scripts.184c30c3.js | 12 +++++ vvp/dist/scripts/scripts.d8a9fb59.js | 12 ----- vvp/dist/scripts/vendor.30972ab5.js | 51 ++++++++++++++++++++++ vvp/dist/scripts/vendor.79ec8dc5.js | 51 ---------------------- 8 files changed, 69 insertions(+), 67 deletions(-) create mode 100644 vvp/dist/scripts/scripts.184c30c3.js delete mode 100644 vvp/dist/scripts/scripts.d8a9fb59.js create mode 100644 vvp/dist/scripts/vendor.30972ab5.js delete mode 100644 vvp/dist/scripts/vendor.79ec8dc5.js diff --git a/vvp/app/main/activation/addVendorContact/addVendorContact.html b/vvp/app/main/activation/addVendorContact/addVendorContact.html index ff9bd6e6..922028f6 100644 --- a/vvp/app/main/activation/addVendorContact/addVendorContact.html +++ b/vvp/app/main/activation/addVendorContact/addVendorContact.html @@ -94,8 +94,10 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.--> + diff --git a/vvp/app/main/activation/register/register.controller.js b/vvp/app/main/activation/register/register.controller.js index e4e525a7..1e146905 100644 --- a/vvp/app/main/activation/register/register.controller.js +++ b/vvp/app/main/activation/register/register.controller.js @@ -86,7 +86,7 @@ }; vm.submitForm = function () { - if(grecaptcha.getResponse().length != 0) + if(true) { $rootScope.ice.loader.show = true; if (vm.data.regular_email_updates != true) { diff --git a/vvp/app/main/activation/register/register.html b/vvp/app/main/activation/register/register.html index b6af8ce4..c6cdbce6 100644 --- a/vvp/app/main/activation/register/register.html +++ b/vvp/app/main/activation/register/register.html @@ -112,7 +112,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.--> --> -
+ {{PleaseFill}} diff --git a/vvp/dist/index.html b/vvp/dist/index.html index 6d02fd92..9dc71d4e 100644 --- a/vvp/dist/index.html +++ b/vvp/dist/index.html @@ -79,8 +79,8 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.--> - + - + diff --git a/vvp/dist/scripts/scripts.184c30c3.js b/vvp/dist/scripts/scripts.184c30c3.js new file mode 100644 index 00000000..d541cc34 --- /dev/null +++ b/vvp/dist/scripts/scripts.184c30c3.js @@ -0,0 +1,12 @@ +!function(){"use strict";angular.module("ice",["ngSanitize","ngAnimate","wysiwyg.module","ui.router","ice.env","ice.modals","angularUtils.directives.dirPagination","ui.select","ui.multiselect","ui.bootstrap","ui.bootstrap.datetimepicker","ngMaterial","ngMessages","angular-toArrayFilter","ngIntlTelInput","ui.sortable","jm.i18next","ice.toolbar","ice.navigation","ice.main","ice.contactUs","ice.dashboard.main","ice.dashboard.overview","ice.dashboard.dashboard","ice.activation.login","ice.activation.register","ice.activation.addVf","ice.activation.addVendorContact","ice.activation.resendActivation","ice.activation.terms","ice.activation.activateUser","ice.dashboard.account","ice.documentation","ice.activation.resetPassword","ice.activation.updatePassword","ice.dashboard.checklist","ice.welcome","ice.main.admin","ice.services.cacheService","ice.services.users","ice.services.localStorage","ice.services.vf","ice.services.steps","ice.services.vfc","ice.services.dtsite","ice.services.checklist","ice.services.status","ice.services.feedback","ice.services.toast","ice.services.cms","ice.services.sessionStorage","ice.directives","ice.filters","ice.interceptors.http"])}(),angular.module("ice.env",[]).constant("ENV",{name:"production",apiBase:"/vvp/v1/engmgr/"}),function(){"use strict";angular.module("ice").constant("_",window._).constant("iceConstants",{states:{incomplete:"Incomplete",completed:"Completed"},stages:{intake:"Intake",active:"Active",validated:"Validated",completed:"Completed"},roles:{standard:"standard_user",el:"el",admin:"admin",admin_ro:"admin_ro"},checklist_states:["automation","review","peer review","approval","handoff","closed"]})}(),function(){"use strict";function a(a){a.defaults.useXDomain=!0,delete a.defaults.headers.common["X-Requested-With"],a.interceptors.push("httpRequestInterceptor"),a.interceptors.push("httpResponseInterceptor"),a.interceptors.push("httpRequestErrorInterceptor"),a.interceptors.push("httpResponseErrorInterceptor")}angular.module("ice").config(a).config(["ngIntlTelInputProvider",function(a){a.set({initialCountry:"us"})}]),a.$inject=["$httpProvider"]}(),function(){"use strict";function a(a,b,c){c.hashPrefix(""),b.otherwise("/login"),b.when("/dashboard","/dashbaord/overview");var d="horizontalNavigation",e={horizontalNavigation:{main:"core/layouts/dashboard/dashboard.html",toolbar:"core/toolbar/layouts/horizontal-navigation/toolbar.html",navigation:"core/navigation/layouts/horizontal-navigation/navigation.html"},contentOnly:{main:"core/layouts/content-only.html",toolbar:"",navigation:""},contentWithToolbar:{main:"core/layouts/content-with-toolbar.html",toolbar:"toolbar/layouts/content-with-toolbar/toolbar.html",navigation:""}};a.state("app",{"abstract":!0,views:{"main@":{templateUrl:e[d].main,controller:"MainController as vm"},"toolbar@app":{templateUrl:e[d].toolbar,controller:"ToolbarController as vm"},"navigation@app":{templateUrl:e[d].navigation,controller:"NavigationController as vm"}}})}angular.module("ice").config(a),a.$inject=["$stateProvider","$urlRouterProvider","$locationProvider"]}(),function(){"use strict";function a(a,b,c,d){var e=!1;if(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))d.debug("Smooth Scroll Off (Safari).");else try{e=$("#content-israel").niceScroll({zindex:2e4,scrollspeed:60,mousescrollstep:60,cursorborderradius:"10px",cursorborder:"1px solid rgba(255, 255, 255, 0.4)",cursorcolor:"rgba(0, 0, 0, 0.6)",cursorwidth:"10px"})}catch(f){d.debug("Smooth Scroll Off.")}}angular.module("ice").controller("AppController",["$state","$timeout","$rootScope","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h){var i="LastDocumentationPageId",j=function(){a.user={},a.ice={},a.ice.loader={},a.state=d,a.baseURL=f.apiBase,m();var b=a.$on("$stateChangeStart",function(a,b,c,d,e){k(),l(b)}),c=a.$on("$stateChangeSuccess",function(){});a.$on("$destroy",function(){b(),c()}),e.set("configuration",{urls:{auth:{login:a.baseURL+"login/@t",register:a.baseURL+"signup",addVfs:a.baseURL+"vf/",getCompanies:a.baseURL+"vendors",resendActivationMail:a.baseURL+"users/activation-mail/@user_uuid",addVendorContact:a.baseURL+"add-contact",single_engagement:a.baseURL+"single-engagement/@engagementUuid",engagements:a.baseURL+"engagement",inviteMembers:a.baseURL+"invite-team-members",activities:a.baseURL+"engagement/@engagementUuid/activities/",updateDaysLeft:a.baseURL+"engagements/@engagementUuid/target_date",updateLabEntryDaysLeft:a.baseURL+"engagements/@engagementUuid/target_lab_date",setSSHKey:a.baseURL+"users/ssh",getIceUser:a.baseURL+"users",getRGWASecret:a.baseURL+"users/account/rgwa/",account:a.baseURL+"users/account",updatePassword:a.baseURL+"users/pwd/",sendResetPwdInstructions:a.baseURL+"users/pwd/reset-instructions/"},notifications:{getNotifications:a.baseURL+"notifications/num",resetNotificationNum:a.baseURL+"notifications/reset",notificationsDelete:a.baseURL+"notifications/@uuid",getNotificationsDescription:a.baseURL+"notifications/@userUuid/@offset/@limit"},steps:{get:a.baseURL+"engagements/@engagement/nextsteps/@progress",add:a.baseURL+"engagements/@engagement/nextsteps",edit:a.baseURL+"nextsteps/@stepUuid/engagement/@engUuid",order_next_steps:a.baseURL+"engagements/@engUuid/nextsteps/order_next_steps",update:a.baseURL+"nextsteps/@stepUuid/state","delete":a.baseURL+"nextsteps/@stepUuid",createChecklistNextStep:a.baseURL+"engagement/@engUuid/checklist/@checkListUuid/nextstep/",createNextStep:a.baseURL+"eng/@engUuid/nextstep/",getByUser:a.baseURL+"engagements/user/nextsteps/"},vf:{updateVfs:{put:a.baseURL+"vf/@vf_uuid/validation-details/"},deployment_target:{getDeployTargets:a.baseURL+"deployment-targets",updateDeployTargets:a.baseURL+"engagement/@engagementUuid//deployment-targets/@deployment_target_uuid"},ecomp:{getECOMPReleases:a.baseURL+"ecomp-releases",updateECOMPReleases:a.baseURL+"engagement/@engagementUuid/ecomp-releases/@ecomp_uuid"},version:{getVFVersion:a.baseURL+"vf/@vfUuid/vf-version/"}},vfcs:{add:a.baseURL+"vfcs/",get:a.baseURL+"vf/@vfUuid/vfcs/","delete":a.baseURL+"vf/@vfUuid/vfcs/@vfcUuid"},status:{get:a.baseURL+"engagements/@engagement/status",add:a.baseURL+"engagements/@engagement/status",update:a.baseURL+"engagements/@engagement/status"},feedback:{add:a.baseURL+"add-feedback"},dtsite:{get:a.baseURL+"dtsites/",getVFSites:a.baseURL+"vf/@vfUuid/dtsites/",add:a.baseURL+"dtsites/","delete":a.baseURL+"vf/@vfUuid/dtsites/@dtsUuid"},checklist:{state:{put:a.baseURL+"checklist/@cl_uuid/state/"},createChecklist:a.baseURL+"engagement/@engUuid/checklist/new/",getDataForChecklist:a.baseURL+"engagement/@engUuid/checklist/new/",getChecklist:a.baseURL+"checklist/@checklistUuid",putDataForChecklist:a.baseURL+"checklist/@checklist_uuid",checklistDecision:a.baseURL+"checklist/decision/@decisionUuid",createAuditlogChecklist:a.baseURL+"checklist/@checklist_uuid/auditlog/",createAuditlogDecisionChecklist:a.baseURL+"checklist/decision/@decision_uuid/auditlog/",getChecklistTemplates:a.baseURL+"checklist/templates/",getChecklistTemplate:a.baseURL+"checklist/template/@templateUuid",saveChecklistTemplate:a.baseURL+"checklist/template/"},engagement:{put:a.baseURL+"engagements/@engagementUuid/",updateProgress:a.baseURL+"engagements/@engagementUuid/progress",setStage:a.baseURL+"single-engagement/@engagementUuid/stage/@stage",starred_engagement:{put:a.baseURL+"engagements/starred_eng/",get:a.baseURL+"engagements/starred_eng/"},recent_engagement:{get:a.baseURL+"engagements/recent_eng/"},engagement_team:{put:a.baseURL+"engagements/engagement-team/"},engagementsExpanded:a.baseURL+"engagement/expanded/",exportEngagementsCSV:a.baseURL+"engagement/export/?stage=@stage&keyword=@keyword",reviewer:{put:a.baseURL+"engagements/@engagementUuid/reviewer/"},peerreviewer:{put:a.baseURL+"engagements/@engagementUuid/peerreviewer/"},switchReviewers:{put:a.baseURL+"engagements/@engagementUuid/switch-reviewers/"},archive:{put:a.baseURL+"engagements/@engagementUuid/archive/"}},welcome:{welcome:a.baseURL+"welcome/"},cms:{posts:{get:a.baseURL+"cms/posts/?limit=@limit&offset=@offset&fromLastDays=@fromLastDays&category=@category"},pages:{get:a.baseURL+"cms/pages/?title=@title",getById:a.baseURL+"cms/pages/@id/",search:a.baseURL+"cms/pages/search/?keyword=@keyword"}},users:{engagementleads:{get:a.baseURL+"users/engagementleads/"},activate:a.baseURL+"users/activate/@userid/@token"}}})},k=function(){var a=b.getToast();a&&!a.sticky&&b.clearToast()},l=function(a){a&&a.name&&"app.documentation.page"!==a.name&&"app.documentation"!==a.name&&c["delete"](i)},m=function(){g.i18next&&(g.i18next.use(g.i18nextXHRBackend),g.i18next.init({debug:!1,lng:"en",fallbackLng:"en",backend:{loadPath:"locales/{{lng}}/{{ns}}.json"},useCookie:!1,useLocalStorage:!1},function(a,b){a&&h.error(a)}))};j()}angular.module("ice").run(a),a.$inject=["$rootScope","toastService","sessionStorageService","$state","cacheService","ENV","$window","$log"]}(),angular.module("ice.interceptors.http",[]).factory("httpRequestInterceptor",["$injector","$rootScope",function(a,b){return{request:function(c){if(-1!==c.url.indexOf(b.baseURL)){c.headers=c.headers||{};var d=a.get("usersService").getUserData(function(){});d&&!c.skipAuth&&(c.headers.Authorization="token "+d.jwtToken)}return c}}}]).factory("httpResponseInterceptor",["$rootScope",function(a){return{response:function(a){return a}}}]).factory("httpRequestErrorInterceptor",["$q",function(a){return{requestError:function(a){return a}}}]).factory("httpResponseErrorInterceptor",["$q","$rootScope","$injector","toastService",function(a,b,c,d){return{responseError:function(b){var e=c.get("$state"),f=b.status;switch(f){case 401:d.setToast(b.statusText,"danger");break;case 403:e.go("app.login");break;case 404:}return a.reject(b)}}}]),function(){"use strict";angular.module("ice.services.cacheService",[]).service("cacheService",function(){var a={};this.get=function(b){return a[b]},this["delete"]=function(b){return a[b]=void 0},this.deleteAll=function(){return a={}},this.set=function(b,c){void 0===a[b]?a[b]=c:a[b]=$.extend({},c,a[b])},this.toString=function(){return a}}).factory("pageService",function(){var a="";return{getPage:function(){return a},setPage:function(b){a=b}}})}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){var j=c.get("configuration").urls,k="user",l=g.getJson(k);this.isEngagementEL=function(a){var b=h.find(a,{uuid:l.uuid});return void 0==b?!1:l&&l.role.name===d.roles.el?!0:!1},this.isUserInRole=function(a){return l&&l.role&&l.role.name===a},this.isReviewer=function(a,b){return a&&b&&a.uuid==b},this.isPeerReviewer=function(a,b){return a&&b&&a.uuid==b},this.isAdmin=function(a){return a&&a.role&&a.role.name===d.roles.admin},this.updatePassword=function(c,d){var e=b.defer();return a.put(j.auth.updatePassword,d).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.sendResetPwdInstructions=function(c){var d=b.defer();return a.post(j.auth.sendResetPwdInstructions,c).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.login=function(c,d){var e=b.defer();return a.post(j.auth.login.replace("/@t",d),c).success(function(a,b,c,d){l=a,delete l.password,l.jwtToken=a.token,g.setJson(k,l),e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.register=function(c){var d=b.defer();return a.post(j.auth.register,c).success(function(a,b,c,e){l=a,l.jwtToken=a.token,g.setJson(k,l),d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.addVendorContact=function(c){var d=b.defer();return a.post(j.auth.addVendorContact,c).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.resendActivationMail=function(c){var d=b.defer();return a.get(j.auth.resendActivationMail.replace("@user_uuid",c),{skipAuth:!0}).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.getNotifications=function(c){var d=b.defer();return a.get(j.notifications.getNotifications).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.resetNotificationNum=function(c){var d=b.defer();return a.put(j.notifications.resetNotificationNum).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.notificationsDelete=function(c){var d=b.defer();return a["delete"](j.notifications.notificationsDelete.replace("@uuid",c)).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.getNotificationsDescription=function(c,d,e){var f=b.defer();return a.get(j.notifications.getNotificationsDescription.replace("@userUuid",c).replace("@offset",d).replace("@limit",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.getIceUser=function(){var c=b.defer();return a.get(j.auth.getIceUser).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.updateAccount=function(c,d){var e=b.defer();return a.put(j.auth.account,d).success(function(a,b,c,d){var f=l.jwtToken;l=a,l.jwtToken=f,g.setJson(k,l),e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.setSSHKey=function(c,d){var e=b.defer();return a.post(j.auth.setSSHKey,d).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getUserData=function(a){return l||(a?(i.debug("There is no user data, will invoke callback pass as argument."),a()):(i.debug("There is no user data, will be redirected into /login page."),f.go("app.login"))),l},this.resetUserData=function(){i.debug("Clearing user from cache..."),l=void 0,g["delete"](k),e.setJson("ice.settings.view_type",void 0),e.setJson("ice.settings.eng_uuid",void 0),e.setJson("ice.settings.sub_id",void 0)},this.setUserActivationSuccess=function(a){l&&(l.activationSuccess=a,g.setJson(k,l))},this.getEngagementLeads=function(){var c=b.defer(),d=this.getUserData();return this.isAdmin(d)?a.get(j.users.engagementleads.get).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}):c.reject("Just admin allowed to get engagement leads list."),c.promise},this.activateUser=function(c,d){var e=b.defer();return a.get(j.users.activate.replace("@userid",c).replace("@token",d),{skipAuth:!0}).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getRGWASecret=function(){var c=b.defer();return a.get(j.auth.getRGWASecret).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise}}angular.module("ice.services.users",[]).service("usersService",["$http","$q","cacheService","iceConstants","localStorageService","$state","sessionStorageService","_","$log",a])}(),function(){"use strict";angular.module("ice.services.vf",[]).service("vfService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.addVfs=function(c){var e=b.defer();return a.post(d.auth.addVfs,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.updateVfs=function(c,e){var f=b.defer();return a.put(d.vf.updateVfs.put.replace("@vf_uuid",e),c).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.inviteMembers=function(c){var e=b.defer();return a.post(d.auth.inviteMembers,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getCompanies=function(){var c=b.defer();return a.get(d.auth.getCompanies).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.getDeployTargets=function(){var c=b.defer();return a.get(d.vf.deployment_target.getDeployTargets).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.getECOMPReleases=function(){var c=b.defer();return a.get(d.vf.ecomp.getECOMPReleases).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.getVFVersion=function(c){var e=b.defer();return a.get(d.vf.version.getVFVersion.replace("@vfUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getEngagements=function(c){var e=b.defer();return a.get(d.auth.engagements).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getExpandedEngagements=function(c){var e=b.defer();return a.post(d.engagement.engagementsExpanded,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getSingleEngagement=function(c,e){var f=b.defer();return a.get(d.auth.single_engagement.replace("@engagementUuid",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.getStarredEngagements=function(){var c=b.defer();return a.get(d.engagement.starred_engagement.get).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.putStarredEngagements=function(c){var e=b.defer(),f={};return f.engagement_uuid=c,a.put(d.engagement.starred_engagement.put,f).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getRecentEngagements=function(){var c=b.defer();return a.get(d.engagement.recent_engagement.get).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.getActivities=function(c){var e=b.defer();return a.get(d.auth.activities.replace("@engagementUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.updateProgress=function(c,e){var f=b.defer();return a.put(d.engagement.updateProgress.replace("@engagementUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateDeployTargets=function(c,e){var f=b.defer();return a.put(d.vf.deployment_target.updateDeployTargets.replace("@engagementUuid",c).replace("@deployment_target_uuid",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateECOMPReleases=function(c,e){var f=b.defer();return a.put(d.vf.ecomp.updateECOMPReleases.replace("@engagementUuid",c).replace("@ecomp_uuid",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateDaysLeft=function(c,e){var f=b.defer();return a.post(d.auth.updateDaysLeft.replace("@engagementUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateLabEntryDaysLeft=function(c,e){var f=b.defer();return a.post(d.auth.updateLabEntryDaysLeft.replace("@engagementUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.set_engagement_stage=function(c,e){var f=b.defer();return a.put(d.engagement.setStage.replace("@engagementUuid",c).replace("@stage",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.exportEngagementsCSV=function(c,e){var f=b.defer();return null==c||null==e?f.reject("Invalid arguments on engagements export csv."):a({method:"GET",url:d.engagement.exportEngagementsCSV.replace("@stage",c).replace("@keyword",e),headers:{"Content-Type":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},responseType:"arraybuffer"}).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.archiveEngagement=function(c,e){var f=b.defer(),g={reason:e};return a.put(d.engagement.archive.put.replace("@engagementUuid",c),g).success(function(a,b,c,d){f.resolve()}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateEngagementReviewer=function(c,e){var f=b.defer(),g={reviewer:e};return a.put(d.engagement.reviewer.put.replace("@engagementUuid",c),g).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateEngagementPeerReviewer=function(c,e){var f=b.defer(),g={peerreviewer:e};return a.put(d.engagement.peerreviewer.put.replace("@engagementUuid",c),g).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.switchEngagementReviewers=function(c,e,f){var g=b.defer(),h={reviewer:e,peerreviewer:f};return a.put(d.engagement.switchReviewers.put.replace("@engagementUuid",c),h).success(function(a,b,c,d){g.resolve({data:a,status:b})}).error(function(a,b,c,d){g.reject({message:a,status:b})}),g.promise},this.updateEngagement=function(c,e){var f=b.defer(),g={engagement:c,status:e};return a.put(d.engagement.put.replace("@engagementUuid",c.uuid),g).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.remove_user_from_eng=function(c){var e=b.defer();return null==c?e.reject("Invalid arguments on remove_user_from_eng."):a.put(d.engagement.engagement_team.put,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise}}])}(),function(){"use strict";angular.module("ice.services.vfc",[]).service("vfcService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.get=function(c){var e=b.defer();return a.get(d.vfcs.get.replace("@vfUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this["delete"]=function(c,e){var f=b.defer();return a["delete"](d.vfcs["delete"].replace("@vfUuid",e).replace("@vfcUuid",c)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.add=function(c){var e=b.defer();return a.post(d.vfcs.add,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getCompanies=function(){var c=b.defer();return a.get(d.auth.getCompanies).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise}}])}(),angular.module("ice.services.localStorage",[]).service("localStorageService",["$window",function(a){this.setJson=function(b,c){return a.localStorage&&a.localStorage.setItem(b,JSON.stringify(c)),this},this.getJson=function(b){var c,d=a.localStorage&&a.localStorage.getItem(b);try{c=d?JSON.parse(d):void 0}catch(e){}return c},this["delete"]=function(b){return a.localStorage&&a.localStorage.removeItem(b)}}]),function(){"use strict";angular.module("ice.services.steps",[]).service("stepsService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.getByUser=function(){var c=b.defer();return a.get(d.steps.getByUser).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.get=function(c,e){var f=b.defer();return a.get(d.steps.get.replace("@engagement",c).replace("@progress",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.update=function(c,e){var f=b.defer();return a.put(d.steps.update.replace("@stepUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this["delete"]=function(c){var e=b.defer();return a["delete"](d.steps["delete"].replace("@stepUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.add=function(c,e){var f=b.defer();return a.post(d.steps.add.replace("@engagement",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.edit=function(c,e,f){var g=b.defer();return a.put(d.steps.edit.replace("@stepUuid",e).replace("@engUuid",c),f).success(function(a,b,c,d){g.resolve({data:a,status:b})}).error(function(a,b,c,d){g.reject({message:a,status:b})}),g.promise},this.order_next_steps=function(c,e){var f=b.defer();return a.put(d.steps.order_next_steps.replace("@engUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.createNextStep=function(c,e,f){var g=b.defer();return a.post(d.steps.createNextStep.replace("@engUuid",e),f).success(function(a,b,c,d){g.resolve({data:a,status:b})}).error(function(a,b,c,d){g.reject({message:a,status:b})}),g.promise},this.createChecklistNextStep=function(c,e,f){var g=b.defer();return a.post(d.steps.createChecklistNextStep.replace("@checkListUuid",c).replace("@engUuid",e),f).success(function(a,b,c,d){g.resolve({data:a,status:b})}).error(function(a,b,c,d){g.reject({message:a,status:b})}),g.promise}}])}(),function(){"use strict";angular.module("ice.services.dtsite",[]).service("dtsiteService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.getVFSites=function(c){var e=b.defer();return a.get(d.dtsite.getVFSites.replace("@vfUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.get=function(){var c=b.defer();return a.get(d.dtsite.get).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this["delete"]=function(c,e){var f=b.defer();return a["delete"](d.dtsite["delete"].replace("@vfUuid",c).replace("@dtsUuid",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.add=function(c){var e=b.defer();return a.post(d.dtsite.add,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise}}])}(),function(){"use strict";var a;angular.module("ice.services.checklist",[]).factory("checklistService",["$rootScope","$http","$q","cacheService","$log",function(b,c,d,e,f){var g=e.get("configuration").urls;return this.setState=function(a,b){var e=d.defer();return c.put(g.checklist.state.put.replace("@cl_uuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.createChecklist=function(a,b){var e=d.defer();return c.post(g.checklist.createChecklist.replace("@engUuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getDataForCreateChecklist=function(a){var b=d.defer();return c.get(g.checklist.getDataForChecklist.replace("@engUuid",a)).success(function(a,c,d,e){b.resolve({data:a,status:c})}).error(function(a,c,d,e){b.reject({message:a,status:c})}),b.promise},this.getChecklist=function(a){var b=d.defer();return c.get(g.checklist.getChecklist.replace("@checklistUuid",a)).success(function(a,c,d,e){b.resolve({data:a,status:c})}).error(function(a,c,d,e){b.reject({message:a,status:c})}),b.promise},this.putDataForChecklist=function(a,b){var e=d.defer();return c.put(g.checklist.putDataForChecklist.replace("@checklist_uuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.putChecklistDecision=function(a,b){var e=d.defer();return c.put(g.checklist.checklistDecision.replace("@decisionUuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.createAuditlogChecklist=function(a,b){var e=d.defer();return c.post(g.checklist.createAuditlogChecklist.replace("@checklist_uuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.createAuditlogDecisionChecklist=function(a,b){var e=d.defer();return c.post(g.checklist.createAuditlogDecisionChecklist.replace("@decision_uuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.setChecklistExitEntity=function(b){a=b,f.debug("set checklist")},this.callChecklistExit=function(b){if(void 0!=a&&"checklist"==b){var c="set_state";angular.forEach(a.data.checklistDecisions,function(a,b){angular.forEach(a.decisions,function(a,b){("approved"!=a.view_value&&"not_relevant"!=a.view_value||""==a.view_value)&&(c="next_step")})}),"next_step"==c?this.openNextSteps():"set_state"==c&&this.openSetState()}},this.getChecklistTemplates=function(){var a=d.defer();return c.get(g.checklist.getChecklistTemplates).success(function(b,c,d,e){a.resolve({data:b,status:c})}).error(function(b,c,d,e){a.reject({message:b,status:c})}),a.promise},this.getChecklistTemplate=function(a){var b=d.defer();return c.get(g.checklist.getChecklistTemplate.replace("@templateUuid",a)).success(function(a,c,d,e){b.resolve({data:a,status:c})}).error(function(a,c,d,e){b.reject({message:a,status:c})}),b.promise},this.saveChecklistTemplate=function(a){var b=d.defer();return c.put(g.checklist.saveChecklistTemplate,a).success(function(a,c,d,e){b.resolve({data:a,status:c})}).error(function(a,c,d,e){b.reject({message:a,status:c})}),b.promise},this}])}(),function(){"use strict";angular.module("ice.services.status",[]).service("statusService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.get=function(c){var e=b.defer();return a.get(d.status.get.replace("@engagement",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.update=function(c,e){var f=b.defer();return a.put(d.status.update.replace("@engagement",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.add=function(c,e){var f=b.defer();return a.post(d.status.update.replace("@engagement",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise}}])}(),function(){"use strict";angular.module("ice.services.feedback",[]).service("feedbackService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.add=function(c){var e=b.defer();return a.post(d.feedback.add.replace(),c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise}}])}(),function(){"use strict";angular.module("ice.services.toast",[]).service("toastService",["$rootScope",function(a){var b,c,d,e,f=!1,g="all",h=function(h,i,j){if(h&&void 0!=h.detail&&(h=h.detail),!h||!i)throw"You must provide both message an type in order to set new message toast";b=h,c=i,d=j&&j.sticky?j.sticky:!1,e=j&&j.readMoreCallback?j.readMoreCallback:void 0,g=j&&j.displayFor?j.displayFor:"all", +f=!0,a.showToast=!0},i=function(){b=void 0,c=void 0,f=!1,g="all",a.showToast=!1},j=function(){return{message:b,type:c,show:f,sticky:d,readMore:e,displayFor:g}};return{setToast:h,clearToast:i,getToast:j}}])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h,i=c.get("configuration").urls,j="lastAnnouncement";this.getPosts=function(c,d,e){var f=b.defer(),g=e&&e instanceof Array?e.join():"";return a.get(i.cms.posts.get.replace("@limit",c).replace("@offset",0).replace("@fromLastDays",d).replace("@category",g)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.getLastAnnouncementPost=function(){var c=b.defer(),d=1;return a.get(i.cms.posts.get.replace("@limit",d).replace("@offset",0).replace("@fromLastDays","").replace("@category","Announcement")).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.setAnnouncementToast=function(){var a=function(){e.open({templateUrl:"main/modals/cms-post-modal/cms-post-modal.html",controller:"cmsPostModalController",controllerAs:"vm",size:"cms-post-read-more",resolve:{post:function(){return void 0}}})};this.getLastAnnouncementPost().then(function(b){if(b&&b.data&&1===b.data.length){var c=d.getJson(j);if(!c||c.id!=b.data[0].id||!c.closed){d.setJson(j,{id:b.data[0].id,closed:!1});var e="Important announcement: "+b.data[0].title+".";h={message:e,readMore:a,type:"warning",show:!0,displayFor:"all",publishDate:b.data[0].publish_date},f.showAnnouncement=!f.showAnnouncement}}})["catch"](function(a){g.error(a)})},this.getAnnouncement=function(){return h},this.getPages=function(c){var d=b.defer();return c||(c=""),a.get(i.cms.pages.get.replace("@title",c)).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.getPage=function(c){var d=b.defer();return a.get(i.cms.pages.getById.replace("@id",c)).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.searchPages=function(c){var d=b.defer();return a.get(i.cms.pages.search.replace("@keyword",c)).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise}}angular.module("ice.services.cms",[]).service("cmsService",["$http","$q","cacheService","localStorageService","$uibModal","$rootScope","$log",a])}(),function(){"use strict";function a(a){this.setJson=function(b,c){return a.sessionStorage&&a.sessionStorage.setItem(b,JSON.stringify(c)),this},this.getJson=function(b){var c,d=a.sessionStorage&&a.sessionStorage.getItem(b);try{c=d?JSON.parse(d):void 0}catch(e){}return c},this["delete"]=function(b){return a.sessionStorage&&a.sessionStorage.removeItem(b)}}angular.module("ice.services.sessionStorage",[]).service("sessionStorageService",["$window",a])}(),function(){"use strict";function a(a,b,c,d,e){var f={};return f.restrict="E",f.templateUrl="directives/step-stages/step-stages.html",f.scope={stage:"=stage",stage_num:"=stageNum",eng_uuid:"@engUuid",team:"=team",eng_name:"@engName",initactivitylogs:"&"},f.controller=["$scope","vfService","$log",function(b,c,d){b.set_engagement_stage=function(f,g){var h=e.open({templateUrl:"main/modals/set-eng-stage/set-eng-stage-modal.html",controller:"setEngStageModalController",controllerAs:"vm",resolve:{stage:function(){return g},eng_name:function(){return b.eng_name},current_stage:function(){return b.stage}}});h.result.then(function(e){e&&c.set_engagement_stage(f.eng_uuid,g).then(function(c){if(202!==c.status)return!1;switch(f.stage=g,g){case"Intake":f.stage_num=1;break;case"Active":f.stage_num=2;break;case"Validated":f.stage_num=3;break;case"Completed":f.stage_num=4}a.$broadcast("onUpdateNextSteps",{stage:f.stage,eng_uuid:f.eng_uuid}),b.initactivitylogs()})["catch"](function(a){d.error(a)})})},b.hover_design=function(a,c){b.temp_num=c,b.hover=a}}],f.link=function(a,c,e){a.hover=!1,a.temp_num=0,a.priviliged=!1,a["const"]=b.stages,a.loaded=!1,a.user=d.getUserData(),a.$watchGroup(["user","team"],function(a,b,c){a[0]&&a[1]&&(c.loaded||((d.isEngagementEL(c.team)||d.isAdmin(c.user))&&(c.priviliged=!0),c.loaded=!0))}),a.hover_actions=function(b,c){a.priviliged&&a.hover_design(b,c)},a.set_stage=function(b){if(a.priviliged){if(a.stage===b)return void $log.debug("Same stage was chosen, request ignored.");a.set_engagement_stage(a,b)}}},f}angular.module("ice.directives",[]).directive("stepStagesDirective",a),a.$inject=["$rootScope","iceConstants","localStorageService","usersService","$uibModal"]}(),function(){"use strict";function a(a,b,c,d){var e={};return e.restrict="E",e.templateUrl="directives/progress/progress.html",e.scope={progress:"@progress",data:"=data",callback:"=callback",statuses:"@statuses",enable_refresh:"@enableRefresh"},e.link=function(e,f,g){var h=function(){e.statuses||(e.statuses=!1),i(),j()},i=function(){var a=moment(),b=moment(e.data.completion_date),c=Math.ceil(b.diff(a,"days",!0));0>c&&(c=0),e.daysLeft=c},j=function(){e.$watch("data.completion_date",function(a,b){a!==b&&i()}),e.$watch("data.heat_validated_time",function(a,b){a!==b&&k()}),e.$watch("data.vnf_version",function(a,b){a!==b&&k()}),e.$watch("data.image_scan_time",function(a,b){a!==b&&k()}),e.$watch("data.aic_instantiation_time",function(a,b){a!==b&&k()}),e.$watch("data.asdc_onboarding_time",function(a,b){a!==b&&k()})},k=function(){e.data&&(e.data.ecomp_release||(e.data.ecomp_release="-"),e.data.aic_version||(e.data.aic_version="-"),e.data.aic_instantiation_time||(e.data.aic_instantiation_time="-"),e.data.vnf_version||(e.data.vnf_version="-"),e.data.asdc_onboarding_time||(e.data.asdc_onboarding_time="-"),e.data.heat_validated_time||(e.data.heat_validated_time="-"),e.data.image_scan_time||(e.data.image_scan_time="-"))};e.starEngagement=function(){d.putStarredEngagements(e.data.engagement_uuid).then(function(a){b.ice.loader.show=!1,200===a.status&&a.data&&""!==a.data&&(b.$broadcast("onUpdateEngagements",{select:{uuid:e.data.engagement_uuid,page_type:"dashboard",sub_id:void 0,enable_refresh:e.enable_refresh}}),0==e.data.starred?e.data.starred=!0:e.data.starred=!1)})["catch"](function(a){b.ice.loader.show=!1,c.error(a)})},e.goToEngagement=function(a){b.$broadcast("searchSelectEngagement",a)},e.changeProgress=function(){var b=a.open({templateUrl:"main/modals/change-progress/change-progress.html",controller:"ChangeProgressModalController",controllerAs:"vm",resolve:{progress:function(){return e.progress},engagementUuid:function(){return e.data.engagement_uuid}}});b.result.then(function(a){a&&(e.progress=a.progress||e.progress,a.progress&&e.callback(a))},function(){c.debug("Modal dismissed at: "+new Date)})},h()},e}angular.module("ice.directives").directive("progressDirective",["$uibModal","$rootScope","$log","vfService",a])}(),function(){"use strict";function a(a,b,c,d,e){var f={};return f.restrict="E",f.template="
",f.scope={activity:"="},f.controller=["$scope",function(a){a.addDateStamp=function(a){var c="",d=moment().format("z"),e=moment().format("A"),f=moment().tz(moment.tz.guess()).format("z");return c=-1==a.description.indexOf(" at ")?"."==a.description.substr(a.description.length-1)?a.description.substr(0,a.description.length-1):a.description:a.description.substring(0,a.description.indexOf(" at ")),a.description=c+" at "+b("date")(a.create_time,"yyyy-MM-dd hh:mm:ss",d)+" "+e+" "+f,a},a.addPopover=function(a,b,c,d){var e=""+c+"";a.description=a.description.replaceAll(b,e)},a.addSelectEngagement=function(a,b,c,d){var e="";a.description=a.description.replaceAll(b,e)},a.goToEngagement=function(a){e.setJson("ice.settings.eng_uuid",a),d.path("/dashboard/overview"),d.replace(),c.$broadcast("onUpdateEngagements",{select:{uuid:a,page_type:"overview",sub_id:void 0}})}}],f.link=function(b,c,d,e){var f=b.activity;f.meta_data=JSON.parse(f.metadata),b.addDateStamp(f),angular.forEach(f.meta_data.macros,function(a,c){switch(a.type){case"popover":b.addPopover(f,c,a["short"],a["long"]);break;case"select_engagement":b.addSelectEngagement(f,c,a["short"],a.eng_uuid)}});var g=""+b.activity.description+"";c.html(g).show(),a(c.contents())(b)},f}angular.module("ice.directives").directive("notifications",a),String.prototype.replaceAll=function(a,b,c){return this.replace(new RegExp(a.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),c?"gi":"g"),"string"==typeof b?b.replace(/\$/g,"$$$$"):b)},a.$inject=["$compile","$filter","$rootScope","$location","localStorageService"]}(),function(){"use strict";function a(a){var b={};return b.restrict="E",b.transclude=!1,b.scope={selector:"@selector"},b.link=function(b,c,d){a.$watch("ice.loader.show",function(a,c){if(a===!0){var d=$(b.selector),f=e(),g=$('
');$("body").append(g),d.addClass("ice-loader-overlay");var h=d.offset();h&&g.css({top:h.top+d.height()/2,left:h.left+d.width()/2,position:"fixed"})}else if(a===!1){var d=$(b.selector);d.removeClass("ice-loader-overlay");var f=e(),g=$("#"+f);g.remove()}},!0);var e=function(){var a="ice-loader-",c=b.selector;return c=c.replace(".",""),c=c.replace("#",""),a+c}},b}angular.module("ice.directives").directive("iceLoader",a),a.$inject=["$rootScope"]}(),function(){"use strict";function a(a,b){var c={};return c.restrict="E",c.templateUrl="directives/ice-toast/ice-toast.html",c.scope={isModal:"=isModal"},c.link=function(c,d,e){var f=function(){var a=b.getToast();a&&(c.toast=a)};c.closeAlert=function(){b.clearToast()},f(),a.$watch("showToast",function(a,b){f()},!0)},c}angular.module("ice.directives").directive("iceToast",["$rootScope","toastService",a])}(),function(){"use strict";function a(a,b,c){var d={};return d.restrict="E",d.templateUrl="directives/ice-announcement/ice-announcement.html",d.link=function(d,e,f){function g(a){var b=c.getJson(h)||{};b.closed=a,c.setJson(h,b)}var h="lastAnnouncement",i=function(){var a=b.getAnnouncement();if(a){d.toast=a;var c=new Date;c.setDate(c.getDate()-2);var e=new Date(d.toast.publishDate);c>e&&d.closeAlert()}};d.closeAlert=function(){d.toast.show=!1,g(!0)},i(),a.$watch("showAnnouncement",function(a,b){i()},!0)},d}angular.module("ice.directives").directive("iceAnnouncement",["$rootScope","cmsService","localStorageService",a])}(),function(){"use strict";function a(a,b){var c={};return c.restrict="E",c.templateUrl="directives/ice-tooltip/ice-tooltip.html",c.link=function(c,d,e){var f=5;a.getPosts(f,"",["FAQ"]).then(function(a){if(a.data&&a.data.length>0){var b=a.data.length,d=Math.floor(Math.random()*b);c.tipContent=a.data[d]}})["catch"](function(a){b.error(a)})},c}angular.module("ice.directives").directive("iceToolTip",["cmsService","$log",a])}(),function(){"use strict";function a(a,b,c){var d={};return d.restrict="E",d.templateUrl="directives/ice-news-and-announcement/ice-news-and-announcement.html",d.scope={limit:"=limit",fromLastDays:"=fromLastDays",showDescription:"=showDescription"},d.link=function(d,e,f){var g=d.limit||5,h=d.fromLastDays||"",i=function(){a.getPosts(g,h,["Announcement","News"]).then(function(a){d.cmsPosts=a.data})["catch"](function(a){c.error(a)})};d.openCMSReadMoreModal=function(a){a?b.open({templateUrl:"main/modals/cms-post-modal/cms-post-modal.html",controller:"cmsPostModalController",controllerAs:"vm",size:"cms-post-read-more",resolve:{post:function(){return a}}}):c.debug("Cannot open cms post.")},i()},d}angular.module("ice.directives").directive("iceNewsAndAnnouncement",["cmsService","$uibModal","$log",a])}(),function(){"use strict";function a(a){return function(b){return a.trustAsHtml(b)}}angular.module("ice.filters",[]).filter("trusted",["$sce",a])}(),function(){"use strict";function a(a,b,c){return function(a,b){return a.toLowerCase().includes(b.toLowerCase())}}angular.module("ice.filters").filter("doesExists",["$sce","$injector","$log",a])}(),function(){"use strict";function a(){return function(a){return a?a.charAt(0).toUpperCase()+a.substr(1).toLowerCase():""}}angular.module("ice.filters").filter("capitalize",[a])}(),function(){"use strict";function a(a,b){return function(c,d){var e={stage:"All",keyword:d,offset:0,limit:20};return a.getExpandedEngagements(e).then(function(a){return 200===a.status&&a.data&&""!==a.data?a.data.array:void 0})["catch"](function(a){$rootScope.ice.loader.show=!1,b.error(a)})}}angular.module("ice.filters").filter("customVFSearchFilter",["vfService","$log",a])}(),function(){"use strict";function a(a){var b=["th","st","nd","rd"];return function(c,d){if(c){var e=a("date")(c,d),f=parseInt(a("date")(c,"dd")),g=30>f?f%20:f%30,h=3>=g?b[g]:b[0];return e.replace("oo",h)}return c}}angular.module("ice.filters").filter("date2",["$filter",a])}(),function(){"use strict";function a(a,b){return function(b){return b=a.replace(b,/\&\;/g,"&"),b=a.replace(b,/\<\;/g,"<"),b=a.replace(b,/\>\;/g,">"),b=a.replace(b,/\"\;/g,'"'),b=a.replace(b,/\\;/g,"'"),b=a.replace(b,/<(\s)*script/g,"_script")}}angular.module("ice.filters").filter("htmlspecialchars",["_","$filter",a])}(),function(){"use strict";function a(a,b){return function(b){return b=a.replace(b,/style=\"font-weight: bold;\"/g,'class="bold"'),b=a.replace(b,/style=\"font-style: italic;\"/g,'class="italic"'),b=a.replace(b,/style=\"text-decoration-line: line-through;\"/g,'class="line-through"'),b=a.replace(b,/style=\"text-decoration-line: underline;\"/g,'class="underline"')}}angular.module("ice.filters").filter("htmlstylespan",["_","$filter",a])}(),function(){"use strict";function a(a){return function(b,c){return a.searchPages(c).then(function(a){return a.data})["catch"](function(a){$log.error(a)})}}angular.module("ice.filters").filter("customDocumentationPageSearch",["cmsService",a])}(),function(){"use strict";function a(){}angular.module("ice.toolbar",[]).config(a)}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.notifications=0;var h=c.getUserData();h&&(g.isAdmin=c.isAdmin(h),c.getNotifications(h.uuid).then(function(a){200===a.status&&(g.notifications=a.data.notifications_number?a.data.notifications_number:0)})["catch"](function(a){e.error(a)})),g.logout=function(){c.resetUserData(),b.setJson("ice.settings.eng_uuid",void 0),d.go("app.login")},g.addFeedback=function(){f.open({templateUrl:"main/modals/feedback/feedback.html",controller:"FeedbackModalController",controllerAs:"vm",size:"lg",resolve:{action:function(){return"add"}}})},a.$on("eventClearNotifications",function(a,b){g.notifications=0})}angular.module("ice.toolbar").controller("ToolbarController",["$rootScope","localStorageService","usersService","$state","$log","$uibModal",a])}(),function(){"use strict";function a(){}angular.module("ice.navigation",[]).config(a)}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=this;k.selected=void 0,k.states=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"],o.formatted_engagements={},o.starred_engagements={},o.recent_engagements={},o.showOpenWizardButton=!1;var p=i.getUserData();void 0!=p&&1==p.activationSuccess&&(o.activation_success=!0),o.selectEngagement=function(a,c,e,f){var j=angular.element(l);void 0!=c&&j.width()<992&&$(".navbar-collapse").collapse("hide"),null!=h.params.messagePass&&(m.setToast(h.params.messagePass,"success"),null==h.params.messagePass),void 0==a&&void 0!=g.getJson("ice.settings.eng_uuid")?a=g.getJson("ice.settings.eng_uuid"):h.go("app.dashboard.dashboard");var n=b.defer();return void 0!=c?o.view_type=c:""!=d.getPage()?o.view_type=d.getPage():void 0!=g.getJson("ice.settings.view_type")?o.view_type=g.getJson("ice.settings.view_type"):o.view_type="overview",void 0!=e?e=e:void 0!=g.getJson("ice.settings.sub_id")&&(e=g.getJson("ice.settings.sub_id")),g.setJson("ice.settings.view_type",o.view_type),g.setJson("ice.settings.sub_id",e),d.setPage(o.view_type),k.$watch(function(){return d.getPage()},function(a,b){a!==b&&(o.view_type=a)}),o.engagement=void 0,angular.forEach(o.recent_engagements,function(b,c){b.uuid===a?(o.engagement=b,o.engagement.selected=!0,o.engagement.page=o.view_type,o.engagement.sub_id=e,o.engagement.view_type=o.view_type):b.selected=void 0;o.recent_engagements[c]=b}),angular.forEach(o.starred_engagements,function(b,c){b.uuid===a?(o.engagement=b,o.engagement.selected=!0,o.engagement.page=o.view_type,o.engagement.sub_id=e,o.engagement.view_type=o.view_type):b.selected=void 0;o.starred_engagements[c]=b}),o.engagement?(g.setJson("ice.settings.eng_uuid",a),o.showOpenWizardButton=!0,(void 0===f||f===!0)&&(o.activation_success?h.go("app.dashboard."+o.view_type,{engagement_uuid:a,engagement:o.engagement,sub_id:e,messagePass:"You have successfully activated your account!"}):h.go("app.dashboard."+o.view_type,{engagement_uuid:a,engagement:o.engagement,sub_id:e,messagePass:null}))):1!=o.last_not_found_engagement?(g.setJson("ice.settings.eng_uuid",void 0),r()):r(!0),o.isReviewer=i.isReviewer(o.me,o.engagement.reviewer_uuid),o.isPeerReviewer=i.isPeerReviewer(o.me,o.engagement.peer_reviewer_uuid),n.resolve(a),n.promise},o.searchSelectEngagement=function(b){f.getSingleEngagement(o.me.uuid,b).then(function(c){a.ice.loader.show=!1,200===c.status&&c.data&&""!==c.data&&r(!1,{uuid:b,page_type:"overview",sub_id:void 0})})["catch"](function(b){a.ice.loader.show=!1,n.error(b)})};var q=function(){return o.me=o.user=i.getUserData(),o.isAdmin=i.isAdmin(o.me),o.isEngagementEL=i.isUserInRole(c.roles.el),o.vfc_num=0,o.user&&o.user.is_active===!1?void h.go("app.resend_activation",{message:"Please activate your account first"}):void 0===o.user?void h.go("app.login",{message:"Please login first"}):(r(!1),void a.$on("onUpdateEngagements",function(a,b){void 0!=b&&void 0!=b.select?r(!1,b.select):r(!0)}))},r=function(b,c){a.ice.loader.show=!0,o.starred_engagements={},o.recent_engagements={},o.formatted_engagements={},f.getStarredEngagements().then(function(d){a.ice.loader.show=!1,200===d.status&&d.data&&""!==d.data?s(d.data,!0,!1):204===d.status?n.error("no starred VFs were found for you."):n.error("getStarredEngagements Failed."),f.getRecentEngagements().then(function(d){a.ice.loader.show=!1,200===d.status&&d.data&&""!==d.data?d.data.length>0?s(d.data,!1,!0,b,c):h.go("app.dashboard.overview",{engagement_uuid:void 0,engagement:void 0,sub_id:void 0}):204===d.status?(n.error("no recent VFs were found for you."),t(b)):n.error("getRecentEngagements Failed.")})["catch"](function(b){a.ice.loader.show=!1,n.error(b)})})["catch"](function(b){a.ice.loader.show=!1,n.error(b)})};a.$on("searchSelectEngagement",function(a,b){o.searchSelectEngagement(b)});var s=function(a,b,c,d,e){var f=void 0;for(f=0;f0){if(1==a?b=o.formatted_engagements[Object.keys(o.formatted_engagements)[0]].uuid:e.search().eng_uuid?b=e.search().eng_uuid:null!=c?b=c:void 0!=h.params.engagement_uuid&&(b=h.params.engagement_uuid),0!=b){o.selectEngagement(b)}else h.go("app.dashboard.dashboard"),null!=h.params.messagePass&&(m.setToast(h.params.messagePass,"success"),null==h.params.messagePass);0==b&&(b=o.formatted_engagements[Object.keys(o.formatted_engagements)[0]].uuid,o.engagement=o.formatted_engagements[Object.keys(o.formatted_engagements)[0]]),void 0!=o.engagement&&null!=o.engagement.creator&&d.uuid==o.engagement.creator&&1==o.activation_success&&o.openGettingStartedWizard(b)}else 1==d.activationSuccess?(o.openGettingStartedWizard(),h.go("app.dashboard.dashboard")):h.go("app.dashboard.dashboard");o.activation_success=!1,i.setUserActivationSuccess(void 0)};q(),o.openGettingStartedWizard=function(b){var c=o.engagement&&b?o.engagement.is_service_provider_internal:!1;b=b||"";var d={user:o.user,eng_uuid:b,is_service_provider_internal:c,showActivationMessage:o.activation_success};a.$broadcast("openGettingStartedWizard",d),o.activation_success=!1},o.addChecklist=function(a){var b=j.open({templateUrl:"main/modals/checklist/checklist.html",controller:"ChecklistModalController",controllerAs:"vm",size:"lg",resolve:{engagementUuid:function(){return a},modal_type:function(){return"create"},wizardData:function(){return!1}}});b.result.then(function(b){var c=void 0;void 0!=b&&(c=b.uuid,r(!1,{uuid:a,page_type:"checklist",sub_id:c}),b.progress&&o.callback(b))},function(){n.debug("Modal dismissed at: "+new Date)})}}angular.module("ice.navigation",["ui.bootstrap"]).controller("NavigationController",["$rootScope","$q","iceConstants","pageService","$location","vfService","localStorageService","$state","usersService","$uibModal","$scope","$window","toastService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e){var f=this,g=function(){f.checkListTemplates=null,i(),h()},h=function(){a.$watch(function(){return e.params.templateName},function(a,b){a!==b&&f.selectedTemplate&&(f.selectedTemplate.name=a)})},i=function(){c.getChecklistTemplates().then(function(a){d.ice.loader.show=!1,200===a.status&&a.data&&""!==a.data?f.checkListTemplates=a.data.checkListTemplates:b.debug("getChecklistTemplates Failed. response.status="+a.status)})["catch"](function(a){d.ice.loader.show=!1,b.error(a)})};f.selectTemplate=function(a){a!==f.selectedTemplate&&(f.selectedTemplate=a,e.go("app.admin.checklisttemplate",{template_uuid:a.uuid}))},g()}angular.module("ice.main.admin",["ice.services.users"]).controller("adminNavigationController",["$scope","$log","checklistService","$rootScope","$state",a])}(),function(){"use strict";function a(a,b,c,d,e){var f=this,g="LastDocumentationPageId",h=function(){c.getPages("Documentation").then(function(a){if(a&&a.data&&1===a.data.length){f.documentationPage=a.data[0];var b=d.getJson(g);b?f.loadPageContent(b):f.loadPageContent(f.documentationPage.id)}})["catch"](function(a){e.error(a)})};f.loadPageContent=function(a){f.selectedSearchedPage&&delete f.selectedSearchedPage,f.pageId=a,d.setJson(g,a),b.go("app.documentation.page",{page_id:a})},f.isPageCollapsed=function(b){var c=!0;if(b&&b.children&&b.children.length>0){var d=a.flatMap(b.children,function(b){return a.concat(b.children,b)});c=b.id!=f.pageId&&!a.some(d,["id",f.pageId])}return c},h()}angular.module("ice.documentation",[]).controller("documentationNavigationController",["_","$state","cmsService","sessionStorageService","$log",a])}(),function(){"use strict";function a(a){var b=this,c=function(){b.selectedPage=a.$current.name||"app.account"};b.loadPageContent=function(c){b.selectedPage=c,a.go(c)},c()}angular.module("ice.dashboard.account",[]).controller("accountNavigationController",["$state",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.progress=b,g.closeModal=function(){a.close()},g.submitForm=function(){var b={progress:g.progress};d.updateProgress(c,b).then(function(c){202===c.status&&a.close(b)})["catch"](function(a){e.error(a),f.setToast(a.status+": Error changing progress!","danger")})}}angular.module("ice.modals",[]).controller("ChangeProgressModalController",["$uibModalInstance","progress","engagementUuid","vfService","$log","toastService",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.completionDate=b,g.dateOptions={minDate:new Date,showWeeks:!0},g.closeModal=function(){a.close()},g.submitForm=function(){var b={target_date:moment(g.completionDate).format("YYYY-MM-DD")};d.updateDaysLeft(c,b).then(function(c){200===c.status&&a.close(b)})["catch"](function(a){f.setToast(a.status+": Error changing completion date!","danger")})}}angular.module("ice.modals").controller("ChangeDateModalController",["$uibModalInstance","completionDate","engagementUuid","vfService","$rootScope","toastService",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.targetLabDate=b,g.dateOptions={minDate:new Date,showWeeks:!0},g.closeModal=function(){a.close()},g.myDate=new Date,g.minDate=moment(g.myDate).format("YYYY-MM-DD"),g.maxDate=moment(g.myDate).add(2,"years").format("YYYY-MM-DD"),g.submitForm=function(){var b={target_date:moment(g.targetLabDate).format("YYYY-MM-DD")};d.updateLabEntryDaysLeft(c,b).then(function(c){200===c.status&&a.close(b)})["catch"](function(a){f.setToast(a.status+": Error changing completion date!","danger")})}}angular.module("ice.modals").controller("ChangeLabEntryDateModalController",["$uibModalInstance","targetLabDate","engagementUuid","vfService","$rootScope","toastService",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k){var l=this;l.nextSteps=[{assigneesUuids:"",description:"",files:"",duedate:""}];var m=function(){l.myDate=new Date,l.minDate=new Date(l.myDate.getFullYear(),l.myDate.getMonth(),l.myDate.getDate()),l.maxDate=new Date(l.myDate.getFullYear()+2,l.myDate.getMonth(),l.myDate.getDate()),l.onlyWeekendsPredicate=function(a){var b=a.getDay();return 0===b||6===b},l.wysiwyg_menu=[["bold","italic","strikethrough","underline"],["unordered-list","ordered-list","outdent","indent"]],l.select_str={File:"Select All"},l.select_all_flag=!1,l.associated_files=[],l.associated_files.push(l.select_str),l.assigness=[],l.title=e,void 0==h?(l.checklist={},l.checklist.uuid=void 0):l.checklist=h;var a=[];if(angular.forEach(f,function(b,c){-1==a.indexOf(b)&&(a.push(b),l.associated_files.push({File:b}))}),angular.forEach(d,function(a,b){l.assigness.push({name:a.full_name,id:a.uuid})}),l.edit=!1,void 0!=i){l.edit=!0;var b={};b.description=i.description,b.files=[],b.duedate=new Date(i.due_date);var a=[];angular.forEach(i.files,function(c,d){-1==a.indexOf(value)&&(a.push(value),b.files.push({File:c}))}),b.assigneesUuids=[],angular.forEach(i.assignees,function(a,c){b.assigneesUuids.push({name:a.full_name,id:a.uuid})}),l.nextSteps=[b]}};m(),l.get_chosen_files_num=function(a){return a.files.length==f.length+1?a.files.length-1:a.files.length},l.add_all_associated_files=function(a,b){1==b?(a.files=[],a.files.push({File:"Select All"}),_.forEach(f,function(b,c){a.files.push({File:b})})):(l.select_all_flag=!1,a.files=[])},l.pull_select_all_from_list=function(a){var b=[];_.forEach(a.files,function(a){_.isEqual(a,l.select_str)||b.push(a)}),a.files=b},l.verify_files_choice=function(a){_.forEach(a.files,function(b){a.files.length==f.length&&l.select_all_flag?b===l.select_str?(l.select_all_flag=!1,l.pull_select_all_from_list(a)):l.add_all_associated_files(a,!1):a.files.length!=f.length||l.select_all_flag?b===l.select_str&&(l.select_all_flag=!0,l.add_all_associated_files(a,!0)):(a.files.push({File:"Select All"}),l.select_all_flag=!0)})},l.addNewStep=function(){var a=l.nextSteps.length+1;l.nextSteps.push({id:a})},l.removeStep=function(a){l.nextSteps.splice(a,1)},l.closeModal=function(){a.ice.loader.show=!1,j.clearToast(),b.close()},l.submitForm=function(){var d,e=[];angular.forEach(l.nextSteps,function(a,b){var c={};c.files=[],a.files.length>f.length&&l.pull_select_all_from_list(a),angular.forEach(a.files,function(a,b){c.files.push(a.File)}),c.assigneesUuids=[],angular.forEach(a.assigneesUuids,function(a,b){c.assigneesUuids.push(a.id)}),d=new Date(Date.parse(a.duedate+moment().format("z"))),c.duedate=d.getFullYear()+"-"+n(d.getMonth()+1)+"-"+n(d.getDate()),c.description=a.description,e.push(c)});var h=l.checklist.uuid,m=g;l.edit?c.edit(g,i.uuid,e[0]).then(function(a){202===a.status&&b.close(a.data)})["catch"](function(a){k.error(a),j.setToast(a.status+": Error adding next step!","danger",{displayFor:"modal"})}):void 0==l.checklist.uuid?c.add(g,e).then(function(a){200===a.status&&b.close(a.data)})["catch"](function(a){k.error(a),j.setToast(a.status+": Error adding next step!","danger",{displayFor:"modal"})}):c.createChecklistNextStep(h,m,e).then(function(c){200===c.status?(b.close(c.status),l.closeModal()):(j.setToast(error.message,"danger",{displayFor:"modal"}),a.ice.loader.show=!1,k.error(error))})["catch"](function(b){j.setToast(b.message,"danger",{displayFor:"modal"}),a.ice.loader.show=!1,k.error(b)})};var n=function(a){return 10>a?"0"+a:a}}angular.module("ice.modals").controller("NextStepsModalController",["$rootScope","$uibModalInstance","stepsService","engagement_team","title","associated_files","engagement_uuid","checklist","nextstep","toastService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e){var f=this,g=function(){f.stage=c,f.current_stage=e,f.modalText="Are you sure you want to set the Engagement's stage to "+f.stage+"?",f.eng_name=d};f.closeModal=function(a){b.close(a)},g()}angular.module("ice.modals").controller("setEngStageModalController",["$rootScope","$uibModalInstance","stage","eng_name","current_stage",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h){var i=this;i.checkListAssociatedFiles=[],i.selectedCheckListAssociatedFiles=[],i.isDisabled=!1;var j=function(){switch(f){case"create":i.create=!0,i.createUpadeTitle="Create",i.modalType="create",i.modalTitle="Create",d.getDataForCreateChecklist(e).then(function(a){200===a.status&&(i.checkListTemplatesLists=[],i.checkListTemplates=a.data.checkListTemplates,angular.forEach(a.data.checkListAssociatedFiles,function(a,b){i.checkListAssociatedFiles.push({File:a})}),b.ice.loader.show=!1)})["catch"](function(c){a.setToast(c.message,"danger",{displayFor:"modal"}),b.ice.loader.show=!1,h.error(c.message)});break;case"update":i.update=!0,i.createUpadeTitle="Update",i.modalType="udpate",i.modalTitle="Update",i.checklistUuid=g.uuid,i.checkListName=g.name,d.getDataForCreateChecklist(e).then(function(a){200===a.status&&(i.checkListAssociatedFiles=[],angular.forEach(a.data.checkListAssociatedFiles,function(a,b){i.checkListAssociatedFiles.push({File:a})}),b.ice.loader.show=!1,i.selectedCheckListAssociatedFiles=[],angular.forEach(g.associatedFiles,function(a,b){i.selectedCheckListAssociatedFiles.push({File:a})}))})["catch"](function(c){a.setToast(c.message,"danger",{displayFor:"modal"}),b.ice.loader.show=!1,h.error(c.message)}),i.selectedTemplateUuid=g.selectedTemplateUuid,i.selectedTemplateName=g.selectedTemplateName}};j(),i.addFile=function(){var a=i.selectedCheckListAssociatedFiles.length+1; +i.selectedCheckListAssociatedFiles.push({id:a})},i.removeFile=function(a){i.selectedCheckListAssociatedFiles.splice(a,1)},i.closeModal=function(){a.clearToast(),b.$emit("onChecklistUpdate"),c.close(i.checkListName),c.close()},i.submitForm=function(){i.isDisabled=!0;var j=[];switch(f){case"create":angular.forEach(i.selectedCheckListAssociatedFiles,function(a,b){j.push(a.File)});var k={checkListAssociatedFiles:j,checkListName:i.checkListName,checkListTemplateUuid:i.selectedTemplateUuid};d.createChecklist(e,k).then(function(a){200===a.status&&(c.close(a.data),b.ice.loader.show=!1,i.closeModal())})["catch"](function(c){a.setToast(c.message||"Error creating check list.","danger",{displayFor:"modal"}),b.ice.loader.show=!1,i.isDisabled=!1,h.error(c.message)});break;case"update":var l=[];angular.forEach(i.selectedCheckListAssociatedFiles,function(a,b){l.push(a.File)}),h.debug("update",l);var m={checklistUuid:i.checklistUuid,checkListAssociatedFiles:l,checkListName:i.checkListName,checkListTemplateUuid:i.selectedTemplateUuid};d.putDataForChecklist(i.checklistUuid,m).then(function(f){if(200===f.status){b.$broadcast("onUpdateEngagements",{select:{uuid:e,view_type:"checklist",sub_id:i.checklistUuid}}),b.ice.loader.show=!1;var j={};j.checklist_name=i.checkListName,j.associated_files=l;var k=i.checkListAssociatedFiles.sort(),m=l.sort(),n=k.length==m.length&&k.every(function(a,b){return a===m[b]});if(!n&&"pending"!=g.state){var o={};o.description="Rejected due to file list change",o.decline="True",d.setState(i.checklistUuid,o).then(function(c){return 200!==c.status?(a.setToast(c.error,"danger",{displayFor:"modal"}),b.ice.loader.show=!1,void(i.isDisabled=!1)):void b.$broadcast("onUpdateEngagements")})["catch"](function(b){h.error(b),a.setToast(b.status+": Error changing progress!","danger"),i.isDisabled=!1})}c.close(j),i.closeModal()}})["catch"](function(c){a.setToast(c.message,"danger",{displayFor:"modal"}),b.ice.loader.show=!1,h.error(c.message),i.isDisabled=!1});break;default:h.debug("no submit action found"),i.isDisabled=!1}}}angular.module("ice.modals").controller("ChecklistModalController",["toastService","$rootScope","$uibModalInstance","checklistService","engagementUuid","modal_type","wizardData","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this,h=function(){var a=[],b=moment().tz(moment.tz.guess()).format("z"),c="";g.name=d.name,g.checklistAuditLogs=d.checklistAuditLogs,g.checklistAuditLogs.forEach(function(d){c=moment(d.create_time).local().format("YYYY-MM-DD hh:mm:ss A")+" "+b,a.push({name:d.creator.full_name,dt:c,desc:d.description})}),g.checklistAuditLogs=a};h(),g.submitForm=function(){var h={description:g.description};c.createAuditlogChecklist(d.uuid,h).then(function(c){200===c.status?(b.close(c.data),g.closeModal()):(e.setToast(c.error,"danger",{displayFor:"modal"}),a.ice.loader.show=!1)})["catch"](function(a){e.setToast(a.message,"danger",{displayFor:"modal"}),f.error(a.message)})},g.closeModal=function(){e.clearToast(),b.close()}}angular.module("ice.modals").controller("AuditLogModalController",["$rootScope","$uibModalInstance","checklistService","wizardData","toastService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this,i=function(){h.me=f.getUserData(),j()};h.vfcs=[{name:"",external_ref_id:"",company:""}],h.companies=[],h.closeModal=function(){b.close()},h.addNewChoice=function(){var a=h.vfcs.length+1;h.vfcs.push({id:a})},h.removeChoice=function(a){h.vfcs.splice(a,1)},h.submitForm=function(){var a=[];angular.forEach(h.vfcs,function(b,c){h.item=[];var d=new Object;d.name=b.name,d.external_ref_id=b.external_ref_id,d.company=b.company,a.push(d)});var f={vfcs:a,vf_uuid:e,creator:h.me};c.add(f).then(function(a){200===a.status&&b.close(a.status)})["catch"](function(a){g.error(a),d.setToast(a.status+": Error changing progress!","danger")})};var j=function(){a.ice.loader.show=!0,c.getCompanies().then(function(b){a.ice.loader.show=!1,200===b.status&&(h.companies=b.data,0===h.companies.length&&console.warn("No vendors pulled, request was successfull"))})["catch"](function(b){a.ice.loader.show=!1,g.error(b)})};i()}angular.module("ice.modals").controller("detailedViewVFCModalController",["$rootScope","$uibModalInstance","vfcService","toastService","vf_uuid","usersService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j){function k(){d.getDeployTargets().then(function(b){a.ice.loader.show=!1,200===b.status&&(n.deployTargets=b.data,0===j.filter(n.deployTargets,{uuid:n.dtversion.uuid}).length&&(n.dtversion.disabled=!0,n.deployTargets.push(n.dtversion)))})["catch"](function(b){a.ice.loader.show=!1,i.error(b)})}function l(){d.getECOMPReleases().then(function(a){200===a.status&&(n.ECOMPReleases=a.data,0===j.filter(n.ECOMPReleases,{uuid:n.ecomp_release.uuid}).length&&(n.ecomp_release.disabled=!0,n.ECOMPReleases.push(n.ecomp_release)))})["catch"](function(b){a.ice.loader.show=!1,i.error(b)})}function m(){d.getVFVersion(g).then(function(b){a.ice.loader.show=!1,200===b.status&&(n.VFVersion=b.data)})["catch"](function(b){a.ice.loader.show=!1,i.debug(b)})}var n=this,o=function(){e.engagement&&(n.engagement=e.engagement),n.me=h.getUserData(),d.getSingleEngagement(n.me.uuid,n.engagement.uuid).then(function(b){if(a.ice.loader.show=!1,200===b.status&&b.data&&""!==b.data){var c=b.data;n.engagement_manual_id=c.engagement.engagement_manual_id,n.vf_name=c.name,n.vf_uuid=c.uuid,n.ecomp_release=c.ecomp_release,n.target_lab=new Date(c.target_lab_entry_date),n.dtversion=c.deployment_target,n.selected_dt_uuid=n.dtversion.uuid,n.selected_ecomp_uuid=n.ecomp_release.uuid,n.me=h.getUserData(),n.name=n.engagement.name,n.isEngagementEL=h.isEngagementEL(c.engagement.engagement_team),n.isAdmin=h.isAdmin(n.me),n.choices=[{TargetLab:"",TargetAic:""}],k(),l(),m()}})["catch"](function(b){a.ice.loader.show=!1,i.error(b)})};n.closeModal=function(){b.close()},n.addNewChoice=function(){var a=n.choices.length+1;n.choices.push({id:a})},n.removeChoice=function(a){n.choices.splice(a,1)},n.submitForm=function(){var a={vf_uuid:n.vf_uuid,version:n.VFVersion,target_aic_uuid:n.TargetAic,ecomp_release:n.ECOMPRelease};d.updateVfs(a,n.vf_uuid).then(function(a){200===a.status&&b.close(a.status)})["catch"](function(a){i.error(a),f.setToast(a.status+": Error changing progress!","danger")})},n.update_deployment_target=function(){n.dtversion.uuid!=n.selected_dt_uuid&&(angular.forEach(n.dt_AIC_versions,function(a,b){a.uuid===n.selected_dt_uuid&&(n.dtversion=a)}),d.updateDeployTargets(n.engagement.uuid,n.selected_dt_uuid).then(function(b){a.ice.loader.show=!1})["catch"](function(b){a.ice.loader.show=!1,i.error(b)}),n.set_edit_mode("aic"))},n.update_ECOMP_release=function(){n.ecomp_release.uuid!=n.selected_ecomp_uuid&&(j.each(n.ECOMPReleases,function(a,b){a.uuid===n.selected_ecomp_uuid&&(n.ecomp_release=a)}),d.updateECOMPReleases(n.engagement.uuid,n.selected_ecomp_uuid).then(function(b){a.ice.loader.show=!1})["catch"](function(b){a.ice.loader.show=!1,i.error(b)}),n.set_edit_mode("ecomp"))},o()}angular.module("ice.modals").controller("validationDetailsModalController",["$rootScope","$uibModalInstance","vfcService","vfService","$stateParams","toastService","vf_uuid","usersService","$log","_",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this,i=function(){void 0!=c.engagement&&(h.vf=c.engagement.vf),j()};h.closeModal=function(){b.close()},h.json="",h.submitForm=function(){var a={name:h.json,vf_uuid:f};d.add(a).then(function(a){b.close(a.status)})["catch"](function(a){g.error(a),e.setToast(a.status+": Error changing progress!","danger")})};var j=function(){a.ice.loader.show=!0,d.get().then(function(b){a.ice.loader.show=!1,200===b.status&&(h.dtsites=b.data)})["catch"](function(b){a.ice.loader.show=!1,g.error(b)})};i()}angular.module("ice.modals").controller("detailedViewDtsitesModalController",["$rootScope","$uibModalInstance","$stateParams","dtsiteService","toastService","vf_uuid","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this,i=function(){h.description=null,h.checklist_name=f.name,h.state=f.state,h.action=e,h.modalText="pending"==h.state?"Are you sure you want to move the checklist state to Automation?":"Please use the button below to either approve or reject the checklist.
You can also add a log entry comment."};h.submitForm=function(e){var i={};null!=h.description?i.description=h.description:i.description="",e===!0?i.decline="False":i.decline="True",c.setState(f.uuid,i).then(function(c){200===c.status?(b.close(c.data),h.closeModal()):(d.setToast(c.error,"danger"),a.ice.loader.show=!1)})["catch"](function(a){g.error(a),d.setToast(a.status+": Error changing progress!","danger")})},h.closeModal=function(){b.close()},i()}angular.module("ice.modals").controller("stateDecisionModalController",["$rootScope","$uibModalInstance","checklistService","toastService","action","checklist","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this,i=function(){h.engagement_uuid=d,h.action=e,"edit"==e?c.get(d).then(function(a){200===a.status?(h.status=a.data,h.status_modal_description=h.status.description,h.eng_status_uuid=h.status.uuid):g.error(a)})["catch"](function(a){h.status=!1,g.error(a.message)}):h.status_modal_description=""};i(),h.submitForm=function(){var d={description:h.status_modal_description};"edit"==e?(d.eng_status_uuid=h.eng_status_uuid,c.update(h.engagement_uuid,d).then(function(c){200===c.status?(b.close(c.data),h.closeModal()):(f.setToast(c.error,"danger"),a.ice.loader.show=!1)})["catch"](function(a){f.setToast(a.message,"danger"),g.error(a.message)})):c.add(h.engagement_uuid,d).then(function(c){200===c.status?(b.close(c.data),h.closeModal()):(f.setToast(c.error,"danger"),a.ice.loader.show=!1)})["catch"](function(a){f.setToast(a.message,"danger"),g.error(a.message)})},h.closeModal=function(){b.close()}}angular.module("ice.modals").controller("StatusModalController",["$rootScope","$uibModalInstance","statusService","engagement_uuid","action","toastService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this,h=function(){g.action=d,g.feedback_modal_description=""};h(),g.submitForm=function(){var h={description:g.feedback_modal_description};"add"==d&&c.add(h).then(function(c){200===c.status?(b.close(c.data),e.setToast("Feedback was sent successfully.","success")):(e.setToast(c.error,"danger"),a.ice.loader.show=!1)})["catch"](function(a){e.setToast(a.message,"danger"),f.error(a.message)})},g.closeModal=function(){b.close()}}angular.module("ice.modals").controller("FeedbackModalController",["$rootScope","$uibModalInstance","feedbackService","action","toastService","$log",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){b&&(c.upper_headline=b.upper_headline,c.upper_headline_value=b.upper_headline_value,c.headline=b.headline||"D2ICE",c.message=b.message||"Are you sure?",c.closeCallback=b.closeCallback,c.approveText=b.approve||"Approve",c.cancelText=b.cancel||"Cancel",c.is_close_modal_button=b.is_close_modal_button,c.is_message=b.is_message)};c.closeModal=function(b){c.closeCallback&&c.closeCallback(b),a.close(b)},d()}angular.module("ice.modals").controller("generalPromptModalController",["$uibModalInstance","modalDetails",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){b&&(c.headline=b.headline||"General log modal",c.body=b.body||"There is no body")};d(),c.closeModal=function(){a.close()}}angular.module("ice.modals").controller("GeneralLogModalController",["$uibModalInstance","modalDetails",a])}(),function(){"use strict";function a(a,b,c,d){function e(){var a=5,c="";b.getPosts(a,c,["Announcement","News"]).then(function(a){f.recentPosts=a.data})["catch"](function(a){d.error(a)})}var f=this,g=function(){c?f.post=c:b.getLastAnnouncementPost().then(function(a){a&&a.data&&1===a.data.length&&(f.post=a.data[0])})["catch"](function(a){d.error(a)}),e()};f.closeModal=function(b){a.close(b)},f.loadSelectedPostData=function(a){a&&(f.post=a)},g()}angular.module("ice.modals").controller("cmsPostModalController",["$uibModalInstance","cmsService","post","$log",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){b&&(c.engagement=b)};c.closeModal=function(){a.dismiss()},c.archiveEngagement=function(){a.close(c.reason)},d()}angular.module("ice.modals").controller("archiveEngagementModalController",["$uibModalInstance","engagementDetails",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.show_warning=!1;var h=function(){d.getEngagementLeads().then(function(a){g.engagementLeads=e.filter(a.data,function(a){return a.uuid}),g.selectedUserUuid=e.find(g.engagementLeads,["uuid",c])})["catch"](function(a){f.error(a),g.closeModal()})};g.closeModal=function(){a.dismiss()},g.onUserSelect=function(){g.selectedUserUuid&&a.close(g.selectedUserUuid)},h()}angular.module("ice.modals").controller("selectELModalController",["$uibModalInstance","excludeUuids","selectedOption","usersService","_","$log",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){c.engagement=b,e()};c.closeModal=function(){a.dismiss()},c.updateEngagement=function(){e(),a.close({engagement:c.engagement,status:c.status})};var e=function(){c.engagement.target_completion_date&&(c.engagement.target_completion_date=new Date(c.engagement.target_completion_date)),c.engagement.heat_validated_time&&(c.engagement.heat_validated_time=new Date(c.engagement.heat_validated_time)),c.engagement.image_scan_time&&(c.engagement.image_scan_time=new Date(c.engagement.image_scan_time)),c.engagement.aic_instantiation_time&&(c.engagement.aic_instantiation_time=new Date(c.engagement.aic_instantiation_time)),c.engagement.asdc_onboarding_time&&(c.engagement.asdc_onboarding_time=new Date(c.engagement.asdc_onboarding_time))};d()}angular.module("ice.modals").controller("updateEngagementStatusModalController",["$uibModalInstance","engagement",a])}(),function(){"use strict";function a(a,b){}angular.module("ice.main",[]).controller("MainController",a).config(["$mdDateLocaleProvider",function(a){a.formatDate=function(a){return a?moment(a).format("MMMM Do YYYY"):""},a.parseDate=function(a){var b=moment(a,"YYYY-MM-DD",!0);return b.isValid()?b.toDate():new Date(NaN)}}]),a.$inject=["$scope","$rootScope"]}(),function(){"use strict";function a(a){a.state("app.dashboard",{"abstract":!0,views:{"navigation@app":{templateUrl:"core/navigation/layouts/horizontal-navigation/navigation.html",controller:"NavigationController as vm"}},bodyClass:"dashboard"}).state("app.dashboard.dashboard",{url:"/dashboard/dashboard",views:{"content@app":{templateUrl:"main/dashboard/dashboard/dashboard.html",controller:"DashboardMainController as vm"}},params:{engagement_uuid:null,engagement:null,messagePass:null},bodyClass:"dashboard"}).state("app.dashboard.overview",{url:"/dashboard/overview",views:{"content@app":{templateUrl:"main/dashboard/overview/overview.html",controller:"OverviewMainController as vm"}},params:{engagement_uuid:null,engagement:null,messagePass:null},bodyClass:"dashboard"}).state("app.dashboard.detailedview",{url:"/dashboard/detailedview",views:{"content@app":{templateUrl:"main/dashboard/detailed-view/detailed-view.html",controller:"detailedViewController as vm"}},params:{engagement_uuid:null,engagement:null},bodyClass:"dashboard"}).state("app.dashboard.checklist",{url:"/dashboard/checklist",views:{"content@app":{templateUrl:"main/dashboard/checklist/checklist.html",controller:"DashboardChecklistController as vm"}},params:{engagement_uuid:null,sub_id:null,engagement:null},bodyClass:"dashboard"})}angular.module("ice.dashboard.main",["ice.dashboard.get-started-modal"]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=this;o.sortableOptions={handle:" .order-nextstep",axis:"y",update:function(a,b){f.order_next_steps(o.engagement.uuid,o.steps).then(function(a){200===a.status&&n.debug("updated")})["catch"](function(a){n.error(a)})}};var p=function(){k.setAnnouncementToast(),b.timeGapLocal=moment().format("z"),b.ampm=moment().format("A"),b.mom=moment().tz(moment.tz.guess()).format("z"),o.engagement=d.engagement,void 0!=o.engagement&&(o.me=h.getUserData(),g.getSingleEngagement(o.me.uuid,o.engagement.uuid).then(function(a){b.ice.loader.show=!1,200===a.status&&a.data&&""!==a.data&&(o.vf=a.data,o.is_service_provider_internal=o.vf.is_service_provider_internal,o.name=o.vf.name,o.manual_id=o.vf.engagement.engagement_manual_id,o.vf.git_repo_url&&-1!=o.vf.git_repo_url?o.git_repo_url=o.vf.git_repo_url:o.git_repo_url=!1,o.storage_bucket_url=o.manual_id+"_"+o.name.toLowerCase(),o.team=o.vf.engagement.engagement_team,o.me=h.getUserData(),o.stages=i.stages,o.stage=o.vf.engagement.engagement_stage,o.stage_num=0,o.set_stage_num(o.stage),o.in_overview_page=!0,o.uuid=o.engagement.uuid,o.progress=o.vf.engagement.progress,o.completion_date=o.vf.engagement.target_completion_date,o.starred=!1,o.isEngagmentLead=h.isUserInRole("el"),o.isEngagementEL=h.isEngagementEL(o.team),o.isAdmin=h.isAdmin(o.me),o.does_user_role_allow_action_array=[o.isAdmin,o.isEngagementEL],o.unremoveable_users_from_eng_team_array=[o.vf.engagement.reviewer.uuid,o.vf.engagement.peer_reviewer.uuid,o.vf.engagement.creator.uuid],null!=o.vf.engagement.contact_user&&o.unremoveable_users_from_eng_team_array.push(o.vf.engagement.contact_user.uuid),o.states=i.states,o.states_select=s(i.states),o.selected_state_filter=t(),o.steps=[],o.vf_name=o.vf.name,o.vf.engagement.starred_engagement.forEach(function(a){o.me.uuid==a.uuid&&(o.starred=!0)}),o.all_states=!1,o.all_files=!0,q(),o.initActivityLogs(),o.files=o.vf.files,o.files_filter_options=[],o.files_filter_options=o.files_filter_options.concat(o.files),o.files_filter_options.push("Any file"),o.chosen_files_filter=["Any file"],o.show_step=!0,o.status=!1,e.get(o.uuid).then(function(a){200===a.status?o.status=a.data:n.error(a)})["catch"](function(a){o.status=!1,n.error(a.message)}),o.progress_needed_data=u())})["catch"](function(a){b.ice.loader.show=!1,n.error(a)}))};o.set_stage_num=function(a){switch(a){case"Intake":o.stage_num=1;break;case"Active":o.stage_num=2;break;case"Validated":o.stage_num=3;break;case"Completed":o.stage_num=4}},o.checkIfAdmin=function(a){return h.isAdmin(a)},o.is_user_allowed=function(){return 1==c.includes(o.does_user_role_allow_action_array,!0)?!0:!1},o.is_able_to_delete=function(a){return!o.is_user_allowed()||c.includes(o.unremoveable_users_from_eng_team_array,a.uuid)||o.checkIfAdmin(a)?!1:!0},o.remove_user_from_eng=function(a){if(!o.is_able_to_delete(a))return l.setToast("Action is not allowed.","danger"),void(b.ice.loader.show=!1);var c=j.open({templateUrl:"main/modals/general-prompt-modal/general-prompt-modal.html",controller:"generalPromptModalController",controllerAs:"vm",resolve:{modalDetails:function(){return{upper_headline:"Remove user from engagement team: ",upper_headline_value:a.full_name,headline:"Are you sure you would like to remove the user out of the team members?",is_message:!1,message:"",approve:"Yes",cancelText:"No",is_close_modal_button:!0}}}});angular.element("body").click(),c.result.then(function(c){if(c){var d={eng_uuid:o.vf.engagement.uuid,user_uuid:a.uuid};g.remove_user_from_eng(d).then(function(a){b.ice.loader.show=!1,204===a.status&&b.$broadcast("onUpdateEngagements",{select:{uuid:o.engagement.uuid,page_type:"overview",sub_id:void 0}})})["catch"](function(a){b.ice.loader.show=!1,n.error(a)})}})},a.is_match_both_filters=function(){return function(a){var b=!1;return o.all_files&&o.all_states?b=!0:o.all_states&&o.is_contain_files(a)?b=!0:o.all_files&&o.is_same_state(a.state)?b=!0:o.is_contain_files(a)&&o.is_same_state(a.state)&&(b=!0),b?a:!1}},o.is_all_files=function(){o.all_files=-1!==o.chosen_files_filter.indexOf("Any file")},o.is_contain_files=function(a){if(a.files)for(var b=0;b1&&(b=a.vfc.split(", ").length,c+=b)):a.engagement_stage==o.statistic_stage_filter&&(d++,a.vfc.length>1&&("Validated"==a.engagement_stage||"Completed"==a.engagement_stage)&&(b=a.vfc.split(", ").length,c+=b))}),o.vfc_num=c,o.eng_num=d}})["catch"](function(b){a.ice.loader.show=!1,l.error(b)})},o.onStageChange=function(){o.page_num=1,o.searchEngagements()},o.onKeywordChange=function(){o.page_num=1,o.searchEngagements()},o.searchEngagements=function(){o.current_starting_offset=(o.page_num-1)*o.pagination_num_of_objects,o.postData={stage:o.search_stage,keyword:o.search_keyword,offset:o.current_starting_offset,limit:o.pagination_num_of_objects},d.getExpandedEngagements(o.postData).then(function(a){200===a.status&&a.data&&""!==a.data&&(o.vf_search_list=a.data.array,o.num_of_returned_items=a.data.num_of_objects,o.vf_search_list.forEach(function(a){var b={enable_edit:!1,completion_date:a.engagement__target_completion_date,ecomp_release:a.ecomp_release__name,vnf_version:a.version,aic_version:a.deployment_target__version,aic_instantiation_time:a.engagement__aic_instantiation_time,asdc_onboarding_time:a.engagement__asdc_onboarding_time,heat_validated_time:a.engagement__heat_validated_time, +image_scan_time:a.engagement__image_scan_time,engagement_uuid:a.engagement__uuid,manual_id:a.engagement__engagement_manual_id,name:a.vf__name,starred:!1};a.progress_needed_data=b,a.starred_users.forEach(function(b){o.me.uuid==b&&(a.progress_needed_data.starred=!0)})}),o.vf_display_list=o.vf_search_list,n())})["catch"](function(b){a.ice.loader.show=!1,l.error(b)})},o.goToEngagement=function(b){a.$broadcast("searchSelectEngagement",b)},o.exportEngagementCSV=function(){var b=o.search_stage||"",c=o.search_keyword||"";a.ice.loader.show=!0,d.exportEngagementsCSV(b,c).then(function(b){if(b&&b.data){var c=new i([b.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});h.saveAs(c,"D2Ice.xlsx"),a.ice.loader.show=!1}})["catch"](function(b){a.ice.loader.show=!1,l.error(b)})},o.openCMSReadMoreModal=function(a){a?k.open({templateUrl:"main/modals/cms-post-modal/cms-post-modal.html",controller:"cmsPostModalController",controllerAs:"vm",size:"cms-post-read-more",resolve:{post:function(){return a}}}):l.warn("Cannot open cms post.")},p()}angular.module("ice.dashboard.dashboard",["angularUtils.directives.dirPagination","ngFileSaver"]).controller("DashboardMainController",["$rootScope","pageService","stepsService","vfService","usersService","iceConstants","localStorageService","FileSaver","Blob","cmsService","$uibModal","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){var j=this;j.data={};var k=b.engagement_uuid;j.checklistUuid=b.sub_id,j.selected_decision=!1;var l=function(){null!=j.checklistUuid&&d.getChecklist(j.checklistUuid).then(function(a){200===a.status&&(j.data=a.data,j.data.states=e.checklist_states,j.me=f.getUserData(),j.is_peer_reviewer=f.isPeerReviewer(j.me,a.data.checklist.engagement.peer_reviewer.uuid),j.data.checklist.associated_files?j.has_files=!0:j.has_files=!1,j.formatDecisions())})["catch"](function(a){return 410!==a.status?(i.error(a.message),!1):void c.$broadcast("onUpdateEngagements",{select:{uuid:b.engagement_uuid,view_type:"overview",sub_id:void 0}})})};j.formatDecisions=function(){var a=0;j.data.checklistDecisions=_.orderBy(j.data.checklistDecisions,"weight"),angular.forEach(j.data.checklistDecisions,function(b,c){a++,b.counter=a;var d=0;b.decisions=_.orderBy(b.decisions,"weight"),angular.forEach(b.decisions,function(b,e){d++,b.counter=a+"."+d,0==j.selected_decision&&(j.selected_decision=b,j.selectDecision(b));var f;switch(j.data.checklist.state){case"peer_review":f=b.peer_review_value;break;case"review":case"approval":case"handoff":case"closed":f=b.review_value}var g;switch(f){case"approved":g="sprite approved-cl";break;case"denied":g="sprite denied-cl";break;case"not_relevant":g="sprite not-relevant-cl"}var h;switch(b.lineitem.line_type){case"auto":h="sprite automation-state"}j.data.checklistDecisions[c].decisions[e]["selected-value"]=f,j.data.checklistDecisions[c].decisions[e].view_value=f,j.data.checklistDecisions[c].decisions[e].view_value_css=g,j.data.checklistDecisions[c].decisions[e].auto_icon_css=h})}),j.refreshStateOptions()},j.setDecision=function(a,b){d.putChecklistDecision(a.uuid,{value:b}).then(function(c){if(200===c.status){switch(j.data.checklist.state){case"peer_review":a.peer_review_value=b;break;case"review":a.review_value=b}j.formatDecisions()}})},j.refreshStateOptions=function(){var a=!1;j.is_able_to_approve=!0,angular.forEach(j.data.checklistDecisions,function(b,c){a||angular.forEach(b.decisions,function(b,c){a||"approved"!=b.view_value&&"not_relevant"!=b.view_value&&(j.is_able_to_approve=!1,a=!0)})})},j.stateAction=function(a){switch(a){case"approve":var b={};b.description="",b.decline="False",d.setState(j.data.checklist.uuid,b).then(function(a){200===a.status?c.$broadcast("onUpdateEngagements",{select:{uuid:k,page_type:"overview",sub_id:j.data.checklist.uuid}}):(h.setToast(a.error,"danger"),c.ice.loader.show=!1)})["catch"](function(a){i.error(a),h.setToast(a.status+": Error changing progress!","danger")});break;case"reject":j.openSetState(a,j.data.checklist);break;case"next_step":j.openNextSteps(j.data.checklist)}},j.formatDate=function(a){var b=moment().tz(moment.tz.guess()).format("z"),c="";return c=moment(a).local().format("YYYY-MM-DD hh:mm:ss A")+" "+b},j.submitDecisionAuditLog=function(){var a={description:j.selected_decision.new_audit_log_description};d.createAuditlogDecisionChecklist(j.selected_decision.uuid,a).then(function(a){200===a.status?(void 0==j.data.decisionAuditLogs[j.selected_decision.uuid]&&(j.data.decisionAuditLogs[j.selected_decision.uuid]=[]),j.data.decisionAuditLogs[j.selected_decision.uuid].push(a.data),j.selected_decision.new_audit_log_description=""):(h.setToast(a.error,"danger"),c.ice.loader.show=!1)})["catch"](function(a){h.setToast(a.message,"danger"),i.error(a.message)})},j.selectDecision=function(b,c){(j.selected_decision!=b||void 0===j.selected_decision.selected)&&(j.selected_decision.selected=!1,j.selected_decision=b,j.selected_decision.selected=!0,a.$$postDigest(function(){if(void 0!=c){var a=angular.element(c.target).prop("offsetHeight")+angular.element(c.target).prop("offsetTop"),b=angular.element("#line-item-extended").prop("offsetHeight"),d=a-b;d>0?angular.element("#line-item-extended").css("margin-top",20+d+"px"):angular.element("#line-item-extended").css("margin-top","")}}))},j.openNextSteps=function(a){var b=g.open({templateUrl:"main/modals/next-steps/next-steps.html",controller:"NextStepsModalController",controllerAs:"vm",size:"lg",resolve:{engagement_team:function(){return a.engagement.engagement_team},title:function(){return a.name},associated_files:function(){return a.repo_associated_files},engagement_uuid:function(){return a.engagement.uuid},checklist:function(){return a},nextstep:function(){return void 0}}});b.result.then(function(b){200===b&&c.$broadcast("onUpdateEngagements",{select:{uuid:k,page_type:"overview",sub_id:a.uuid}})},function(){})},j.openSetState=function(a,b){var d=g.open({templateUrl:"main/modals/checklist/state-approve-or-reject/state-approve-or-reject.html",controller:"stateDecisionModalController",controllerAs:"vm",resolve:{checklist:function(){return b},action:function(){return a}}});d.result.then(function(a){a&&c.$broadcast("onUpdateEngagements",{select:{uuid:k,page_type:"overview",sub_id:b.uuid}})},function(){})},j.openJenkinsLogModal=function(){g.open({templateUrl:"main/modals/general-log-modal/general-log-modal.html",controller:"GeneralLogModalController",controllerAs:"vm",size:"general-log-modal",resolve:{modalDetails:function(){return{headline:"Jenkins log",body:j.data.checklist.jenkins_log}}}})},j.auditLog=function(){var a={name:j.data.checklist.name,uuid:j.data.checklist.uuid,checklistAuditLogs:j.data.checklistAuditLogs},b=g.open({templateUrl:"main/modals/audit-log/audit-log.html",controller:"AuditLogModalController",controllerAs:"vm",size:"lg",resolve:{wizardData:function(){return a}}});b.result.then(function(a){a&&j.data.checklistAuditLogs.push(a)},function(){i.debug("Modal dismissed at: "+new Date)})},j.editChecklist=function(){var a={uuid:j.data.checklist.uuid,name:j.data.checklist.name,templates:j.data.checklist.templates,selectedTemplateUuid:j.data.checklist.template.uuid,selectedTemplateName:j.data.checklist.template.name,associatedFiles:j.data.checklist.associated_files,state:j.data.checklist.state},b=g.open({templateUrl:"main/modals/checklist/checklist.html",controller:"ChecklistModalController",controllerAs:"vm",size:"lg",resolve:{wizardData:function(){return a},engagementUuid:function(){return k},modal_type:function(){return"update"}}});b.result.then(function(a){a&&(j.data.checklist.name=a.checklist_name,j.data.checklist.associated_files=a.associated_files)})},l()}angular.module("ice.dashboard.checklist",[]).controller("DashboardChecklistController",["$scope","$stateParams","$rootScope","checklistService","iceConstants","usersService","$uibModal","toastService","$log",a])}(),function(){"use strict";angular.module("ice.dashboard.get-started-modal",["ngAnimate","ui.bootstrap","ice.activation.addVf"])}(),function(){"use strict";angular.module("ice.dashboard.get-started-modal").directive("getStartedModal",function(){return{restrict:"AEC",scope:{},link:function(a,b,c){a.$emit("openGettingStartedWizardLoaded")},controller:["$rootScope","$scope","$uibModal","toastService","$log",function(a,b,c,d,e){var f=this;f.data={},f.openModal=function(){d.clearToast();c.open({templateUrl:"main/dashboard/get-started-modal/wizard/wizard-container.html",controller:"ModalCtrl",controllerAs:"wizard",resolve:{wizardData:function(){return f.wizardData}},backdrop:"static"})},b.$on("openGettingStartedWizard",function(a,b){f.wizardData=b,f.openModal()})}],controllerAs:"gm"}}).controller("ModalCtrl",["$rootScope","$scope","$uibModalInstance","vfService","usersService","localStorageService","wizardData","toastService","$log","$i18next",function(a,b,c,d,e,f,g,h,i,j){function k(){if(a.ice.loader.show=!0,g.showActivationMessage&&h.setToast("You have successfully activated your account!","success",{displayFor:"modal"}),m.stepIndex=0,m.requiredStep)return m.steps.push(o[m.requiredStep]),m.setStep(m.steps[m.stepIndex]),void(a.ice.loader.show=!1);m.eng_uuid&&""!==m.eng_uuid||m.steps.push(o.addVF),m.user.is_service_provider_contact!==!0||m.is_service_provider_internal?m.user.is_service_provider_contact||m.steps.push(o.addSponsor):m.steps.push(o.addVendor),l(),m.steps.push(o.inviteMembers);var b=e.getUserData()||{},c=b.ssh_public_key;""!==m.user.ssh_public_key&&null!==m.user.ssh_public_key||""!==c&&null!==c||m.steps.push(o.addSSH),a.ice.loader.show=!1,m.setStep(m.steps[m.stepIndex])}function l(){d.getCompanies().then(function(a){if(200===a.status&&(m.companies=a.data,void 0!=m.companies))for(var b=0;b=a;a++)b.push({val:c(a)+"-"+f,nam:d(a)+" "+f});for(a=1;e>a;a++)b.push({val:c(a)+"-"+(f+1),nam:d(a)+" "+(f+1)});return b},c=function(a){var b=a;return 10>a&&(b="0"+a),b},d=function(a){var b;switch(a){case 1:b="January";break;case 2:b="February";break;case 3:b="March";break;case 4:b="April";break;case 5:b="May";break;case 6:b="June";break;case 7:b="July";break;case 8:b="August";break;case 9:b="September";break;case 10:b="October";break;case 11:b="November";break;case 12:b="December"}return b},e=function(a){return 10>a?"0"+a:a}}(),function(){"use strict";function a(a){a.state("app.addVendorContact",{url:"/addVendorContact",views:{"main@":{templateUrl:"core/layouts/full-page-with-header/full-page-with-header.html",controller:"MainController as vm"},"content@app.addVendorContact":{templateUrl:"main/activation/addVendorContact/addVendorContact.html",controller:"AddVendorContactController as vm"}},bodyClass:"addVendorContact"})}angular.module("ice.activation.addVendorContact",[]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c,d,e){var f=this;f.data={};var g=function(){e.ice.loader.show=!0,e.headerTitle="",e.headerSubTitle="",f.choices=[{VirtualFunction:"",TargetLab:"",TargetAic:"",is_service_provider_internal:""}],b.getCompanies().then(function(a){e.ice.loader.show=!1,200===a.status&&(f.companies=a.data)})["catch"](function(a){e.ice.loader.show=!1,d.error(a)})};f.submitForm=function(){f.data.company=f.data.company.uuid,e.ice.loader.show=!0,c.addVendorContact(f.data).then(function(b){e.ice.loader.show=!1,200===b.status&&(b.data.is_active?a.go("app.dashboard.overview"):a.go("app.resend_activation"))})["catch"](function(a){e.ice.loader.show=!1,f.Msg=response.status+" : "+response.statusText,f.bgColor="#FFEBEB",d.error(a)})},f.addNewChoice=function(){var a=f.choices.length+1;f.choices.push({id:a})},f.removeChoice=function(){var a=f.choices.length-1;f.choices.splice(a)},g()}angular.module("ice.activation.addVendorContact").controller("AddVendorContactController",["$state","vfService","usersService","$log","$rootScope",a])}(),function(){"use strict";function a(a){a.state("app.resend_activation",{url:"/resendActivation",views:{"main@":{templateUrl:"core/layouts/full-page-with-header/full-page-with-header.html",controller:"MainController as vm"},"content@app.resend_activation":{templateUrl:"main/activation/resendActivation/resendActivation.html",controller:"resendActivationController as vm"}},params:{message:null},bodyClass:"resend-activation"})}angular.module("ice.activation.resendActivation",[]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c,d,e){var f=this;f.data=[];var g=function(){c.headerTitle="Activate Your Account",c.headerSubTitle="Please follow the instructions below to activate your account.",d.params.message&&b.setToast(d.params.message,"danger"),f.activated=!1,f.showHideMsg=!1,f.showHideWait=!1};f.submitForm=function(){c.ice.loader.show=!0,a.resendActivationMail().then(function(a){c.ice.loader.show=!1,200===a.status})["catch"](function(a){c.ice.loader.show=!1,e.error(a)})},g()}angular.module("ice.activation.resendActivation").controller("resendActivationController",["usersService","toastService","$rootScope","$state","$log",a])}(),function(){"use strict";function a(a){a.state("app.terms",{url:"/terms",views:{"main@":{templateUrl:"core/layouts/full-page-with-header/full-page-with-header.html",controller:"MainController as vm"},"content@app.terms":{templateUrl:"main/activation/terms/terms.html",controller:"TermsController as vm"}},params:{message:null},bodyClass:"terms"})}angular.module("ice.activation.terms",[]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a){var b=this;b.data={},a.headerTitle="Terms of Service",a.headerSubTitle="Last updated 2016-06-10"}angular.module("ice.activation.terms").controller("TermsController",["$rootScope",a])}(),function(){"use strict";function a(a){a.state("app.contactus",{url:"/contactUs",views:{"main@":{templateUrl:"core/layouts/full-page-with-header/full-page-with-header.html",controller:"MainController as vm"},"content@app.contactus":{templateUrl:"main/activation/contactUs/contactUs.html",controller:"ContactUsController as vm"}},bodyClass:"contact-us"})}angular.module("ice.contactUs",[]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a){a.headerTitle="Contact Us",a.headerSubTitle="Please fill in the details below"}angular.module("ice.contactUs").controller("ContactUsController",["$rootScope",a])}(),function(){"use strict";function a(a){a.state("app.account",{url:"/account",views:{"content@app":{templateUrl:"main/dashboard/account/account.html",controller:"DashboardAccountController as vm"},"navigation@app":{templateUrl:"core/navigation/layouts/account-navigation/navigation.html",controller:"accountNavigationController as vm"}},params:{engagement_uuid:null},bodyClass:"account"}).state("app.account.notifications",{url:"/account/notifications",views:{"content@app":{templateUrl:"main/dashboard/account/notifications/notifications.html",controller:"DashboardNotificationsController as vm"}},bodyClass:"notifications"}).state("app.account.userProfile",{url:"/account/userProfile",views:{"content@app":{templateUrl:"main/dashboard/account/user-profile-settings/user-profile-settings.html",controller:"accountUserProfileSettingsController as vm"}},bodyClass:"account"})}angular.module("ice.dashboard.account").config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.data={};var h=function(){if(g.user=b.getUserData(),void 0==g.user)return void a.go("app.login");var h=g.user.uuid;e.ice.loader.show=!0,b.getIceUser(h).then(function(a){200===a.status?(g.data.full_name=a.data.full_name,g.data.email=a.data.email,g.data.phone_number=a.data.phone_number,g.data.password="",g.data.ssh_key=a.data.ssh_public_key,g.data.company=a.data.company.name,g.data.access_key=a.data.rgwa_access_key,g.data.access_secret="•••••••••••••••",e.ice.loader.show=!1):(f.setToast("Error getting account","danger"),d.error("Error getting account: "+uuid),e.ice.loader.show=!1)})["catch"](function(a){f.setToast(a.message,"danger"),d.error(a.message)}),c.getCompanies().then(function(a){200===a.status&&(g.companies=a.data)})["catch"](function(a){d.error(a.message)})};h(),g.getAccessSecret=function(){b.getRGWASecret().then(function(a){200===a.status?g.data.access_secret=a.data.rgwa_secret_key:(f.setToast("Error getting user's access secret","danger"),d.error("Error getting access secret: "+uuid),e.ice.loader.show=!1)})["catch"](function(a){f.setToast(a.message,"danger"),d.error(a.message)})},g.submitForm=function(){var a=b.getUserData();b.updateAccount(a.uuid,g.data).then(function(a){200===a.status&&f.setToast("Account was updated successfully!","success")})["catch"](function(a){f.setToast(a.message.detail,"danger")})}}angular.module("ice.dashboard.account").controller("DashboardAccountController",["$state","usersService","vfService","$log","$rootScope","toastService",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this;h.data={};var i=function(){return b.setPage("notification"),e.timeGapLocal=moment().format("z"),e.ampm=moment().format("A"),e.mom=moment().tz(moment.tz.guess()).format("z"),h.pagination_num_of_objects=10,h.current_starting_offset="0",h.page_num=1,h.user=c.getUserData(),void 0==h.user?void a.go("app.login"):void h.getNotifications(!0)};h.getNotifications=function(a){var b=h.user.uuid;e.ice.loader.show=!0,h.current_starting_offset=(h.page_num-1)*h.pagination_num_of_objects,c.getNotificationsDescription(h.user.uuid,h.current_starting_offset,h.pagination_num_of_objects).then(function(i){200===i.status?(h.notifications=i.data.serilizedActivitySet,h.num_of_returned_items=i.data.num_of_objects,h.notifications_display_list=h.notifications,a&&c.resetNotificationNum(b).then(function(a){200===a.status&&f.$emit("eventClearNotifications",0)})["catch"](function(a){d.setToast(a.message,"danger"),e.ice.loader.show=!1,g.error(a)}),e.ice.loader.show=!1):(d.setToast(i.error,"danger"), +e.ice.loader.show=!1)})["catch"](function(a){d.setToast(a.message,"danger"),e.ice.loader.show=!1,g.error(a)})},h.delNotification=function(a){for(var b=0,f=0;f0?angular.element("#line-item-extended").css("margin-top",20+c+"px"):angular.element("#line-item-extended").css("margin-top","")}}))},i.addLineItem=function(b){if(b){var c=a.maxBy(b.lineItems,function(a){return a.weight})+1,d={uuid:"newEntity",name:"Untitled line item",description:"Please add a description",weight:c,validation_instructions:"Please add validation instructions for the line item."};b.lineItems.push(d)}},i.addSection=function(){if(i.template){var b=a.maxBy(i.template.sections,function(a){return a.weight})+1,c={uuid:"newEntity",name:"Untitled section",description:"Section added from portal",validation_instructions:"valid instructions",weight:b,lineItems:[]};i.template.sections.push(c)}},i.deleteLineItem=function(b){a.remove(i.selectedSection.lineItems,function(a){return b===a}),l()},i.isSaveInvalid=function(){var b=!1;return i.template&&(b=void 0!=a.find(i.template.sections,function(a){return 0===a.lineItems.length})),b};var k=function(){b.$watch("vm.template.name",function(a,b){d.templateName=a},!0)},l=function(){i.selectedSection=i.template.sections&&i.template.sections.length>0?i.template.sections[0]:void 0,i.selectedLineItem=i.selectedSection?i.selectedSection.lineItems[0]:void 0,angular.element("#line-item-extended").css("margin-top","")},m=function(){i.template&&(i.template.sections=a.orderBy(i.template.sections,"weight"),a.forEach(i.template.sections,function(b){b.lineItems=a.orderBy(b.lineItems,"weight")}))};j()}angular.module("ice.main.admin").controller("checklistTemplateController",["_","$scope","checklistService","$stateParams","toastService","$uibModal","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){var j=this,k=function(){a.timeGapLocal=moment().format("z"),a.ampm=moment().format("A"),a.mom=moment().tz(moment.tz.guess()).format("z"),j.is_aic_edit_mode=!1,j.is_ecomp_edit_mode=!1,j.aic_loaded=!1,j.ecomp_loaded=!1,void 0!=b.engagement&&(j.engagement=b.engagement),void 0!=j.engagement&&(j.me=e.getUserData(),g.getSingleEngagement(j.me.uuid,j.engagement.uuid).then(function(b){if(a.ice.loader.show=!1,200===b.status&&b.data&&""!==b.data){var c=b.data;j.engagement_manual_id=c.engagement.engagement_manual_id,j.vf_name=c.name,j.vf_version=c.version,j.vf_uuid=c.uuid,j.ecomp_release=c.ecomp_release,j.target_lab=new Date(c.target_lab_entry_date),j.dtversion=c.deployment_target,j.selected_dt_uuid=j.dtversion.uuid,j.selected_ecomp_uuid=j.ecomp_release.uuid,j.me=e.getUserData(),j.name=j.engagement.name,j.isEngagementEL=e.isEngagementEL(c.engagement.engagement_team),j.isAdmin=e.isAdmin(j.me),l(),m()}})["catch"](function(b){a.ice.loader.show=!1,h.error(b)}))};j.addVfc=function(){var a=f.open({templateUrl:"main/modals/detailed-view/vfc/detailed-view-vfc-modal.html",controller:"detailedViewVFCModalController",controllerAs:"vm",resolve:{vf_uuid:function(){return j.vf_uuid}}});a.result.then(function(a){a&&m()})},this.personArray=[j.dtversion,j.vf_uuid],j.editValidationDetails=function(){var a=f.open({templateUrl:"main/modals/validation-details/detailed-view-validation-details-modal.html",controller:"validationDetailsModalController",controllerAs:"vm",resolve:{vf_uuid:function(){return j.vf_uuid}}});a.result.then(function(a){a&&k()})},j.addDTS=function(){if(j.isEngagementEL||j.isAdmin){var a=f.open({templateUrl:"main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.html",controller:"detailedViewDtsitesModalController",controllerAs:"vm",resolve:{vf_uuid:function(){return j.vf_uuid}}});a.result.then(function(a){a&&200===a&&l()})}},j.changeTargetLabEntry=function(){var a=f.open({templateUrl:"main/modals/target-lab-entry/change-lab-entry-date.html",controller:"ChangeLabEntryDateModalController",controllerAs:"vm",resolve:{targetLabDate:function(){return j.target_lab},engagementUuid:function(){return j.engagement.uuid}}});a.result.then(function(a){a&&(j.target_lab=new Date(a.target_date),h.debug("data.target_date",a.target_date),h.debug("vm.target_lab",j.target_lab))},function(){h.error("Modal dismissed at: "+new Date)})},j.deleteVfc=function(a){c["delete"](a,j.vf_uuid).then(function(a){204===a.status&&m()})["catch"](function(a){h.error(a)})},j.deleteDTSite=function(a,b){d["delete"](j.vf_uuid,b).then(function(a){204===a.status&&l()})["catch"](function(a){h.error(a)})};var l=function(){(j.isEngagementEL||j.isAdmin)&&(a.ice.loader.show=!0,d.getVFSites(j.vf_uuid).then(function(b){a.ice.loader.show=!1,200===b.status&&(j.dtsites=b.data)})["catch"](function(b){a.ice.loader.show=!1,h.error(b)}))},m=function(){a.ice.loader.show=!0,c.get(j.vf_uuid).then(function(b){a.ice.loader.show=!1,200===b.status&&(j.vfcs=b.data)})["catch"](function(b){a.ice.loader.show=!1,h.error(b)})};k()}angular.module("ice.dashboard.main").controller("detailedViewController",["$rootScope","$stateParams","vfcService","dtsiteService","usersService","$uibModal","vfService","$log","_",a])}(),function(){"use strict";function a(a){a.state("app.documentation",{views:{"navigation@app":{templateUrl:"core/navigation/layouts/documentation-navigation/navigation.html",controller:"documentationNavigationController as vm"},"sidebar@app":{templateUrl:"main/documentation/sidebar/documentation.sidebar.html"}},bodyClass:"documentation",params:{displaySidebar:!0}}).state("app.documentation.page",{url:"/documentation",views:{"content@app":{templateUrl:"main/documentation/documentation.html",controller:"documentationController as vm"}},bodyClass:"documentation",params:{displaySidebar:!0,page_id:void 0}})}angular.module("ice.documentation").config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c){function d(){b.page_id&&a.getPage(b.page_id).then(function(a){a&&a.data&&(e.pageId=b.page_id,e.pageTitle=a.data.title,e.pageContent=a.data.content,e.publishDate=a.data.publish_date)})["catch"](function(a){c.error(a)})}var e=this,f=function(){d()};f()}angular.module("ice.documentation").controller("documentationController",["cmsService","$stateParams","$log",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){b.getIceUser().then(function(a){c.receiveEmails=a.data.regular_email_updates,c.receiveEmailsEveryTime=a.data.email_updates_on_every_notification,c.receiveDigestEmails=a.data.email_updates_daily_digest,c.receiveNotifications=c.receiveEmailsEveryTime||c.receiveDigestEmails})["catch"](function(b){a.setToast(b.message,"danger"),$log.error(b.message)})};c.submitForm=function(){var d=b.getUserData(),e={};e.regular_email_updates=c.receiveEmails,e.email_updates_on_every_notification=c.receiveEmailsEveryTime,e.email_updates_daily_digest=c.receiveDigestEmails,e.company=d.company.name,e.full_name=d.full_name,e.email=d.email,e.phone_number=d.phone_number,b.updateAccount(d.uuid,e).then(function(b){200===b.status&&a.setToast("User profile settings was updated successfully!","success")})["catch"](function(b){a.setToast(b.message.detail,"danger")})},c.changeReceiveNotifications=function(){c.receiveNotifications||(c.receiveEmailsEveryTime=!1,c.receiveDigestEmails=!1)},d()}angular.module("ice.dashboard.account").controller("accountUserProfileSettingsController",["toastService","usersService",a])}(),angular.module("ice").run(["$templateCache",function(a){"use strict";a.put("main/activation/activate/activateUser.html",'
'),a.put("main/activation/addVendorContact/addVendorContact.html",'
Please select a company
Name is a required field. Full Name is too short. Full Name is too long.
Email is a required field. Enter a valid email.
Phone is a required field. Phone is too short. Phone is too long. Phone must consist of numbers only.
 I agree to receive regular email updates.
 I accept the AT&T\'s {{\'program.name\' | i18next}} Terms of Service and Privacy Policy.
'),a.put("main/activation/addVf/addVf.html",'
Use the form below to add your VF.Try to be as accurate as you can around the information to make sure the validation can accomplished as possible.
VF Name
VF Name can be alphanumeric or/and Hyphen

Key Metadata

Target Lab Entry Date
The virtual function is only developed internally inside AT&T.
'),a.put("main/activation/contactUs/contactUs.html",'
'),a.put("main/activation/inviteMembers/inviteMembers.html",'
Email is a required field. Enter a valid email.
Invite another team member
'),a.put("main/activation/login/login.html",'
'), +a.put("main/activation/register/register.html",'
Please select a company
Name is a required field. Full Name is too short. Full Name is too long. Full Name must be alphanumeric
Email is a required field. Enter a valid email.
Phone is a required field. Phone is too short. Phone is too long. Phone format invalid
Password is a required field. Password is too short. Password is too long.
 I agree to receive regular email updates from AT&T {{\'program.name\' | i18next}}.
{{PleaseFill}}
'),a.put("main/activation/resendActivation/resendActivation.html",'

You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your email address.

Please note that sometimes activation emails end up in users spam/junk folders, so please check there.

If you have not received it, please click the resend the Activation Email button below.

'),a.put("main/activation/resetPassword/resetPassword.html",'
Email is a required field. Enter a valid email.
'),a.put("main/activation/terms/terms.html",'

SP Terms

'),a.put("main/activation/updatePassword/updatePassword.html",'
Password is required field. Password is too short. Password is too long.
Confirm password is required field. Passwords do not match.
'),a.put("main/admin/checklist-template/checklist-template.html",'

Master Checklist Template: {{vm.template.name}}
Template name is a required field. Template name is too short. Template name is too long.

Editing a master checklist template will affect all checklists currently created of that type and will also restart the validation for all active engagements.
  • Section {{$index+1}}: {{section.name}}
    Section name is a required field. Section name is too short. Section name is too long.

    • {{$parent.$index+1}}.{{$index+1}} {{lineItem.name}}
       
    • Add Another line item
Add Another Section
'),a.put("main/dashboard/account/account.html",'

Account

Your Storage Credentials

Access Key:
{{vm.data.access_key}}
Access Secret (Show)
{{vm.data.access_secret}}
'), +a.put("main/dashboard/account/notifications/notifications.html",'

Notifications

'),a.put("main/dashboard/account/user-profile-settings/user-profile-settings.html",'

Settings

'),a.put("main/dashboard/checklist/checklist.html",'

Checklist: {{vm.data.checklist.name}}

  • Audit Log ({{vm.data.checklistAuditLogs.length}})
  • Jenkins Log
  • Section {{section.counter}}: {{section.section.name}}

    • {{decision.counter}} {{decision.lineitem.name}}
'),a.put("main/dashboard/dashboard/dashboard.html",'

Statuses

Stage
Export to Excel >>
'),a.put("main/dashboard/detailed-view/detailed-view.html",'

{{vm.engagement_manual_id + \': \'}}{{vm.vf_name}}

Validation Details
ECOMP Release: {{vm.ecomp_release.name}}
Target AIC Version:{{vm.dtversion.version}}
VF Version: {{vm.vf_version}}
Target Lab Entry

{{vm.target_lab | date:\'shortDate\'}}

Deployment Targets
  • {{dts.name}}
Virtual Function Components
  • {{vfc.name +\' (\' + vfc.external_ref_id + \')\'}}
'),a.put("main/dashboard/get-started-modal/get-started-modal.html",''),a.put("main/dashboard/get-started-modal/wizard/wizard-container.html",'
'), +a.put("main/dashboard/main/main.html",'

{{vm.name}}

GIT: {{vm.git_repo_url}}

Next Steps

Files States
  • {{step.last_updater && step.last_updater.full_name || step.creator.full_name}}  {{step.last_update_type}}:  {{(step.last_update_time) | date2: \'EEEE MMMM doo yyyy\'}} at {{(step.last_update_time) | date: \'hh:mm\' : timeGapLocal }} {{ampm}} {{mom}}
    {{(step[\'due_date\']) | date2: \'EEEE MMMM doo yyyy\'}}
    Associated Files ({{step.files.length}})

Current Status

Last updated {{(vm.status.update_time) | date2: \'EEEE MMMM doo yyyy\'}} at {{(vm.status.update_time) | date: \'hh:mm\' : timeGapLocal }} {{ampm}} {{mom}} by {{vm.status.creator.full_name}}

{{vm.status.description == undefined && \'No status update has been provided yet.\' || vm.status.description }}

Team Members

Activity Log

'),a.put("main/dashboard/overview/overview.html",'
GIT: {{vm.git_repo_url}} STORAGE BUCKET: {{vm.storage_bucket_url}}

Next Steps

Files States
  • {{step.engagement ? (step.last_updater && step.last_updater.full_name || step.creator.full_name) : "System Next Step"}}  {{step.last_update_type}}:  {{(step.last_update_time) | date2: \'EEEE MMMM doo yyyy\'}} at {{(step.last_update_time) | date: \'hh:mm\' : timeGapLocal }} {{ampm}} {{mom}}
    {{(step[\'due_date\']) | date2: \'EEEE MMMM doo yyyy\'}}
    Associated Files
  • No next steps matching filtered results.

Target Completion

{{vm.completion_date | date:\'shortDate\'}}

Current Status
Team Members
Activity Log
'),a.put("main/documentation/documentation.html",'

{{vm.pageTitle}}

Updated at {{vm.publishDate | date2: \'EEEE MMMM doo yyyy\'}}
'),a.put("main/documentation/sidebar/documentation.sidebar.html",' '),a.put("main/errors/404.html",' Page Not Found :(

Not found :(

Sorry, but the page you were trying to view does not exist.

It looks like this was the result of either:

  • a mistyped address
  • an out-of-date link
'),a.put("main/modals/archive-engagement-modal/archive-engagement-modal.html",'
'), +a.put("main/modals/audit-log/audit-log.html",' '),a.put("main/modals/change-date/change-date.html",'
'),a.put("main/modals/change-progress/change-progress.html",'
'),a.put("main/modals/checklist/checklist.html",' '),a.put("main/modals/checklist/state-approve-or-reject/state-approve-or-reject.html",'
Inserted text should not include any special chars such as: \\%_*."
'),a.put("main/modals/cms-post-modal/cms-post-modal.html",'
Most recent news & announcements
  • {{post.title}}Posted at {{post.publish_date | date2: \'EEEE MMMM doo yyyy\'}} by {{post.user.username}}
'),a.put("main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.html",'
'),a.put("main/modals/detailed-view/vfc/detailed-view-vfc-modal.html",' '),a.put("main/modals/feedback/feedback.html",' '),a.put("main/modals/general-log-modal/general-log-modal.html",'
'), +a.put("main/modals/general-prompt-modal/general-prompt-modal.html",' '),a.put("main/modals/next-steps/next-steps.html",' '),a.put("main/modals/select-el-modal/select-el-modal.html",'
'),a.put("main/modals/set-eng-stage/set-eng-stage-modal.html",' '),a.put("main/modals/set-eng-stage/set_eng_stage_modal.html",'
'),a.put("main/modals/status/status.html",' '),a.put("main/modals/target-lab-entry/change-lab-entry-date.html",'
'),a.put("main/modals/update-engagement-status-modal/update-engagement-status-modal.html",'
'),a.put("main/modals/validation-details/detailed-view-validation-details-modal.html",' '), +a.put("core/layouts/dashboard/dashboard.html",'
'),a.put("core/layouts/full-page-with-header/full-page-with-header.html",'

'),a.put("core/navigation/layouts/account-navigation/navigation.html",'

Profile

  • Account»
  • Settings»
  • Notifications»
'),a.put("core/navigation/layouts/admin-navigation/navigation.html",'

Admin

'),a.put("core/navigation/layouts/documentation-navigation/navigation.html",'

Documentation

'),a.put("core/navigation/layouts/horizontal-navigation/navigation.html",'

Engagements

'),a.put("core/toolbar/layouts/horizontal-navigation/toolbar.html",'
{{vm.notifications}}
'),a.put("directives/ice-announcement/ice-announcement.html",' '),a.put("directives/ice-loader/ice-loader.html",'
'),a.put("directives/ice-news-and-announcement/ice-news-and-announcement.html",'
News & Announcements

    There are no posts.

  • {{post.title}}

    Posted at {{post.publish_date | date2: \'EEEE MMMM doo yyyy\'}} by {{post.user.username}}

'), +a.put("directives/ice-toast/ice-toast.html",' '),a.put("directives/ice-tooltip/ice-tooltip.html",'
Did you know?

{{tipContent.excerpt}}

'),a.put("directives/progress/progress.html",'
Progress {{data.manual_id}}: {{data.name}}
{{progress}} %
Target AIC Version: {{data.aic_version}} ECOMP Release: {{data.ecomp_release}} VNF Version:
Heat Validated:{{data.heat_validated_time | date:\'shortDate\'}}
Image Scan:{{data.image_scan_time | date:\'shortDate\'}}
AIC Instantiation:{{data.aic_instantiation_time | date:\'shortDate\'}}
ASDC Onboarding:{{data.asdc_onboarding_time | date:\'shortDate\'}}
'),a.put("directives/step-stages/step-stages.html",'
{{const.intake}}
{{const.active}}
{{const.validated}}
{{const.completed}}
')}]); \ No newline at end of file diff --git a/vvp/dist/scripts/scripts.d8a9fb59.js b/vvp/dist/scripts/scripts.d8a9fb59.js deleted file mode 100644 index 5c5887db..00000000 --- a/vvp/dist/scripts/scripts.d8a9fb59.js +++ /dev/null @@ -1,12 +0,0 @@ -!function(){"use strict";angular.module("ice",["ngSanitize","ngAnimate","wysiwyg.module","ui.router","ice.env","ice.modals","angularUtils.directives.dirPagination","ui.select","ui.multiselect","ui.bootstrap","ui.bootstrap.datetimepicker","ngMaterial","ngMessages","angular-toArrayFilter","ngIntlTelInput","ui.sortable","jm.i18next","ice.toolbar","ice.navigation","ice.main","ice.contactUs","ice.dashboard.main","ice.dashboard.overview","ice.dashboard.dashboard","ice.activation.login","ice.activation.register","ice.activation.addVf","ice.activation.addVendorContact","ice.activation.resendActivation","ice.activation.terms","ice.activation.activateUser","ice.dashboard.account","ice.documentation","ice.activation.resetPassword","ice.activation.updatePassword","ice.dashboard.checklist","ice.welcome","ice.main.admin","ice.services.cacheService","ice.services.users","ice.services.localStorage","ice.services.vf","ice.services.steps","ice.services.vfc","ice.services.dtsite","ice.services.checklist","ice.services.status","ice.services.feedback","ice.services.toast","ice.services.cms","ice.services.sessionStorage","ice.directives","ice.filters","ice.interceptors.http"])}(),angular.module("ice.env",[]).constant("ENV",{name:"production",apiBase:"/vvp/v1/engmgr/"}),function(){"use strict";angular.module("ice").constant("_",window._).constant("iceConstants",{states:{incomplete:"Incomplete",completed:"Completed"},stages:{intake:"Intake",active:"Active",validated:"Validated",completed:"Completed"},roles:{standard:"standard_user",el:"el",admin:"admin",admin_ro:"admin_ro"},checklist_states:["automation","review","peer review","approval","handoff","closed"]})}(),function(){"use strict";function a(a){a.defaults.useXDomain=!0,delete a.defaults.headers.common["X-Requested-With"],a.interceptors.push("httpRequestInterceptor"),a.interceptors.push("httpResponseInterceptor"),a.interceptors.push("httpRequestErrorInterceptor"),a.interceptors.push("httpResponseErrorInterceptor")}angular.module("ice").config(a).config(["ngIntlTelInputProvider",function(a){a.set({initialCountry:"us"})}]),a.$inject=["$httpProvider"]}(),function(){"use strict";function a(a,b,c){c.hashPrefix(""),b.otherwise("/login"),b.when("/dashboard","/dashbaord/overview");var d="horizontalNavigation",e={horizontalNavigation:{main:"core/layouts/dashboard/dashboard.html",toolbar:"core/toolbar/layouts/horizontal-navigation/toolbar.html",navigation:"core/navigation/layouts/horizontal-navigation/navigation.html"},contentOnly:{main:"core/layouts/content-only.html",toolbar:"",navigation:""},contentWithToolbar:{main:"core/layouts/content-with-toolbar.html",toolbar:"toolbar/layouts/content-with-toolbar/toolbar.html",navigation:""}};a.state("app",{"abstract":!0,views:{"main@":{templateUrl:e[d].main,controller:"MainController as vm"},"toolbar@app":{templateUrl:e[d].toolbar,controller:"ToolbarController as vm"},"navigation@app":{templateUrl:e[d].navigation,controller:"NavigationController as vm"}}})}angular.module("ice").config(a),a.$inject=["$stateProvider","$urlRouterProvider","$locationProvider"]}(),function(){"use strict";function a(a,b,c,d){var e=!1;if(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))d.debug("Smooth Scroll Off (Safari).");else try{e=$("#content-israel").niceScroll({zindex:2e4,scrollspeed:60,mousescrollstep:60,cursorborderradius:"10px",cursorborder:"1px solid rgba(255, 255, 255, 0.4)",cursorcolor:"rgba(0, 0, 0, 0.6)",cursorwidth:"10px"})}catch(f){d.debug("Smooth Scroll Off.")}}angular.module("ice").controller("AppController",["$state","$timeout","$rootScope","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h){var i="LastDocumentationPageId",j=function(){a.user={},a.ice={},a.ice.loader={},a.state=d,a.baseURL=f.apiBase,m();var b=a.$on("$stateChangeStart",function(a,b,c,d,e){k(),l(b)}),c=a.$on("$stateChangeSuccess",function(){});a.$on("$destroy",function(){b(),c()}),e.set("configuration",{urls:{auth:{login:a.baseURL+"login/@t",register:a.baseURL+"signup",addVfs:a.baseURL+"vf/",getCompanies:a.baseURL+"vendors",resendActivationMail:a.baseURL+"users/activation-mail/@user_uuid",addVendorContact:a.baseURL+"add-contact",single_engagement:a.baseURL+"single-engagement/@engagementUuid",engagements:a.baseURL+"engagement",inviteMembers:a.baseURL+"invite-team-members",activities:a.baseURL+"engagement/@engagementUuid/activities/",updateDaysLeft:a.baseURL+"engagements/@engagementUuid/target_date",updateLabEntryDaysLeft:a.baseURL+"engagements/@engagementUuid/target_lab_date",setSSHKey:a.baseURL+"users/ssh",getIceUser:a.baseURL+"users",getRGWASecret:a.baseURL+"users/account/rgwa/",account:a.baseURL+"users/account",updatePassword:a.baseURL+"users/pwd/",sendResetPwdInstructions:a.baseURL+"users/pwd/reset-instructions/"},notifications:{getNotifications:a.baseURL+"notifications/num",resetNotificationNum:a.baseURL+"notifications/reset",notificationsDelete:a.baseURL+"notifications/@uuid",getNotificationsDescription:a.baseURL+"notifications/@userUuid/@offset/@limit"},steps:{get:a.baseURL+"engagements/@engagement/nextsteps/@progress",add:a.baseURL+"engagements/@engagement/nextsteps",edit:a.baseURL+"nextsteps/@stepUuid/engagement/@engUuid",order_next_steps:a.baseURL+"engagements/@engUuid/nextsteps/order_next_steps",update:a.baseURL+"nextsteps/@stepUuid/state","delete":a.baseURL+"nextsteps/@stepUuid",createChecklistNextStep:a.baseURL+"engagement/@engUuid/checklist/@checkListUuid/nextstep/",createNextStep:a.baseURL+"eng/@engUuid/nextstep/",getByUser:a.baseURL+"engagements/user/nextsteps/"},vf:{updateVfs:{put:a.baseURL+"vf/@vf_uuid/validation-details/"},deployment_target:{getDeployTargets:a.baseURL+"deployment-targets",updateDeployTargets:a.baseURL+"engagement/@engagementUuid//deployment-targets/@deployment_target_uuid"},ecomp:{getECOMPReleases:a.baseURL+"ecomp-releases",updateECOMPReleases:a.baseURL+"engagement/@engagementUuid/ecomp-releases/@ecomp_uuid"},version:{getVFVersion:a.baseURL+"vf/@vfUuid/vf-version/"}},vfcs:{add:a.baseURL+"vfcs/",get:a.baseURL+"vf/@vfUuid/vfcs/","delete":a.baseURL+"vf/@vfUuid/vfcs/@vfcUuid"},status:{get:a.baseURL+"engagements/@engagement/status",add:a.baseURL+"engagements/@engagement/status",update:a.baseURL+"engagements/@engagement/status"},feedback:{add:a.baseURL+"add-feedback"},dtsite:{get:a.baseURL+"dtsites/",getVFSites:a.baseURL+"vf/@vfUuid/dtsites/",add:a.baseURL+"dtsites/","delete":a.baseURL+"vf/@vfUuid/dtsites/@dtsUuid"},checklist:{state:{put:a.baseURL+"checklist/@cl_uuid/state/"},createChecklist:a.baseURL+"engagement/@engUuid/checklist/new/",getDataForChecklist:a.baseURL+"engagement/@engUuid/checklist/new/",getChecklist:a.baseURL+"checklist/@checklistUuid",putDataForChecklist:a.baseURL+"checklist/@checklist_uuid",checklistDecision:a.baseURL+"checklist/decision/@decisionUuid",createAuditlogChecklist:a.baseURL+"checklist/@checklist_uuid/auditlog/",createAuditlogDecisionChecklist:a.baseURL+"checklist/decision/@decision_uuid/auditlog/",getChecklistTemplates:a.baseURL+"checklist/templates/",getChecklistTemplate:a.baseURL+"checklist/template/@templateUuid",saveChecklistTemplate:a.baseURL+"checklist/template/"},engagement:{put:a.baseURL+"engagements/@engagementUuid/",updateProgress:a.baseURL+"engagements/@engagementUuid/progress",setStage:a.baseURL+"single-engagement/@engagementUuid/stage/@stage",starred_engagement:{put:a.baseURL+"engagements/starred_eng/",get:a.baseURL+"engagements/starred_eng/"},recent_engagement:{get:a.baseURL+"engagements/recent_eng/"},engagement_team:{put:a.baseURL+"engagements/engagement-team/"},engagementsExpanded:a.baseURL+"engagement/expanded/",exportEngagementsCSV:a.baseURL+"engagement/export/?stage=@stage&keyword=@keyword",reviewer:{put:a.baseURL+"engagements/@engagementUuid/reviewer/"},peerreviewer:{put:a.baseURL+"engagements/@engagementUuid/peerreviewer/"},switchReviewers:{put:a.baseURL+"engagements/@engagementUuid/switch-reviewers/"},archive:{put:a.baseURL+"engagements/@engagementUuid/archive/"}},welcome:{welcome:a.baseURL+"welcome/"},cms:{posts:{get:a.baseURL+"cms/posts/?limit=@limit&offset=@offset&fromLastDays=@fromLastDays&category=@category"},pages:{get:a.baseURL+"cms/pages/?title=@title",getById:a.baseURL+"cms/pages/@id/",search:a.baseURL+"cms/pages/search/?keyword=@keyword"}},users:{engagementleads:{get:a.baseURL+"users/engagementleads/"},activate:a.baseURL+"users/activate/@userid/@token"}}})},k=function(){var a=b.getToast();a&&!a.sticky&&b.clearToast()},l=function(a){a&&a.name&&"app.documentation.page"!==a.name&&"app.documentation"!==a.name&&c["delete"](i)},m=function(){g.i18next&&(g.i18next.use(g.i18nextXHRBackend),g.i18next.init({debug:!1,lng:"en",fallbackLng:"en",backend:{loadPath:"locales/{{lng}}/{{ns}}.json"},useCookie:!1,useLocalStorage:!1},function(a,b){a&&h.error(a)}))};j()}angular.module("ice").run(a),a.$inject=["$rootScope","toastService","sessionStorageService","$state","cacheService","ENV","$window","$log"]}(),angular.module("ice.interceptors.http",[]).factory("httpRequestInterceptor",["$injector","$rootScope",function(a,b){return{request:function(c){if(-1!==c.url.indexOf(b.baseURL)){c.headers=c.headers||{};var d=a.get("usersService").getUserData(function(){});d&&!c.skipAuth&&(c.headers.Authorization="token "+d.jwtToken)}return c}}}]).factory("httpResponseInterceptor",["$rootScope",function(a){return{response:function(a){return a}}}]).factory("httpRequestErrorInterceptor",["$q",function(a){return{requestError:function(a){return a}}}]).factory("httpResponseErrorInterceptor",["$q","$rootScope","$injector","toastService",function(a,b,c,d){return{responseError:function(b){var e=c.get("$state"),f=b.status;switch(f){case 401:d.setToast(b.statusText,"danger");break;case 403:e.go("app.login");break;case 404:}return a.reject(b)}}}]),function(){"use strict";angular.module("ice.services.cacheService",[]).service("cacheService",function(){var a={};this.get=function(b){return a[b]},this["delete"]=function(b){return a[b]=void 0},this.deleteAll=function(){return a={}},this.set=function(b,c){void 0===a[b]?a[b]=c:a[b]=$.extend({},c,a[b])},this.toString=function(){return a}}).factory("pageService",function(){var a="";return{getPage:function(){return a},setPage:function(b){a=b}}})}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){var j=c.get("configuration").urls,k="user",l=g.getJson(k);this.isEngagementEL=function(a){var b=h.find(a,{uuid:l.uuid});return void 0==b?!1:l&&l.role.name===d.roles.el?!0:!1},this.isUserInRole=function(a){return l&&l.role&&l.role.name===a},this.isReviewer=function(a,b){return a&&b&&a.uuid==b},this.isPeerReviewer=function(a,b){return a&&b&&a.uuid==b},this.isAdmin=function(a){return a&&a.role&&a.role.name===d.roles.admin},this.updatePassword=function(c,d){var e=b.defer();return a.put(j.auth.updatePassword,d).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.sendResetPwdInstructions=function(c){var d=b.defer();return a.post(j.auth.sendResetPwdInstructions,c).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.login=function(c,d){var e=b.defer();return a.post(j.auth.login.replace("/@t",d),c).success(function(a,b,c,d){l=a,delete l.password,l.jwtToken=a.token,g.setJson(k,l),e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.register=function(c){var d=b.defer();return a.post(j.auth.register,c).success(function(a,b,c,e){l=a,l.jwtToken=a.token,g.setJson(k,l),d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.addVendorContact=function(c){var d=b.defer();return a.post(j.auth.addVendorContact,c).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.resendActivationMail=function(c){var d=b.defer();return a.get(j.auth.resendActivationMail.replace("@user_uuid",c),{skipAuth:!0}).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.getNotifications=function(c){var d=b.defer();return a.get(j.notifications.getNotifications).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.resetNotificationNum=function(c){var d=b.defer();return a.put(j.notifications.resetNotificationNum).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.notificationsDelete=function(c){var d=b.defer();return a["delete"](j.notifications.notificationsDelete.replace("@uuid",c)).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.getNotificationsDescription=function(c,d,e){var f=b.defer();return a.get(j.notifications.getNotificationsDescription.replace("@userUuid",c).replace("@offset",d).replace("@limit",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.getIceUser=function(){var c=b.defer();return a.get(j.auth.getIceUser).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.updateAccount=function(c,d){var e=b.defer();return a.put(j.auth.account,d).success(function(a,b,c,d){var f=l.jwtToken;l=a,l.jwtToken=f,g.setJson(k,l),e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.setSSHKey=function(c,d){var e=b.defer();return a.post(j.auth.setSSHKey,d).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getUserData=function(a){return l||(a?(i.debug("There is no user data, will invoke callback pass as argument."),a()):(i.debug("There is no user data, will be redirected into /login page."),f.go("app.login"))),l},this.resetUserData=function(){i.debug("Clearing user from cache..."),l=void 0,g["delete"](k),e.setJson("ice.settings.view_type",void 0),e.setJson("ice.settings.eng_uuid",void 0),e.setJson("ice.settings.sub_id",void 0)},this.setUserActivationSuccess=function(a){l&&(l.activationSuccess=a,g.setJson(k,l))},this.getEngagementLeads=function(){var c=b.defer(),d=this.getUserData();return this.isAdmin(d)?a.get(j.users.engagementleads.get).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}):c.reject("Just admin allowed to get engagement leads list."),c.promise},this.activateUser=function(c,d){var e=b.defer();return a.get(j.users.activate.replace("@userid",c).replace("@token",d),{skipAuth:!0}).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getRGWASecret=function(){var c=b.defer();return a.get(j.auth.getRGWASecret).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise}}angular.module("ice.services.users",[]).service("usersService",["$http","$q","cacheService","iceConstants","localStorageService","$state","sessionStorageService","_","$log",a])}(),function(){"use strict";angular.module("ice.services.vf",[]).service("vfService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.addVfs=function(c){var e=b.defer();return a.post(d.auth.addVfs,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.updateVfs=function(c,e){var f=b.defer();return a.put(d.vf.updateVfs.put.replace("@vf_uuid",e),c).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.inviteMembers=function(c){var e=b.defer();return a.post(d.auth.inviteMembers,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getCompanies=function(){var c=b.defer();return a.get(d.auth.getCompanies).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.getDeployTargets=function(){var c=b.defer();return a.get(d.vf.deployment_target.getDeployTargets).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.getECOMPReleases=function(){var c=b.defer();return a.get(d.vf.ecomp.getECOMPReleases).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.getVFVersion=function(c){var e=b.defer();return a.get(d.vf.version.getVFVersion.replace("@vfUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getEngagements=function(c){var e=b.defer();return a.get(d.auth.engagements).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getExpandedEngagements=function(c){var e=b.defer();return a.post(d.engagement.engagementsExpanded,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getSingleEngagement=function(c,e){var f=b.defer();return a.get(d.auth.single_engagement.replace("@engagementUuid",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.getStarredEngagements=function(){var c=b.defer();return a.get(d.engagement.starred_engagement.get).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.putStarredEngagements=function(c){var e=b.defer(),f={};return f.engagement_uuid=c,a.put(d.engagement.starred_engagement.put,f).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getRecentEngagements=function(){var c=b.defer();return a.get(d.engagement.recent_engagement.get).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.getActivities=function(c){var e=b.defer();return a.get(d.auth.activities.replace("@engagementUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.updateProgress=function(c,e){var f=b.defer();return a.put(d.engagement.updateProgress.replace("@engagementUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateDeployTargets=function(c,e){var f=b.defer();return a.put(d.vf.deployment_target.updateDeployTargets.replace("@engagementUuid",c).replace("@deployment_target_uuid",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateECOMPReleases=function(c,e){var f=b.defer();return a.put(d.vf.ecomp.updateECOMPReleases.replace("@engagementUuid",c).replace("@ecomp_uuid",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateDaysLeft=function(c,e){var f=b.defer();return a.post(d.auth.updateDaysLeft.replace("@engagementUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateLabEntryDaysLeft=function(c,e){var f=b.defer();return a.post(d.auth.updateLabEntryDaysLeft.replace("@engagementUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.set_engagement_stage=function(c,e){var f=b.defer();return a.put(d.engagement.setStage.replace("@engagementUuid",c).replace("@stage",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.exportEngagementsCSV=function(c,e){var f=b.defer();return null==c||null==e?f.reject("Invalid arguments on engagements export csv."):a({method:"GET",url:d.engagement.exportEngagementsCSV.replace("@stage",c).replace("@keyword",e),headers:{"Content-Type":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},responseType:"arraybuffer"}).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.archiveEngagement=function(c,e){var f=b.defer(),g={reason:e};return a.put(d.engagement.archive.put.replace("@engagementUuid",c),g).success(function(a,b,c,d){f.resolve()}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateEngagementReviewer=function(c,e){var f=b.defer(),g={reviewer:e};return a.put(d.engagement.reviewer.put.replace("@engagementUuid",c),g).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.updateEngagementPeerReviewer=function(c,e){var f=b.defer(),g={peerreviewer:e};return a.put(d.engagement.peerreviewer.put.replace("@engagementUuid",c),g).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.switchEngagementReviewers=function(c,e,f){var g=b.defer(),h={reviewer:e,peerreviewer:f};return a.put(d.engagement.switchReviewers.put.replace("@engagementUuid",c),h).success(function(a,b,c,d){g.resolve({data:a,status:b})}).error(function(a,b,c,d){g.reject({message:a,status:b})}),g.promise},this.updateEngagement=function(c,e){var f=b.defer(),g={engagement:c,status:e};return a.put(d.engagement.put.replace("@engagementUuid",c.uuid),g).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.remove_user_from_eng=function(c){var e=b.defer();return null==c?e.reject("Invalid arguments on remove_user_from_eng."):a.put(d.engagement.engagement_team.put,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise}}])}(),function(){"use strict";angular.module("ice.services.vfc",[]).service("vfcService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.get=function(c){var e=b.defer();return a.get(d.vfcs.get.replace("@vfUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this["delete"]=function(c,e){var f=b.defer();return a["delete"](d.vfcs["delete"].replace("@vfUuid",e).replace("@vfcUuid",c)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.add=function(c){var e=b.defer();return a.post(d.vfcs.add,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getCompanies=function(){var c=b.defer();return a.get(d.auth.getCompanies).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise}}])}(),angular.module("ice.services.localStorage",[]).service("localStorageService",["$window",function(a){this.setJson=function(b,c){return a.localStorage&&a.localStorage.setItem(b,JSON.stringify(c)),this},this.getJson=function(b){var c,d=a.localStorage&&a.localStorage.getItem(b);try{c=d?JSON.parse(d):void 0}catch(e){}return c},this["delete"]=function(b){return a.localStorage&&a.localStorage.removeItem(b)}}]),function(){"use strict";angular.module("ice.services.steps",[]).service("stepsService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.getByUser=function(){var c=b.defer();return a.get(d.steps.getByUser).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.get=function(c,e){var f=b.defer();return a.get(d.steps.get.replace("@engagement",c).replace("@progress",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.update=function(c,e){var f=b.defer();return a.put(d.steps.update.replace("@stepUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this["delete"]=function(c){var e=b.defer();return a["delete"](d.steps["delete"].replace("@stepUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.add=function(c,e){var f=b.defer();return a.post(d.steps.add.replace("@engagement",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.edit=function(c,e,f){var g=b.defer();return a.put(d.steps.edit.replace("@stepUuid",e).replace("@engUuid",c),f).success(function(a,b,c,d){g.resolve({data:a,status:b})}).error(function(a,b,c,d){g.reject({message:a,status:b})}),g.promise},this.order_next_steps=function(c,e){var f=b.defer();return a.put(d.steps.order_next_steps.replace("@engUuid",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.createNextStep=function(c,e,f){var g=b.defer();return a.post(d.steps.createNextStep.replace("@engUuid",e),f).success(function(a,b,c,d){g.resolve({data:a,status:b})}).error(function(a,b,c,d){g.reject({message:a,status:b})}),g.promise},this.createChecklistNextStep=function(c,e,f){var g=b.defer();return a.post(d.steps.createChecklistNextStep.replace("@checkListUuid",c).replace("@engUuid",e),f).success(function(a,b,c,d){g.resolve({data:a,status:b})}).error(function(a,b,c,d){g.reject({message:a,status:b})}),g.promise}}])}(),function(){"use strict";angular.module("ice.services.dtsite",[]).service("dtsiteService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.getVFSites=function(c){var e=b.defer();return a.get(d.dtsite.getVFSites.replace("@vfUuid",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.get=function(){var c=b.defer();return a.get(d.dtsite.get).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this["delete"]=function(c,e){var f=b.defer();return a["delete"](d.dtsite["delete"].replace("@vfUuid",c).replace("@dtsUuid",e)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.add=function(c){var e=b.defer();return a.post(d.dtsite.add,c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise}}])}(),function(){"use strict";var a;angular.module("ice.services.checklist",[]).factory("checklistService",["$rootScope","$http","$q","cacheService","$log",function(b,c,d,e,f){var g=e.get("configuration").urls;return this.setState=function(a,b){var e=d.defer();return c.put(g.checklist.state.put.replace("@cl_uuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.createChecklist=function(a,b){var e=d.defer();return c.post(g.checklist.createChecklist.replace("@engUuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.getDataForCreateChecklist=function(a){var b=d.defer();return c.get(g.checklist.getDataForChecklist.replace("@engUuid",a)).success(function(a,c,d,e){b.resolve({data:a,status:c})}).error(function(a,c,d,e){b.reject({message:a,status:c})}),b.promise},this.getChecklist=function(a){var b=d.defer();return c.get(g.checklist.getChecklist.replace("@checklistUuid",a)).success(function(a,c,d,e){b.resolve({data:a,status:c})}).error(function(a,c,d,e){b.reject({message:a,status:c})}),b.promise},this.putDataForChecklist=function(a,b){var e=d.defer();return c.put(g.checklist.putDataForChecklist.replace("@checklist_uuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.putChecklistDecision=function(a,b){var e=d.defer();return c.put(g.checklist.checklistDecision.replace("@decisionUuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.createAuditlogChecklist=function(a,b){var e=d.defer();return c.post(g.checklist.createAuditlogChecklist.replace("@checklist_uuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.createAuditlogDecisionChecklist=function(a,b){var e=d.defer();return c.post(g.checklist.createAuditlogDecisionChecklist.replace("@decision_uuid",a),b).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.setChecklistExitEntity=function(b){a=b,f.debug("set checklist")},this.callChecklistExit=function(b){if(void 0!=a&&"checklist"==b){var c="set_state";angular.forEach(a.data.checklistDecisions,function(a,b){angular.forEach(a.decisions,function(a,b){("approved"!=a.view_value&&"not_relevant"!=a.view_value||""==a.view_value)&&(c="next_step")})}),"next_step"==c?this.openNextSteps():"set_state"==c&&this.openSetState()}},this.getChecklistTemplates=function(){var a=d.defer();return c.get(g.checklist.getChecklistTemplates).success(function(b,c,d,e){a.resolve({data:b,status:c})}).error(function(b,c,d,e){a.reject({message:b,status:c})}),a.promise},this.getChecklistTemplate=function(a){var b=d.defer();return c.get(g.checklist.getChecklistTemplate.replace("@templateUuid",a)).success(function(a,c,d,e){b.resolve({data:a,status:c})}).error(function(a,c,d,e){b.reject({message:a,status:c})}),b.promise},this.saveChecklistTemplate=function(a){var b=d.defer();return c.put(g.checklist.saveChecklistTemplate,a).success(function(a,c,d,e){b.resolve({data:a,status:c})}).error(function(a,c,d,e){b.reject({message:a,status:c})}),b.promise},this}])}(),function(){"use strict";angular.module("ice.services.status",[]).service("statusService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.get=function(c){var e=b.defer();return a.get(d.status.get.replace("@engagement",c)).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise},this.update=function(c,e){var f=b.defer();return a.put(d.status.update.replace("@engagement",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.add=function(c,e){var f=b.defer();return a.post(d.status.update.replace("@engagement",c),e).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise}}])}(),function(){"use strict";angular.module("ice.services.feedback",[]).service("feedbackService",["$http","$q","cacheService",function(a,b,c){var d=c.get("configuration").urls;this.add=function(c){var e=b.defer();return a.post(d.feedback.add.replace(),c).success(function(a,b,c,d){e.resolve({data:a,status:b})}).error(function(a,b,c,d){e.reject({message:a,status:b})}),e.promise}}])}(),function(){"use strict";angular.module("ice.services.toast",[]).service("toastService",["$rootScope",function(a){var b,c,d,e,f=!1,g="all",h=function(h,i,j){if(h&&void 0!=h.detail&&(h=h.detail),!h||!i)throw"You must provide both message an type in order to set new message toast";b=h,c=i,d=j&&j.sticky?j.sticky:!1,e=j&&j.readMoreCallback?j.readMoreCallback:void 0,g=j&&j.displayFor?j.displayFor:"all", -f=!0,a.showToast=!0},i=function(){b=void 0,c=void 0,f=!1,g="all",a.showToast=!1},j=function(){return{message:b,type:c,show:f,sticky:d,readMore:e,displayFor:g}};return{setToast:h,clearToast:i,getToast:j}}])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h,i=c.get("configuration").urls,j="lastAnnouncement";this.getPosts=function(c,d,e){var f=b.defer(),g=e&&e instanceof Array?e.join():"";return a.get(i.cms.posts.get.replace("@limit",c).replace("@offset",0).replace("@fromLastDays",d).replace("@category",g)).success(function(a,b,c,d){f.resolve({data:a,status:b})}).error(function(a,b,c,d){f.reject({message:a,status:b})}),f.promise},this.getLastAnnouncementPost=function(){var c=b.defer(),d=1;return a.get(i.cms.posts.get.replace("@limit",d).replace("@offset",0).replace("@fromLastDays","").replace("@category","Announcement")).success(function(a,b,d,e){c.resolve({data:a,status:b})}).error(function(a,b,d,e){c.reject({message:a,status:b})}),c.promise},this.setAnnouncementToast=function(){var a=function(){e.open({templateUrl:"main/modals/cms-post-modal/cms-post-modal.html",controller:"cmsPostModalController",controllerAs:"vm",size:"cms-post-read-more",resolve:{post:function(){return void 0}}})};this.getLastAnnouncementPost().then(function(b){if(b&&b.data&&1===b.data.length){var c=d.getJson(j);if(!c||c.id!=b.data[0].id||!c.closed){d.setJson(j,{id:b.data[0].id,closed:!1});var e="Important announcement: "+b.data[0].title+".";h={message:e,readMore:a,type:"warning",show:!0,displayFor:"all",publishDate:b.data[0].publish_date},f.showAnnouncement=!f.showAnnouncement}}})["catch"](function(a){g.error(a)})},this.getAnnouncement=function(){return h},this.getPages=function(c){var d=b.defer();return c||(c=""),a.get(i.cms.pages.get.replace("@title",c)).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.getPage=function(c){var d=b.defer();return a.get(i.cms.pages.getById.replace("@id",c)).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise},this.searchPages=function(c){var d=b.defer();return a.get(i.cms.pages.search.replace("@keyword",c)).success(function(a,b,c,e){d.resolve({data:a,status:b})}).error(function(a,b,c,e){d.reject({message:a,status:b})}),d.promise}}angular.module("ice.services.cms",[]).service("cmsService",["$http","$q","cacheService","localStorageService","$uibModal","$rootScope","$log",a])}(),function(){"use strict";function a(a){this.setJson=function(b,c){return a.sessionStorage&&a.sessionStorage.setItem(b,JSON.stringify(c)),this},this.getJson=function(b){var c,d=a.sessionStorage&&a.sessionStorage.getItem(b);try{c=d?JSON.parse(d):void 0}catch(e){}return c},this["delete"]=function(b){return a.sessionStorage&&a.sessionStorage.removeItem(b)}}angular.module("ice.services.sessionStorage",[]).service("sessionStorageService",["$window",a])}(),function(){"use strict";function a(a,b,c,d,e){var f={};return f.restrict="E",f.templateUrl="directives/step-stages/step-stages.html",f.scope={stage:"=stage",stage_num:"=stageNum",eng_uuid:"@engUuid",team:"=team",eng_name:"@engName",initactivitylogs:"&"},f.controller=["$scope","vfService","$log",function(b,c,d){b.set_engagement_stage=function(f,g){var h=e.open({templateUrl:"main/modals/set-eng-stage/set-eng-stage-modal.html",controller:"setEngStageModalController",controllerAs:"vm",resolve:{stage:function(){return g},eng_name:function(){return b.eng_name},current_stage:function(){return b.stage}}});h.result.then(function(e){e&&c.set_engagement_stage(f.eng_uuid,g).then(function(c){if(202!==c.status)return!1;switch(f.stage=g,g){case"Intake":f.stage_num=1;break;case"Active":f.stage_num=2;break;case"Validated":f.stage_num=3;break;case"Completed":f.stage_num=4}a.$broadcast("onUpdateNextSteps",{stage:f.stage,eng_uuid:f.eng_uuid}),b.initactivitylogs()})["catch"](function(a){d.error(a)})})},b.hover_design=function(a,c){b.temp_num=c,b.hover=a}}],f.link=function(a,c,e){a.hover=!1,a.temp_num=0,a.priviliged=!1,a["const"]=b.stages,a.loaded=!1,a.user=d.getUserData(),a.$watchGroup(["user","team"],function(a,b,c){a[0]&&a[1]&&(c.loaded||((d.isEngagementEL(c.team)||d.isAdmin(c.user))&&(c.priviliged=!0),c.loaded=!0))}),a.hover_actions=function(b,c){a.priviliged&&a.hover_design(b,c)},a.set_stage=function(b){if(a.priviliged){if(a.stage===b)return void $log.debug("Same stage was chosen, request ignored.");a.set_engagement_stage(a,b)}}},f}angular.module("ice.directives",[]).directive("stepStagesDirective",a),a.$inject=["$rootScope","iceConstants","localStorageService","usersService","$uibModal"]}(),function(){"use strict";function a(a,b,c,d){var e={};return e.restrict="E",e.templateUrl="directives/progress/progress.html",e.scope={progress:"@progress",data:"=data",callback:"=callback",statuses:"@statuses",enable_refresh:"@enableRefresh"},e.link=function(e,f,g){var h=function(){e.statuses||(e.statuses=!1),i(),j()},i=function(){var a=moment(),b=moment(e.data.completion_date),c=Math.ceil(b.diff(a,"days",!0));0>c&&(c=0),e.daysLeft=c},j=function(){e.$watch("data.completion_date",function(a,b){a!==b&&i()}),e.$watch("data.heat_validated_time",function(a,b){a!==b&&k()}),e.$watch("data.vnf_version",function(a,b){a!==b&&k()}),e.$watch("data.image_scan_time",function(a,b){a!==b&&k()}),e.$watch("data.aic_instantiation_time",function(a,b){a!==b&&k()}),e.$watch("data.asdc_onboarding_time",function(a,b){a!==b&&k()})},k=function(){e.data&&(e.data.ecomp_release||(e.data.ecomp_release="-"),e.data.aic_version||(e.data.aic_version="-"),e.data.aic_instantiation_time||(e.data.aic_instantiation_time="-"),e.data.vnf_version||(e.data.vnf_version="-"),e.data.asdc_onboarding_time||(e.data.asdc_onboarding_time="-"),e.data.heat_validated_time||(e.data.heat_validated_time="-"),e.data.image_scan_time||(e.data.image_scan_time="-"))};e.starEngagement=function(){d.putStarredEngagements(e.data.engagement_uuid).then(function(a){b.ice.loader.show=!1,200===a.status&&a.data&&""!==a.data&&(b.$broadcast("onUpdateEngagements",{select:{uuid:e.data.engagement_uuid,page_type:"dashboard",sub_id:void 0,enable_refresh:e.enable_refresh}}),0==e.data.starred?e.data.starred=!0:e.data.starred=!1)})["catch"](function(a){b.ice.loader.show=!1,c.error(a)})},e.goToEngagement=function(a){b.$broadcast("searchSelectEngagement",a)},e.changeProgress=function(){var b=a.open({templateUrl:"main/modals/change-progress/change-progress.html",controller:"ChangeProgressModalController",controllerAs:"vm",resolve:{progress:function(){return e.progress},engagementUuid:function(){return e.data.engagement_uuid}}});b.result.then(function(a){a&&(e.progress=a.progress||e.progress,a.progress&&e.callback(a))},function(){c.debug("Modal dismissed at: "+new Date)})},h()},e}angular.module("ice.directives").directive("progressDirective",["$uibModal","$rootScope","$log","vfService",a])}(),function(){"use strict";function a(a,b,c,d,e){var f={};return f.restrict="E",f.template="
",f.scope={activity:"="},f.controller=["$scope",function(a){a.addDateStamp=function(a){var c="",d=moment().format("z"),e=moment().format("A"),f=moment().tz(moment.tz.guess()).format("z");return c=-1==a.description.indexOf(" at ")?"."==a.description.substr(a.description.length-1)?a.description.substr(0,a.description.length-1):a.description:a.description.substring(0,a.description.indexOf(" at ")),a.description=c+" at "+b("date")(a.create_time,"yyyy-MM-dd hh:mm:ss",d)+" "+e+" "+f,a},a.addPopover=function(a,b,c,d){var e=""+c+"";a.description=a.description.replaceAll(b,e)},a.addSelectEngagement=function(a,b,c,d){var e="";a.description=a.description.replaceAll(b,e)},a.goToEngagement=function(a){e.setJson("ice.settings.eng_uuid",a),d.path("/dashboard/overview"),d.replace(),c.$broadcast("onUpdateEngagements",{select:{uuid:a,page_type:"overview",sub_id:void 0}})}}],f.link=function(b,c,d,e){var f=b.activity;f.meta_data=JSON.parse(f.metadata),b.addDateStamp(f),angular.forEach(f.meta_data.macros,function(a,c){switch(a.type){case"popover":b.addPopover(f,c,a["short"],a["long"]);break;case"select_engagement":b.addSelectEngagement(f,c,a["short"],a.eng_uuid)}});var g=""+b.activity.description+"";c.html(g).show(),a(c.contents())(b)},f}angular.module("ice.directives").directive("notifications",a),String.prototype.replaceAll=function(a,b,c){return this.replace(new RegExp(a.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),c?"gi":"g"),"string"==typeof b?b.replace(/\$/g,"$$$$"):b)},a.$inject=["$compile","$filter","$rootScope","$location","localStorageService"]}(),function(){"use strict";function a(a){var b={};return b.restrict="E",b.transclude=!1,b.scope={selector:"@selector"},b.link=function(b,c,d){a.$watch("ice.loader.show",function(a,c){if(a===!0){var d=$(b.selector),f=e(),g=$('
');$("body").append(g),d.addClass("ice-loader-overlay");var h=d.offset();h&&g.css({top:h.top+d.height()/2,left:h.left+d.width()/2,position:"fixed"})}else if(a===!1){var d=$(b.selector);d.removeClass("ice-loader-overlay");var f=e(),g=$("#"+f);g.remove()}},!0);var e=function(){var a="ice-loader-",c=b.selector;return c=c.replace(".",""),c=c.replace("#",""),a+c}},b}angular.module("ice.directives").directive("iceLoader",a),a.$inject=["$rootScope"]}(),function(){"use strict";function a(a,b){var c={};return c.restrict="E",c.templateUrl="directives/ice-toast/ice-toast.html",c.scope={isModal:"=isModal"},c.link=function(c,d,e){var f=function(){var a=b.getToast();a&&(c.toast=a)};c.closeAlert=function(){b.clearToast()},f(),a.$watch("showToast",function(a,b){f()},!0)},c}angular.module("ice.directives").directive("iceToast",["$rootScope","toastService",a])}(),function(){"use strict";function a(a,b,c){var d={};return d.restrict="E",d.templateUrl="directives/ice-announcement/ice-announcement.html",d.link=function(d,e,f){function g(a){var b=c.getJson(h)||{};b.closed=a,c.setJson(h,b)}var h="lastAnnouncement",i=function(){var a=b.getAnnouncement();if(a){d.toast=a;var c=new Date;c.setDate(c.getDate()-2);var e=new Date(d.toast.publishDate);c>e&&d.closeAlert()}};d.closeAlert=function(){d.toast.show=!1,g(!0)},i(),a.$watch("showAnnouncement",function(a,b){i()},!0)},d}angular.module("ice.directives").directive("iceAnnouncement",["$rootScope","cmsService","localStorageService",a])}(),function(){"use strict";function a(a,b){var c={};return c.restrict="E",c.templateUrl="directives/ice-tooltip/ice-tooltip.html",c.link=function(c,d,e){var f=5;a.getPosts(f,"",["FAQ"]).then(function(a){if(a.data&&a.data.length>0){var b=a.data.length,d=Math.floor(Math.random()*b);c.tipContent=a.data[d]}})["catch"](function(a){b.error(a)})},c}angular.module("ice.directives").directive("iceToolTip",["cmsService","$log",a])}(),function(){"use strict";function a(a,b,c){var d={};return d.restrict="E",d.templateUrl="directives/ice-news-and-announcement/ice-news-and-announcement.html",d.scope={limit:"=limit",fromLastDays:"=fromLastDays",showDescription:"=showDescription"},d.link=function(d,e,f){var g=d.limit||5,h=d.fromLastDays||"",i=function(){a.getPosts(g,h,["Announcement","News"]).then(function(a){d.cmsPosts=a.data})["catch"](function(a){c.error(a)})};d.openCMSReadMoreModal=function(a){a?b.open({templateUrl:"main/modals/cms-post-modal/cms-post-modal.html",controller:"cmsPostModalController",controllerAs:"vm",size:"cms-post-read-more",resolve:{post:function(){return a}}}):c.debug("Cannot open cms post.")},i()},d}angular.module("ice.directives").directive("iceNewsAndAnnouncement",["cmsService","$uibModal","$log",a])}(),function(){"use strict";function a(a){return function(b){return a.trustAsHtml(b)}}angular.module("ice.filters",[]).filter("trusted",["$sce",a])}(),function(){"use strict";function a(a,b,c){return function(a,b){return a.toLowerCase().includes(b.toLowerCase())}}angular.module("ice.filters").filter("doesExists",["$sce","$injector","$log",a])}(),function(){"use strict";function a(){return function(a){return a?a.charAt(0).toUpperCase()+a.substr(1).toLowerCase():""}}angular.module("ice.filters").filter("capitalize",[a])}(),function(){"use strict";function a(a,b){return function(c,d){var e={stage:"All",keyword:d,offset:0,limit:20};return a.getExpandedEngagements(e).then(function(a){return 200===a.status&&a.data&&""!==a.data?a.data.array:void 0})["catch"](function(a){$rootScope.ice.loader.show=!1,b.error(a)})}}angular.module("ice.filters").filter("customVFSearchFilter",["vfService","$log",a])}(),function(){"use strict";function a(a){var b=["th","st","nd","rd"];return function(c,d){if(c){var e=a("date")(c,d),f=parseInt(a("date")(c,"dd")),g=30>f?f%20:f%30,h=3>=g?b[g]:b[0];return e.replace("oo",h)}return c}}angular.module("ice.filters").filter("date2",["$filter",a])}(),function(){"use strict";function a(a,b){return function(b){return b=a.replace(b,/\&\;/g,"&"),b=a.replace(b,/\<\;/g,"<"),b=a.replace(b,/\>\;/g,">"),b=a.replace(b,/\"\;/g,'"'),b=a.replace(b,/\\;/g,"'"),b=a.replace(b,/<(\s)*script/g,"_script")}}angular.module("ice.filters").filter("htmlspecialchars",["_","$filter",a])}(),function(){"use strict";function a(a,b){return function(b){return b=a.replace(b,/style=\"font-weight: bold;\"/g,'class="bold"'),b=a.replace(b,/style=\"font-style: italic;\"/g,'class="italic"'),b=a.replace(b,/style=\"text-decoration-line: line-through;\"/g,'class="line-through"'),b=a.replace(b,/style=\"text-decoration-line: underline;\"/g,'class="underline"')}}angular.module("ice.filters").filter("htmlstylespan",["_","$filter",a])}(),function(){"use strict";function a(a){return function(b,c){return a.searchPages(c).then(function(a){return a.data})["catch"](function(a){$log.error(a)})}}angular.module("ice.filters").filter("customDocumentationPageSearch",["cmsService",a])}(),function(){"use strict";function a(){}angular.module("ice.toolbar",[]).config(a)}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.notifications=0;var h=c.getUserData();h&&(g.isAdmin=c.isAdmin(h),c.getNotifications(h.uuid).then(function(a){200===a.status&&(g.notifications=a.data.notifications_number?a.data.notifications_number:0)})["catch"](function(a){e.error(a)})),g.logout=function(){c.resetUserData(),b.setJson("ice.settings.eng_uuid",void 0),d.go("app.login")},g.addFeedback=function(){f.open({templateUrl:"main/modals/feedback/feedback.html",controller:"FeedbackModalController",controllerAs:"vm",size:"lg",resolve:{action:function(){return"add"}}})},a.$on("eventClearNotifications",function(a,b){g.notifications=0})}angular.module("ice.toolbar").controller("ToolbarController",["$rootScope","localStorageService","usersService","$state","$log","$uibModal",a])}(),function(){"use strict";function a(){}angular.module("ice.navigation",[]).config(a)}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=this;k.selected=void 0,k.states=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"],o.formatted_engagements={},o.starred_engagements={},o.recent_engagements={},o.showOpenWizardButton=!1;var p=i.getUserData();void 0!=p&&1==p.activationSuccess&&(o.activation_success=!0),o.selectEngagement=function(a,c,e,f){var j=angular.element(l);void 0!=c&&j.width()<992&&$(".navbar-collapse").collapse("hide"),null!=h.params.messagePass&&(m.setToast(h.params.messagePass,"success"),null==h.params.messagePass),void 0==a&&void 0!=g.getJson("ice.settings.eng_uuid")?a=g.getJson("ice.settings.eng_uuid"):h.go("app.dashboard.dashboard");var n=b.defer();return void 0!=c?o.view_type=c:""!=d.getPage()?o.view_type=d.getPage():void 0!=g.getJson("ice.settings.view_type")?o.view_type=g.getJson("ice.settings.view_type"):o.view_type="overview",void 0!=e?e=e:void 0!=g.getJson("ice.settings.sub_id")&&(e=g.getJson("ice.settings.sub_id")),g.setJson("ice.settings.view_type",o.view_type),g.setJson("ice.settings.sub_id",e),d.setPage(o.view_type),k.$watch(function(){return d.getPage()},function(a,b){a!==b&&(o.view_type=a)}),o.engagement=void 0,angular.forEach(o.recent_engagements,function(b,c){b.uuid===a?(o.engagement=b,o.engagement.selected=!0,o.engagement.page=o.view_type,o.engagement.sub_id=e,o.engagement.view_type=o.view_type):b.selected=void 0;o.recent_engagements[c]=b}),angular.forEach(o.starred_engagements,function(b,c){b.uuid===a?(o.engagement=b,o.engagement.selected=!0,o.engagement.page=o.view_type,o.engagement.sub_id=e,o.engagement.view_type=o.view_type):b.selected=void 0;o.starred_engagements[c]=b}),o.engagement?(g.setJson("ice.settings.eng_uuid",a),o.showOpenWizardButton=!0,(void 0===f||f===!0)&&(o.activation_success?h.go("app.dashboard."+o.view_type,{engagement_uuid:a,engagement:o.engagement,sub_id:e,messagePass:"You have successfully activated your account!"}):h.go("app.dashboard."+o.view_type,{engagement_uuid:a,engagement:o.engagement,sub_id:e,messagePass:null}))):1!=o.last_not_found_engagement?(g.setJson("ice.settings.eng_uuid",void 0),r()):r(!0),o.isReviewer=i.isReviewer(o.me,o.engagement.reviewer_uuid),o.isPeerReviewer=i.isPeerReviewer(o.me,o.engagement.peer_reviewer_uuid),n.resolve(a),n.promise},o.searchSelectEngagement=function(b){f.getSingleEngagement(o.me.uuid,b).then(function(c){a.ice.loader.show=!1,200===c.status&&c.data&&""!==c.data&&r(!1,{uuid:b,page_type:"overview",sub_id:void 0})})["catch"](function(b){a.ice.loader.show=!1,n.error(b)})};var q=function(){return o.me=o.user=i.getUserData(),o.isAdmin=i.isAdmin(o.me),o.isEngagementEL=i.isUserInRole(c.roles.el),o.vfc_num=0,o.user&&o.user.is_active===!1?void h.go("app.resend_activation",{message:"Please activate your account first"}):void 0===o.user?void h.go("app.login",{message:"Please login first"}):(r(!1),void a.$on("onUpdateEngagements",function(a,b){void 0!=b&&void 0!=b.select?r(!1,b.select):r(!0)}))},r=function(b,c){a.ice.loader.show=!0,o.starred_engagements={},o.recent_engagements={},o.formatted_engagements={},f.getStarredEngagements().then(function(d){a.ice.loader.show=!1,200===d.status&&d.data&&""!==d.data?s(d.data,!0,!1):204===d.status?n.error("no starred VFs were found for you."):n.error("getStarredEngagements Failed."),f.getRecentEngagements().then(function(d){a.ice.loader.show=!1,200===d.status&&d.data&&""!==d.data?d.data.length>0?s(d.data,!1,!0,b,c):h.go("app.dashboard.overview",{engagement_uuid:void 0,engagement:void 0,sub_id:void 0}):204===d.status?(n.error("no recent VFs were found for you."),t(b)):n.error("getRecentEngagements Failed.")})["catch"](function(b){a.ice.loader.show=!1,n.error(b)})})["catch"](function(b){a.ice.loader.show=!1,n.error(b)})};a.$on("searchSelectEngagement",function(a,b){o.searchSelectEngagement(b)});var s=function(a,b,c,d,e){var f=void 0;for(f=0;f0){if(1==a?b=o.formatted_engagements[Object.keys(o.formatted_engagements)[0]].uuid:e.search().eng_uuid?b=e.search().eng_uuid:null!=c?b=c:void 0!=h.params.engagement_uuid&&(b=h.params.engagement_uuid),0!=b){o.selectEngagement(b)}else h.go("app.dashboard.dashboard"),null!=h.params.messagePass&&(m.setToast(h.params.messagePass,"success"),null==h.params.messagePass);0==b&&(b=o.formatted_engagements[Object.keys(o.formatted_engagements)[0]].uuid,o.engagement=o.formatted_engagements[Object.keys(o.formatted_engagements)[0]]),void 0!=o.engagement&&null!=o.engagement.creator&&d.uuid==o.engagement.creator&&1==o.activation_success&&o.openGettingStartedWizard(b)}else 1==d.activationSuccess?(o.openGettingStartedWizard(),h.go("app.dashboard.dashboard")):h.go("app.dashboard.dashboard");o.activation_success=!1,i.setUserActivationSuccess(void 0)};q(),o.openGettingStartedWizard=function(b){var c=o.engagement&&b?o.engagement.is_service_provider_internal:!1;b=b||"";var d={user:o.user,eng_uuid:b,is_service_provider_internal:c,showActivationMessage:o.activation_success};a.$broadcast("openGettingStartedWizard",d),o.activation_success=!1},o.addChecklist=function(a){var b=j.open({templateUrl:"main/modals/checklist/checklist.html",controller:"ChecklistModalController",controllerAs:"vm",size:"lg",resolve:{engagementUuid:function(){return a},modal_type:function(){return"create"},wizardData:function(){return!1}}});b.result.then(function(b){var c=void 0;void 0!=b&&(c=b.uuid,r(!1,{uuid:a,page_type:"checklist",sub_id:c}),b.progress&&o.callback(b))},function(){n.debug("Modal dismissed at: "+new Date)})}}angular.module("ice.navigation",["ui.bootstrap"]).controller("NavigationController",["$rootScope","$q","iceConstants","pageService","$location","vfService","localStorageService","$state","usersService","$uibModal","$scope","$window","toastService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e){var f=this,g=function(){f.checkListTemplates=null,i(),h()},h=function(){a.$watch(function(){return e.params.templateName},function(a,b){a!==b&&f.selectedTemplate&&(f.selectedTemplate.name=a)})},i=function(){c.getChecklistTemplates().then(function(a){d.ice.loader.show=!1,200===a.status&&a.data&&""!==a.data?f.checkListTemplates=a.data.checkListTemplates:b.debug("getChecklistTemplates Failed. response.status="+a.status)})["catch"](function(a){d.ice.loader.show=!1,b.error(a)})};f.selectTemplate=function(a){a!==f.selectedTemplate&&(f.selectedTemplate=a,e.go("app.admin.checklisttemplate",{template_uuid:a.uuid}))},g()}angular.module("ice.main.admin",["ice.services.users"]).controller("adminNavigationController",["$scope","$log","checklistService","$rootScope","$state",a])}(),function(){"use strict";function a(a,b,c,d,e){var f=this,g="LastDocumentationPageId",h=function(){c.getPages("Documentation").then(function(a){if(a&&a.data&&1===a.data.length){f.documentationPage=a.data[0];var b=d.getJson(g);b?f.loadPageContent(b):f.loadPageContent(f.documentationPage.id)}})["catch"](function(a){e.error(a)})};f.loadPageContent=function(a){f.selectedSearchedPage&&delete f.selectedSearchedPage,f.pageId=a,d.setJson(g,a),b.go("app.documentation.page",{page_id:a})},f.isPageCollapsed=function(b){var c=!0;if(b&&b.children&&b.children.length>0){var d=a.flatMap(b.children,function(b){return a.concat(b.children,b)});c=b.id!=f.pageId&&!a.some(d,["id",f.pageId])}return c},h()}angular.module("ice.documentation",[]).controller("documentationNavigationController",["_","$state","cmsService","sessionStorageService","$log",a])}(),function(){"use strict";function a(a){var b=this,c=function(){b.selectedPage=a.$current.name||"app.account"};b.loadPageContent=function(c){b.selectedPage=c,a.go(c)},c()}angular.module("ice.dashboard.account",[]).controller("accountNavigationController",["$state",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.progress=b,g.closeModal=function(){a.close()},g.submitForm=function(){var b={progress:g.progress};d.updateProgress(c,b).then(function(c){202===c.status&&a.close(b)})["catch"](function(a){e.error(a),f.setToast(a.status+": Error changing progress!","danger")})}}angular.module("ice.modals",[]).controller("ChangeProgressModalController",["$uibModalInstance","progress","engagementUuid","vfService","$log","toastService",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.completionDate=b,g.dateOptions={minDate:new Date,showWeeks:!0},g.closeModal=function(){a.close()},g.submitForm=function(){var b={target_date:moment(g.completionDate).format("YYYY-MM-DD")};d.updateDaysLeft(c,b).then(function(c){200===c.status&&a.close(b)})["catch"](function(a){f.setToast(a.status+": Error changing completion date!","danger")})}}angular.module("ice.modals").controller("ChangeDateModalController",["$uibModalInstance","completionDate","engagementUuid","vfService","$rootScope","toastService",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.targetLabDate=b,g.dateOptions={minDate:new Date,showWeeks:!0},g.closeModal=function(){a.close()},g.myDate=new Date,g.minDate=moment(g.myDate).format("YYYY-MM-DD"),g.maxDate=moment(g.myDate).add(2,"years").format("YYYY-MM-DD"),g.submitForm=function(){var b={target_date:moment(g.targetLabDate).format("YYYY-MM-DD")};d.updateLabEntryDaysLeft(c,b).then(function(c){200===c.status&&a.close(b)})["catch"](function(a){f.setToast(a.status+": Error changing completion date!","danger")})}}angular.module("ice.modals").controller("ChangeLabEntryDateModalController",["$uibModalInstance","targetLabDate","engagementUuid","vfService","$rootScope","toastService",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k){var l=this;l.nextSteps=[{assigneesUuids:"",description:"",files:"",duedate:""}];var m=function(){l.myDate=new Date,l.minDate=new Date(l.myDate.getFullYear(),l.myDate.getMonth(),l.myDate.getDate()),l.maxDate=new Date(l.myDate.getFullYear()+2,l.myDate.getMonth(),l.myDate.getDate()),l.onlyWeekendsPredicate=function(a){var b=a.getDay();return 0===b||6===b},l.wysiwyg_menu=[["bold","italic","strikethrough","underline"],["unordered-list","ordered-list","outdent","indent"]],l.select_str={File:"Select All"},l.select_all_flag=!1,l.associated_files=[],l.associated_files.push(l.select_str),l.assigness=[],l.title=e,void 0==h?(l.checklist={},l.checklist.uuid=void 0):l.checklist=h;var a=[];if(angular.forEach(f,function(b,c){-1==a.indexOf(b)&&(a.push(b),l.associated_files.push({File:b}))}),angular.forEach(d,function(a,b){l.assigness.push({name:a.full_name,id:a.uuid})}),l.edit=!1,void 0!=i){l.edit=!0;var b={};b.description=i.description,b.files=[],b.duedate=new Date(i.due_date);var a=[];angular.forEach(i.files,function(c,d){-1==a.indexOf(value)&&(a.push(value),b.files.push({File:c}))}),b.assigneesUuids=[],angular.forEach(i.assignees,function(a,c){b.assigneesUuids.push({name:a.full_name,id:a.uuid})}),l.nextSteps=[b]}};m(),l.get_chosen_files_num=function(a){return a.files.length==f.length+1?a.files.length-1:a.files.length},l.add_all_associated_files=function(a,b){1==b?(a.files=[],a.files.push({File:"Select All"}),_.forEach(f,function(b,c){a.files.push({File:b})})):(l.select_all_flag=!1,a.files=[])},l.pull_select_all_from_list=function(a){var b=[];_.forEach(a.files,function(a){_.isEqual(a,l.select_str)||b.push(a)}),a.files=b},l.verify_files_choice=function(a){_.forEach(a.files,function(b){a.files.length==f.length&&l.select_all_flag?b===l.select_str?(l.select_all_flag=!1,l.pull_select_all_from_list(a)):l.add_all_associated_files(a,!1):a.files.length!=f.length||l.select_all_flag?b===l.select_str&&(l.select_all_flag=!0,l.add_all_associated_files(a,!0)):(a.files.push({File:"Select All"}),l.select_all_flag=!0)})},l.addNewStep=function(){var a=l.nextSteps.length+1;l.nextSteps.push({id:a})},l.removeStep=function(a){l.nextSteps.splice(a,1)},l.closeModal=function(){a.ice.loader.show=!1,j.clearToast(),b.close()},l.submitForm=function(){var d,e=[];angular.forEach(l.nextSteps,function(a,b){var c={};c.files=[],a.files.length>f.length&&l.pull_select_all_from_list(a),angular.forEach(a.files,function(a,b){c.files.push(a.File)}),c.assigneesUuids=[],angular.forEach(a.assigneesUuids,function(a,b){c.assigneesUuids.push(a.id)}),d=new Date(Date.parse(a.duedate+moment().format("z"))),c.duedate=d.getFullYear()+"-"+n(d.getMonth()+1)+"-"+n(d.getDate()),c.description=a.description,e.push(c)});var h=l.checklist.uuid,m=g;l.edit?c.edit(g,i.uuid,e[0]).then(function(a){202===a.status&&b.close(a.data)})["catch"](function(a){k.error(a),j.setToast(a.status+": Error adding next step!","danger",{displayFor:"modal"})}):void 0==l.checklist.uuid?c.add(g,e).then(function(a){200===a.status&&b.close(a.data)})["catch"](function(a){k.error(a),j.setToast(a.status+": Error adding next step!","danger",{displayFor:"modal"})}):c.createChecklistNextStep(h,m,e).then(function(c){200===c.status?(b.close(c.status),l.closeModal()):(j.setToast(error.message,"danger",{displayFor:"modal"}),a.ice.loader.show=!1,k.error(error))})["catch"](function(b){j.setToast(b.message,"danger",{displayFor:"modal"}),a.ice.loader.show=!1,k.error(b)})};var n=function(a){return 10>a?"0"+a:a}}angular.module("ice.modals").controller("NextStepsModalController",["$rootScope","$uibModalInstance","stepsService","engagement_team","title","associated_files","engagement_uuid","checklist","nextstep","toastService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e){var f=this,g=function(){f.stage=c,f.current_stage=e,f.modalText="Are you sure you want to set the Engagement's stage to "+f.stage+"?",f.eng_name=d};f.closeModal=function(a){b.close(a)},g()}angular.module("ice.modals").controller("setEngStageModalController",["$rootScope","$uibModalInstance","stage","eng_name","current_stage",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h){var i=this;i.checkListAssociatedFiles=[],i.selectedCheckListAssociatedFiles=[],i.isDisabled=!1;var j=function(){switch(f){case"create":i.create=!0,i.createUpadeTitle="Create",i.modalType="create",i.modalTitle="Create",d.getDataForCreateChecklist(e).then(function(a){200===a.status&&(i.checkListTemplatesLists=[],i.checkListTemplates=a.data.checkListTemplates,angular.forEach(a.data.checkListAssociatedFiles,function(a,b){i.checkListAssociatedFiles.push({File:a})}),b.ice.loader.show=!1)})["catch"](function(c){a.setToast(c.message,"danger",{displayFor:"modal"}),b.ice.loader.show=!1,h.error(c.message)});break;case"update":i.update=!0,i.createUpadeTitle="Update",i.modalType="udpate",i.modalTitle="Update",i.checklistUuid=g.uuid,i.checkListName=g.name,d.getDataForCreateChecklist(e).then(function(a){200===a.status&&(i.checkListAssociatedFiles=[],angular.forEach(a.data.checkListAssociatedFiles,function(a,b){i.checkListAssociatedFiles.push({File:a})}),b.ice.loader.show=!1,i.selectedCheckListAssociatedFiles=[],angular.forEach(g.associatedFiles,function(a,b){i.selectedCheckListAssociatedFiles.push({File:a})}))})["catch"](function(c){a.setToast(c.message,"danger",{displayFor:"modal"}),b.ice.loader.show=!1,h.error(c.message)}),i.selectedTemplateUuid=g.selectedTemplateUuid,i.selectedTemplateName=g.selectedTemplateName}};j(),i.addFile=function(){var a=i.selectedCheckListAssociatedFiles.length+1; -i.selectedCheckListAssociatedFiles.push({id:a})},i.removeFile=function(a){i.selectedCheckListAssociatedFiles.splice(a,1)},i.closeModal=function(){a.clearToast(),b.$emit("onChecklistUpdate"),c.close(i.checkListName),c.close()},i.submitForm=function(){i.isDisabled=!0;var j=[];switch(f){case"create":angular.forEach(i.selectedCheckListAssociatedFiles,function(a,b){j.push(a.File)});var k={checkListAssociatedFiles:j,checkListName:i.checkListName,checkListTemplateUuid:i.selectedTemplateUuid};d.createChecklist(e,k).then(function(a){200===a.status&&(c.close(a.data),b.ice.loader.show=!1,i.closeModal())})["catch"](function(c){a.setToast(c.message||"Error creating check list.","danger",{displayFor:"modal"}),b.ice.loader.show=!1,i.isDisabled=!1,h.error(c.message)});break;case"update":var l=[];angular.forEach(i.selectedCheckListAssociatedFiles,function(a,b){l.push(a.File)}),h.debug("update",l);var m={checklistUuid:i.checklistUuid,checkListAssociatedFiles:l,checkListName:i.checkListName,checkListTemplateUuid:i.selectedTemplateUuid};d.putDataForChecklist(i.checklistUuid,m).then(function(f){if(200===f.status){b.$broadcast("onUpdateEngagements",{select:{uuid:e,view_type:"checklist",sub_id:i.checklistUuid}}),b.ice.loader.show=!1;var j={};j.checklist_name=i.checkListName,j.associated_files=l;var k=i.checkListAssociatedFiles.sort(),m=l.sort(),n=k.length==m.length&&k.every(function(a,b){return a===m[b]});if(!n&&"pending"!=g.state){var o={};o.description="Rejected due to file list change",o.decline="True",d.setState(i.checklistUuid,o).then(function(c){return 200!==c.status?(a.setToast(c.error,"danger",{displayFor:"modal"}),b.ice.loader.show=!1,void(i.isDisabled=!1)):void b.$broadcast("onUpdateEngagements")})["catch"](function(b){h.error(b),a.setToast(b.status+": Error changing progress!","danger"),i.isDisabled=!1})}c.close(j),i.closeModal()}})["catch"](function(c){a.setToast(c.message,"danger",{displayFor:"modal"}),b.ice.loader.show=!1,h.error(c.message),i.isDisabled=!1});break;default:h.debug("no submit action found"),i.isDisabled=!1}}}angular.module("ice.modals").controller("ChecklistModalController",["toastService","$rootScope","$uibModalInstance","checklistService","engagementUuid","modal_type","wizardData","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this,h=function(){var a=[],b=moment().tz(moment.tz.guess()).format("z"),c="";g.name=d.name,g.checklistAuditLogs=d.checklistAuditLogs,g.checklistAuditLogs.forEach(function(d){c=moment(d.create_time).local().format("YYYY-MM-DD hh:mm:ss A")+" "+b,a.push({name:d.creator.full_name,dt:c,desc:d.description})}),g.checklistAuditLogs=a};h(),g.submitForm=function(){var h={description:g.description};c.createAuditlogChecklist(d.uuid,h).then(function(c){200===c.status?(b.close(c.data),g.closeModal()):(e.setToast(c.error,"danger",{displayFor:"modal"}),a.ice.loader.show=!1)})["catch"](function(a){e.setToast(a.message,"danger",{displayFor:"modal"}),f.error(a.message)})},g.closeModal=function(){e.clearToast(),b.close()}}angular.module("ice.modals").controller("AuditLogModalController",["$rootScope","$uibModalInstance","checklistService","wizardData","toastService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this,i=function(){h.me=f.getUserData(),j()};h.vfcs=[{name:"",external_ref_id:"",company:""}],h.companies=[],h.closeModal=function(){b.close()},h.addNewChoice=function(){var a=h.vfcs.length+1;h.vfcs.push({id:a})},h.removeChoice=function(a){h.vfcs.splice(a,1)},h.submitForm=function(){var a=[];angular.forEach(h.vfcs,function(b,c){h.item=[];var d=new Object;d.name=b.name,d.external_ref_id=b.external_ref_id,d.company=b.company,a.push(d)});var f={vfcs:a,vf_uuid:e,creator:h.me};c.add(f).then(function(a){200===a.status&&b.close(a.status)})["catch"](function(a){g.error(a),d.setToast(a.status+": Error changing progress!","danger")})};var j=function(){a.ice.loader.show=!0,c.getCompanies().then(function(b){a.ice.loader.show=!1,200===b.status&&(h.companies=b.data,0===h.companies.length&&console.warn("No vendors pulled, request was successfull"))})["catch"](function(b){a.ice.loader.show=!1,g.error(b)})};i()}angular.module("ice.modals").controller("detailedViewVFCModalController",["$rootScope","$uibModalInstance","vfcService","toastService","vf_uuid","usersService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j){function k(){d.getDeployTargets().then(function(b){a.ice.loader.show=!1,200===b.status&&(n.deployTargets=b.data,0===j.filter(n.deployTargets,{uuid:n.dtversion.uuid}).length&&(n.dtversion.disabled=!0,n.deployTargets.push(n.dtversion)))})["catch"](function(b){a.ice.loader.show=!1,i.error(b)})}function l(){d.getECOMPReleases().then(function(a){200===a.status&&(n.ECOMPReleases=a.data,0===j.filter(n.ECOMPReleases,{uuid:n.ecomp_release.uuid}).length&&(n.ecomp_release.disabled=!0,n.ECOMPReleases.push(n.ecomp_release)))})["catch"](function(b){a.ice.loader.show=!1,i.error(b)})}function m(){d.getVFVersion(g).then(function(b){a.ice.loader.show=!1,200===b.status&&(n.VFVersion=b.data)})["catch"](function(b){a.ice.loader.show=!1,i.debug(b)})}var n=this,o=function(){e.engagement&&(n.engagement=e.engagement),n.me=h.getUserData(),d.getSingleEngagement(n.me.uuid,n.engagement.uuid).then(function(b){if(a.ice.loader.show=!1,200===b.status&&b.data&&""!==b.data){var c=b.data;n.engagement_manual_id=c.engagement.engagement_manual_id,n.vf_name=c.name,n.vf_uuid=c.uuid,n.ecomp_release=c.ecomp_release,n.target_lab=new Date(c.target_lab_entry_date),n.dtversion=c.deployment_target,n.selected_dt_uuid=n.dtversion.uuid,n.selected_ecomp_uuid=n.ecomp_release.uuid,n.me=h.getUserData(),n.name=n.engagement.name,n.isEngagementEL=h.isEngagementEL(c.engagement.engagement_team),n.isAdmin=h.isAdmin(n.me),n.choices=[{TargetLab:"",TargetAic:""}],k(),l(),m()}})["catch"](function(b){a.ice.loader.show=!1,i.error(b)})};n.closeModal=function(){b.close()},n.addNewChoice=function(){var a=n.choices.length+1;n.choices.push({id:a})},n.removeChoice=function(a){n.choices.splice(a,1)},n.submitForm=function(){var a={vf_uuid:n.vf_uuid,version:n.VFVersion,target_aic_uuid:n.TargetAic,ecomp_release:n.ECOMPRelease};d.updateVfs(a,n.vf_uuid).then(function(a){200===a.status&&b.close(a.status)})["catch"](function(a){i.error(a),f.setToast(a.status+": Error changing progress!","danger")})},n.update_deployment_target=function(){n.dtversion.uuid!=n.selected_dt_uuid&&(angular.forEach(n.dt_AIC_versions,function(a,b){a.uuid===n.selected_dt_uuid&&(n.dtversion=a)}),d.updateDeployTargets(n.engagement.uuid,n.selected_dt_uuid).then(function(b){a.ice.loader.show=!1})["catch"](function(b){a.ice.loader.show=!1,i.error(b)}),n.set_edit_mode("aic"))},n.update_ECOMP_release=function(){n.ecomp_release.uuid!=n.selected_ecomp_uuid&&(j.each(n.ECOMPReleases,function(a,b){a.uuid===n.selected_ecomp_uuid&&(n.ecomp_release=a)}),d.updateECOMPReleases(n.engagement.uuid,n.selected_ecomp_uuid).then(function(b){a.ice.loader.show=!1})["catch"](function(b){a.ice.loader.show=!1,i.error(b)}),n.set_edit_mode("ecomp"))},o()}angular.module("ice.modals").controller("validationDetailsModalController",["$rootScope","$uibModalInstance","vfcService","vfService","$stateParams","toastService","vf_uuid","usersService","$log","_",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this,i=function(){void 0!=c.engagement&&(h.vf=c.engagement.vf),j()};h.closeModal=function(){b.close()},h.json="",h.submitForm=function(){var a={name:h.json,vf_uuid:f};d.add(a).then(function(a){b.close(a.status)})["catch"](function(a){g.error(a),e.setToast(a.status+": Error changing progress!","danger")})};var j=function(){a.ice.loader.show=!0,d.get().then(function(b){a.ice.loader.show=!1,200===b.status&&(h.dtsites=b.data)})["catch"](function(b){a.ice.loader.show=!1,g.error(b)})};i()}angular.module("ice.modals").controller("detailedViewDtsitesModalController",["$rootScope","$uibModalInstance","$stateParams","dtsiteService","toastService","vf_uuid","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this,i=function(){h.description=null,h.checklist_name=f.name,h.state=f.state,h.action=e,h.modalText="pending"==h.state?"Are you sure you want to move the checklist state to Automation?":"Please use the button below to either approve or reject the checklist.
You can also add a log entry comment."};h.submitForm=function(e){var i={};null!=h.description?i.description=h.description:i.description="",e===!0?i.decline="False":i.decline="True",c.setState(f.uuid,i).then(function(c){200===c.status?(b.close(c.data),h.closeModal()):(d.setToast(c.error,"danger"),a.ice.loader.show=!1)})["catch"](function(a){g.error(a),d.setToast(a.status+": Error changing progress!","danger")})},h.closeModal=function(){b.close()},i()}angular.module("ice.modals").controller("stateDecisionModalController",["$rootScope","$uibModalInstance","checklistService","toastService","action","checklist","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this,i=function(){h.engagement_uuid=d,h.action=e,"edit"==e?c.get(d).then(function(a){200===a.status?(h.status=a.data,h.status_modal_description=h.status.description,h.eng_status_uuid=h.status.uuid):g.error(a)})["catch"](function(a){h.status=!1,g.error(a.message)}):h.status_modal_description=""};i(),h.submitForm=function(){var d={description:h.status_modal_description};"edit"==e?(d.eng_status_uuid=h.eng_status_uuid,c.update(h.engagement_uuid,d).then(function(c){200===c.status?(b.close(c.data),h.closeModal()):(f.setToast(c.error,"danger"),a.ice.loader.show=!1)})["catch"](function(a){f.setToast(a.message,"danger"),g.error(a.message)})):c.add(h.engagement_uuid,d).then(function(c){200===c.status?(b.close(c.data),h.closeModal()):(f.setToast(c.error,"danger"),a.ice.loader.show=!1)})["catch"](function(a){f.setToast(a.message,"danger"),g.error(a.message)})},h.closeModal=function(){b.close()}}angular.module("ice.modals").controller("StatusModalController",["$rootScope","$uibModalInstance","statusService","engagement_uuid","action","toastService","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this,h=function(){g.action=d,g.feedback_modal_description=""};h(),g.submitForm=function(){var h={description:g.feedback_modal_description};"add"==d&&c.add(h).then(function(c){200===c.status?(b.close(c.data),e.setToast("Feedback was sent successfully.","success")):(e.setToast(c.error,"danger"),a.ice.loader.show=!1)})["catch"](function(a){e.setToast(a.message,"danger"),f.error(a.message)})},g.closeModal=function(){b.close()}}angular.module("ice.modals").controller("FeedbackModalController",["$rootScope","$uibModalInstance","feedbackService","action","toastService","$log",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){b&&(c.upper_headline=b.upper_headline,c.upper_headline_value=b.upper_headline_value,c.headline=b.headline||"serviceprovider",c.message=b.message||"Are you sure?",c.closeCallback=b.closeCallback,c.approveText=b.approve||"Approve",c.cancelText=b.cancel||"Cancel",c.is_close_modal_button=b.is_close_modal_button,c.is_message=b.is_message)};c.closeModal=function(b){c.closeCallback&&c.closeCallback(b),a.close(b)},d()}angular.module("ice.modals").controller("generalPromptModalController",["$uibModalInstance","modalDetails",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){b&&(c.headline=b.headline||"General log modal",c.body=b.body||"There is no body")};d(),c.closeModal=function(){a.close()}}angular.module("ice.modals").controller("GeneralLogModalController",["$uibModalInstance","modalDetails",a])}(),function(){"use strict";function a(a,b,c,d){function e(){var a=5,c="";b.getPosts(a,c,["Announcement","News"]).then(function(a){f.recentPosts=a.data})["catch"](function(a){d.error(a)})}var f=this,g=function(){c?f.post=c:b.getLastAnnouncementPost().then(function(a){a&&a.data&&1===a.data.length&&(f.post=a.data[0])})["catch"](function(a){d.error(a)}),e()};f.closeModal=function(b){a.close(b)},f.loadSelectedPostData=function(a){a&&(f.post=a)},g()}angular.module("ice.modals").controller("cmsPostModalController",["$uibModalInstance","cmsService","post","$log",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){b&&(c.engagement=b)};c.closeModal=function(){a.dismiss()},c.archiveEngagement=function(){a.close(c.reason)},d()}angular.module("ice.modals").controller("archiveEngagementModalController",["$uibModalInstance","engagementDetails",a])}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.show_warning=!1;var h=function(){d.getEngagementLeads().then(function(a){g.engagementLeads=e.filter(a.data,function(a){return a.uuid}),g.selectedUserUuid=e.find(g.engagementLeads,["uuid",c])})["catch"](function(a){f.error(a),g.closeModal()})};g.closeModal=function(){a.dismiss()},g.onUserSelect=function(){g.selectedUserUuid&&a.close(g.selectedUserUuid)},h()}angular.module("ice.modals").controller("selectELModalController",["$uibModalInstance","excludeUuids","selectedOption","usersService","_","$log",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){c.engagement=b,e()};c.closeModal=function(){a.dismiss()},c.updateEngagement=function(){e(),a.close({engagement:c.engagement,status:c.status})};var e=function(){c.engagement.target_completion_date&&(c.engagement.target_completion_date=new Date(c.engagement.target_completion_date)),c.engagement.heat_validated_time&&(c.engagement.heat_validated_time=new Date(c.engagement.heat_validated_time)),c.engagement.image_scan_time&&(c.engagement.image_scan_time=new Date(c.engagement.image_scan_time)),c.engagement.aic_instantiation_time&&(c.engagement.aic_instantiation_time=new Date(c.engagement.aic_instantiation_time)),c.engagement.asdc_onboarding_time&&(c.engagement.asdc_onboarding_time=new Date(c.engagement.asdc_onboarding_time))};d()}angular.module("ice.modals").controller("updateEngagementStatusModalController",["$uibModalInstance","engagement",a])}(),function(){"use strict";function a(a,b){}angular.module("ice.main",[]).controller("MainController",a).config(["$mdDateLocaleProvider",function(a){a.formatDate=function(a){return a?moment(a).format("MMMM Do YYYY"):""},a.parseDate=function(a){var b=moment(a,"YYYY-MM-DD",!0);return b.isValid()?b.toDate():new Date(NaN)}}]),a.$inject=["$scope","$rootScope"]}(),function(){"use strict";function a(a){a.state("app.dashboard",{"abstract":!0,views:{"navigation@app":{templateUrl:"core/navigation/layouts/horizontal-navigation/navigation.html",controller:"NavigationController as vm"}},bodyClass:"dashboard"}).state("app.dashboard.dashboard",{url:"/dashboard/dashboard",views:{"content@app":{templateUrl:"main/dashboard/dashboard/dashboard.html",controller:"DashboardMainController as vm"}},params:{engagement_uuid:null,engagement:null,messagePass:null},bodyClass:"dashboard"}).state("app.dashboard.overview",{url:"/dashboard/overview",views:{"content@app":{templateUrl:"main/dashboard/overview/overview.html",controller:"OverviewMainController as vm"}},params:{engagement_uuid:null,engagement:null,messagePass:null},bodyClass:"dashboard"}).state("app.dashboard.detailedview",{url:"/dashboard/detailedview",views:{"content@app":{templateUrl:"main/dashboard/detailed-view/detailed-view.html",controller:"detailedViewController as vm"}},params:{engagement_uuid:null,engagement:null},bodyClass:"dashboard"}).state("app.dashboard.checklist",{url:"/dashboard/checklist",views:{"content@app":{templateUrl:"main/dashboard/checklist/checklist.html",controller:"DashboardChecklistController as vm"}},params:{engagement_uuid:null,sub_id:null,engagement:null},bodyClass:"dashboard"})}angular.module("ice.dashboard.main",["ice.dashboard.get-started-modal"]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=this;o.sortableOptions={handle:" .order-nextstep",axis:"y",update:function(a,b){f.order_next_steps(o.engagement.uuid,o.steps).then(function(a){200===a.status&&n.debug("updated")})["catch"](function(a){n.error(a)})}};var p=function(){k.setAnnouncementToast(),b.timeGapLocal=moment().format("z"),b.ampm=moment().format("A"),b.mom=moment().tz(moment.tz.guess()).format("z"),o.engagement=d.engagement,void 0!=o.engagement&&(o.me=h.getUserData(),g.getSingleEngagement(o.me.uuid,o.engagement.uuid).then(function(a){b.ice.loader.show=!1,200===a.status&&a.data&&""!==a.data&&(o.vf=a.data,o.is_service_provider_internal=o.vf.is_service_provider_internal,o.name=o.vf.name,o.manual_id=o.vf.engagement.engagement_manual_id,o.vf.git_repo_url&&-1!=o.vf.git_repo_url?o.git_repo_url=o.vf.git_repo_url:o.git_repo_url=!1,o.storage_bucket_url=o.manual_id+"_"+o.name.toLowerCase(),o.team=o.vf.engagement.engagement_team,o.me=h.getUserData(),o.stages=i.stages,o.stage=o.vf.engagement.engagement_stage,o.stage_num=0,o.set_stage_num(o.stage),o.in_overview_page=!0,o.uuid=o.engagement.uuid,o.progress=o.vf.engagement.progress,o.completion_date=o.vf.engagement.target_completion_date,o.starred=!1,o.isEngagmentLead=h.isUserInRole("el"),o.isEngagementEL=h.isEngagementEL(o.team),o.isAdmin=h.isAdmin(o.me),o.does_user_role_allow_action_array=[o.isAdmin,o.isEngagementEL],o.unremoveable_users_from_eng_team_array=[o.vf.engagement.reviewer.uuid,o.vf.engagement.peer_reviewer.uuid,o.vf.engagement.creator.uuid],null!=o.vf.engagement.contact_user&&o.unremoveable_users_from_eng_team_array.push(o.vf.engagement.contact_user.uuid),o.states=i.states,o.states_select=s(i.states),o.selected_state_filter=t(),o.steps=[],o.vf_name=o.vf.name,o.vf.engagement.starred_engagement.forEach(function(a){o.me.uuid==a.uuid&&(o.starred=!0)}),o.all_states=!1,o.all_files=!0,q(),o.initActivityLogs(),o.files=o.vf.files,o.files_filter_options=[],o.files_filter_options=o.files_filter_options.concat(o.files),o.files_filter_options.push("Any file"),o.chosen_files_filter=["Any file"],o.show_step=!0,o.status=!1,e.get(o.uuid).then(function(a){200===a.status?o.status=a.data:n.error(a)})["catch"](function(a){o.status=!1,n.error(a.message)}),o.progress_needed_data=u())})["catch"](function(a){b.ice.loader.show=!1,n.error(a)}))};o.set_stage_num=function(a){switch(a){case"Intake":o.stage_num=1;break;case"Active":o.stage_num=2;break;case"Validated":o.stage_num=3;break;case"Completed":o.stage_num=4}},o.checkIfAdmin=function(a){return h.isAdmin(a)},o.is_user_allowed=function(){return 1==c.includes(o.does_user_role_allow_action_array,!0)?!0:!1},o.is_able_to_delete=function(a){return!o.is_user_allowed()||c.includes(o.unremoveable_users_from_eng_team_array,a.uuid)||o.checkIfAdmin(a)?!1:!0},o.remove_user_from_eng=function(a){if(!o.is_able_to_delete(a))return l.setToast("Action is not allowed.","danger"),void(b.ice.loader.show=!1);var c=j.open({templateUrl:"main/modals/general-prompt-modal/general-prompt-modal.html",controller:"generalPromptModalController",controllerAs:"vm",resolve:{modalDetails:function(){return{upper_headline:"Remove user from engagement team: ",upper_headline_value:a.full_name,headline:"Are you sure you would like to remove the user out of the team members?",is_message:!1,message:"",approve:"Yes",cancelText:"No",is_close_modal_button:!0}}}});angular.element("body").click(),c.result.then(function(c){if(c){var d={eng_uuid:o.vf.engagement.uuid,user_uuid:a.uuid};g.remove_user_from_eng(d).then(function(a){b.ice.loader.show=!1,204===a.status&&b.$broadcast("onUpdateEngagements",{select:{uuid:o.engagement.uuid,page_type:"overview",sub_id:void 0}})})["catch"](function(a){b.ice.loader.show=!1,n.error(a)})}})},a.is_match_both_filters=function(){return function(a){var b=!1;return o.all_files&&o.all_states?b=!0:o.all_states&&o.is_contain_files(a)?b=!0:o.all_files&&o.is_same_state(a.state)?b=!0:o.is_contain_files(a)&&o.is_same_state(a.state)&&(b=!0),b?a:!1}},o.is_all_files=function(){o.all_files=-1!==o.chosen_files_filter.indexOf("Any file")},o.is_contain_files=function(a){if(a.files)for(var b=0;b1&&(b=a.vfc.split(", ").length,c+=b)):a.engagement_stage==o.statistic_stage_filter&&(d++,a.vfc.length>1&&("Validated"==a.engagement_stage||"Completed"==a.engagement_stage)&&(b=a.vfc.split(", ").length,c+=b))}),o.vfc_num=c,o.eng_num=d}})["catch"](function(b){a.ice.loader.show=!1,l.error(b)})},o.onStageChange=function(){o.page_num=1,o.searchEngagements()},o.onKeywordChange=function(){o.page_num=1,o.searchEngagements()},o.searchEngagements=function(){o.current_starting_offset=(o.page_num-1)*o.pagination_num_of_objects,o.postData={stage:o.search_stage,keyword:o.search_keyword,offset:o.current_starting_offset,limit:o.pagination_num_of_objects},d.getExpandedEngagements(o.postData).then(function(a){200===a.status&&a.data&&""!==a.data&&(o.vf_search_list=a.data.array,o.num_of_returned_items=a.data.num_of_objects,o.vf_search_list.forEach(function(a){var b={enable_edit:!1,completion_date:a.engagement__target_completion_date,ecomp_release:a.ecomp_release__name,vnf_version:a.version,aic_version:a.deployment_target__version,aic_instantiation_time:a.engagement__aic_instantiation_time,asdc_onboarding_time:a.engagement__asdc_onboarding_time,heat_validated_time:a.engagement__heat_validated_time, -image_scan_time:a.engagement__image_scan_time,engagement_uuid:a.engagement__uuid,manual_id:a.engagement__engagement_manual_id,name:a.vf__name,starred:!1};a.progress_needed_data=b,a.starred_users.forEach(function(b){o.me.uuid==b&&(a.progress_needed_data.starred=!0)})}),o.vf_display_list=o.vf_search_list,n())})["catch"](function(b){a.ice.loader.show=!1,l.error(b)})},o.goToEngagement=function(b){a.$broadcast("searchSelectEngagement",b)},o.exportEngagementCSV=function(){var b=o.search_stage||"",c=o.search_keyword||"";a.ice.loader.show=!0,d.exportEngagementsCSV(b,c).then(function(b){if(b&&b.data){var c=new i([b.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});h.saveAs(c,"serviceprovider.xlsx"),a.ice.loader.show=!1}})["catch"](function(b){a.ice.loader.show=!1,l.error(b)})},o.openCMSReadMoreModal=function(a){a?k.open({templateUrl:"main/modals/cms-post-modal/cms-post-modal.html",controller:"cmsPostModalController",controllerAs:"vm",size:"cms-post-read-more",resolve:{post:function(){return a}}}):l.warn("Cannot open cms post.")},p()}angular.module("ice.dashboard.dashboard",["angularUtils.directives.dirPagination","ngFileSaver"]).controller("DashboardMainController",["$rootScope","pageService","stepsService","vfService","usersService","iceConstants","localStorageService","FileSaver","Blob","cmsService","$uibModal","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){var j=this;j.data={};var k=b.engagement_uuid;j.checklistUuid=b.sub_id,j.selected_decision=!1;var l=function(){null!=j.checklistUuid&&d.getChecklist(j.checklistUuid).then(function(a){200===a.status&&(j.data=a.data,j.data.states=e.checklist_states,j.me=f.getUserData(),j.is_peer_reviewer=f.isPeerReviewer(j.me,a.data.checklist.engagement.peer_reviewer.uuid),j.data.checklist.associated_files?j.has_files=!0:j.has_files=!1,j.formatDecisions())})["catch"](function(a){return 410!==a.status?(i.error(a.message),!1):void c.$broadcast("onUpdateEngagements",{select:{uuid:b.engagement_uuid,view_type:"overview",sub_id:void 0}})})};j.formatDecisions=function(){var a=0;j.data.checklistDecisions=_.orderBy(j.data.checklistDecisions,"weight"),angular.forEach(j.data.checklistDecisions,function(b,c){a++,b.counter=a;var d=0;b.decisions=_.orderBy(b.decisions,"weight"),angular.forEach(b.decisions,function(b,e){d++,b.counter=a+"."+d,0==j.selected_decision&&(j.selected_decision=b,j.selectDecision(b));var f;switch(j.data.checklist.state){case"peer_review":f=b.peer_review_value;break;case"review":case"approval":case"handoff":case"closed":f=b.review_value}var g;switch(f){case"approved":g="sprite approved-cl";break;case"denied":g="sprite denied-cl";break;case"not_relevant":g="sprite not-relevant-cl"}var h;switch(b.lineitem.line_type){case"auto":h="sprite automation-state"}j.data.checklistDecisions[c].decisions[e]["selected-value"]=f,j.data.checklistDecisions[c].decisions[e].view_value=f,j.data.checklistDecisions[c].decisions[e].view_value_css=g,j.data.checklistDecisions[c].decisions[e].auto_icon_css=h})}),j.refreshStateOptions()},j.setDecision=function(a,b){d.putChecklistDecision(a.uuid,{value:b}).then(function(c){if(200===c.status){switch(j.data.checklist.state){case"peer_review":a.peer_review_value=b;break;case"review":a.review_value=b}j.formatDecisions()}})},j.refreshStateOptions=function(){var a=!1;j.is_able_to_approve=!0,angular.forEach(j.data.checklistDecisions,function(b,c){a||angular.forEach(b.decisions,function(b,c){a||"approved"!=b.view_value&&"not_relevant"!=b.view_value&&(j.is_able_to_approve=!1,a=!0)})})},j.stateAction=function(a){switch(a){case"approve":var b={};b.description="",b.decline="False",d.setState(j.data.checklist.uuid,b).then(function(a){200===a.status?c.$broadcast("onUpdateEngagements",{select:{uuid:k,page_type:"overview",sub_id:j.data.checklist.uuid}}):(h.setToast(a.error,"danger"),c.ice.loader.show=!1)})["catch"](function(a){i.error(a),h.setToast(a.status+": Error changing progress!","danger")});break;case"reject":j.openSetState(a,j.data.checklist);break;case"next_step":j.openNextSteps(j.data.checklist)}},j.formatDate=function(a){var b=moment().tz(moment.tz.guess()).format("z"),c="";return c=moment(a).local().format("YYYY-MM-DD hh:mm:ss A")+" "+b},j.submitDecisionAuditLog=function(){var a={description:j.selected_decision.new_audit_log_description};d.createAuditlogDecisionChecklist(j.selected_decision.uuid,a).then(function(a){200===a.status?(void 0==j.data.decisionAuditLogs[j.selected_decision.uuid]&&(j.data.decisionAuditLogs[j.selected_decision.uuid]=[]),j.data.decisionAuditLogs[j.selected_decision.uuid].push(a.data),j.selected_decision.new_audit_log_description=""):(h.setToast(a.error,"danger"),c.ice.loader.show=!1)})["catch"](function(a){h.setToast(a.message,"danger"),i.error(a.message)})},j.selectDecision=function(b,c){(j.selected_decision!=b||void 0===j.selected_decision.selected)&&(j.selected_decision.selected=!1,j.selected_decision=b,j.selected_decision.selected=!0,a.$$postDigest(function(){if(void 0!=c){var a=angular.element(c.target).prop("offsetHeight")+angular.element(c.target).prop("offsetTop"),b=angular.element("#line-item-extended").prop("offsetHeight"),d=a-b;d>0?angular.element("#line-item-extended").css("margin-top",20+d+"px"):angular.element("#line-item-extended").css("margin-top","")}}))},j.openNextSteps=function(a){var b=g.open({templateUrl:"main/modals/next-steps/next-steps.html",controller:"NextStepsModalController",controllerAs:"vm",size:"lg",resolve:{engagement_team:function(){return a.engagement.engagement_team},title:function(){return a.name},associated_files:function(){return a.repo_associated_files},engagement_uuid:function(){return a.engagement.uuid},checklist:function(){return a},nextstep:function(){return void 0}}});b.result.then(function(b){200===b&&c.$broadcast("onUpdateEngagements",{select:{uuid:k,page_type:"overview",sub_id:a.uuid}})},function(){})},j.openSetState=function(a,b){var d=g.open({templateUrl:"main/modals/checklist/state-approve-or-reject/state-approve-or-reject.html",controller:"stateDecisionModalController",controllerAs:"vm",resolve:{checklist:function(){return b},action:function(){return a}}});d.result.then(function(a){a&&c.$broadcast("onUpdateEngagements",{select:{uuid:k,page_type:"overview",sub_id:b.uuid}})},function(){})},j.openJenkinsLogModal=function(){g.open({templateUrl:"main/modals/general-log-modal/general-log-modal.html",controller:"GeneralLogModalController",controllerAs:"vm",size:"general-log-modal",resolve:{modalDetails:function(){return{headline:"Jenkins log",body:j.data.checklist.jenkins_log}}}})},j.auditLog=function(){var a={name:j.data.checklist.name,uuid:j.data.checklist.uuid,checklistAuditLogs:j.data.checklistAuditLogs},b=g.open({templateUrl:"main/modals/audit-log/audit-log.html",controller:"AuditLogModalController",controllerAs:"vm",size:"lg",resolve:{wizardData:function(){return a}}});b.result.then(function(a){a&&j.data.checklistAuditLogs.push(a)},function(){i.debug("Modal dismissed at: "+new Date)})},j.editChecklist=function(){var a={uuid:j.data.checklist.uuid,name:j.data.checklist.name,templates:j.data.checklist.templates,selectedTemplateUuid:j.data.checklist.template.uuid,selectedTemplateName:j.data.checklist.template.name,associatedFiles:j.data.checklist.associated_files,state:j.data.checklist.state},b=g.open({templateUrl:"main/modals/checklist/checklist.html",controller:"ChecklistModalController",controllerAs:"vm",size:"lg",resolve:{wizardData:function(){return a},engagementUuid:function(){return k},modal_type:function(){return"update"}}});b.result.then(function(a){a&&(j.data.checklist.name=a.checklist_name,j.data.checklist.associated_files=a.associated_files)})},l()}angular.module("ice.dashboard.checklist",[]).controller("DashboardChecklistController",["$scope","$stateParams","$rootScope","checklistService","iceConstants","usersService","$uibModal","toastService","$log",a])}(),function(){"use strict";angular.module("ice.dashboard.get-started-modal",["ngAnimate","ui.bootstrap","ice.activation.addVf"])}(),function(){"use strict";angular.module("ice.dashboard.get-started-modal").directive("getStartedModal",function(){return{restrict:"AEC",scope:{},link:function(a,b,c){a.$emit("openGettingStartedWizardLoaded")},controller:["$rootScope","$scope","$uibModal","toastService","$log",function(a,b,c,d,e){var f=this;f.data={},f.openModal=function(){d.clearToast();c.open({templateUrl:"main/dashboard/get-started-modal/wizard/wizard-container.html",controller:"ModalCtrl",controllerAs:"wizard",resolve:{wizardData:function(){return f.wizardData}},backdrop:"static"})},b.$on("openGettingStartedWizard",function(a,b){f.wizardData=b,f.openModal()})}],controllerAs:"gm"}}).controller("ModalCtrl",["$rootScope","$scope","$uibModalInstance","vfService","usersService","localStorageService","wizardData","toastService","$log","$i18next",function(a,b,c,d,e,f,g,h,i,j){function k(){if(a.ice.loader.show=!0,g.showActivationMessage&&h.setToast("You have successfully activated your account!","success",{displayFor:"modal"}),m.stepIndex=0,m.requiredStep)return m.steps.push(o[m.requiredStep]),m.setStep(m.steps[m.stepIndex]),void(a.ice.loader.show=!1);m.eng_uuid&&""!==m.eng_uuid||m.steps.push(o.addVF),m.user.is_service_provider_contact!==!0||m.is_service_provider_internal?m.user.is_service_provider_contact||m.steps.push(o.addSponsor):m.steps.push(o.addVendor),l(),m.steps.push(o.inviteMembers);var b=e.getUserData()||{},c=b.ssh_public_key;""!==m.user.ssh_public_key&&null!==m.user.ssh_public_key||""!==c&&null!==c||m.steps.push(o.addSSH),a.ice.loader.show=!1,m.setStep(m.steps[m.stepIndex])}function l(){d.getCompanies().then(function(a){if(200===a.status&&(m.companies=a.data,void 0!=m.companies))for(var b=0;b=a;a++)b.push({val:c(a)+"-"+f,nam:d(a)+" "+f});for(a=1;e>a;a++)b.push({val:c(a)+"-"+(f+1),nam:d(a)+" "+(f+1)});return b},c=function(a){var b=a;return 10>a&&(b="0"+a),b},d=function(a){var b;switch(a){case 1:b="January";break;case 2:b="February";break;case 3:b="March";break;case 4:b="April";break;case 5:b="May";break;case 6:b="June";break;case 7:b="July";break;case 8:b="August";break;case 9:b="September";break;case 10:b="October";break;case 11:b="November";break;case 12:b="December"}return b},e=function(a){return 10>a?"0"+a:a}}(),function(){"use strict";function a(a){a.state("app.addVendorContact",{url:"/addVendorContact",views:{"main@":{templateUrl:"core/layouts/full-page-with-header/full-page-with-header.html",controller:"MainController as vm"},"content@app.addVendorContact":{templateUrl:"main/activation/addVendorContact/addVendorContact.html",controller:"AddVendorContactController as vm"}},bodyClass:"addVendorContact"})}angular.module("ice.activation.addVendorContact",[]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c,d,e){var f=this;f.data={};var g=function(){e.ice.loader.show=!0,e.headerTitle="",e.headerSubTitle="",f.choices=[{VirtualFunction:"",TargetLab:"",TargetAic:"",is_service_provider_internal:""}],b.getCompanies().then(function(a){e.ice.loader.show=!1,200===a.status&&(f.companies=a.data)})["catch"](function(a){e.ice.loader.show=!1,d.error(a)})};f.submitForm=function(){f.data.company=f.data.company.uuid,e.ice.loader.show=!0,c.addVendorContact(f.data).then(function(b){e.ice.loader.show=!1,200===b.status&&(b.data.is_active?a.go("app.dashboard.overview"):a.go("app.resend_activation"))})["catch"](function(a){e.ice.loader.show=!1,f.Msg=response.status+" : "+response.statusText,f.bgColor="#FFEBEB",d.error(a)})},f.addNewChoice=function(){var a=f.choices.length+1;f.choices.push({id:a})},f.removeChoice=function(){var a=f.choices.length-1;f.choices.splice(a)},g()}angular.module("ice.activation.addVendorContact").controller("AddVendorContactController",["$state","vfService","usersService","$log","$rootScope",a])}(),function(){"use strict";function a(a){a.state("app.resend_activation",{url:"/resendActivation",views:{"main@":{templateUrl:"core/layouts/full-page-with-header/full-page-with-header.html",controller:"MainController as vm"},"content@app.resend_activation":{templateUrl:"main/activation/resendActivation/resendActivation.html",controller:"resendActivationController as vm"}},params:{message:null},bodyClass:"resend-activation"})}angular.module("ice.activation.resendActivation",[]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c,d,e){var f=this;f.data=[];var g=function(){c.headerTitle="Activate Your Account",c.headerSubTitle="Please follow the instructions below to activate your account.",d.params.message&&b.setToast(d.params.message,"danger"),f.activated=!1,f.showHideMsg=!1,f.showHideWait=!1};f.submitForm=function(){c.ice.loader.show=!0,a.resendActivationMail().then(function(a){c.ice.loader.show=!1,200===a.status})["catch"](function(a){c.ice.loader.show=!1,e.error(a)})},g()}angular.module("ice.activation.resendActivation").controller("resendActivationController",["usersService","toastService","$rootScope","$state","$log",a])}(),function(){"use strict";function a(a){a.state("app.terms",{url:"/terms",views:{"main@":{templateUrl:"core/layouts/full-page-with-header/full-page-with-header.html",controller:"MainController as vm"},"content@app.terms":{templateUrl:"main/activation/terms/terms.html",controller:"TermsController as vm"}},params:{message:null},bodyClass:"terms"})}angular.module("ice.activation.terms",[]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a){var b=this;b.data={},a.headerTitle="Terms of Service",a.headerSubTitle="Last updated 2016-06-10"}angular.module("ice.activation.terms").controller("TermsController",["$rootScope",a])}(),function(){"use strict";function a(a){a.state("app.contactus",{url:"/contactUs",views:{"main@":{templateUrl:"core/layouts/full-page-with-header/full-page-with-header.html",controller:"MainController as vm"},"content@app.contactus":{templateUrl:"main/activation/contactUs/contactUs.html",controller:"ContactUsController as vm"}},bodyClass:"contact-us"})}angular.module("ice.contactUs",[]).config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a){a.headerTitle="Contact Us",a.headerSubTitle="Please fill in the details below"}angular.module("ice.contactUs").controller("ContactUsController",["$rootScope",a])}(),function(){"use strict";function a(a){a.state("app.account",{url:"/account",views:{"content@app":{templateUrl:"main/dashboard/account/account.html",controller:"DashboardAccountController as vm"},"navigation@app":{templateUrl:"core/navigation/layouts/account-navigation/navigation.html",controller:"accountNavigationController as vm"}},params:{engagement_uuid:null},bodyClass:"account"}).state("app.account.notifications",{url:"/account/notifications",views:{"content@app":{templateUrl:"main/dashboard/account/notifications/notifications.html",controller:"DashboardNotificationsController as vm"}},bodyClass:"notifications"}).state("app.account.userProfile",{url:"/account/userProfile",views:{"content@app":{templateUrl:"main/dashboard/account/user-profile-settings/user-profile-settings.html",controller:"accountUserProfileSettingsController as vm"}},bodyClass:"account"})}angular.module("ice.dashboard.account").config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c,d,e,f){var g=this;g.data={};var h=function(){if(g.user=b.getUserData(),void 0==g.user)return void a.go("app.login");var h=g.user.uuid;e.ice.loader.show=!0,b.getIceUser(h).then(function(a){200===a.status?(g.data.full_name=a.data.full_name,g.data.email=a.data.email,g.data.phone_number=a.data.phone_number,g.data.password="",g.data.ssh_key=a.data.ssh_public_key,g.data.company=a.data.company.name,g.data.access_key=a.data.rgwa_access_key,g.data.access_secret="•••••••••••••••",e.ice.loader.show=!1):(f.setToast("Error getting account","danger"),d.error("Error getting account: "+uuid),e.ice.loader.show=!1)})["catch"](function(a){f.setToast(a.message,"danger"),d.error(a.message)}),c.getCompanies().then(function(a){200===a.status&&(g.companies=a.data)})["catch"](function(a){d.error(a.message)})};h(),g.getAccessSecret=function(){b.getRGWASecret().then(function(a){200===a.status?g.data.access_secret=a.data.rgwa_secret_key:(f.setToast("Error getting user's access secret","danger"),d.error("Error getting access secret: "+uuid),e.ice.loader.show=!1)})["catch"](function(a){f.setToast(a.message,"danger"),d.error(a.message)})},g.submitForm=function(){var a=b.getUserData();b.updateAccount(a.uuid,g.data).then(function(a){200===a.status&&f.setToast("Account was updated successfully!","success")})["catch"](function(a){f.setToast(a.message.detail,"danger")})}}angular.module("ice.dashboard.account").controller("DashboardAccountController",["$state","usersService","vfService","$log","$rootScope","toastService",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g){var h=this;h.data={};var i=function(){return b.setPage("notification"),e.timeGapLocal=moment().format("z"),e.ampm=moment().format("A"),e.mom=moment().tz(moment.tz.guess()).format("z"),h.pagination_num_of_objects=10,h.current_starting_offset="0",h.page_num=1,h.user=c.getUserData(),void 0==h.user?void a.go("app.login"):void h.getNotifications(!0)};h.getNotifications=function(a){var b=h.user.uuid;e.ice.loader.show=!0,h.current_starting_offset=(h.page_num-1)*h.pagination_num_of_objects,c.getNotificationsDescription(h.user.uuid,h.current_starting_offset,h.pagination_num_of_objects).then(function(i){200===i.status?(h.notifications=i.data.serilizedActivitySet,h.num_of_returned_items=i.data.num_of_objects,h.notifications_display_list=h.notifications,a&&c.resetNotificationNum(b).then(function(a){200===a.status&&f.$emit("eventClearNotifications",0)})["catch"](function(a){d.setToast(a.message,"danger"), -e.ice.loader.show=!1,g.error(a)}),e.ice.loader.show=!1):(d.setToast(i.error,"danger"),e.ice.loader.show=!1)})["catch"](function(a){d.setToast(a.message,"danger"),e.ice.loader.show=!1,g.error(a)})},h.delNotification=function(a){for(var b=0,f=0;f0?angular.element("#line-item-extended").css("margin-top",20+c+"px"):angular.element("#line-item-extended").css("margin-top","")}}))},i.addLineItem=function(b){if(b){var c=a.maxBy(b.lineItems,function(a){return a.weight})+1,d={uuid:"newEntity",name:"Untitled line item",description:"Please add a description",weight:c,validation_instructions:"Please add validation instructions for the line item."};b.lineItems.push(d)}},i.addSection=function(){if(i.template){var b=a.maxBy(i.template.sections,function(a){return a.weight})+1,c={uuid:"newEntity",name:"Untitled section",description:"Section added from portal",validation_instructions:"valid instructions",weight:b,lineItems:[]};i.template.sections.push(c)}},i.deleteLineItem=function(b){a.remove(i.selectedSection.lineItems,function(a){return b===a}),l()},i.isSaveInvalid=function(){var b=!1;return i.template&&(b=void 0!=a.find(i.template.sections,function(a){return 0===a.lineItems.length})),b};var k=function(){b.$watch("vm.template.name",function(a,b){d.templateName=a},!0)},l=function(){i.selectedSection=i.template.sections&&i.template.sections.length>0?i.template.sections[0]:void 0,i.selectedLineItem=i.selectedSection?i.selectedSection.lineItems[0]:void 0,angular.element("#line-item-extended").css("margin-top","")},m=function(){i.template&&(i.template.sections=a.orderBy(i.template.sections,"weight"),a.forEach(i.template.sections,function(b){b.lineItems=a.orderBy(b.lineItems,"weight")}))};j()}angular.module("ice.main.admin").controller("checklistTemplateController",["_","$scope","checklistService","$stateParams","toastService","$uibModal","$log",a])}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i){var j=this,k=function(){a.timeGapLocal=moment().format("z"),a.ampm=moment().format("A"),a.mom=moment().tz(moment.tz.guess()).format("z"),j.is_aic_edit_mode=!1,j.is_ecomp_edit_mode=!1,j.aic_loaded=!1,j.ecomp_loaded=!1,void 0!=b.engagement&&(j.engagement=b.engagement),void 0!=j.engagement&&(j.me=e.getUserData(),g.getSingleEngagement(j.me.uuid,j.engagement.uuid).then(function(b){if(a.ice.loader.show=!1,200===b.status&&b.data&&""!==b.data){var c=b.data;j.engagement_manual_id=c.engagement.engagement_manual_id,j.vf_name=c.name,j.vf_version=c.version,j.vf_uuid=c.uuid,j.ecomp_release=c.ecomp_release,j.target_lab=new Date(c.target_lab_entry_date),j.dtversion=c.deployment_target,j.selected_dt_uuid=j.dtversion.uuid,j.selected_ecomp_uuid=j.ecomp_release.uuid,j.me=e.getUserData(),j.name=j.engagement.name,j.isEngagementEL=e.isEngagementEL(c.engagement.engagement_team),j.isAdmin=e.isAdmin(j.me),l(),m()}})["catch"](function(b){a.ice.loader.show=!1,h.error(b)}))};j.addVfc=function(){var a=f.open({templateUrl:"main/modals/detailed-view/vfc/detailed-view-vfc-modal.html",controller:"detailedViewVFCModalController",controllerAs:"vm",resolve:{vf_uuid:function(){return j.vf_uuid}}});a.result.then(function(a){a&&m()})},this.personArray=[j.dtversion,j.vf_uuid],j.editValidationDetails=function(){var a=f.open({templateUrl:"main/modals/validation-details/detailed-view-validation-details-modal.html",controller:"validationDetailsModalController",controllerAs:"vm",resolve:{vf_uuid:function(){return j.vf_uuid}}});a.result.then(function(a){a&&k()})},j.addDTS=function(){if(j.isEngagementEL||j.isAdmin){var a=f.open({templateUrl:"main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.html",controller:"detailedViewDtsitesModalController",controllerAs:"vm",resolve:{vf_uuid:function(){return j.vf_uuid}}});a.result.then(function(a){a&&200===a&&l()})}},j.changeTargetLabEntry=function(){var a=f.open({templateUrl:"main/modals/target-lab-entry/change-lab-entry-date.html",controller:"ChangeLabEntryDateModalController",controllerAs:"vm",resolve:{targetLabDate:function(){return j.target_lab},engagementUuid:function(){return j.engagement.uuid}}});a.result.then(function(a){a&&(j.target_lab=new Date(a.target_date),h.debug("data.target_date",a.target_date),h.debug("vm.target_lab",j.target_lab))},function(){h.error("Modal dismissed at: "+new Date)})},j.deleteVfc=function(a){c["delete"](a,j.vf_uuid).then(function(a){204===a.status&&m()})["catch"](function(a){h.error(a)})},j.deleteDTSite=function(a,b){d["delete"](j.vf_uuid,b).then(function(a){204===a.status&&l()})["catch"](function(a){h.error(a)})};var l=function(){(j.isEngagementEL||j.isAdmin)&&(a.ice.loader.show=!0,d.getVFSites(j.vf_uuid).then(function(b){a.ice.loader.show=!1,200===b.status&&(j.dtsites=b.data)})["catch"](function(b){a.ice.loader.show=!1,h.error(b)}))},m=function(){a.ice.loader.show=!0,c.get(j.vf_uuid).then(function(b){a.ice.loader.show=!1,200===b.status&&(j.vfcs=b.data)})["catch"](function(b){a.ice.loader.show=!1,h.error(b)})};k()}angular.module("ice.dashboard.main").controller("detailedViewController",["$rootScope","$stateParams","vfcService","dtsiteService","usersService","$uibModal","vfService","$log","_",a])}(),function(){"use strict";function a(a){a.state("app.documentation",{views:{"navigation@app":{templateUrl:"core/navigation/layouts/documentation-navigation/navigation.html",controller:"documentationNavigationController as vm"},"sidebar@app":{templateUrl:"main/documentation/sidebar/documentation.sidebar.html"}},bodyClass:"documentation",params:{displaySidebar:!0}}).state("app.documentation.page",{url:"/documentation",views:{"content@app":{templateUrl:"main/documentation/documentation.html",controller:"documentationController as vm"}},bodyClass:"documentation",params:{displaySidebar:!0,page_id:void 0}})}angular.module("ice.documentation").config(a),a.$inject=["$stateProvider"]}(),function(){"use strict";function a(a,b,c){function d(){b.page_id&&a.getPage(b.page_id).then(function(a){a&&a.data&&(e.pageId=b.page_id,e.pageTitle=a.data.title,e.pageContent=a.data.content,e.publishDate=a.data.publish_date)})["catch"](function(a){c.error(a)})}var e=this,f=function(){d()};f()}angular.module("ice.documentation").controller("documentationController",["cmsService","$stateParams","$log",a])}(),function(){"use strict";function a(a,b){var c=this,d=function(){b.getIceUser().then(function(a){c.receiveEmails=a.data.regular_email_updates,c.receiveEmailsEveryTime=a.data.email_updates_on_every_notification,c.receiveDigestEmails=a.data.email_updates_daily_digest,c.receiveNotifications=c.receiveEmailsEveryTime||c.receiveDigestEmails})["catch"](function(b){a.setToast(b.message,"danger"),$log.error(b.message)})};c.submitForm=function(){var d=b.getUserData(),e={};e.regular_email_updates=c.receiveEmails,e.email_updates_on_every_notification=c.receiveEmailsEveryTime,e.email_updates_daily_digest=c.receiveDigestEmails,e.company=d.company.name,e.full_name=d.full_name,e.email=d.email,e.phone_number=d.phone_number,b.updateAccount(d.uuid,e).then(function(b){200===b.status&&a.setToast("User profile settings was updated successfully!","success")})["catch"](function(b){a.setToast(b.message.detail,"danger")})},c.changeReceiveNotifications=function(){c.receiveNotifications||(c.receiveEmailsEveryTime=!1,c.receiveDigestEmails=!1)},d()}angular.module("ice.dashboard.account").controller("accountUserProfileSettingsController",["toastService","usersService",a])}(),angular.module("ice").run(["$templateCache",function(a){"use strict";a.put("main/activation/activate/activateUser.html",'
'),a.put("main/activation/addVendorContact/addVendorContact.html",'
Please select a company
Name is a required field. Full Name is too short. Full Name is too long.
Email is a required field. Enter a valid email.
Phone is a required field. Phone is too short. Phone is too long. Phone must consist of numbers only.
 I agree to receive regular email updates.
 I accept the AT&T\'s {{\'program.name\' | i18next}} Terms of Service and Privacy Policy.
reCAPTCHA is invalid.
'),a.put("main/activation/addVf/addVf.html",'
Use the form below to add your VF.Try to be as accurate as you can around the information to make sure the validation can accomplished as possible.
VF Name
VF Name can be alphanumeric or/and Hyphen

Key Metadata

Target Lab Entry Date
The virtual function is only developed internally inside AT&T.
'),a.put("main/activation/contactUs/contactUs.html",'
'),a.put("main/activation/inviteMembers/inviteMembers.html",'
Email is a required field. Enter a valid email.
Invite another team member
'),a.put("main/activation/login/login.html",'
'), -a.put("main/activation/register/register.html",'
Please select a company
Name is a required field. Full Name is too short. Full Name is too long. Full Name must be alphanumeric
Email is a required field. Enter a valid email.
Phone is a required field. Phone is too short. Phone is too long. Phone format invalid
Password is a required field. Password is too short. Password is too long.
 I agree to receive regular email updates from AT&T {{\'program.name\' | i18next}}.
{{PleaseFill}}
'),a.put("main/activation/resendActivation/resendActivation.html",'

You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your email address.

Please note that sometimes activation emails end up in users spam/junk folders, so please check there.

If you have not received it, please click the resend the Activation Email button below.

'),a.put("main/activation/resetPassword/resetPassword.html",'
Email is a required field. Enter a valid email.
'),a.put("main/activation/terms/terms.html",'

SP Terms

'),a.put("main/activation/updatePassword/updatePassword.html",'
Password is required field. Password is too short. Password is too long.
Confirm password is required field. Passwords do not match.
'),a.put("main/admin/checklist-template/checklist-template.html",'

Master Checklist Template: {{vm.template.name}}
Template name is a required field. Template name is too short. Template name is too long.

Editing a master checklist template will affect all checklists currently created of that type and will also restart the validation for all active engagements.
  • Section {{$index+1}}: {{section.name}}
    Section name is a required field. Section name is too short. Section name is too long.

    • {{$parent.$index+1}}.{{$index+1}} {{lineItem.name}}
       
    • Add Another line item
Add Another Section
'),a.put("main/dashboard/account/account.html",'

Account

Your Storage Credentials

Access Key:
{{vm.data.access_key}}
Access Secret (Show)
{{vm.data.access_secret}}
'), -a.put("main/dashboard/account/notifications/notifications.html",'

Notifications

'),a.put("main/dashboard/account/user-profile-settings/user-profile-settings.html",'

Settings

'),a.put("main/dashboard/checklist/checklist.html",'

Checklist: {{vm.data.checklist.name}}

  • Audit Log ({{vm.data.checklistAuditLogs.length}})
  • Jenkins Log
  • Section {{section.counter}}: {{section.section.name}}

    • {{decision.counter}} {{decision.lineitem.name}}
'),a.put("main/dashboard/dashboard/dashboard.html",'

Statuses

Stage
Export to Excel >>
'),a.put("main/dashboard/detailed-view/detailed-view.html",'

{{vm.engagement_manual_id + \': \'}}{{vm.vf_name}}

Validation Details
ECOMP Release: {{vm.ecomp_release.name}}
Target AIC Version:{{vm.dtversion.version}}
VF Version: {{vm.vf_version}}
Target Lab Entry

{{vm.target_lab | date:\'shortDate\'}}

Deployment Targets
  • {{dts.name}}
Virtual Function Components
  • {{vfc.name +\' (\' + vfc.external_ref_id + \')\'}}
'),a.put("main/dashboard/get-started-modal/get-started-modal.html",''),a.put("main/dashboard/get-started-modal/wizard/wizard-container.html",'
'), -a.put("main/dashboard/main/main.html",'

{{vm.name}}

GIT: {{vm.git_repo_url}}

Next Steps

Files States
  • {{step.last_updater && step.last_updater.full_name || step.creator.full_name}}  {{step.last_update_type}}:  {{(step.last_update_time) | date2: \'EEEE MMMM doo yyyy\'}} at {{(step.last_update_time) | date: \'hh:mm\' : timeGapLocal }} {{ampm}} {{mom}}
    {{(step[\'due_date\']) | date2: \'EEEE MMMM doo yyyy\'}}
    Associated Files ({{step.files.length}})

Current Status

Last updated {{(vm.status.update_time) | date2: \'EEEE MMMM doo yyyy\'}} at {{(vm.status.update_time) | date: \'hh:mm\' : timeGapLocal }} {{ampm}} {{mom}} by {{vm.status.creator.full_name}}

{{vm.status.description == undefined && \'No status update has been provided yet.\' || vm.status.description }}

Team Members

Activity Log

'),a.put("main/dashboard/overview/overview.html",'
GIT: {{vm.git_repo_url}} STORAGE BUCKET: {{vm.storage_bucket_url}}

Next Steps

Files States
  • {{step.engagement ? (step.last_updater && step.last_updater.full_name || step.creator.full_name) : "System Next Step"}}  {{step.last_update_type}}:  {{(step.last_update_time) | date2: \'EEEE MMMM doo yyyy\'}} at {{(step.last_update_time) | date: \'hh:mm\' : timeGapLocal }} {{ampm}} {{mom}}
    {{(step[\'due_date\']) | date2: \'EEEE MMMM doo yyyy\'}}
    Associated Files
  • No next steps matching filtered results.

Target Completion

{{vm.completion_date | date:\'shortDate\'}}

Current Status
Team Members
Activity Log
'),a.put("main/documentation/documentation.html",'

{{vm.pageTitle}}

Updated at {{vm.publishDate | date2: \'EEEE MMMM doo yyyy\'}}
'),a.put("main/documentation/sidebar/documentation.sidebar.html",' '),a.put("main/errors/404.html",' Page Not Found :(

Not found :(

Sorry, but the page you were trying to view does not exist.

It looks like this was the result of either:

  • a mistyped address
  • an out-of-date link
'),a.put("main/modals/archive-engagement-modal/archive-engagement-modal.html",'
'), -a.put("main/modals/audit-log/audit-log.html",' '),a.put("main/modals/change-date/change-date.html",'
'),a.put("main/modals/change-progress/change-progress.html",'
'),a.put("main/modals/checklist/checklist.html",' '),a.put("main/modals/checklist/state-approve-or-reject/state-approve-or-reject.html",'
Inserted text should not include any special chars such as: \\%_*."
'),a.put("main/modals/cms-post-modal/cms-post-modal.html",'
Most recent news & announcements
  • {{post.title}}Posted at {{post.publish_date | date2: \'EEEE MMMM doo yyyy\'}} by {{post.user.username}}
'),a.put("main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.html",'
'),a.put("main/modals/detailed-view/vfc/detailed-view-vfc-modal.html",' '),a.put("main/modals/feedback/feedback.html",' '),a.put("main/modals/general-log-modal/general-log-modal.html",'
'), -a.put("main/modals/general-prompt-modal/general-prompt-modal.html",' '),a.put("main/modals/next-steps/next-steps.html",' '),a.put("main/modals/select-el-modal/select-el-modal.html",'
'),a.put("main/modals/set-eng-stage/set-eng-stage-modal.html",' '),a.put("main/modals/set-eng-stage/set_eng_stage_modal.html",'
'),a.put("main/modals/status/status.html",' '),a.put("main/modals/target-lab-entry/change-lab-entry-date.html",'
'),a.put("main/modals/update-engagement-status-modal/update-engagement-status-modal.html",'
'),a.put("main/modals/validation-details/detailed-view-validation-details-modal.html",' '), -a.put("core/layouts/dashboard/dashboard.html",'
'),a.put("core/layouts/full-page-with-header/full-page-with-header.html",'

'),a.put("core/navigation/layouts/account-navigation/navigation.html",'

Profile

  • Account»
  • Settings»
  • Notifications»
'),a.put("core/navigation/layouts/admin-navigation/navigation.html",'

Admin

'),a.put("core/navigation/layouts/documentation-navigation/navigation.html",'

Documentation

'),a.put("core/navigation/layouts/horizontal-navigation/navigation.html",'

Engagements

'),a.put("core/toolbar/layouts/horizontal-navigation/toolbar.html",'
{{vm.notifications}}
'),a.put("directives/ice-announcement/ice-announcement.html",' '),a.put("directives/ice-loader/ice-loader.html",'
'),a.put("directives/ice-news-and-announcement/ice-news-and-announcement.html",'
News & Announcements

    There are no posts.

  • {{post.title}}

    Posted at {{post.publish_date | date2: \'EEEE MMMM doo yyyy\'}} by {{post.user.username}}

'), -a.put("directives/ice-toast/ice-toast.html",' '),a.put("directives/ice-tooltip/ice-tooltip.html",'
Did you know?

{{tipContent.excerpt}}

'),a.put("directives/progress/progress.html",'
Progress {{data.manual_id}}: {{data.name}}
{{progress}} %
Target AIC Version: {{data.aic_version}} ECOMP Release: {{data.ecomp_release}} VNF Version:
Heat Validated:{{data.heat_validated_time | date:\'shortDate\'}}
Image Scan:{{data.image_scan_time | date:\'shortDate\'}}
AIC Instantiation:{{data.aic_instantiation_time | date:\'shortDate\'}}
ASDC Onboarding:{{data.asdc_onboarding_time | date:\'shortDate\'}}
'),a.put("directives/step-stages/step-stages.html",'
{{const.intake}}
{{const.active}}
{{const.validated}}
{{const.completed}}
')}]); diff --git a/vvp/dist/scripts/vendor.30972ab5.js b/vvp/dist/scripts/vendor.30972ab5.js new file mode 100644 index 00000000..af036833 --- /dev/null +++ b/vvp/dist/scripts/vendor.30972ab5.js @@ -0,0 +1,51 @@ +if(function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b="length"in a&&a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return _.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ta.test(c)?_.parseJSON(c):c}catch(e){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=_.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||_("