function configure(n,t,i,r,u,f){r.appendToBody=!0;f.setStorageType("sessionStorage");t.otherwise({redirectTo:"/"});var e={MustLogin:function(n,t,i,r){n.isUserAuthenticated().then(function(){return},function(){r.addAlert("You must sign in to access this page.","info");t.path("/saml");return});return},RedirectLogin:function(n,t,i,r){if(n.isGuest()||n.isAuthorized("User")){if(n.isGuest()){r.addAlert("You are logged in as a guest.  Your data will not be permanently saved.","info");return}}else{r.addAlert("Please login first.","info");return}n.isUserAuthenticated().then(function(){return},function(){r.addAlert("Sign in to ensure your data is saved.","info");t.path("/saml");return});return},SuperAdmin:function(n,t,i){n.isAuthorized("SuperAdmin")||(i.addAlert("You are not authorized to view this resource.","danger"),t.path("/"));return},SysAdmin:function(n,t,i){n.isAuthorized("SuperAdmin,System Administrator")||(i.addAlert("You are not authorized to view this resource.","danger"),t.path("/"));return},Helpdesk:function(n,t,i){n.isAuthorized("Helpdesk")||(i.addAlert("You are not authorized to view this resource.","danger"),t.path("/"));return},CreateJobData:function(n,t,i){n.isAuthorized(null,"CreateJobData")||(i.addAlert("You are not authorized to view this resource.","danger"),t.path("/"));return},EditJobData:function(n,t,i){n.isAuthorized(null,"EditJobData")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},DeleteJobData:function(n,t,i){n.isAuthorized(null,"DeleteJobData")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},CreateCareerPath:function(n,t,i){n.isAuthorized(null,"CreateCareerPath")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},DeleteCareerPath:function(n,t,i){n.isAuthorized(null,"DeleteCareerPath")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},EditCareerPath:function(n,t,i){n.isAuthorized(null,"EditCareerPath")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},SaveCareerPath:function(n,t,i){n.isAuthorized(null,"SaveCareerPath")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},CreateAssessment:function(n,t,i){n.isAuthorized(null,"CreateAssessment")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},EditAssessment:function(n,t,i){n.isAuthorized(null,"EditAssessment")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},DeleteAssessment:function(n,t,i){n.isAuthorized(null,"DeleteAssessment")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},User:function(n,t,i){n.isAuthorized("User")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},CadreManager:function(n,t,i){n.isAuthorized("CadreManager")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))},ProspectiveEmployee:function(n,t,i){n.isAuthorized("ProspectiveEmployee")||(i.addAlert("You are not authorized to view this resource","danger"),t.path("/"))}};t.when("/",{templateUrl:"app/home/views/home.html"}).when("/login",{templateUrl:"app/home/views/loginSSO.html",controller:"loginController",controllerAs:"login"}).when("/guestLogin",{templateUrl:"app/home/views/loginSSO.html",controller:"loginController",controllerAs:"login"}).when("/help",{templateUrl:"/app/home/views/help.html"}).when("/experienceEvaluation",{templateUrl:"/app/home/views/experienceEvaluation.html",controller:"experienceEvaluationController",controllerAs:"vm"}).when("/resources",{templateUrl:"/app/home/views/resources.html",controller:"resourcesController",controllerAs:"vm",resolve:{resourcePrepService:["Resources","$q",function(n,t){var i=n.query();return t.all({resources:i.$promise})}]}}).when("/user",{templateUrl:"/app/home/views/dashboard.html",controller:"dashboardController",controllerAs:"user",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}});t.when("/setup",{templateUrl:"/app/setup/views/index.html",resolve:{sysAdmin:["femaAuth","$location","alertService",function(n,t,i){e.SysAdmin(n,t,i)}]}}).when("/setup/users",{templateUrl:"/app/setup/views/users.html",controller:"usersController",controllerAs:"vm"}).when("/setup/users/:id/edit",{templateUrl:"/app/setup/views/editUser.html",controller:"usersController",controllerAs:"vm"}).when("/setup/claims",{templateUrl:"/app/setup/views/claims.html",controller:"claimsController",controllerAs:"claims",resolve:{claimPrepService:["femaAuth","$location","alertService","$q","Claims","Roles",function(n,t,i,r,u,f){e.SuperAdmin(n,t,i);var o=u.query(),s=u.queryRoles(),h=f.query();return r.all({claims:o.$promise,claimsInRoles:s.$promise,roles:h.$promise})}]}}).when("/setup/roles",{templateUrl:"/app/setup/views/roles.html",resolve:{superAdmin:["femaAuth","$location","alertService",function(n,t,i){e.SuperAdmin(n,t,i)}]}}).when("/setup/manageEvaluations",{templateUrl:"/app/setup/views/manageEvaluations.html",controller:"satisfactionQuestionsController",controllerAs:"vm",resolve:{evaluationPrepService:["femaAuth","$location","alertService","$q","Experience",function(n,t,i,r,u){e.SysAdmin(n,t,i);var f=u.query();return r.all({evaluationQuestions:f.$promise})}]}}).when("/setup/positions/new",{templateUrl:"/app/setup/views/newPosition.html",resolve:{sysAdmin:["femaAuth","$location","alertService",function(n,t,i){e.SysAdmin(n,t,i)}]}}).when("/setup/positions",{templateUrl:"/app/setup/views/positions.html",controller:"positionsController",controllerAs:"vm",resolve:{positionPrepService:["femaAuth","$location","alertService","$q","Positions",function(n,t,i,r,u){e.SysAdmin(n,t,i);var f=u.getVMs();return r.all({positions:f.$promise})}]}}).when("/setup/positions/:id",{templateUrl:"/app/setup/views/newPosition.html",resolve:{sysAdmin:["femaAuth","$location","alertService",function(n,t,i){e.SysAdmin(n,t,i)}]}}).when("/setup/functionalAreas",{templateUrl:"/app/setup/views/functionalAreas.html",controller:"functionalAreaController",controllerAs:"vm",resolve:{functionalAreaPrepService:["femaAuth","$location","alertService","CareerTypes","FunctionalArea","$q",function(n,t,i,r,u,f){e.SysAdmin(n,t,i);var o=u.query(),s=r.query();return f.all({functionalAreas:o.$promise,careerTypes:s.$promise})}]}}).when("/setup/careerTracks",{templateUrl:"/app/setup/views/careerTracks.html",controller:"careerTrackController",controllerAs:"vm",resolve:{careerTrackPrepService:["femaAuth","$location","alertService","CareerTracks","FunctionalArea","$q",function(n,t,i,r,u,f){e.SysAdmin(n,t,i);var o=r.query(),s=u.getNonAdmin();return f.all({careerTracks:o.$promise,functionalAreas:s.$promise})}]}}).when("/setup/careerTracks/new",{templateUrl:"/app/setup/views/newCareerTrack.html",resolve:{sysAdmin:["femaAuth","$location","alertService",function(n,t,i){e.SysAdmin(n,t,i)}]}}).when("/setup/reports",{templateUrl:"/app/setup/views/adminReports.html",controller:"reportsController",controllerAs:"vm"}).when("/setup/careerPlanMetrics/:from/:to/:showAllDates",{templateUrl:"/app/setup/views/careerPlanMetrics.html",controller:"careerPlanMetricsController",controllerAs:"vm"}).when("/setup/userAssessmentMetrics/:from/:to/:showAllDates",{templateUrl:"/app/setup/views/userAssessmentMetrics.html",controller:"assessmentMetricsController",controllerAs:"vm"}).when("/setup/careerPlanMetricsPrint/:from/:to/:showAllDates",{templateUrl:"/app/setup/views/careerPlanPrintMetrics.html",controller:"careerPlanMetricsPrintController",controllerAs:"vm"}).when("/setup/userAssessmentPrintMetrics/:from/:to/:showAllDates",{templateUrl:"/app/setup/views/userAssessmentPrintMetrics.html",controller:"assessmentMetricsPrintController",controllerAs:"vm"}).when("/setup/evaluations/:from/:to/:showAllDates",{templateUrl:"/app/setup/views/evaluations.html",controller:"evaluationsController",controllerAs:"vm",resolve:{sysAdmin:["femaAuth","$location","alertService",function(n,t,i){e.SysAdmin(n,t,i)}]}}).when("/setup/evaluationsPrint/:from/:to/:showAllDates",{templateUrl:"/app/setup/views/evaluationsPrintMetrics.html",controller:"evaluationsPrintController",controllerAs:"vm",resolve:{sysAdmin:["femaAuth","$location","alertService",function(n,t,i){e.SysAdmin(n,t,i)}]}}).when("/setup/behaviors",{templateUrl:"/app/setup/views/behavior.html",controller:"behaviorController",controllerAs:"vm",resolve:{behaviorPrepService:["femaAuth","$location","alertService","Behaviors","$q",function(n,t,i,r,u){e.SysAdmin(n,t,i);var f=r.query();return u.all({behaviors:f.$promise})}]}}).when("/setup/selfReflectionQuestions",{templateUrl:"/app/setup/views/selfReflectionQuestions.html",controller:"selfReflectionQuestionsController",controllerAs:"vm",resolve:{selfReflectionQuestionPrepService:["femaAuth","$location","alertService","SR","$q",function(n,t,i,r,u){e.SysAdmin(n,t,i);var f=r.query();return u.all({questions:f.$promise})}]}}).when("/setup/manageCompetencies",{templateUrl:"/app/setup/views/manageCompetencies.html",controller:"managecompetenciesController",controllerAs:"vm",resolve:{competencyPrepService:["femaAuth","$location","alertService","Competency","$q",function(n,t,i,r,u){e.SysAdmin(n,t,i);var f=r.query();return u.all({competencies:f.$promise})}]}}).when("/setup/developmentalActivity",{templateUrl:"/app/setup/views/developmentalActivity.html",controller:"developmentalActivityController",controllerAs:"vm",resolve:{activityPrepService:["femaAuth","$location","alertService","Activity","$q",function(n,t,i,r,u){e.SysAdmin(n,t,i);var f=r.query();return u.all({developmentalActivities:f.$promise})}]}}).when("/setup/resources",{templateUrl:"/app/setup/views/resources.html",controller:"adminResourcesController",controllerAs:"vm"}).when("/setup/careerGoals",{templateUrl:"/app/setup/views/careerGoalQuestions.html",controller:"careerGoalQuestionsController",controllerAs:"vm",resolve:{careerGoalsPrepService:["femaAuth","$location","$route","Goals","$q",function(n,t,i,r,u){var f=r.returnCareerGoals();return u.all({careerGoalQuestions:f.$promise})}]}}).when("/setup/frequentlyAskedQuestions",{templateUrl:"/app/setup/views/frequentlyAskedQuestions.html",controller:"frequentlyAskedQuestionsController",controllerAs:"vm",resolve:{faqPrepService:["femaAuth","$location","$route","FAQ","$q",function(n,t,i,r,u){var f=r.getFrequentlyAskedQuestions();return u.all({frequentlyAskedQuestions:f.$promise})}]}});t.when("/careerPath/home",{templateUrl:"/app/builder/views/index.html",resolve:{redirect:["femaAuth","$location","$route","alertService",function(n,t,i,r){e.RedirectLogin(n,t,i,r)}]}}).when("/careerPath/new/:id",{templateUrl:"/app/builder/views/builder.html",controller:"builderController",controllerAs:"vm",resolve:{careerBuilderPrepService:["femaAuth","$location","$route","Positions","$q",function(n,t,i,r,u){var f=i.current.params.id,e=r.getPosition({id:f});return u.all({startPosition:e.$promise,careerPlan:null})}]}}).when("/careerPath/:id",{templateUrl:"/app/builder/views/builder.html",controller:"builderController",controllerAs:"vm",resolve:{careerBuilderPrepService:["femaAuth","$location","$route","$q","UserCareerPlans",function(n,t,i,r,u){var f=u.get({id:parseInt(i.current.params.id)});return r.all({startPosition:null,careerPlan:f.$promise})}]}}).when("/careerPath/userAssessment/:id",{templateUrl:"/app/home/views/assessment.html",controller:"assessmentController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/userAssessmentList/:id/:careerPlanId",{templateUrl:"/app/home/views/assessmentList.html",controller:"assessmentListController",controllerAs:"vm"}).when("/careerPath/userAssessmentActivities/:id/:careerPlanId",{templateUrl:"/app/home/views/assessmentActivities.html",controller:"assessmentActivitiesController",controllerAs:"vm"}).when("/careerPath/userSelfReflection/:id",{templateUrl:"/app/home/views/assessmentSelfReflection.html",controller:"assessmentSelfReflectionController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/userGoalSetting/:id",{templateUrl:"/app/home/views/assessmentCareerGoalSetting.html",controller:"userGoalSettingController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/userSelfReflectionPrint/:id",{templateUrl:"/app/home/views/assessmentSelfReflectionPrint.html",controller:"assessmentSelfReflectionPrintController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/blankSelfReflectionPrint/:id",{templateUrl:"/app/home/views/assessmentBlankSelfReflectionPrint.html",controller:"assessmentBlankSelfReflectionPrintController",controllerAs:"vm"}).when("/careerPath/userCareerGoalSettingPrint/:id",{templateUrl:"/app/home/views/assessmentCareerGoalSettingPrint.html",controller:"assessmentCareerGoalSettingPrintController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/userCareerPlansPrint/:id",{templateUrl:"/app/home/views/assessmentCareerPlansPrint.html",controller:"assessmentCareerPlansPrintController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/assessmentPrint/:id",{templateUrl:"/app/home/views/assessmentPrint.html",controller:"assessmentPrintController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/assessmentPrintGuest/:step",{templateUrl:"/app/home/views/assessmentPrintGuest.html",controller:"assessmentPrintGuestController",controllerAs:"vm"}).when("/careerPath/assessmentPrintFeedback/:userAssessmentId/:careerPlanId/:userFeedbackRequestId/:hideNR",{templateUrl:"/app/home/views/assessmentViewRatingPrint.html",controller:"assessmentViewRatingController",controllerAs:"vm"}).when("/careerPath/assessmentRequestFeedback/:id",{templateUrl:"/app/home/views/assessmentRequestFeedback.html",controller:"assessmentRequestFeedbackController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/assessmentFeedback/:id/:careerPlanId/:fullName/:assessmentId/:hideButtons",{templateUrl:"/app/home/views/assessmentFeedback.html",controller:"assessmentFeedbackController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/assessmentRateAssessment/:id/:fullName",{templateUrl:"/app/home/views/assessmentRateAssessment.html",controller:"assessmentRateAssessmentController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/assessmentViewRating/:userAssessmentId/:careerPlanId/:userFeedbackRequestId",{templateUrl:"/app/home/views/assessmentViewRating.html",controller:"assessmentViewRatingController",controllerAs:"vm",resolve:{userPrepService:["$q","femaAuth","$location","$route","alertService","Users",function(n,t,i,r,u,f){e.MustLogin(t,i,r,u);var o=f.self();return n.all({user:o.$promise})}]}}).when("/careerPath/frequentlyAskedQuestions/:id",{templateUrl:"/app/home/views/frequentlyAskedQuestions.html",controller:"helpController",controllerAs:"vm"}).when("/careerPath/pursueCareerGoal/:id",{templateUrl:"/app/home/views/pursueCareerGoal.html"}).when("/careerPath/careerPlanMap/:id",{templateUrl:"/app/home/views/careerPlanMap.html",controller:"careerPlanMapController",controllerAs:"vm"});i.interceptors.push("authInterceptorService")}function runBlock(n,t,i,r,u,f,e,o,s,h){function l(){c();n.startTimeoutTimer();n.checkAdmin();r.fillAuthData()}function a(){r.isAuthorized("SuperAdmin, System Administrator")?n.isAdmin=!0:r.isAuthorized("SuperAdmin")?n.isAdmin=!0:r.isAuthorized("System Administrator")?n.isAdmin=!0:r.isAuthorized("Helpdesk")?n.isHelpdesk=!0:n.isAdmin=!1}function v(){c();n.timeoutCheck()}function c(){var t=new Date,i=t.getTime();n.idleEndTime=i+s.timeout*6e4}function y(){u.markAsViewed();n.checkAdmin();n.loading=!0}function p(){var f=i(function(){var s=new Date,h=s.getTime(),l=e.get("authData");h>n.idleEndTime&&l&&(o.find("body").off("mousemove keydown DOMMouseScroll mousewheel mousedown touchstart",c),u.addAlert("You have been signed out due to inactivity.","info"),r.logOut(),t.url("/"),i.cancel(f))},3e4)}function w(){var t=angular.injector(["ng"]).get("$http"),n=angular.injector(["ng"]).get("$q").defer();return t.get("api/users/returnUserTenant","").success(function(t){t!=""&&n.resolve(t)}).error(function(t){n.reject(t)}),n.promise}function b(){var t=angular.injector(["ng"]).get("$http"),n=angular.injector(["ng"]).get("$q").defer();return t.get("api/users/userCanSeeCompassLink","").success(function(t){t!=""&&n.resolve(t)}).error(function(t){n.reject(t)}),n.promise}h.title="Confirm";h.defaultLabels.ok="Yes";h.defaultLabels.cancel="No";n.loading=!1;n.isTokenRefreshInProcess=!1;o.find("body").on("mousemove keydown DOMMouseScroll mousewheel mousedown touchstart",c);n.$on("$routeChangeStart",y);n.checkAdmin=a;n.startTimeoutTimer=v;n.timeoutCheck=p;n.getUserTenant=w;n.userCanSeeCompassLink=b;l()}configure.$inject=["$logProvider","$routeProvider","$httpProvider","uiSelectConfig","jwtInterceptorProvider","localStorageServiceProvider"];runBlock.$inject=["$rootScope","$location","$interval","femaAuth","alertService","jwtHelper","localStorageService","$document","authSettings","$confirmModalDefaults"];angular.module("FEMACPT",["angular.filter","angular-confirm","angular-jwt","angular-loading-bar","angularUtils.directives.dirPagination","FEMACPT.admin","LocalStorageModule","ngFileSaver","ngMessages","ngResource","ngRoute","ui.bootstrap","ui.router","ui.select",]);angular.module("FEMACPT").config(configure);angular.module("FEMACPT").constant("authSettings",{clientId:"FEMACPTAngular",timeout:20});angular.module("FEMACPT").run(runBlock),function(){"use strict";function n(){return{restrict:"E",scope:{user:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$routeParams","$q","$window","$injector","$uibModal","femaAuth","alertService","Assessment",function(n,t,i,r,u,f,e,o,s){function y(){c();r.location.href="/#/user"}function p(){s.returnUserFeedbackQuestions({id:h.userFeedbackRequestId}).$promise.then(function(n){h.feedback=n;return})}function w(){h.userRequestObj.answers=[];h.userRequestObj.userFeedbackRequestId=h.userFeedbackRequestId;angular.forEach(h.feedback.questionsAnswers,function(n){h.userRequestObj.answers.push({UserFeedbackID:h.feedback.userFeedbackID,FeedbackQuestionID:n.feedbackQuestionID,FeedbackQuestionAnswer:n.userFeedbackQuestionAnswer})});var t=i.defer(),n;return n=n||u.get("$http"),n.post("api/assessment/updateUserFeedback",h.userRequestObj).success(function(n){return t.resolve(n),h.errors=n,h.errors.length==0?o.addAlert("Feedback has been saved.","success"):angular.forEach(h.errors,function(n){o.addAlert(n,"fail")}),c(),t.promise})}function c(){var n=new s(l);n.userAssessmentID=h.assessmentId;n.userID=h.user.id;n.$updateUnLockUsersAssessment().then(function(n){h.errors=n;h.errors.length==0?o.addAlert("User's assessment has been unlocked.","success"):angular.forEach(h.errors,function(n){o.addAlert(n,"fail")})})}var h=this,a,v;h.user=n.user;h.requestedUserId;h.userAssessmentId;h.feedback=[];h.userFeedbackRequestId=parseInt(t.id);h.userRequestObj={userFeedbackRequestId:null,answers:null};var l={},a={},v=parseInt(t.careerplanid);h.fullName=t.fullName;h.assessmentId=parseInt(t.assessmentId);a={};v=parseInt(t.careerplanid);h.saveFeedback=w;h.goUserHome=y;p()}],templateUrl:"/app/templates/assessmentFeedbackTemplate.html"}}angular.module("FEMACPT").directive("assessmentFeedback",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{user:"=",assessment:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$routeParams","$route","$injector","$q","$window","alertService","femaAuth","Assessment","CareerPlan","CompetencyDescription",function(n,t,i,r,u,f,e,o,s,h,c){function a(n,t){l.showDescriptionRow[t]=!l.showDescriptionRow[t];l.showDescriptionRow[t]&&c.get({id:n},function(n){l.descriptions=n})}function v(){l.ratingScale=!l.ratingScale}function y(){return s.returnAssessmentById({id:l.userAssessmentId,comments:!0}).$promise.then(function(n){l.endPositionId=n.endPositionID;l.assessment=n;p()})}function p(){s.returnCompetencyData({id:l.endPositionId,userCareerPlanId:l.careerPlanId,userId:l.user,relatedUserId:""}).$promise.then(function(n){l.competencyData=n});return}var l=this;l.endPositionId;l.careerPlanId=parseInt(t.careerPlanId);l.user=n.user;l.userAssessmentId=parseInt(t.assessmentId);l.competencyData=[];l.userId="";l.assessment={};l.careerPlans=[];l.ratingScale;l.showDescriptionRow=[];l.close=v;l.showDescription=a;y()}],templateUrl:"/app/templates/assessmentRatingTemplate.html"}}angular.module("FEMACPT").directive("assessmentRating",n)}(),function(){"use strict";function n(){return{restrict:"A",transclude:!0,replace:!1,require:"ngModel",link:function(n,t,i,r){var u=r,f=function(){var i=t.prop("checked");i!=u.$viewValue&&(u.$setViewValue(i),n.$$phase||n.$apply())},e=function(){t.trigger("change")};t.on("change",function(){f()});n.$watch(function(){return u.$viewValue},function(){e()});t.bootstrapToggle()}}}angular.module("FEMACPT").directive("toggleButton",n)}(),function(){"use strict";function n(){return{restrict:"E,A",scope:{user:"=",assessment:"="},replace:!0,transclude:!0,controllerAs:"vm",link:function(){},controller:["$sce","$scope","$routeParams","$route","$q","alertService","femaAuth","Assessment","CareerPlan","UserCareerPlans",function(n,t,i,r,u,f,e,o){function h(){return o.returnAssessmentById({id:s.userAssessmentId,comments:!0}).$promise.then(function(n){s.endPositionId=n.endPositionID;c()})}function c(){return o.returnUserCareerPlans({userId:s.user,positionId:s.endPositionId,userCareerPlanId:s.careerPlanId}).$promise.then(function(n){s.careerPlans=n})}var s=this;t.trustAsHtml=n.trustAsHtml;s.show=!s.show;s.user=t.user;s.careerPlanId=parseInt(i.careerPlanId);s.userAssessmentId=t.assessment;s.endPositionId;h()}],templateUrl:"/app/templates/careerPlansTemplate.html"}}angular.module("FEMACPT").directive("careerPlans",n)}(),function(){"use strict";function n(){return{restrict:"E,A",scope:{isGuest:"=",value:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$route","$q","$window","$confirm","alertService","femaAuth","CareerPlan","UserCareerPlans","Assessment",function(n,t,i,r,u,f,e,o,s,h){function v(){i.all({careerPlansData:y()}).then(function(n){c.careerPlans=n.careerPlansData;c.isGuest||p()})}function y(){if(!c.isGuest){var n=i.defer(),t=s.query({},function(){n.resolve(t)});return n.promise}return}function p(){c.hasCareerPlans=c.careerPlans!==undefined&&c.careerPlans.length>0;c.hasCareerPlans&&c.careerPlans.forEach(function(n){n.startPosition=n.positions[0].position;n.endPosition=n.positions[n.positions.length-1].position})}function l(n){u({text:"Deleting this career path will permanently remove the path, all associated assessments, and feedback. Are you certain you want to delete this career path?",title:"Delete Career Path"}).then(function(){w(n)})}function w(n){return h.deleteUserCareerPlan({id:n.userCareerPlanID}).$promise.then(function(){var t=c.careerPlans.indexOf(n);c.careerPlans.splice(t,1);f.addAlert("Career path has been deleted.","success");location.reload()},function(){f.addAlert("An error occurred deleting user career path.","danger")})}function b(n){r.location.href="#/careerPath/userAssessmentList/"+c.userAssessment.userAssessmentID+"/"+n}function a(n){r.location.href="#/careerPath/userCareerPlansPrint/"+n}function k(n){c.showHover[n]=!c.showHover[n]}function d(n){c.showDelHover[n]=!c.showDelHover[n]}var c=this;c.showHover=[];c.showDelHover=[];c.goCompetencies=b;c.hasCareerPlans=!1;c.careerPlans=[];c.careerPlans=n.careerPlans;c.isGuest=n.isGuest;c.processReport=a;c.showImage=k;c.showDelImage=d;c.deletePlanConfirm=l;v();n.keydown=function(t,i){t.keyCode==13&&(n.keydownEvent=a(i))};n.mousedown=function(t,i){n.mousedownEvent=a(i)};n.keydownDelete=function(t,i){t.keyCode==13&&(n.keydownDeleteEvent=l(i))};n.mousedownDelete=function(t,i){n.mousedownDeleteEvent=l(i)}}],templateUrl:"/app/templates/careerPlansEditTemplate.html"}}angular.module("FEMACPT").directive("careerPlansEdit",n)}(),function(){"use strict";function n(){return{restrict:"E",require:"ngModel",transclude:!0,template:'<div class="caret-toggle" data-ng-class="{on: tcOn}" data-ng-click="tcOn=!tcOn" alt="expanded: {{tcOn===true}}"><span><\/span><span><\/span><div><a href="" style="outline-color:#3c763d" aria-label="expanded: {{tcOn===true}}">{{tcText}}<\/a><\/div><\/div><section data-ng-show="tcOn"><ng-transclude><\/ng-transclude><\/section>',scope:{tcText:"@",tcOn:"=?"}}}angular.module("FEMACPT").directive("toggleCaret",n)}(),function(){"use strict";function n(){return{restrict:"E",require:"ngModel",transclude:!0,controllerAs:"vm",scope:{str1:"@",str2:"@",tcOn:"=?"},template:'<div class="caret-toggle" data-ng-class="{on: tcOn}" data-ng-click="tcOn=!tcOn"><span><\/span><span><\/span><div><a href="" style="outline-color:#3c763d">{{str1}}&nbsp&nbsp<img src="../../Content/images/gl_arrow_right.png" alt="" style="width:24px;height:24px" />&nbsp&nbsp{{str2}}<\/a><\/div><\/div><section data-ng-show="tcOn"><ng-transclude><\/ng-transclude><\/section>'}}angular.module("FEMACPT").directive("toggleCaretExtended",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{id:"@"},replace:!0,controllerAs:"vms",controller:["$scope","$route","$confirm","alertService","CompetencyDescription",function(n,t,i,r,u){function h(){return u.returnDisplayItems({id:e}).$promise.then(function(n){f.descriptions=n})}function o(){f.newCompetencyDescription={competencyDescriptionID:-1,competencyDescription1:"",competencyID:-1};f.newDescription="New competency description";f.showId=-1}function c(n){n.editable=!1}function l(n){var t=new u(n);t.$update(function(){r.addAlert("Competency description has been updated.","success");n.editable=!1})}function a(n){i({text:"Are you certain you want to delete this competency description?",title:"Delete Competency Description"}).then(function(){s(n)})}function s(n){u.delete({id:n.competencyDescriptionId}).$promise.then(function(){var t=f.positioncompetencies.indexOf(n);f.positioncompetencies.splice(t,1);r.addAlert("Competency description has been deleted.","info")},function(){r.addAlert("An error occurred deleting the competency description.","danger")})}function v(n){n.editable||(n.originalcompetencyDescription=n.competencyDescription1);n.editable=!0}function y(){var n=new u(f.newCompetencyDescription);n.competencyID=e;n.competencyDescription=f.newDescription;n.$save(function(){o();f.addingNew=!1;f.addedNew=!1;t.reload();r.addAlert("New description has been added to this competency.","success")},function(){r.addAlert("An error occurred adding the competency description.","danger")})}var f=this,e;f.descriptions=[];f.newDescription="";f.newCompetencyDescription={};f.newCompetencyDescription={competencyDescriptionID:-1,competencyID:-1,competencyDescription1:""};f.addingNew=-1;f.editing=!1;f.toggleEdit=v;f.addNew=1;f.saveNew=y;f.cancelNew=o;f.cancelEdit=c;f.updateCompetencyDescription=l;f.deletecompetencyDescription=s;f.confirmDeleteDescription=a;e=n.$parent.competency.competencyID;e==-1&&(e=parseInt(n.id));h(e)}],templateUrl:"/app/templates/competencydescriptionstemplate.html"}}angular.module("FEMACPT").directive("descriptions",n)}(),function(){"use strict";function n(){return function(n,t){t.datepicker({inline:!0,dateFormat:"dd.mm.yyyy",onSelect:function(t){var i=$(this).attr("data-ng-model");putObject(i,n,t);n.$apply()}})}}angular.module("FEMACPT").directive("datePicker",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{userAssessmentID:"=",userCareerPlanID:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$route","$routeParams","$window","$injector","$q","alertService","femaAuth","Assessment",function(n,t,i,r,u,f,e,o,s){function c(n){n.isSelected=!n.isSelected}function l(n,t){for(var r=!1,i=0;i<h.showAnswer.length;i++)if(h.showAnswer[i].id==n+"-"+t){r=!0;h.showAnswer[i].show=!h.showAnswer[i].show;break}r||h.showAnswer.push({id:n+"-"+t,show:!0});$(document).ready(function(){var i=$("#mysub"+n+"-"+t);i.hasClass("imgbox")?i.removeClass("imgbox").addClass("imgbox-down"):i.removeClass("imgbox-down").addClass("imgbox")})}function a(n,t){for(var i=0;i<h.showAnswer.length;i++)if(h.showAnswer[i].id==n+"-"+t)return h.showAnswer[i].show;return!1}function v(){s.returnUserCompetencyDevelopmentActvivities({id:h.userAssessmentID}).$promise.then(function(n){for(var t=0;t<n.competenciesDevelopment.length;t++)n.competenciesDevelopment[t].proficiencyLevelID==0?n.competenciesDevelopment[t].proficiencyDescription="Not Applicable":n.competenciesDevelopment[t].proficiencyLevelID==1?n.competenciesDevelopment[t].proficiencyDescription="Fundamental Awareness (basic knowledge)":n.competenciesDevelopment[t].proficiencyLevelID==2?n.competenciesDevelopment[t].proficiencyDescription="Novice (limited experience)":n.competenciesDevelopment[t].proficiencyLevelID==3?n.competenciesDevelopment[t].proficiencyDescription="Intermediate (practical application)":n.competenciesDevelopment[t].proficiencyLevelID==4?n.competenciesDevelopment[t].proficiencyDescription="Advanced (applied theory)":n.competenciesDevelopment[t].proficiencyLevelID==5&&(n.competenciesDevelopment[t].proficiencyDescription="Expert (recognized authority)");h.userDevelopment=n;return})}function y(){p();var t=f.defer(),n;return n=n||u.get("$http"),n.post("api/assessment/insertActivitySelections",h.selected).success(function(n){return t.resolve(n),h.errors=n,h.errors.length==0?(e.addAlert("Selected developmental activities have been saved.","success"),$("#careerGoalPlanningButton").removeAttr("disabled")):angular.forEach(h.errors,function(n){e.addAlert(n,"fail")}),t.promise})}function p(){angular.forEach(h.userDevelopment.competenciesDevelopment,function(n){var t;t=n.isSelected?"true":"false";h.selected.push({userAssessmentID:h.userAssessmentID,activityCompetencyID:n.activityCompetencyID,developmentalActivityID:n.developmentalActivityID,isSelected:t})})}function w(){r.location.href="/#/user"}function b(){r.location.href="#/careerPath/assessmentPrint/"+h.careerPlanID}function k(){r.location.href="#/careerPath/userGoalSetting/"+h.userAssessmentID}var h=this;h.userDevelopment={};h.selected=[];h.available=[];h.toggleCheck=c;h.showCheck;h.errors=[];h.showAnswer=[];h.isExpanded=a;h.saveSelectedActivities=y;h.goCareerGoalPlanning=k;h.goUserHome=w;h.print=b;h.userAssessmentID=parseInt(i.id);h.careerPlanID=parseInt(i.careerPlanId);h.toggleSub=l;n.keydown=function(t,i,r){t.keyCode==13&&(n.keydownEvent=l(i,r))};n.keydownCheck=function(t,i){t.keyCode==13&&(n.keydownCheckEvent=c(i))};v()}],templateUrl:"/app/templates/selectDevelopmentalActivitiesTemplate.html"}}angular.module("FEMACPT").directive("developmentalActivities",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{assessment:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$route","$routeParams","alertService","femaAuth","Assessment",function(n,t,i,r,u,f){function o(n,t){for(var r=!1,i=0;i<e.showAnswer.length;i++)if(e.showAnswer[i].id==n+"-"+t){r=!0;e.showAnswer[i].show=!e.showAnswer[i].show;break}r||e.showAnswer.push({id:n+"-"+t,show:!0});$(document).ready(function(){var i=$("#mysub"+n+"-"+t);i.hasClass("imgbox")?i.removeClass("imgbox").addClass("imgbox-down"):i.removeClass("imgbox-down").addClass("imgbox")})}function s(n,t){for(var i=0;i<e.showAnswer.length;i++)if(e.showAnswer[i].id==n+"-"+t)return e.showAnswer[i].show;return!1}function h(){f.returnUserCompetencyDevelopmentActvivitiesRO({id:e.userAssessmentId}).$promise.then(function(n){e.userDevelopment=n;e.userDevelopment!=null&&angular.forEach(e.userDevelopment.competenciesDevelopment,function(n){var t;n.isSelected?(t="true",e.selected.push({userAssessmentID:e.userAssessmentId,activityCompetencyID:n.activityCompetencyID,developmentalActivityID:n.developmentalActivityID,isSelected:t})):t="false"});return})}var e=this;e.hideButtons=!0;e.userDevelopment={};e.selected=[];e.available=[];e.showCheck;e.showAnswer=[];e.userAssessmentId=n.assessment;e.careerPlanID=parseInt(i.careerPlanId);e.isExpanded=s;e.toggleSub=o;e.toggleSub=o;h()}],templateUrl:"/app/templates/developmentalActivitiesTemplate.html"}}angular.module("FEMACPT").directive("developmentalActivitiesReadOnly",n)}(),function(){"use strict";function n(){return{restrict:"E,A",scope:{viewer:"@"},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$routeParams","$q","$window","Resources",function(n,t,i,r,u){function e(){o();u.query().$promise.then(function(n){f.resources=n;return})}function o(){f.viewer=="USER"?(f.all="ALL",f.user="USER"):f.all="ALL"}function s(n){var t=f.resources[n];r.open(t.resourceLink)}var f=this;f.viewer=n.viewer;f.all="";f.user="";f.resources=[];f.displayPDF=s;e()}],templateUrl:"/app/templates/resourceTemplate.html"}}angular.module("FEMACPT").directive("education",n)}(),function(){"use strict";function n(){return{require:"ngModel",link:function(n,t,i,r){var f=/^\S+@fema.dhs.gov|\S+@fema.gov$|S+@associates.fema.dhs.gov/,u=function(n){return r.$setValidity("emailVerify",f.test(n)),n};r.$parsers.unshift(u);r.$formatters.unshift(u)}}}angular.module("FEMACPT").directive("emailVerify",n)}(),function(){"use strict";angular.module("FEMACPT").directive("enterKey",function(){return function(n,t,i){t.bind("keydown keypress",function(t){t.which===13&&(n.$apply(function(){n.$eval(i.ngEnter)}),t.preventDefault())})}})}(),function(){"use strict";function n(){return{restrict:"E",scope:{},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$uibModal","$filter","$window","$injector","$q","alertService","$confirm","femaAuth","Experience","localStorageService",function(n,t,i,r,u,f,e,o,s,h,c){function b(){l.guid=d();(l.guid=null||l.guid==undefined||l.guid=="")?g():k()}function k(){v.title="Experience Evaluation Completed";v.text="An experience evaluation has already been completed.";var n=t.open({templateUrl:"/app/templates/modals/alertModal.html",controller:"alertModalController as vm",size:"sm",animation:!0,windowClass:"alert-modal",windowTopClass:"slide-from-right",resolve:{properties:function(){return v}}});n.result.then(function(){},function(){r.location.href="/"})}function d(){return c.get("experience")}function y(n,t){l.numberValue[n].ratingID=t}function p(n,t){l.yesNoValue[n].ratingID=t}function g(){return l.numberValue=[],l.yesNoValue=[],h.returnExperienceQuestions().$promise.then(function(n){l.experience=n;l.newExperience.satisfactionEvaluationGuid=l.experience.satisfactionEvaluationGuid;angular.forEach(l.experience.questionAnswers,function(n){n.category=="NumberValue"?l.numberValue.push(n):l.yesNoValue.push(n)})})}function w(){r.location.href="/"}function nt(){if(angular.forEach(l.numberValue,function(n){n.ratingID==-1&&(a=!0);a||l.newExperience.questionAnswers.push(n)}),a)e.addAlert("All questions must be answered.","danger"),l.newExperience.questionAnswers=[],a=!1;else if(angular.forEach(l.yesNoValue,function(n){(n.sortOrder==99||n.sortOrder==98)&&(n.ratingID=8);n.ratingID==-1&&(a=!0);a||l.newExperience.questionAnswers.push(n)}),a)e.addAlert("All questions must be answered.","danger"),l.newExperience.questionAnswers=[],a=!1;else{var t=f.defer(),n;return n=n||u.get("$http"),n.post("api/experience/updateExperienceAnswers",l.newExperience).success(function(n){l.guid=n;l.guid!=null?(e.addAlert("Your experience has been saved.","success"),c.set("experience",l.guid),w()):e.addAlert("Failed to save experience reponses.","danger");t.resolve(n)}).error(function(){e.addAlert("Failed to update evaluation experience.","fail")})}}var l=this,a,v;l.guid="";a=!1;v={title:null,text:null};l.experience={};l.numberValue=[];l.recommend=!l.recommend;l.careAbout=!l.careAbout;l.useAgain=!l.useAgain;l.numberValue=!0;l.yesNoValue=!0;l.toggleCheckYesNo=p;l.toggleCheck=y;l.cancel=w;l.saveEvaluation=nt;b();l.newExperience={satisfactionEvaluationGuid:null,questionAnswers:[]};n.keypress=function(t,i,r){t.keyCode==13&&(n.keypressEvent=y(i,r))};n.keydown=function(t,i,r){t.keyCode==13&&(n.keydownEvent=p(i,r))}}],templateUrl:"/app/templates/experienceTemplate.html"}}angular.module("FEMACPT").directive("experience",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{userId:"="},replace:!1,transclude:!0,controllerAs:"vm",link:function(){},controller:["$window","$scope","$route","$routeParams","$injector","$q","alertService","Assessment","Users",function(n,t,i,r,u,f,e,o,s){function c(){function n(n,t,i,r,u){s.returnRequester({userId:n,feedbackRequestId:i}).$promise.then(function(n){var i=n;return h.requests.push({userFeedbackRequestId:i.userFeedbackRequestID,dateOfRequest:t,fullName:i.fullName,userName:i.userName,emailAddress:i.emailAddress,userSelfReflectionID:i.userSelfReflectionID,userAssessmentID:i.userAssessmentID,userCareerPlanID:i.userCareerPlanID,userCareerGoalsID:i.userCareerGoalsID,dateCompleted:r,wasRequestDeclined:u}),i})}o.returnFeedbackInvites().$promise.then(function(t){h.invites=[];h.requests=[];h.invites=t;var i=[],r={};angular.forEach(h.invites,function(t){r=t.dateOfRequest;i.push(n,n(t.userID,r,t.userFeedbackRequestID,t.dateFeedbackCompleted,t.wasRequestDeclined))});f.all([i]).then(function(n){var t=n})})}function l(n){var t=h.requests[n],o,i,r;return h.declineRequest.userName=t.userName,h.declineRequest.fullName=t.fullName,h.declineRequest.dateOfRequest=t.dateOfRequest,h.declineRequest.email=t.emailAddress,h.declineRequest.requestedUserID=h.userId,h.declineRequest.userAssessmentID=t.userAssessmentID,o=h.declineRequest,i=f.defer(),r=r||u.get("$http"),r.post("api/assessment/sendDeclineInvitation",o).success(function(n){return i.resolve(n),h.errors=n,h.errors.length==0?e.addAlert("Invitation has been declined","success"):angular.forEach(h.errors,function(n){e.addAlert(n,"danger")}),c(),i.promise})}function a(t,i,r,u){n.location.href="#/careerPath/assessmentFeedback/"+t+"/"+i+"/"+r+"/"+u+"/true"}var h=this;h.invites=[];h.requests=[];h.completed;h.declineRequest={userAssessmentID:null,requestedUserID:null,email:null,dateOfRequest:null,userName:null,fullName:null};h.userId=parseInt(r.id);h.declineInvitation=l;h.doFeedback=a;c()}],templateUrl:"/app/templates/feedbackInvitations.html"}}angular.module("FEMACPT").directive("feedbackInvites",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{userId:"="},replace:!1,transclude:!0,controllerAs:"vm",link:function(){},controller:["$scope","$routeParams","$window","alertService","Assessment",function(n,t,i,r,u){function o(n){return u.deleteUserFeedbackRequest({id:n.userFeedbackRequestID}).$promise.then(function(){var t=f.feedbackRequests.indexOf(n);f.feedbackRequests.splice(t,1);r.addAlert("User feedback request have been deleted.","success")},function(){r.addAlert("An error occurred deleting user feedback request.","danger")})}function e(){return u.returnFeedbackRequests().$promise.then(function(n){f.feedbackRequests=n})}function s(n,t,r){i.location.href="#/careerPath/assessmentViewRating/"+n+"/"+t+"/"+r}var f=this;f.feedbackRequests=[];f.showFeedbackResults=s;f.deleteRequest=o;e()}],templateUrl:"/app/templates/feedbackRequests.html"}}angular.module("FEMACPT").directive("feedbackRequests",n)}(),function(){"use strict";angular.module("FEMACPT").directive("fileModel",["$parse",function(n){return{restrict:"A",link:function(t,i,r){var u=n(r.fileModel),f=u.assign;i.bind("change",function(){t.$apply(function(){f(t,i[0].files[0])})})}}}])}(),function(){"use strict";function n(){return{restrict:"E",scope:{choice:"=",setUserSelection:"&"},require:"ngModel",replace:!0,transclude:!0,controllerAs:"vm",controller:["$scope","$route","$routeParams","alertService","femaAuth","SelfReflectionQuestions",function(n,t,i,r,u,f){function o(){f.returnGroups().$promise.then(function(n){e.questionGroups=n})}var e=this;e.questionGroups=[];o()}],template:'<div><ul uib-dropdown-menu role="menu" aria-labelledby="single-button" style="vertical-align:top"><li data-ng-repeat="addGrp in vm.questionGroups track by $index"><a ng-click="vm.itemSelected(vm.questionGroups[$index].selfReflectionTypeID)">{{addGrp.selfReflectionType1}}<a><\/li><\/ul><\/div>'}}angular.module("FEMACPT").directive("groups",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{userId:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$window","$route","$routeParams","$injector","$q","alertService","Assessment","Users","CareerPlan",function(n,t,i,r,u,f,e,o,s){function c(){function n(n,t){s.returnRequesterInfo({id:n}).$promise.then(function(n){var i=n;return h.requests.push({dateOfRequest:t,fullName:i.fullName,userAssessmentID:i.userAssessmentID,startPositionTitle:i.startPositionTitle,endPositionTitle:i.endPositionTitle}),i})}o.returnInvites().$promise.then(function(t){h.invites=t;var i=[],r={};angular.forEach(h.invites,function(t){r=t.dateOfRequest;i.push(n(t.userAssessmentID,r))});f.all([i]).then(function(n){var t=n})})}function l(n){var t=h.requests[n],i,r;return h.declineRequest.fullName=t.fullName,h.declineRequest.dateOfRequest=t.dateOfRequest,h.declineRequest.userAssessmentID=t.userAssessmentID,h.declineRequest.email=t.email,i=f.defer(),r=r||u.get("$http"),r.post("api/assessment/sendDeclineInvitation",t).success(function(n){return i.resolve(n),h.errors=n,h.errors.length==0?e.addAlert("Invitation has been declined","success"):angular.forEach(h.errors,function(n){e.addAlert(n,"danger")}),i.promise})}function a(n){var i=h.requests[n];t.location.href="#/careerPath/assessmentRateAssessment/"+i.userAssessmentID+"/"+i.fullName}var h=this;h.userAssessment={};h.invites=[];h.requests=[];h.declineRequest={userAssessmentID:null,requestedUserID:null,email:null,dateOfRequest:null,fullName:null};h.userId=r.id;h.declineInvitation=l;h.acceptInvitation=a;c()}],templateUrl:"/app/templates/invitations.html"}}angular.module("FEMACPT").directive("invites",n)}(),function(){"use strict";function n(n){return{templateUrl:"/app/templates/loading.html",transclude:!0,link:function(){n.$watch("loading",function(){!n.loading})}}}n.$inject=["$rootScope"];angular.module("FEMACPT").directive("loading",n)}(),function(){function n(n){return{templateUrl:"/app/templates/pagination.html",transclude:!0,scope:{pageCount:"@",numPerPage:"@",currentPage:"@",navSize:"@",query:"=",items:"=",pages:"=",filteredItems:"=",searchedItems:"=",sortType:"@",sortReverse:"@"},link:function(t,i,r,u,f){function o(n){var i,u,r,f,o,s;for(t.pages=[],e=t.navSize>t.pageCount?t.pageCount:t.navSize,i=Math.ceil(e/2),t.currentPage<=i?(r=1,u=e):t.currentPage>i&&t.currentPage+i-1<t.pageCount?(r=t.currentPage-i+1,u=r+parseInt(e)-1):(u=t.pageCount,r=t.pageCount-e+1),f=r;f<=u;f++)t.pages.push(f);o=(t.currentPage-1)*t.numPerPage;s=o+parseInt(t.numPerPage);t.filteredItems=n?t.searchedItems.slice(o,s):t.items.slice(o,s);return}function s(){t.searchedItems=n("filter")(t.items,function(n){for(var i in n)if(h(n[i],t.query))return!0;return!1});t.currentPage=1;t.pageCount=Math.ceil(t.searchedItems.length/t.numPerPage);o(!0)}function h(n,t){if(t===undefined||t==="")return!0;if(typeof n=="string"&&n.length)return n.toLowerCase().indexOf(t.toLowerCase())!==-1;if(typeof n=="object"){var i=!1;return n.forEach(function(n){n.toLowerCase().indexOf(t.toLowerCase())!==-1&&(i=!0)}),i}return!1}t.items=t.items||[];t.pages=t.pages||[];t.filteredItems=t.filteredItems||[];t.$watch("currentPage",function(){o()});t.$watchCollection("items",function(n){t.items=n;s();o()});t.$watch("query",function(){s()});t.pageCount=Math.ceil(t.items.length/t.numPerPage);var e=-1;t.currentPage=1;t.nextPage=function(){t.currentPage<t.pageCount&&t.currentPage++};t.prevPage=function(){t.currentPage>1&&t.currentPage--};t.setPage=function(n){t.currentPage=n};f(t.$new(),function(n){i.append(n)});o()}}}n.$inject=["$filter"];angular.module("FEMACPT").directive("paginate",n)}(),function(){"use strict";function n(){return{restrict:"E",transclude:"true",templateUrl:"/app/templates/popup.html",scope:{popupShow:"=",popupSave:"&",popupCancel:"&",popupSaveValid:"="},link:function(n,t){function i(){n.popupSave();n.popupShow=!1}function r(){n.popupCancel();n.popupShow=!1}function u(i){i.preventDefault();var f={height:window.innerHeight,width:window.innerWidth},u=t.find("section"),r={height:i.layerY,width:i.layerX};n.popupShow=!n.popupShow;u.css({position:"absolute",top:r.height+"px",left:r.width+"px"})}n.showPopup=u;n.popupShow=n.popupShow||!1;n.popupSaveValid=n.popupSaveValid||!1;n.save=i;n.cancel=r;var f=t.find("section").css({position:"absolute"})}}}angular.module("FEMACPT").directive("popup",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{careerPlanId:"=",userAssessmentId:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$route","$routeParams","$window","$injector","$q","$uibModal","alertService","femaAuth","Assessment",function(n,t,i,r,u,f,e,o,s,h){function l(n){c.userAssessment.proficiencyObjects[n].isCompetencyActive=!c.userAssessment.proficiencyObjects[n].isCompetencyActive}function a(){h.returnAssessmentById({id:c.userAssessmentID,comments:!0}).$promise.then(function(n){c.userAssessment=n;v()})}function v(){h.returnUserDevelopmentalActivities({id:c.userAssessmentID}).$promise.then(function(n){if(c.developmentalActivities=n,c.developmentalActivities.length>0){var t=$("#butActivities");t.removeAttr("disabled")}return})}function y(){p();var t=f.defer(),n;return n=n||u.get("$http"),n.post("api/assessment/updateCompetenciesProficiency",c.selected).success(function(n){t.resolve(n);$("#butActivities").removeAttr("disabled");c.errors=n;c.errors.length==0?o.addAlert("Updated selected competencies.","success"):angular.forEach(c.errors,function(n){o.addAlert(n,"fail")})})}function p(){angular.forEach(c.userAssessment.proficiencyObjects,function(n){c.selected.push({userAssessmentID:c.userAssessmentID,competencyID:n.competencyID,proficiencyLevelID:n.competencyRating,isCompetencyActive:n.isCompetencyActive})})}function w(){r.location.href="#/careerPath/userAssessmentActivities/"+c.userAssessmentID+"/"+c.careerPlanID}var c=this;c.hideButtons=!1;c.userAssessment={};c.proficiencies=[];c.selected=[];c.removed=[];c.toggleCheck=l;c.showCheck;c.developmentalActivities=[];c.errors=[];c.checked;c.saveSelectedCompetencies=y;c.goDevActivities=w;c.competencyProficiencyLevel=[{userAssessmentID:null,competencyID:null,competency:null,proficienyLevelID:null,isCompetencyActive:null,proficiencyLevel:null}];c.userAssessmentID=i.assessmentId!=undefined?parseInt(i.assessmentId):parseInt(n.userAssessmentId);c.careerPlanID=parseInt(i.careerPlanId);c.hideButtons=i.hideButtons;n.keydown=function(t,i){t.keyCode==13&&(n.keydownEvent=setKeyboardCompetency(i))};a()}],templateUrl:"/app/templates/selectCompetencies.html"}}angular.module("FEMACPT").directive("proficiency",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{careerplanid:"=",assessment:"=",userfeedbackid:"=",printformat:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$route","$routeParams","$window","$q","alertService","femaAuth","Assessment",function(n,t,i,r,u,f,e,o){function h(){o.returnUserAssessmentRatings({id:s.userAssessmentId,userFeedbackId:s.feedbackRequestId,showAll:s.showAll}).$promise.then(function(n){s.ratings=n;for(var t=0;t<s.ratings.length;t++)s.ratings[t].ratedProficiencyLevels.length==0&&s.ratings[t].ratedProficiencyLevels.push(-1)})}function c(){r.location.href="#/user"}var s=this;s.userAssessment={};s.ratings=[];s.showAll=!1;s.goUserHome=c;s.competencyProficiencyLevel=[{userAssessmentID:null,competencyID:null,proficienyLevelID:null,isCompetencyActive:null}];s.feedbackRequestId=n.userfeedbackid;s.userAssessmentId=parseInt(i.userAssessmentId);s.printFormat=n.printformat;h()}],templateUrl:"/app/templates/proficiencyRatingTemplate.html"}}angular.module("FEMACPT").directive("proficiencyRatings",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{user:"=",assessmentId:"=",userFeedbackRequestId:"=",fullname:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$uibModal","$routeParams","$route","$injector","$q","$window","alertService","femaAuth","Users","Assessment",function(n,t,i,r,u,f,e,o,s,h,c){function y(){v();e.location.href="/#/user"}function a(n,t){n.competencyRating=parseInt(t)}function p(){w()}function w(){c.returnAssessmentById({id:l.assessmentId,comments:!0}).$promise.then(function(n){l.assessment=n;f.all({careerData:b()}).then(function(n){l.careerPlanPath=n.careerData;k()})});return}function b(){var n=f.defer(),t=c.returnCareerPlanPath({user:l.assessment.userID,startPositionId:l.assessment.startPositionID,endPositionId:l.assessment.endPositionID}).$promise.then(function(t){n.resolve(t)});return n.promise}function k(){c.returnCompetencyData({id:l.assessment.endPositionID,userCareerPlanId:l.careerPlanPath.userCareerPlanID,userId:l.user.id,relatedUserId:l.assessment.userID}).$promise.then(function(n){l.competencyData=n;l.hide=!0;d()});return}function d(){var i=l.assessment,t=f.defer(),n;return n=n||u.get("$http"),n.post("api/assessment/updateLockUsersAssessment",i).success(function(n){return t.resolve(n),l.errors=n,l.errors.length==0?o.addAlert("User's assessment has been locked.","success"):angular.forEach(l.errors,function(n){o.addAlert(n,"fail")}),l.addAssessment&&g(),t.promise})}function g(){var n,i,t;if(s.isAuthorized("User"))return n=l.newAssessment,n.startPositionID=l.competencyData.startPositionID,n.endPositionID=l.competencyData.endPositionID,n.relatedUserAssessmentID=l.assessment.userAssessmentID,n.requestedUserID=l.assessment.requestedUserID,i=f.defer(),t=t||u.get("$http"),t.post("api/assessment/createNewAssessment",n).success(function(n){l.userAssessment=n;i.resolve(n)})}function nt(){var i,n,t;if(s.isAuthorized("User")&&l.userAssessment!=null){if(i=l.userAssessment.userAssessmentID,angular.forEach(l.competencyData.competencyObj,function(n){var u,r,t;for(n.gap=n.proficiencyLevelID-n.competencyRating,u=n.competencyID,r=-1,t=0;t<l.competencyProficiency.length;t++)l.competencyProficiency[t].competencyID===u&&(r=t);(r=-1)&&n.competencyRating>-1&&l.competencyProficiencyNew.push({userAssessmentID:i,competencyID:n.competencyID,proficiencyLevelID:n.competencyRating,isCompetencyActive:0})}),l.competencyProficiency.length==0&&l.competencyProficiencyNew==0){o.addAlert("At least one competency must be rated.","danger");return}return l.userAssessment.usersAssessmentsCompetenciesProficiencyLevels=l.competencyProficiencyNew,n=f.defer(),t=t||u.get("$http"),t.post("api/assessment/updateUserAssessment",l.userAssessment).success(function(t){l.userAssessment=t;l.userAssessment!=null?(o.addAlert("Your ratings have been saved.","success"),v()):o.addAlert("Application failed to save your ratings.","danger");n.resolve(t)}).error(function(t){n.reject(t)})}}function v(){var n=new c(l.userAssessment);n.$updateUnLockUsersAssessment().then(function(n){l.errors=n;l.errors.length==0?o.addAlert("User's assessment has been unlocked.","success"):angular.forEach(l.errors,function(n){o.addAlert(n,"fail")})})}function tt(n){var i=t.open({templateUrl:"/app/templates/modals/competencyDescriptionsModal.html",controller:"showCompentencyDescriptionController",controllerAs:"vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right",resolve:{competency:function(){return n}}});i.result.then(function(){})}function it(){var n=t.open({templateUrl:"/app/templates/modals/quickStartAssessmentModal.html",controller:"quickStartAssessmentModalController as vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right"});n.result.then(function(){},function(){})}var l=this;l.assessment={};l.userAssessment={};l.competencyData=[];l.userComments="";l.addAssessment=!0;l.showCompetencies=!1;l.competencyProficiency=[];l.competencyProficiencyNew=[];l.newAssessment={userID:null,startPositionID:null,endPositionID:null,relatedUserAssessmentID:null,requestedUserID:null,dateAssessmentModified:null,dataAssessmentCompleted:null};l.saveAssessment=nt;l.goUserHome=y;l.ratingLegend=it;l.showDescriptions=tt;l.user=n.user;l.assessmentId=parseInt(i.assessmentId);l.userFeedbackRequestId=parseInt(i.id);l.fullName=i.fullName;l.assessment={};l.careerPlanPath={};l.endPositionId;l.firstName;l.lastName;p();n.keydownShow=function(t,i){t.keyCode==13&&(n.keydownEvent=showDescription(i))};n.keydown=function(t,i,r){t.keyCode==13&&(n.keydownEvent=a(i,r))};n.mousedown=function(t,i,r){n.mousedownEvent=a(i,r)}}],templateUrl:"/app/templates/rateAssessmentTemplate.html"}}angular.module("FEMACPT").directive("rateAssessment",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{userId:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$route","$window","$routeParams","$injector","$q","alertService","Assessment","Users",function(n,t,i,r,u,f,e,o){function h(){return o.returnRequests().$promise.then(function(n){s.requests=n})}function c(n){var t=s.requests[n];i.location.href="#/careerPath/assessmentViewRating/"+t.userAssessmentID}var s=this;s.userAssessment={};s.invites=[];s.requests=[];s.viewResults=c;h()}],templateUrl:"/app/templates/ratingRequests.html"}}angular.module("FEMACPT").directive("requests",n)}(),function(){"use strict";function n(){return{require:"ngModel",link:function(n,t,i,r){function u(t){var u=n.$eval(i.sameAs)==t;return r.$setValidity("same-as",u),u?t:undefined}r.$parsers.unshift(u);n.$watch(i.sameAs,function(){r.$setViewValue(r.$viewValue)})}}}angular.module("FEMACPT").directive("sameAs",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{newpage:"=",positionid:"=",userid:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$routeParams","$route","$injector","$q","$window","alertService","femaAuth","Assessment","CareerPlan","Competency","$uibModal",function(n,t,i,r,u,f,e,o,s,h,c,l){function b(){return h.getSavedCareerPlans().$promise.then(function(n){a.careerPlans=n;a.hide=!0})}function k(n){s.returnCompetenciesProficiencyLevels({id:n}).$promise.then(function(n){if(a.competencyProficiency=n,a.competencyProficiency.length>0){var t=$("#nextBut");t.removeAttr("disabled")}return})}function v(n,t,i){a.positionid=t;a.userAssessment=s.returnAssessmentById({id:n,comments:!0}).$promise.then(function(n){a.userAssessment=n;a.userAssessment!=null&&(a.assessmentComments=a.userAssessment.assessmentComments);s.returnCompetencyData({id:a.positionid,userCareerPlanId:i,userId:a.userId}).$promise.then(function(n){a.competencyData=n;a.hide=!a.hide;a.showLocked=!1;a.addAssessment&&d()})});return}function d(){var n,i,t;if(o.isAuthorized("User"))return n=a.newAssessment,n.startPositionID=a.competencyData.startPositionID,n.endPositionID=a.competencyData.endPositionID,n.relatedUserAssessmentID=a.assessment.userAssessmentID,n.requestedUserID=a.userId,i=u.defer(),t=t||r.get("$http"),t.post("api/assessment/createNewAssessment",n).success(function(n){a.userAssessment=n;k(a.userAssessment.userAssessmentID);i.resolve(n)})}function g(){var i,n,t;if(o.isAuthorized("User")&&a.userAssessment!=null){if(i=a.userAssessment.userAssessmentID,angular.forEach(a.competencyData.competencyObj,function(n){var u,r,t;for(n.gap=n.proficiencyLevelID-n.competencyRating,u=n.competencyID,r=-1,t=0;t<a.competencyProficiency.length;t++)a.competencyProficiency[t].competencyID===u&&(r=t);(r=-1)&&n.competencyRating>-1&&a.competencyProficiencyNew.push({userAssessmentID:i,competencyID:n.competencyID,proficiencyLevelID:n.competencyRating,isCompetencyActive:0})}),a.competencyProficiency.length==0&&a.competencyProficiencyNew==0){e.addAlert("At least one competency must be rated.","danger");return}return a.userAssessment.usersAssessmentsCompetenciesProficiencyLevels=a.competencyProficiencyNew,a.userAssessment.assessmentComments=a.assessmentComments,n=u.defer(),t=t||r.get("$http"),t.post("api/assessment/updateUserAssessment",a.userAssessment).success(function(t){a.userAssessment=t;$("#nextBut").removeAttr("disabled");a.userAssessment!=null?e.addAlert("Selected ratings have been saved.","success"):e.addAlert("Failed to update the asssessment.","fail");n.resolve(t)}).error(function(t){n.reject(t)})}}function w(n,t){n.competencyRating=parseInt(t)}function nt(n){f.location.href="#/careerPath/userAssessmentList/"+a.userAssessment.userAssessmentID+"/"+n}function tt(){f.location.href="/#/user"}function y(n){f.location.href="#/careerPath/assessmentPrint/"+n}function it(n){f.location.href="#/careerPath/userAssessment/"+n}function p(n,t,i){a.positionid=t;a.userAssessment=s.returnAssessmentById({id:n,comments:!0}).$promise.then(function(n){a.userAssessment=n;a.userAssessment!=null&&(a.assessmentComments=a.userAssessment.assessmentComments);s.returnCompetencyData({id:a.positionid,userCareerPlanId:i,userId:a.userId}).$promise.then(function(n){a.competencyData=n;a.hide=!0;a.showLocked=!0})});return}function rt(){var n=l.open({templateUrl:"/app/templates/modals/quickStartBeginAssessmentModal.html",controller:"beginAssessmentQuickStartModalController as vm",size:"sm",animation:!0,windowClass:"begin-assessment",windowTopClass:"slide-from-right",resolve:{}});n.result.then(function(){})}function ut(n){var t=l.open({templateUrl:"/app/templates/modals/competencyDescriptionsModal.html",controller:"showCompentencyDescriptionController",controllerAs:"vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right",resolve:{competency:function(){return n}}});t.result.then(function(){})}function ft(){var n=l.open({templateUrl:"/app/templates/modals/quickStartAssessmentModal.html",controller:"quickStartAssessmentModalController as vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right"});n.result.then(function(){},function(){})}var a=this;a.userId;a.newpage=n.newpage;a.positionId=parseInt(t.id);a.userId=n.userid;a.hide;a.assessment={};a.competencyData=[];a.proficiency=0;a.assessmentComments="";a.addAssessment=!0;a.showCompetencies=!1;a.competencyProficiency=[];a.competencyProficiencyNew=[];n.competency;a.newAssessment={userID:null,startPositionID:null,endPositionID:null,relatedUserAssessmentID:null,requestedUserID:null,dateAssessmentModified:null,dataAssessmentCompleted:null};a.showAssessment=v;a.saveAssessment=g;a.showLockedAssessment=p;a.goCompetencies=nt;a.goUserHome=tt;a.ratingLegend=ft;a.print=y;a.editAssessment=it;a.showDescription=ut;a.gettingStarted=rt;a.careerPlans=[];b();n.keydown=function(t,i,r){t.keyCode==13&&(n.keydownEvent=w(i,r))};n.mousedown=function(t,i,r){n.mousedownEvent=w(i,r)};n.keydownPrint=function(t,i){t.keyCode==13&&(n.keydownPrintEvent=y(i))};n.mousedownPrint=function(t,i){n.mousedownPrintEvent=y(i)};n.keydownShowLockedAssessment=function(t,i,r,u){t.keyCode==13&&(n.keydownShowLockecAssessmentEvent=p(i,r,u))};n.mousedownShowLockedAssessment=function(t,i,r,u){n.mousedownShowLockedAssessmentEvent=p(i,r,u)};n.keydownShowAssessment=function(t,i,r,u){t.keyCode==13&&(n.keydownShowAssessmentEvent=v(i,r,u))};n.mousedownShowAssessment=function(t,i,r,u){n.mousedownShowAssessmentEvent=v(i,r,u)};n.keydownBeginAssessment=function(t,i,r,u){t.keyCode==13&&(n.keydownBeginAssessmentEvent=v(i,r,u))};n.mousedownBeginAssessment=function(t,i,r,u){n.mousedownBeginAssessmentEvent=v(i,r,u);document.getElementById("assessmentTable").scrollIntoView()}}],templateUrl:"/app/templates/savedUserCareerPlans.html"}}angular.module("FEMACPT").directive("savedcareers",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{category:"=",reset:"="},controllerAs:"vm",link:function(){},controller:["$scope","femaAuth","SatisfactionQuestions","$q",function(n,t,i,r){function f(){for(var n=0;n<u.evaulationQuestionTypes.length;n++)u.evaulationQuestionTypes[n].satisfactionEvaluationQuestionCategoryID==u.originalSelection?u.evaulationQuestionTypes[n].isSelected=!0:u.evaulationQuestionTypes[n].isSelected&&(u.evaulationQuestionTypes[n].isSelected=!1)}function e(){var n=u.da.satisfactionEvaluationQuestionCategoryID;r.all({satisfactionEvaluationTypes:s()}).then(function(t){u.evaulationQuestionTypes=t.satisfactionEvaluationTypes;n<0||o(n)});return}function o(n){for(var t=0;t<u.evaulationQuestionTypes.length;t++)u.evaulationQuestionTypes[t].satisfactionEvaluationQuestionCategoryID==n&&(u.evaulationQuestionTypes[t].isSelected=!0)}function s(){var n=r.defer(),t=i.returnSatisfactionQuestionCategories().$promise.then(function(t){n.resolve(t)});return n.promise}function h(n){for(var t=0;t<u.evaulationQuestionTypes.length;t++)if(u.evaulationQuestionTypes[t].satisfactionEvaluationQuestionCategoryID==n&&u.evaulationQuestionTypes[t].isSelected)return!0;return!1}function c(n){for(var t=0;t<u.evaulationQuestionTypes.length;t++)u.evaulationQuestionTypes[t].satisfactionEvaluationQuestionCategoryID!=n?(u.selectedHeading="",u.evaulationQuestionTypes[t].isSelected&&(u.evaulationQuestionTypes[t].isSelected=!u.evaulationQuestionTypes[t].isSelected)):(u.evaulationQuestionTypes[t].isSelected=!0,u.da.satisfactionEvaluationQuestionCategoryID=u.evaulationQuestionTypes[t].satisfactionEvaluationQuestionCategoryID)}function l(n){for(var t=0;t<u.evaulationQuestionTypes.length;t++)u.evaulationQuestionTypes[t].satisfactionEvaluationQuestionCategoryID!=n&&(u.evaulationQuestionTypes[t].isSelected=!u.evaulationQuestionTypes[t].isSelected)}var u=this;u.evaulationQuestionTypes=[];u.descriptions=[];u.setSelection=c;u.clearSelection=l;u.isGroupSelected=h;u.items=[];u.da=n.category;u.reset=n.reset;u.originalSelection=u.da.satisfactionEvaluationQuestionCategoryID!=-1?u.da.satisfactionEvaluationQuestionCategoryID:-1;e();n.$watch("reset",function(n,t){n!=t&&f()});n.keydownClear=function(t,i){t.keyCode==13&&(n.keydownClearEvent=u.clearSelection(i))};n.mousedownClear=function(t,i){n.mousedownClearEvent=u.clearSelection(i)};n.keydownSet=function(t,i){t.keyCode==13&&(n.keydownSetEvent=u.setSelection(i))};n.mousedownSet=function(t,i){n.mousedownSetEvent=u.setSelection(i)}}],templateUrl:"/app/templates/selectCategoryTemplate.html"}}angular.module("FEMACPT").directive("selectCategory",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{reflection:"=",reset:"="},controllerAs:"vm",link:function(){},controller:["$scope","femaAuth","SR","$q",function(n,t,i,r){function f(){for(var n=0;n<u.selfReflectionTypes.length;n++)u.selfReflectionTypes[n].selfReflectionTypeID==u.originalSelection?u.selfReflectionTypes[n].isSelected=!0:u.selfReflectionTypes[n].isSelected&&(u.selfReflectionTypes[n].isSelected=!1)}function e(){var n=u.da.selfReflectionTypeID;r.all({selfReflectionTypes:s()}).then(function(t){u.selfReflectionTypes=t.selfReflectionTypes;n<0||o(n)});return}function o(n){for(var t=0;t<u.selfReflectionTypes.length;t++)u.selfReflectionTypes[t].selfReflectionTypeID==n&&(u.selfReflectionTypes[t].isSelected=!0)}function s(){var n=r.defer(),t=i.returnSelfReflectionTypes().$promise.then(function(t){n.resolve(t)});return n.promise}function h(n){for(var t=0;t<u.selfReflectionTypes.length;t++)if(u.selfReflectionTypes[t].selfReflectionTypeID==n&&u.selfReflectionTypes[t].isSelected)return!0;return!1}function c(n){for(var t=0;t<u.selfReflectionTypes.length;t++)u.selfReflectionTypes[t].selfReflectionTypeID!=n?(u.selectedHeading="",u.selfReflectionTypes[t].isSelected&&(u.selfReflectionTypes[t].isSelected=!u.selfReflectionTypes[t].isSelected)):(u.selfReflectionTypes[t].isSelected=!0,u.da.selfReflectionTypeID=u.selfReflectionTypes[t].selfReflectionTypeID)}function l(n){for(var t=0;t<u.selfReflectionTypes.length;t++)u.selfReflectionTypes[t].selfReflectionTypeID!=n&&(u.selfReflectionTypes[t].isSelected=!u.selfReflectionTypes[t].isSelected)}var u=this;u.selfReflectionTypes=[];u.descriptions=[];u.setSelection=c;u.clearSelection=l;u.isGroupSelected=h;u.items=[];u.da=n.reflection;u.reset=n.reset;u.originalSelection=u.da.selfReflectionTypeID!=-1?u.da.selfReflectionTypeID:-1;e();n.$watch("reset",function(n,t){n!=t&&f()})}],templateUrl:"/app/templates/selectGroupTemplate.html"}}angular.module("FEMACPT").directive("selectGroup",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{faq:"=",reset:"="},controllerAs:"vm",link:function(){},controller:["$scope","femaAuth","FAQ","$q",function(n,t,i,r){function f(){for(var n=0;n<u.faqTypes.length;n++)u.faqTypes[n].frequentlyAskedQuestionTypeID==u.originalSelection?u.faqTypes[n].isSelected=!0:u.faqTypes[n].isSelected&&(u.faqTypes[n].isSelected=!1)}function e(){var n=u.da.frequentlyAskedQuestionTypeID;r.all({frequentlyAskedQuestionTypes:s()}).then(function(t){u.faqTypes=t.frequentlyAskedQuestionTypes;n<0||o(n)});return}function o(n){for(var t=0;t<u.faqTypes.length;t++)u.faqTypes[t].frequentlyAskedQuestionTypeID==n&&(u.faqTypes[t].isSelected=!0)}function s(){var n=r.defer(),t=i.returnFrequentlyAskedQuestionTypes().$promise.then(function(t){n.resolve(t)});return n.promise}function h(n){for(var t=0;t<u.faqTypes.length;t++)if(u.faqTypes[t].frequentlyAskedQuestionTypeID==n&&u.faqTypes[t].isSelected)return!0;return!1}function c(n){for(var t=0;t<u.faqTypes.length;t++)u.faqTypes[t].frequentlyAskedQuestionTypeID!=n?u.faqTypes[t].isSelected&&(u.faqTypes[t].isSelected=!u.faqTypes[t].isSelected):(u.faqTypes[t].isSelected=!0,u.da.frequentlyAskedQuestionTypeID=u.faqTypes[t].frequentlyAskedQuestionTypeID)}function l(n){for(var t=0;t<u.faqTypes.length;t++)u.faqTypes[t].frequentlyAskedQuestionTypeID!=n&&(u.faqTypes[t].isSelected=!u.faqTypes[t].isSelected)}var u=this;u.faqTypes=[];u.setSelection=c;u.clearSelection=l;u.isFAQTypeSelected=h;u.items=[];u.da=n.faq;u.reset=n.reset;u.originalSelection=u.da.frequentlyAskedQuestionTypeID!=-1?u.da.frequentlyAskedQuestionTypeID:-1;e();n.$watch("reset",function(n,t){n!=t&&f()});n.keydownClear=function(t,i){t.keyCode==13&&(n.keydownClearEvent=u.clearSelection(i))};n.mousedownClear=function(t,i){n.mousedownClearEvent=u.clearSelection(i)};n.keydownSet=function(t,i){t.keyCode==13&&(n.keydownSetEvent=u.setSelection(i))};n.mousedownSet=function(t,i){n.mousedownSetEvent=u.setSelection(i)}}],templateUrl:"/app/templates/selectHeadingTemplate.html"}}angular.module("FEMACPT").directive("selectHeading",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{activity:"=",reset:"="},controllerAs:"vm",link:function(){},controller:["$scope","femaAuth","Activity","$q",function(n,t,i,r){function f(){for(var n=0;n<u.developmentalActivityTypes.length;n++)u.developmentalActivityTypes[n].developmentalActivityTypeID==u.originalSelection?u.developmentalActivityTypes[n].isSelected=!0:u.developmentalActivityTypes[n].isSelected&&(u.developmentalActivityTypes[n].isSelected=!1)}function e(){var n=u.da.developmentalActivityTypeID;r.all({developmentalActivityTypes:s()}).then(function(t){u.developmentalActivityTypes=t.developmentalActivityTypes;n<0||o(n)});return}function o(n){for(var t=0;t<u.developmentalActivityTypes.length;t++)u.developmentalActivityTypes[t].developmentalActivityTypeID==n&&(u.developmentalActivityTypes[t].isSelected=!0)}function s(){var n=r.defer(),t=i.returnDevelopmentalActivityTypes().$promise.then(function(t){n.resolve(t)});return n.promise}function h(n){for(var t=0;t<u.developmentalActivityTypes.length;t++)if(u.developmentalActivityTypes[t].developmentalActivityTypeID==n&&u.developmentalActivityTypes[t].isSelected)return!0;return!1}function c(n){for(var t=0;t<u.developmentalActivityTypes.length;t++)u.developmentalActivityTypes[t].developmentalActivityTypeID!=n?u.developmentalActivityTypes[t].isSelected&&(u.developmentalActivityTypes[t].isSelected=!u.developmentalActivityTypes[t].isSelected):(u.developmentalActivityTypes[t].isSelected=!0,u.da.developmentalActivityTypeID=u.developmentalActivityTypes[t].developmentalActivityTypeID)}function l(n){for(var t=0;t<u.developmentalActivityTypes.length;t++)u.developmentalActivityTypes[t].developmentalActivityTypeID!=n&&(u.developmentalActivityTypes[t].isSelected=!u.developmentalActivityTypes[t].isSelected)}var u=this;u.developmentalActivityTypes=[];u.setSelection=c;u.clearSelection=l;u.isActivityTypeSelected=h;u.items=[];u.da=n.activity;u.reset=n.reset;u.originalSelection=u.da.developmentalActivityTypeID!=-1?u.da.developmentalActivityTypeID:-1;e();n.$watch("reset",function(n,t){n!=t&&f()});n.keydownClear=function(t,i){t.keyCode==13&&(n.keydownClearEvent=u.clearSelection(i))};n.mousedownClear=function(t,i){n.mousedownClearEvent=u.clearSelection(i)};n.keydownSet=function(t,i){t.keyCode==13&&(n.keydownSetEvent=u.setSelection(i))};n.mousedownSet=function(t,i){n.mousedownSetEvent=u.setSelection(i)}}],templateUrl:"/app/templates/selectItemTemplate.html"}}angular.module("FEMACPT").directive("selectItem",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{goal:"=",reset:"="},controllerAs:"vm",link:function(){},controller:["$scope","femaAuth","Goals","$q",function(n,t,i,r){function f(){for(var n=0;n<u.careerGoalSections.length;n++)u.careerGoalSections[n].careerGoalSectionID==u.originalSelection?u.careerGoalSections[n].isSelected=!0:u.careerGoalSections[n].isSelected&&(u.careerGoalSections[n].isSelected=!1)}function e(){var n=u.da.careerGoalSectionID;r.all({careerGoals:s()}).then(function(t){u.careerGoalSections=t.careerGoals;n<0||o(n)});return}function o(n){for(var t=0;t<u.careerGoalSections.length;t++)u.careerGoalSections[t].careerGoalSectionID==n&&(u.careerGoalSections[t].isSelected=!0)}function s(){var n=r.defer(),t=i.returnCareerGoalsSections().$promise.then(function(t){n.resolve(t)});return n.promise}function h(n){for(var t=0;t<u.careerGoalSections.length;t++)if(u.careerGoalSections[t].careerGoalSectionID==n&&u.careerGoalSections[t].isSelected)return!0;return!1}function c(n){for(var t=0;t<u.careerGoalSections.length;t++)u.careerGoalSections[t].careerGoalSectionID!=n?u.careerGoalSections[t].isSelected&&(u.careerGoalSections[t].isSelected=!u.careerGoalSections[t].isSelected):(u.careerGoalSections[t].isSelected=!0,u.da.careerGoalSectionID=u.careerGoalSections[t].careerGoalSectionID)}function l(n){for(var t=0;t<u.careerGoalSections.length;t++)u.careerGoalSections[t].careerGoalSectionID!=n&&(u.careerGoalSections[t].isSelected=!u.careerGoalSections[t].isSelected)}var u=this;u.careerGoalSections=[];u.setSelection=c;u.clearSelection=l;u.isTypeSelected=h;u.items=[];u.da=n.goal;u.reset=n.reset;u.originalSelection=u.da.careerGoalSectionID!=-1?u.da.careerGoalSectionID:-1;e();n.$watch("reset",function(n,t){n!=t&&f()});n.keydownClear=function(t,i){t.keyCode==13&&(n.keydownClearEvent=u.clearSelection(i))};n.mousedownClear=function(t,i){n.mousedownClearEvent=u.clearSelection(i)};n.keydownSet=function(t,i){t.keyCode==13&&(n.keydownSetEvent=u.setSelection(i))};n.mousedownSet=function(t,i){n.mousedownSetEvent=u.setSelection(i)}}],templateUrl:"/app/templates/selectGoalTemplate.html"}}angular.module("FEMACPT").directive("selectSection",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{},transclude:!0,controllerAs:"vm",link:function(){},controller:["$scope","femaAuth","$uibModal",function(n,t,i){var r=this}],template:'<div class="defaultPlusFont">Numbers denote the suggested steps to create a <a href="" data-ng-click="vm.showDetails()">Career Path<\/a><\/div>'}}angular.module("FEMACPT").directive("subDashboard",n)}(),function(){"use strict";function n(){return{transclude:!0,scope:{items:"=",sortType:"@",sortReverse:"@"},link:function(n,t,i,r,u){u(n.$new(),function(n){t.append(n)})}}}angular.module("FEMACPT").directive("tableSort",n)}(),function(){"use strict";function n(){return{restrict:"E",require:"ngModel",templateUrl:"/app/templates/toggleSwitch.html",scope:{cbName:"@",cbChecked:"=",cbDisabled:"=",cbModel:"=",cbClass:"@"}}}angular.module("FEMACPT").directive("toggleSwitch",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{user:"=",hidebuttons:"="},replace:!1,transclude:!0,controllerAs:"vm",link:function(){},controller:["$sce","$scope","$route","$injector","$q","$window","$location","$uibModal","alertService","femaAuth","CareerPlan","Assessment",function(n,t,i,r,u,f,e,o,s,h,c,l){function v(){l.returnUserCareerGoalsQuestionsAnswers({userId:a.user}).$promise.then(function(n){a.items=n;a.userCareerGoals=a.items.userCareerGoals;a.userCareerGoalId=a.items.userCareerGoalId;return})}function y(){angular.forEach(a.userCareerGoals,function(n){angular.forEach(n.questionsAnswers,function(n){a.answers.push({userID:a.user,careerGoalQuestionID:n.userCareerGoalQuestionID,careerGoalQuestionAnswer:n.userCareerGoalAnswer})})});var t=u.defer(),n;return n=n||r.get("$http"),n.post("api/assessment/updateUserCareerGoals",a.answers).success(function(n){return t.resolve(n),a.errors=n,a.errors.length==0?(s.addAlert("Career goals have been saved.","success"),$("#requestFeedback").removeAttr("disabled")):angular.forEach(a.errors,function(n){s.addAlert(n,"fail")}),t.promise})}function p(){f.location.href="#/careerPath/userCareerGoalSettingPrint/0"}function w(){f.location.href="/#/user"}function b(){f.location.href="#/careerPath/assessmentRequestFeedback/0"}var a=this;a.user=t.user;a.hideButtons=t.hidebuttons;a.items=[];a.userCareerGoals=[];a.answers=[];a.userCareerGoalId={};a.goUserHome=w;a.saveCareerGoals=y;a.goRequestFeedback=b;a.processReport=p;t.trustAsHtml=n.trustAsHtml;v();a.hideButtons&&$("#gsMain").removeClass("col-md-6 col-md-offset-2 col-sm-12 col-sm-offset-0")}],templateUrl:"/app/templates/goalSettingTemplate.html"}}angular.module("FEMACPT").directive("goals",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{user:"=",hidebuttons:"="},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$route","$injector","$q","$window","$location","$uibModal","alertService","femaAuth","CareerPlan","Assessment","FileSaver","Reports",function(n,t,i,r,u,f,e,o,s,h,c){function a(){c.returnSelfReflectionQuestionsAnswers({userId:l.user}).$promise.then(function(n){l.items=n;l.userSelfReflections=l.items.userSelfReflections;l.userSelfReflectionId=l.items.userSelfReflectionID;return})}function v(){angular.forEach(l.userSelfReflections,function(n){angular.forEach(n.questionsAnswers,function(n){l.answers.push({userID:l.user,selfReflectionQuestionID:n.selfReflectionQuestionID,selfReflectionQuestionAnswer:n.userSelfReflectionAnswer})})});var t=r.defer(),n;return n=n||i.get("$http"),n.post("api/assessment/updateUserSelfReflections",l.answers).success(function(n){return t.resolve(n),l.errors=n,l.errors.length==0?(o.addAlert("Self-reflections have been saved.","success"),$("#careerBuilderButton").removeAttr("disabled")):angular.forEach(l.errors,function(n){o.addAlert(n,"fail")}),t.promise})}function y(){u.location.href="#/careerPath/userSelfReflectionPrint/0"}function p(){u.location.href="/#/user"}function w(){u.location.href="#/careerPath/home"}var l=this;l.user=n.user;l.hideButtons=n.hidebuttons;l.items=[];l.selfReflections=[];l.answers=[];l.userSelfReflectionId=null;l.reportObject=null;l.selectedReport="SelfReflectionReport";l.goUserHome=p;l.goCareerPlan=w;l.saveSelfReflections=v;l.processReport=y;a();l.hideButtons&&$("#sfMain").removeClass("col-md-6 col-md-offset-2 col-sm-12 col-sm-offset-0")}],templateUrl:"/app/templates/selfReflectionTemplate.html"}}angular.module("FEMACPT").directive("reflections",n)}(),function(){"use strict";function n(){return{restrict:"E",scope:{userassessmentid:"@",careerplanid:"@",userfeedbackrequestid:"@",fullname:"@",printformat:"@"},replace:!0,controllerAs:"vm",link:function(){},controller:["$scope","$sce","$routeParams","$q","$window","$injector","$uibModal","femaAuth","alertService","Assessment",function(n,t,i,r,u,f,e,o,s,h){function l(){a()}function a(){h.returnFeedbackRequest({id:c.userFeedbackRequestId}).$promise.then(function(n){var t=n;c.user=t.requestedUserID;c.relatedUserId=t.userID;v()})}function v(){return h.returnAssessmentById({id:c.userAssessmentId,comments:!0}).$promise.then(function(n){c.endPositionId=n.endPositionID;y()})}function y(){h.returnCompetencyData({id:c.endPositionId,userCareerPlanId:c.careerPlanId,userId:c.user,relatedUserId:c.relatedUserId}).$promise.then(function(n){c.competencyData=n;p()});return}function p(){h.returnUserFeedbackQuestions({id:c.userFeedbackRequestId}).$promise.then(function(n){c.feedback=n;return})}function w(){u.location.href="#/careerPath/assessmentPrintFeedback/"+c.userAssessmentId+"/"+c.careerPlanId+"/"+c.userFeedbackRequestId+"/true"}var c=this;c.endPositionId;c.competencyData=[];c.readonly=!0;c.assessmentComments;c.userFeedbackRequestId=n.userfeedbackrequestid;c.careerPlanId=n.careerplanid;c.userAssessmentId=n.userassessmentid;c.printFormat=n.printformat;c.report=w;c.careerPlans=[];n.trustAsHtml=t.trustAsHtml;c.relatedAssessmentId;l()}],templateUrl:"/app/templates/viewRatedAssessmentTemplate.html"}}angular.module("FEMACPT").directive("viewRatedAssessment",n)}(),function(){"use strict";function n(){return{alertHeader:"",alerts:{},addHeader:function(n){this.alertHeader=n},addAlert:function(n,t){this.alerts[t]=this.alerts[t]||[];this.alerts[t].map(function(n){return n.message}).indexOf(n)===-1&&this.alerts[t].push({message:n,viewed:!1})},clearAlerts:function(n,t){var i=this.alerts[t].map(function(n){return n}).indexOf(n);i!==-1&&this.alerts[t].splice(i,1);this.alerts[t].length<1&&delete this.alerts[t]},markAsViewed:function(){var n,r,t,i;for(n in this.alerts)for(r=this.alerts[n].length,t=0;t<r;t++)i=this.alerts[n][t],i.viewed&&this.clearAlerts(i,n),i.viewed=!0}}}angular.module("FEMACPT").factory("alertService",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o){function h(i){var r=u.defer(),s=n.get("femaAuth"),f=t.get("authData");return i.url.indexOf("/token")===-1&&i.url.indexOf("api")>-1?s.isTokenExpired()?(e.append(i),o.isTokenRefreshInProcess||(o.isTokenRefreshInProcess=!0,s.refreshToken().then(function(){f=t.get("authData");e.retryAll("Bearer "+f.token).then(function(){r.resolve(i)})},function(){r.reject(i);o.isTokenRefreshInProcess=!1}))):(f&&(i.headers.Authorization="Bearer "+f.token),r.resolve(i)):r.resolve(i),r.promise}function c(n){return n||u.when(n)}function l(i){var e=u.defer(),h=n.get("femaAuth"),c,s,o;if(i.status===401)h=n.get("femaAuth"),c=t.get("authData"),c!=null?i.statusText==="user_role_invalid"?(f.addAlert("You are not authorized to view this resource.","danger"),e.reject(i)):i.statusText==="single_sign_denial"?(f.addAlert("You have been signed out by another computer.","info"),h.logOut(),r.location.href="/saml",e.reject(i)):(console.log(i),e.reject(i)):e.reject(i);else if(i.status===400){if(i.data!=undefined){if(i.data.modelState!==undefined)for(s in i.data.modelState)for(o=0;o<i.data.modelState[s].length;o++)f.addAlert(i.data.modelState[s][o],"danger");i.data.error_description!=undefined&&f.addAlert(i.data.error_description,"danger")}e.reject(i)}else i.status!=0&&(f.addAlert("Server error occurred: "+i.status,"danger"),e.reject(i));return e.promise}function a(){var n=i(function(){i.cancel(n);r.location.href="/#/forgot"},4e3)}var s={request:h,responseError:l,response:c,startTimer:a};return s}n.$inject=["$injector","localStorageService","$timeout","$window","$q","alertService","femaHttpBuffer","$rootScope"];angular.module("FEMACPT").factory("authInterceptorService",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s){function a(){var i=t.defer(),r;return r=r||n.get("$http"),r.post("saml/GetLoginToken","").success(function(n){n!=""&&n.access_token!=undefined&&(u.set("authData",{token:n.access_token,username:n.userName,refreshToken:n.refresh_token,useRefreshTokens:!0}),u.remove("isGuest"),h.isAuth=!0,h.username=n.userName,h.useRefreshTokens=!0,i.resolve(n))}).error(function(n){i.reject(n)}),i.promise}function v(){u.set("isGuest","true")}function y(){return u.get("isGuest")==="true"}function p(){var n=u.get("authData");return n?o.isTokenExpired(n.token):!1}function c(){u.remove("authData");h.isAuth=!1;h.username="";h.useRefreshTokens=!1}function w(){var n=u.get("authData");n&&(h.isAuth=!0,h.username=n.username,h.useRefreshTokens=n.useRefreshTokens)}function b(){var n=u.get("authData");return n!==null&&n.token!==null&&n.token!==undefined?n.token:null}function k(){var n=t.defer(),i=u.get("authData");return i?o.isTokenExpired(i.token)?(s.isTokenRefreshInProcess=!0,l().then(function(){n.resolve()},function(){n.reject()})):n.resolve():n.reject(),n.promise}function l(){var i=t.defer(),r=u.get("authData"),o,e;return r&&r.useRefreshTokens?(o="grant_type=refresh_token&refresh_token="+r.refreshToken+"&client_id="+f.clientId,e=e||n.get("$http"),e.post("/token",o,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).success(function(n){s.isTokenRefreshInProcess=!1;u.remove("authData");u.set("authData",{token:n.access_token,username:h.username,refreshToken:n.refresh_token,useRefreshTokens:!0});i.resolve(n)}).error(function(n){c();i.reject(n)})):(c(),i.reject()),i.promise}function d(n,t){var f=u.get("authData"),l,a,e,i;if(f===null||f===undefined)return c(),!1;var s=!1,h=!1,r=null;if(f.token!=undefined){if(r=o.decodeToken(f.token),l=[],n!==undefined&&n!==null&&n!=="")for(l=n.split(","),s=!1,i=0;i<r.role.length;i++)a="",a=r.role=="User"?"User":r.role[i],l.indexOf(a)>-1&&(s=!0);if(e=[],t!==undefined&&t!==null&&t!=="")for(e=t.split(","),h=!1,i=0;i<e.length;i++)r.hasOwnProperty(e[i])&&(h=!0)}return s==!1&&h==!1?!1:!0}var h={isAuth:!1,username:"",useRefreshTokens:!1};return{authentication:h,fillAuthData:w,getToken:b,login:a,logOut:c,isAuthorized:d,isGuest:y,isTokenExpired:p,isUserAuthenticated:k,refreshToken:l,setGuest:v}}n.$inject=["$injector","$q","$location","$state","localStorageService","authSettings","alertService","jwtHelper","$rootScope"];angular.module("FEMACPT").factory("femaAuth",n)}(),function(){"use strict";function n(n,t){function r(n,t){i.push({config:n,deferred:t})}function u(){for(var n=0;n<i.length;++n)i[n].deferred.reject();i=[]}function f(n){for(var u=[],r=0;r<i.length;++r)u.push(e(i[r].config,n));return t.all(u).then(function(){i=[]})}function e(i,r){var u=t.defer(),f;return f=f||n.get("$http"),i.headers.Authorization=r,f(i).then(function(n){u.resolve(n)},function(n){u.reject(n)}),u.promise}var i=[];return{append:r,rejectAll:u,retryAll:f}}n.$inject=["$injector","$q"];angular.module("FEMACPT").factory("femaHttpBuffer",n)}(),function(){"use strict";function n(n,t){var i={};return i.new=function(n,i,r){function e(n,t){return typeof n=="string"?n.toLowerCase().indexOf(t.toLowerCase())!==-1:!1}function f(n){var s=[],i,r=Math.ceil(u.navSize/2),t,f,e,o;for(u.currentPage<=r?(t=1,i=u.navSize):u.currentPage>r&&u.currentPage+r-1<u.pageCount?(t=u.currentPage-r+1,i=t+parseInt(u.navSize)-1):(i=u.pageCount,t=u.pageCount-u.navSize+1),f=t;f<=i;f++)s.push(f);u.pages=s;e=(u.currentPage-1)*u.numPerPage;o=e+u.numPerPage;u.filteredItems=n?u.searchedItems.slice(e,o):u.items.slice(e,o)}n=n===undefined?10:n;var u={pageCount:0,numPerPage:10,currentPage:1,navSize:5,query:"",items:[],pages:[],filteredItems:[],searchedItems:[]};return u.numPerPage=n,u.items=r,u.pageCount=Math.ceil(r.length/u.numPerPage),u.navSize=i>u.pageCount?u.pageCount:i,u.prevPage=function(){u.currentPage>0&&u.currentPage--},u.nextPage=function(){u.currentPage<u.pageCount&&u.currentPage++},u.setPage=function(n){n>=0&&n<=u.pageCount&&(u.currentPage=n)},u.calcPages=function(){return f()},u.search=function(){u.searchedItems=t("filter")(u.items,function(n){for(var t in n)if(e(n[t],u.query))return!0;return!1});u.currentPage=1;u.pageCount=Math.ceil(u.searchedItems.length/u.numPerPage);f(!0)},u.pages=f(),u},i}n.$inject=["$rootScope","$filter"];angular.module("FEMACPT").factory("pagination",n)}();angular.module("FEMACPT.admin",[]);angular.module("FEMACPT").config(["$routeProvider",function(){}]),function(){"use strict";function n(){return function(n,t){var i={careerTracks:n,out:[]};return t.functionalArea1==="All"?i.out=n:n.forEach(function(n){n.functionalArea.functionalArea1===t.functionalArea1&&i.out.push(n)}),i.out}}angular.module("FEMACPT").filter("filtercareertrack",n)}(),function(){"use strict";function n(){return function(n,t){var i={careerTracks:n,out:[]};return n.forEach(function(n){n.careerTrack==t&&i.out.push(n)}),i.out}}angular.module("FEMACPT").filter("careerTrackPositionFilter",n)}(),function(){"use strict";function n(){return function(n,t,i){if(n===undefined||n.length===undefined)return null;var r=function(n){return n!=t&&n!=i};return n.filter(r)}}angular.module("FEMACPT").filter("excludeUsed",n)}(),function(){"use strict";function n(){return function(n){var t={competencies:n,out:[]};return t.out}}angular.module("FEMACPT").filter("filterCompetency",n)}(),function(){"use strict";function n(){return function(n,t){var i={functionalAreas:n,out:[]};return t.careerType1==="All"?i.out=n:n.forEach(function(n){n.careerType.careerType1===t.careerType1&&i.out.push(n)}),i.out}}angular.module("FEMACPT").filter("filterfunctionalarea",n)}(),function(){"use strict";function n(){return function(n,t,i){var r,u;if(!angular.isObject(n))return n;r=[];for(u in n)r.push(n[u]);return r.length>0&&(typeof r[0].attribute=="number"?r.sort(function(n,i){return n=parseInt(n[t]),i=parseInt(i[t]),n-i}):r.sort(function(n,r){return n=n[t],r=r[t],i?r>n:n>r})),r}}angular.module("FEMACPT").filter("orderObjectBy",n)}(),function(){"use strict";function n(){return function(n,t,i){var r={competencies:n,out:[]};return i.selected==="All"&&i.proficiency==="All"?r.out=n:n.forEach(function(n){i.selected==="All"&&i.proficiency==="All"?t.map(function(n){return n.proficiencyID}).indexOf(n.proficiencyID)>-1&&r.out.push(n):i.selected==="Selected"&&i.proficiency==="All"?t.map(function(n){return n.competencyID}).indexOf(n.competencyID)>-1&&r.out.push(n):i.selected==="Not Selected"&&i.proficiency==="All"?t.map(function(n){return n.competencyID}).indexOf(n.competencyID)==-1&&r.out.push(n):i.selected==="All"&&i.proficiency!=="All"?i.proficiency.indexOf(n.proficiencyLevel)>-1&&r.out.push(n):i.selected==="Selected"&&i.proficiency!=="All"?t.map(function(n){return n.competencyID}).indexOf(n.competencyID)>-1&&i.proficiency.indexOf(n.proficiencyLevel)>-1&&r.out.push(n):i.selected==="Not Selected"&&i.proficiency!=="All"&&t.map(function(n){return n.competencyID}).indexOf(n.competencyID)==-1&&i.proficiency.indexOf(n.proficiencyLevel)>-1&&r.out.push(n)}),r.out}}angular.module("FEMACPT").filter("positionCompentecy",n)}(),function(){"use strict";function n(){return function(n,t){var i={positions:n,out:[]};return n.forEach(function(n){(t.careerTrackFilter==="All"||n.careerTrack===t.careerTrackFilter)&&(t.functionalAreaFilter==="All"||n.functionalArea===t.functionalAreaFilter)&&i.out.push(n)}),i.out}}angular.module("FEMACPT").filter("positiondetail",n)}(),function(){"use strict";function n(n){return n("api/careerPlan/:id",{},{getSavedCareerPlans:{url:"/api/careerPlan/getSavedCareerPlans/:id",method:"GET",isArray:!0},get:{method:"GET",isArray:!0}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("CareerPlan",n)}(),function(){"use strict";function n(n){return n("api/competency/:id",{},{get:{method:"GET",isArray:!0},update:{method:"PUT"},"delete":{method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("Competency",n)}(),function(){"use strict";function n(){}angular.module("FEMACPT.admin").controller("manageCompentenciesController",n)}(),function(){"use strict";function n(n,t){var i=this;i.alerts=t.alerts;i.alertHeader=t.alertHeader;n.keydownAlert=function(t,r,u){t.keyCode==13&&(n.keydownAlertEvent=i.delete(r,u))};i.delete=function(n,i){t.clearAlerts(n,i)}}n.$inject=["$scope","alertService"];angular.module("FEMACPT").controller("alertsController",n)}(),function(){"use strict";function n(n,t,i,r){function o(){t.getUserTenant().then(function(n){u.tenant=n});t.userCanSeeCompassLink().then(function(n){u.showCompassLink=n});$("#homeItem").focus();f("homeItem")}function e(n){$("#"+n).removeAttr("style");n=="user"&&$("#"+n).css("width","200px").css("height","50px").css("padding-bottom","0px").css("padding-top","7px")}function f(n){$("#"+n).css("color","white").css("font-weight","700")}var u=this;u.tenant="";u.showCompassLink=!1;u.showDropMenu;u.hideStyle=e;u.showStyle=f;u.navbarCollapsed=!0;o();n.focus=function(t,i){n.focusEvent=f(i)};n.blur=function(t,i){n.blurEvent=e(i)};u.logOut=function(){r.logOut();i.location.href="/#/experienceEvaluation"};u.authentication=r.authentication}n.$inject=["$scope","$rootScope","$window","femaAuth","alertService"];angular.module("FEMACPT").controller("indexController",n)}(),function(){"use strict";function n(n){return n("/api/careerpath",{},{get:{method:"GET"},update:{method:"PUT"},save:{method:"POST"}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("CareerPaths",n)}(),function(){"use strict";function n(n){return n("/api/positions/:id",{},{get:{method:"GET"},getPosition:{url:"/api/positions/careerbuilder/:id",method:"GET"},getNext:{url:"/api/positions/careerbuilder/next/:id",method:"GET",isArray:!0},getVMs:{method:"GET",url:"/api/positions/viewmodels",isArray:!0},returnPositionById:{method:"GET",url:"/api/positions/returnPositionById/:id",isArray:!1},returnCompetencyNames:{method:"GET",url:"/api/positions/returnCompetencyNames/:id",isArray:!0},updatePositionStatus:{method:"PUT",url:"/api/positions/updatePositionStatus",isArray:!0},update:{method:"PUT"},"delete":{method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("Positions",n)}(),function(){"use strict";function n(n){return n("/api/careerplan/:id",{},{get:{method:"GET"},returnCareerPlanMetrics:{url:"/api/careerplan/getCareerPlanMetrics",method:"GET",isArray:!1},update:{method:"PUT"},save:{method:"POST"}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("UserCareerPlans",n)}(),function(){function n(n,t,i,r,u,f,e,o,s,h,c,l,a){function b(){var n=h.get("careerPlan");n?(v.isGuest?($("#butLP").removeAttr("disabled"),e.addAlert("Your local career path has been retrieved. You must delete it before starting a new path. Log in to save as many career plans as you would like.","info")):e.addAlert("Your local career path has been retrieved. You must save it now before starting a new path.","info"),n.selectedPlan.forEach(function(n){y(n);c.loading=!1}),v.startPosition=v.selectedPositions[0]):v.careerPlan!==null?($("#butP").removeAttr("disabled"),v.careerPlan.positions.forEach(function(n){y(n,!0)}),v.selectedPositions.length<4?p(v.careerPlan.positions[v.careerPlan.positions.length-1].positionID).then(function(){c.loading=!1}):c.loading=!1,v.startPosition=v.selectedPositions[0]):(y(v.startPosition),w(),c.loading=!1,v.startPosition=v.selectedPositions[0])}function k(){a({title:"Delete Temporarily Saved Plan?",text:"Deleting this plan is irreversible. Are you certain you wish to remove this plan permanently?"}).then(function(){h.remove("careerPlan");e.addAlert("You have deleted your career plan","info");window.location.href="#/careerBuilder/home"})}function y(n,t){n.sortOrder=v.stepNumber;v.selectedPositions.push(n);v.selectedPositions.length<4?t?v.stepNumber++:p(n.positionID).then(function(){v.selectedPositions.length>=4||v.nextPositions.length==0?v.stepNumber:v.stepNumber++}):(v.careerTracks=[],v.nextPositions=[]);v.compares=[];v.readyToSave=v.selectedPositions.length>1}function d(){var n=h.get("careerPlan");n==null?(h.set("careerPlan",{selectedPlan:v.selectedPositions}),e.addAlert("Your career path has been temporarily saved.","success")):(h.remove("careerPlan"),h.set("careerPlan",{selectedPlan:v.selectedPositions}),e.addAlert("Your temporary career path has been updated.","success"))}function g(n){var i,r;$("#butP").removeAttr("disabled");v.currentCareerPathID>1?(i=new t(n),i.$update(function(){e.addAlert("Career path has been updated.","success")},function(){e.addAlert("An error occurred updating your career path.","danger")})):(r=new t(n),r.$save(function(n){e.addAlert("Your career path has been saved.","success");v.currentCareerPathID=n.userCareerPlanID;h.remove("careerPlan")},function(){e.addAlert("An error occurred saving your career path.","danger")}))}function nt(){for(var t={CareerPlanID:v.currentCareerPathID,CareerPaths:[]},n=0;n<v.selectedPositions.length;n++)t.CareerPaths.push({PositionID:v.selectedPositions[n].positionID,SortOrder:v.selectedPositions[n].sortOrder});return $("#butUA").removeAttr("disabled"),$("#butLP").removeAttr("disabled"),v.isGuest?d(t):g(t)}function tt(){v.selectedPositionsCollapsed=!v.selectedPositionsCollapsed}function it(){v.comparesCollapsed=!v.comparesCollapsed}function rt(n){v.compares.push(n)}function ut(n){var t=v.compares.indexOf(n);v.compares.splice(t,1)}function ft(){v.compares=[]}function et(n){n==-1?(v.stepNumber=2,v.selectedPositions.length=1,p(v.startPosition.positionID),v.readyToSave=!1,v.positionsAvailable=!0):(v.selectedPositions.length=n+1,p(v.selectedPositions[n].positionID).then(function(){v.stepNumber=n+2;v.readyToSave=v.selectedPositions.length>1}))}function w(){v.careerTracks=[];v.nextPositions.forEach(function(n){n.visible=!0;v.careerTracks.indexOf(n.careerTrack)==-1&&v.careerTracks.push(n.careerTrack)});v.careerTracks=v.careerTracks.sort(function(n,t){return n>t})}function p(t){var i=s.defer();return n.getNext({id:t}).$promise.then(function(n){v.nextPositions=n;w();i.resolve()}),i.promise}function ot(){var n=f.open({templateUrl:"/app/templates/modals/compareModal.html",controller:"compareModalController as vm",size:"lg",animation:!0,windowClass:"compare-modal",windowTopClass:"slide-from-right",resolve:{compares:function(){return v.compares}}});n.result.then(function(n){n&&y(n)})}function st(n){var t=f.open({templateUrl:"/app/templates/modals/jobDescriptionModal.html",controller:"jobDescriptionModalController as vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right",resolve:{position:function(){return n}}});t.result.then(function(){},function(){})}function ht(){var n=f.open({templateUrl:"/app/templates/modals/quickStartModal.html",controller:"quickStartModalController as vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right"});n.result.then(function(){},function(){})}function ct(t){function i(){return n.returnCompetencyNames({id:t.positionID}).$promise.then(function(n){v.competencies=n;var i=f.open({templateUrl:"/app/templates/modals/builderModal.html",controller:"builderModalController as vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right",resolve:{competencies:function(){return v.competencies},position:function(){return t},compareActive:function(){return v.compares.length>=3},addActive:function(){return v.selectedPositions.length>=4}}});i.result.then(function(n){n=="selected"?y(t):v.compares.push(t)},function(){})})}i()}function lt(){u.location.href="#/careerPath/userAssessment/0"}function vt(){u.location.href="#/careerPath/userCareerPlansPrint/"+v.currentCareerPathID}function yt(){var n=h.get("careerPlan"),t=[];n.selectedPlan.forEach(function(n){var i=n.positionID;t.push({PID:i})});n&&(u.location.href="#/careerPath/assessmentPrintGuest/"+JSON.stringify(t))}var v=this,at;v.startPosition=l.startPosition;v.careerPlan=l.careerPlan;v.nextPositions=[];v.careerTracks=[];v.hideDescription=[4];v.compares=[];v.comparesCollapsed=!0;v.currentCareerPathID=-1;v.endings=[1];v.isGuest=o.isGuest();v.positionsAvailable=!0;v.readyToSave=!1;v.selectedPositions=[];v.selectedPositionsCollapsed=!0;v.stepNumber=1;v.addCompare=rt;v.deleteLocal=k;v.removeCompare=ut;v.removeCompares=ft;v.resetPositions=et;v.savePlan=nt;v.show=ct;v.showCompare=ot;v.showJobDescription=st;v.toggleCompareCollapse=it;v.toggleCollapse=tt;v.goAssessment=lt;v.goPrintCareerPlan=yt;v.goProcessReport=vt;v.gettingStarted=ht;v.competencies=[];i.keydownPositions=function(n,t){n.keyCode==13&&(i.keydownEvent=v.show(t))};b();at=[{positionID:null}]}n.$inject=["Positions","UserCareerPlans","$scope","$routeParams","$window","$uibModal","alertService","femaAuth","$q","localStorageService","$rootScope","careerBuilderPrepService","$confirm"];angular.module("FEMACPT").controller("builderController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y){function b(){var n=v.get("careerPlan");p.isGuest?(p.hasCareerPlans=n!==undefined&&n!==null,n!=undefined&&n!=null&&(p.selectedPosition=n.selectedPlan[0].positionID)):p.hasLocalPlanNeedsSaving=n!==undefined&&n!==null;r.all({positionData:tt(),functionalAreaData:nt(),careerTrackData:d(),careerTypeData:g(),careerPlansData:k(),tenant:t.getUserTenant()}).then(function(n){p.positions=n.positionData;p.careerTypes=n.careerTypeData;p.careerTracks=n.careerTrackData;p.functionalAreas=n.functionalAreaData;p.careerPlans=n.careerPlansData;p.tenant=n.tenant;t.loading=!1})}function k(){if(!p.isGuest){var n=r.defer(),t=c.query({},function(){n.resolve(t)});return n.promise}return}function d(){var n=r.defer(),t=s.getNonAdmin({},function(){n.resolve(t)});return n.promise}function g(){var n=r.defer(),t=o.query({},function(){n.resolve(t)});return n.promise}function nt(){var n=r.defer(),t=e.getNonAdmin({},function(){n.resolve(t)});return n.promise}function tt(){var n=r.defer(),t=h.query({},function(){n.resolve(t)});return n.promise}function it(){i({text:"Removing your guest plan is permanent. Are you sure you wish to continue?",title:"Delete Saved Guest Plan?"}).then(function(){v.remove("careerPlan");p.hasLocalPlanNeedsSaving=!1})}function rt(){for(var r,t=v.get("careerPlan"),i={CareerPlanID:p.currentCareerPathID,CareerPaths:[]},n=0;n<t.selectedPlan.length;n++)i.CareerPaths.push({PositionID:t.selectedPlan[n].position.positionID,SortOrder:n+1});r=new c(i);r.$save(function(){y.addAlert("Your path has successfully been saved.","success");t!==undefined&&(v.remove("careerPlan"),p.hasLocalPlanNeedsSaving=!1)})}function ut(n){p.selectedCareerType=n;p.selectedFunctionalArea=null;p.selectedCareerTrack=null;p.selectedPosition=null;p.availablePositions=[];p.availableCareerTracks=[];angular.copy(p.functionalAreas,p.availableFunctionalAreas);p.availableFunctionalAreas=u("filter")(p.functionalAreas,{careerTypeID:n.careerTypeID});p.selectedCareerType.careerType1=="Disaster"&&at()}function ft(n){p.selectedFunctionalArea=n;p.selectedCareerTrack=null;p.selectedPosition=null;p.availablePositions=[];p.availableCareerTracks=[];angular.forEach(p.careerTracks,function(t){t.functionalAreaID==n.functionalAreaID&&p.availableCareerTracks.push(t)})}function et(n){p.availablePositions=[];p.selectedPosition=null;p.selectedCareerTrack=n;angular.forEach(p.positions,function(t){t.careerTrackID==n.careerTrackID&&(t.archived||p.availablePositions.push(t))})}function ot(n){p.selectedPosition=n}function st(n){p.selectedSearchPosition=n}function ht(){i({text:"Continue to User Assessments to complete self-evaluation assessment.",title:"Continue",size:"sm",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right"}).then(function(){f.location="#/careerPath/userAssessment/0"})}function ct(){p.videopath="../../../Content/FEMACPB2.mp4";p.ccpath="../../../Content/FEMACPT_vid2.vtt";w()}function lt(){p.videopath="../../../Content/FEMACPB3.mp4";p.ccpath="../../../Content/FEMACPT_vid3.vtt";w()}function at(){var t=n.open({templateUrl:"/app/templates/modals/disasterDisclaimer.html",controller:"disasterDisclaimerModalController as vm",size:"sm",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right"});t.result.then(function(){},function(){})}function w(){var t=p.videopath,i=p.ccpath,r=n.open({templateUrl:"/app/templates/modals/playVideoModal.html",controller:"playVideoModalController as vm",size:"lg",animation:!0,windowClass:"pull-right video-player",windowTopClass:"slide-from-right",resolve:{videopath:function(){return t},ccpath:function(){return i}}});r.result.then(function(){},function(){})}var p=this;p.tenant="";p.reportObject=null;p.careerPlans=null;p.careerTracks={};p.careerTypes={};p.positions=[];p.functionalAreas={};p.availableFunctionalAreas=[];p.availableCareerTracks=[];p.availablePositions=[];p.selectedCareerTrack=null;p.selectedCareerType=null;p.selectedFunctionalArea=null;p.selectedPosition=null;p.selectedSearchPosition=null;p.positionSeach="";p.isGuest=a.isGuest();p.hasCareerPlans=!1;p.hasLocalPlanNeedsSaving=!1;p.careerPlans=[];p.videopath;p.ccpath;p.playVideo2=ct;p.playVideo3=lt;p.removeLocalPlan=it;p.saveLocalPlan=rt;p.selectCareerType=ut;p.selectFunctionalArea=ft;p.selectCareerTrack=et;p.selectPosition=ot;p.selectSearchPosition=st;p.confirmAssessments=ht;b()}n.$inject=["$uibModal","$rootScope","$confirm","$q","$filter","$window","FunctionalArea","CareerTypes","CareerTracks","Positions","UserCareerPlans","CareerPaths","femaAuth","localStorageService","alertService"];angular.module("FEMACPT").controller("builderIndexController",n)}(),function(){"use strict";function n(n,t,i){function u(){i.dismiss("cancel")}var r=this;r.close=u;r.title=n.title}n.$inject=["properties","$scope","$uibModalInstance"];angular.module("FEMACPT").controller("alertModalController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e){function h(){o.showDescription=!o.showDescription}function c(){i.close("selected")}function l(){i.close("compare")}function a(){i.dismiss("cancel")}var o=this,s;for(o.position=r,o.compareActive=f,o.addActive=e,o.competencies=u,o.showDescription={},s=0;s<o.position.positionCompetency.length;s++)o.position.positionCompetency[s].Competency=u[s].competency1;n.trustAsHtml=t.trustAsHtml;o.positionInformation=r.positionDescription;o.close=a;o.compare=l;o.select=c;o.showCompetencies=!o.showCompetencies;o.toggleDescription=h}n.$inject=["$scope","$sce","$uibModalInstance","position","competencies","compareActive","addActive"];angular.module("FEMACPT").controller("builderModalController",n)}(),function(){"use strict";function n(n,t,i,r,u,f){function o(){f.returnCareerMapLegend({mapName:e.name}).$promise.then(function(n){e.data=n[0]})}function s(){r.dismiss("cancel")}var e=this;e.name=n.name;e.header=n.header;e.data;o();t.trustAsHtml=i.trustAsHtml;e.close=s}n.$inject=["legend","$scope","$sce","$uibModalInstance","$q","CareerPlanMap"];angular.module("FEMACPT").controller("careerPlanMapLegendController",n)}(),function(){"use strict";function n(n,t,i,r,u,f){var e=this;e.newCareerTrack={careerTrack1:"",careerTrackDescription:"",functionalAreaID:f.functionalAreaID};n.keydown=function(t){t.keyCode==13&&(n.keydownEvent=e.close())};e.save=function(){var n=new r(e.newCareerTrack);n.$save(function(n){i.close(n)},function(){u.addAlert("An error occurred adding the functional area.","danger")})};e.close=function(){i.dismiss("cancel")}}n.$inject=["$scope","$sce","$uibModalInstance","CareerTracks","alertService","functionalArea"];angular.module("FEMACPT").controller("careerTrackModalController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s){function a(){v();l()}function v(){c.userFeedbackRequestId=h.userFeedbackRequestId;var i=t.defer(),n;return n=n||r.get("$http"),n.post("api/assessment/updateUserFeedbackRequest",c).success(function(n){var t=n;t!=null&&s.addAlert("User has been notified the review is completed.","success");i.resolve(n)}).error(function(n){i.reject(n)})}function l(){o.dismiss("cancel")}var h=this,c={userFeedbackRequestId:null};h.userFeedbackRequestId=n.feedbackrequestid;h.close=l;h.save=a}n.$inject=["feedbackinfo","$q","$location","$injector","$http","$scope","Assessment","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("checkForCompletionController",n)}(),function(){"use strict";function n(n,t,i,r){function f(){r.dismiss("cancel")}var u=this;u.close=f;u.comments=[];u.comments=n;i.trustAsHtml=t.trustAsHtml}n.$inject=["comments","$sce","$scope","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("commentsModalController",n)}(),function(){"use strict";function n(n,t,i,r){var u=this;u.compares=[];angular.forEach(i,function(n){r.returnCompetencyNames({id:n.positionID}).$promise.then(function(t){u.competencies=t;u.compares.push({compareInfo:n,competencies:u.competencies})})});u.close=function(){t.dismiss("cancel")};u.getAsHtml=function(t){return n.trustAsHtml(t)};u.select=function(n){t.close(n)}}n.$inject=["$sce","$uibModalInstance","compares","Positions"];angular.module("FEMACPT").controller("compareModalController",n)}(),function(){"use strict";function n(n,t,i,r,u){function o(){r.get({id:t.competencyID},function(n){f.descriptions=n})}function s(){i.dismiss("cancel")}function h(){var n=new r(f.newDescription);n.$save(function(n){u.addAlert("Clicked","info");i.close(n)})}function e(n){i.close(n)}var f=this;f.addingNew=!1;f.competency=t;f.descriptions=[];f.newDescription={competencyID:t.competencyID,competencyDescription:""};f.close=s;f.saveNew=h;f.selectDescription=e;o();n.keydown=function(t){t.keyCode==13&&(n.keydownEvent=f.close())};n.keydownDesc=function(t,i){t.keyCode==13&&(n.keydownEvent=e(i))}}n.$inject=["$scope","competency","$uibModalInstance","CompetencyDescription","alertService"];angular.module("FEMACPT").controller("CompetencyDescriptionModalController",n)}(),function(){"use strict";function n(n,t,i,r,u){function o(){}function s(){if(f.returnDates.from=i.dateFrom,f.returnDates.to=i.dateTo,f.returnDates.showAllDates=f.showAllDates,f.returnDates.from>f.returnDates.to&&!f.showAllDates){u.addAlert("From date must be before To date","danger");return}e()}function e(){r.close(f.returnDates)}function h(){r.dismiss()}var f=this;i.dateTo=new Date;i.dateFrom=new Date;i.today=function(){i.dt=new Date};i.today();i.clear=function(){i.dt=null};i.options={minDate:new Date,showWeeks:!1};i.open1=function(){i.popup1.opened=!0};i.open2=function(){i.popup2.opened=!0};i.setDate=function(n,t,r){i.dt=new Date(n,t,r)};i.formats=["dd-MMMM-yyyy","yyyy/MM/dd","dd.MM.yyyy","shortDate"];i.format=i.formats[0];i.altInputFormats=["M!/d!/yyyy"];i.popup1={opened:!1};i.popup2={opened:!1};f.close=h;f.ok=e;f.showAllDates=!1;f.selection=s;f.returnDates={from:null,to:null,showAllDates:null};i.selectedDates=n;o();i.keydown=function(n){n.keyCode==13&&(f.showAllDates=!f.showAllDates,i.keydownEvent=f.showAllDates)};i.mousedown=function(){f.showAllDates=!f.showAllDates;i.mousedownEvent=f.showAllDates}}n.$inject=["selectedDates","returnDates","$scope","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("datePickerModalController",n)}(),function(){"use strict";function n(n,t){function r(){n.close("deleteConfirmed")}function u(){n.dismiss("cancel")}var i=this;i.careerTrack=t;i.deleteCareerTrack={};i.deleteConfirmed=r;i.close=u}n.$inject=["$uibModalInstance","careerTrack"];angular.module("FEMACPT").controller("deleteCareerTrackModalController",n)}(),function(){"use strict";function n(n,t){function r(){n.close("deleteConfirmed")}function u(){n.dismiss("cancel")}var i=this;i.functionalArea=t;i.deleteFunctionalArea={};i.deleteConfirmed=r;i.close=u}n.$inject=["$uibModalInstance","functionalArea"];angular.module("FEMACPT").controller("deleteFunctionalAreaModalController",n)}(),function(){"use strict";function n(n,t){function r(){n.close("deleteConfirmed")}function u(){n.dismiss("cancel")}var i=this;i.position=t;i.deletePosition={position:""};i.deleteConfirmed=r;i.close=u}n.$inject=["$uibModalInstance","position"];angular.module("FEMACPT").controller("deletePositionModalController",n)}(),function(){"use strict";function n(n,t){function r(){t.dismiss("cancel")}var i=this;i.close=r}n.$inject=["$scope","$uibModalInstance"];angular.module("FEMACPT").controller("disasterDisclaimerModalController",n)}(),function(){"use strict";function n(n,t,i,r,u){function e(){u.dismiss("cancel")}var f=this;f.careerPlans=[];f.hideButtons=!0;f.feedbackrequest=n;f.user=f.feedbackrequest.userID;f.userCareerPlanId=f.feedbackrequest.userCareerPlanID;f.userAssessmentId=f.feedbackrequest.userAssessmentID;f.userSelfReflectionId=f.feedbackrequest.userSelfReflectionID;f.userCareerGoalId=f.feedbackrequest.userCareerGoalID;f.showSelfRating=f.feedbackrequest.showSelfRating;f.close=e;i.trustAsHtml=t.trustAsHtml}n.$inject=["feedbackrequest","$sce","$scope","Assessment","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("feedbackUserInfoModalController",n)}(),function(){"use strict";function n(n,t,i,r,u,f){function o(){var t=new r(n.newFunctionalArea);t.$save(function(n){i.close(n)},function(){u.addAlert("An error occurred adding the functional area.","danger")})}function s(){i.dismiss("cancel")}var e=this;e.newFunctionalArea={functionalArea1:"",functionalAreaDescription:"",careerTypeID:f.careerTypeID};e.close=s;e.save=o;n.keydown=function(t){t.keyCode==13&&(n.keydownEvent=e.close())}}n.$inject=["$scope","$sce","$uibModalInstance","FunctionalArea","alertService","careerType"];angular.module("FEMACPT").controller("functionalAreaModalController",n)}(),function(){"use strict";function n(n,t,i,r,u){function e(){r.returnPositionById({id:n}).$promise.then(function(n){f.description=n.positionDescription})}function o(){u.dismiss("cancel")}var f=this;f.close=o;f.description;i.trustAsHtml=t.trustAsHtml;e()}n.$inject=["position","$sce","$scope","Positions","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("jobDescriptionModalController",n)}(),function(){"use strict";function n(n,t,i){function u(){i.dismiss("cancel")}var r=this;r.close=u;r.legendData=[{abbreviation:"VD",definition:"Very Dissatisifed"},{abbreviation:"DS",definition:"Dissatisifed"},{abbreviation:"UN",definition:"Uncertain"},{abbreviation:"S",definition:"Satisifed"},{abbreviation:"VS",definition:"Very Satisifed"}]}n.$inject=["$scope","Positions","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("legendModalController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o){function c(){f.returnAllBehaviorsByCompetencyID({id:n}).$promise.then(function(n){s.behaviors=n;return})}function h(n){angular.forEach(s.behaviors,function(t){t.behaviorID==n&&(t.isSelected=!t.isSelected)})}function l(){e.dismiss("cancel")}function a(){angular.forEach(s.behaviors,function(n){s.mappings.push({competencyId:n.competencyID,behaviorID:n.behaviorID,behavior1:n.behavior1,isSelected:n.isSelected})});var t=s.mappings,u=i.defer(),n;return n=n||r.get("$http"),n.post("api/behaviors/mapBehaviorsToCompetency",t).success(function(n){u.resolve(n);s.errors=n;s.errors.length==0?o.addAlert("Competency has been updated.","success"):angular.forEach(s.errors,function(n){o.addAlert(n,"fail")})})}var s=this;s.close=l;s.save=a;s.toggleCheck=h;s.behaviors=[];s.mappings=[];c();t.keydownCheck=function(n,i){n.keyCode==13&&(t.keydownCheckEvent=h(i))}}n.$inject=["competencyid","$scope","$q","$injector","Competency","Behaviors","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("mapCompetencyBehaviorsController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e){function c(){i.all({focusCompetencies:a(),proficiencyList:v()}).then(function(n){o.item=n.focusCompetencies;o.proficiencies=n.proficiencyList;l()});return}function l(){for(var t,i,r=!1,n=0;n<o.item.competencies.length;n++)for(t=0;t<6;t++){for(i=0;i<o.item.competencies[n].proficiencies.length;i++)if(o.item.competencies[n].proficiencies[i]==t){r=!0;break}r||o.item.competencies[n].proficiencies.push({proficiencyLevelID:t,isSelected:!1});r=!1}}function a(){var t=i.defer(),r=u.returnCompetenciesByFocusItem({id:n.developmentalActivityID}).$promise.then(function(n){t.resolve(n)});return t.promise}function v(){var n=i.defer(),t=u.returnProficiencies().$promise.then(function(t){n.resolve(t)});return n.promise}function y(n){o.proficiencyDetail[n]=!o.proficiencyDetail[n]}function p(n){o.showDescription[n]=!o.showDescription[n]}function s(n){for(var t=0;t<o.item.competencies.length;t++)if(o.item.competencies[t].competencyID==n.competencyID){o.item.competencies[t].isSelected=!o.item.competencies[t].isSelected;break}}function h(n,t){for(var r,u=!1,i=0;i<o.item.competencies.length;i++){if(o.item.competencies[i].competencyID==n)for(r=0;r<o.item.competencies[i].proficiencies.length;r++)if(o.item.competencies[i].proficiencies[r].proficiencyLevelID==t){o.item.competencies[i].proficiencies[r].isSelected=!o.item.competencies[i].proficiencies[r].isSelected;u=!0;break}if(u)break}}function w(n,t){for(var r,u=!1,f=!1,i=0;i<o.item.competencies.length;i++){if(o.item.competencies[i].competencyID==n)for(r=0;r<o.item.competencies[i].proficiencies.length;r++)if(o.item.competencies[i].proficiencies[r].proficiencyLevelID==t){u=o.item.competencies[i].proficiencies[r].isSelected;f=!0;break}if(f)break}return u}function b(){f.dismiss("cancel")}function k(){for(var t,l,s,h=!1,u=0;u<o.item.competencies.length;u++){var f=!1,n=!1,c=o.item.competencies[u];if(c.isSelected==!0&&(n||(n=!0)),n)for(t=0;t<6;t++)if(c.proficiencies[t].isSelected){f||(f=!0);break}if(n&&!f){h=!0;break}}if(h){e.addAlert("One or more selected competencies have no proficiency level set. Update aborted.","danger");return}return l=i.defer(),s=s||r.get("$http"),s.post("api/developmentalActivity/UpdateCompetenciesProficiencies",o.item).success(function(n){l.resolve(n);o.errors=n;o.errors.length==0?e.addAlert("Developmental activity - competency mappings have been updated.","success"):angular.forEach(o.errors,function(n){e.addAlert(n,"fail")})})}var o=this;o.cancel=b;o.save=k;o.toggleCheck=s;o.showCompetencyDescription=p;o.proficiencyCheck=h;o.showProficiencyDetail=y;o.isProficiencySelected=w;o.item={};o.positionCompetencies=[];o.showDescription=[];o.isSelected=[];o.proficiencies=[];o.proficiencyDetail=[];o.mappings=[];o.proficiencyMappings=[];c();t.keydown=function(n,i){n.keyCode==13&&(t.keydownEvent=s(i))};t.mousedown=function(n,i){t.mousedownEvent=s(i)};t.keydownProf=function(n,i,r){n.keyCode==13&&(t.keydownProfEvent=h(i,r))};t.mousedownProf=function(n,i,r){t.mousedownProfEvent=h(i,r)};t.keydownShowDesc=function(n,i){n.keyCode==13&&(t.keydownShowDescEvent=o.showCompetencyDescription(i))};t.keydownShowProf=function(n,i){n.keyCode==13&&(t.keydownShowProfEvent=o.showProficiencyDetail(i))};t.mousedownShowProf=function(n,i){t.mousedownShowProfEvent=o.showProficiencyDetail(i)}}n.$inject=["activity","$scope","$q","$injector","Activity","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("mapDACController",n)}(),function(){"use strict";function n(n,t,i,r){function f(){r.dismiss("cancel")}var u=this;u.close=f;u.videopath=n;u.ccpath=t}n.$inject=["videopath","ccpath","$scope","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("playVideoModalController",n)}(),function(){"use strict";function n(n,t,i,r){n.proficiencyLevels=[];angular.copy(i,n.proficiencyLevels);n.proficiencyLevels.splice(n.proficiencyLevels.map(function(n){return n.proficiencyLevelID}).indexOf(-1),1);n.competency=r;n.keydown=function(t,i){t.keyCode==13&&(n.keydownEvent=n.select(i))};n.close=function(){t.dismiss("cancel")};n.select=function(n){t.close(n)}}n.$inject=["$scope","$uibModalInstance","levels","competency"];angular.module("FEMACPT").controller("proficiencyLevelController",n)}(),function(){"use strict";function n(n,t,i){function u(){i.dismiss("cancel")}var r=this;r.close=u;n.keydown=function(t){t.keyCode==13&&(n.keydownEvent=r.close())}}n.$inject=["$scope","$window","$uibModalInstance"];angular.module("FEMACPT").controller("quickStartAssessmentModalController",n)}(),function(){"use strict";function n(n,t,i){function u(){i.dismiss("cancel")}var r=this;r.close=u;n.keydown=function(t){t.keyCode==13&&(n.keydownEvent=r.close())}}n.$inject=["$scope","$window","$uibModalInstance"];angular.module("FEMACPT").controller("beginAssessmentQuickStartModalController",n)}(),function(){"use strict";function n(n,t,i){function u(){i.dismiss("cancel")}function f(){u();t.location.href="#/careerPath/userAssessment/0"}var r=this;r.close=u;r.goUserAssessment=f}n.$inject=["$scope","$window","$uibModalInstance"];angular.module("FEMACPT").controller("quickStartModalController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o){function c(){return o.getSavedCareerPlans().$promise.then(function(n){s.careerPlans=n;$("#closeModal").focus()})}function l(n,t,i,r){s.results.userAssessmentId=n;s.results.userCareerPlanId=t;s.results.startPositionTitle=i;s.results.endPositionTitle=r;h()}function a(){f.dismiss()}function h(){f.close(s.results)}var s=this;s.close=a;s.select=h;s.positionId=parseInt(i.id);s.userId=u.userid;s.results={userAssessmentId:null,userCareerPlanId:null,startPositionTitle:null,endPositionTitle:null};s.selection=l;s.careerPlans=[];c()}n.$inject=["positionid","results","$routeParams","$sce","$scope","$uibModalInstance","alertService","CareerPlan"];angular.module("FEMACPT").controller("selectAssessmentModalController",n)}(),function(){"use strict";function n(n,t,i,r,u){function e(){var t=r.get({id:n.competencyID}),e=u.returnBehaviorsByCompetencyID({id:n.competencyID});i.all({description:t.$promise,competency:e.$promise}).then(function(n){f.description=n.description;f.behaviors=n.competency[0].behaviors})}function o(){t.dismiss("cancel")}var f=this;f.competency=n.competency;f.description;f.behaviors=[];f.close=o;e()}n.$inject=["competency","$uibModalInstance","$q","CompetencyDescription","Behaviors","alertService"];angular.module("FEMACPT").controller("showCompentencyDescriptionController",n)}(),function(){"use strict";function n(n,t,i,r){function f(){r.dismiss("cancel")}var u=this;u.close=f}n.$inject=["$sce","$scope","Positions","$uibModalInstance","alertService"];angular.module("FEMACPT").controller("showDetailsModalController",n)}(),function(){"use strict";function n(n){return n("/api/behaviors/:id",{},{get:{method:"GET"},returnBehaviorsByCompetencyID:{method:"GET",url:"/api/behaviors/returnBehaviorsByCompetencyID/:id",isArray:!0},returnAllBehaviorsByCompetencyID:{method:"GET",url:"/api/behaviors/returnAllBehaviorsByCompetencyID/:id",isArray:!0},mapCompetencyBehaviors:{method:"POST",url:"/api/behaviors/mapCompetencyBehaviors",isArray:!0},update:{method:"PUT"},"delete":{method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("Behaviors",n)}(),function(){"use strict";function n(n){return n("/api/careerGoalQuestions/:id",{},{returnCareerGoals:{method:"GET",url:"/api/careerGoalQuestions/returnCareerGoalQuestions/",isArray:!0},returnCareerGoalsSections:{method:"GET",url:"/api/careerGoalQuestions/returnCareerGoalsSections/",isArray:!0},update:{method:"PUT"},"delete":{method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("Goals",n)}(),function(){"use strict";function n(n){return n("/api/careertrack/:id",{},{get:{method:"GET"},getNonAdmin:{method:"GET",url:"/api/careertrack/getNonAdmin",isArray:!0},update:{method:"PUT"},getByFunctionalArea:{method:"GET",url:"/api/careertrack/functionalarea/:id",isArray:!0},"delete":{method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("CareerTracks",n)}(),function(){"use strict";function n(n){return n("/api/careertype/:id",{},{get:{method:"GET"},update:{method:"PUT"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("CareerTypes",n)}(),function(){"use strict";function n(n){return n("/api/claims/:id",{},{get:{method:"GET"},update:{method:"PUT"},addRole:{url:"/api/claims/roles/:roleId/:claimId",method:"POST"},removeRole:{url:"/api/claims/roles/:roleId/:claimId",method:"DELETE"},queryRoles:{url:"/api/claims/roles",method:"GET",isArray:!0}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("Claims",n)}(),function(){"use strict";function n(n){return n("api/competencyDescription/:id",{},{returnDisplayItems:{url:"/api/competencyDescription/returnDisplayItems/:id",method:"GET",isArray:!1},get:{method:"GET",isArray:!0},update:{method:"PUT"},"delete":{method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("CompetencyDescription",n)}(),function(){"use strict";function n(n){return n("/api/developmentalActivity/:id",{},{get:{method:"GET"},returnCompetenciesByFocusItem:{method:"GET",url:"/api/developmentalActivity/returnCompetenciesByFocusItem/:id",isArray:!1},returnDevelopmentalActivityTypes:{method:"GET",url:"/api/developmentalActivity/returnDevelopmentalActivityTypes/",isArray:!0},returnProficiencies:{method:"GET",url:"/api/developmentalActivity/returnProficiencies/",isArray:!0},update:{method:"PUT"},"delete":{url:"/api/developmentalActivity/:id",method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("Activity",n)}(),function(){"use strict";function n(n){return n("/api/help/:id",{},{returnFrequentlyAskedQuestions:{method:"GET",url:"/api/help/returnFrequentlyAskedQuestions/",isArray:!0},getFrequentlyAskedQuestions:{method:"GET",url:"/api/help/getFrequentlyAskedQuestions/",isArray:!0},returnFrequentlyAskedQuestionTypes:{method:"GET",url:"/api/help/returnFrequentlyAskedQuestionTypes/",isArray:!0},update:{method:"PUT"},"delete":{method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("FAQ",n)}(),function(){"use strict";function n(n){return n("/api/functionalarea/:id",{},{get:{method:"GET"},getNonAdmin:{method:"GET",url:"/api/functionalarea/getNonAdmin",isArray:!0},update:{method:"PUT"},getByCareerTrack:{method:"GET",url:"/api/functionalarea/careertrack/:id",isArray:!0}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("FunctionalArea",n)}(),function(){"use strict";function n(n){return n("/api/competency",{},{get:{method:"GET"},getNonAdmin:{method:"GET",url:"/api/competency/getNonAdmin",isArray:!0},update:{method:"PUT"},save:{method:"POST"},"delete":{url:"/api/competency/:id",method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("Competency",n)}(),function(){"use strict";function n(n){return n("/api/setup/positionBuilder/:id",{},{get:{method:"GET"},update:{method:"PUT"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("PositionBuilder",n)}(),function(){"use strict";function n(n){return n("api/proficiencylevel/:id",{},{get:{method:"GET"},update:{method:"PUT"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("ProficiencyLevels",n)}(),function(){"use strict";function n(n){return n("/api/reports/",{},{get:{method:"GET"},returnReport:{method:"GET",url:"/api/reports/returnReport/",isArray:!1},render:{method:"POST",headers:{accept:["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/png","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},responseType:"arraybuffer",transformResponse:function(n){var t;return n&&(t=new Blob([n])),{response:t}}}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("Reports",n)}(),function(){"use strict";function n(n){return n("/api/resources/:id",{},{get:{method:"GET",isArray:!0},update:{url:"/api/resources/update",method:"POST"},"delete":{method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("Resources",n)}(),function(){"use strict";function n(n){return n("/api/roles/:id",{},{get:{method:"GET"},update:{method:"PUT"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("Roles",n)}(),function(){"use strict";function n(n){return n("/api/experience/:id",{},{get:{method:"GET"},returnExperienceQuestions:{url:"/api/experience/returnExperienceQuestions",method:"GET",isArray:!1},returnSatisfactionQuestionCategories:{url:"/api/experience/returnSatisfactionQuestionCategories",method:"GET",isArray:!0},update:{method:"PUT"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("SatisfactionQuestions",n)}(),function(){"use strict";function n(n){return n("/api/selfReflectionQuestions/:id",{},{get:{method:"GET"},returnSelfReflectionTypes:{url:"/api/selfReflectionQuestions/returnSelfReflectionTypes",method:"GET",isArray:!0},update:{method:"PUT"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("SR",n)}(),function(){"use strict";function n(n){return n("/api/resources/:id",{},{uploadFileToUrl:{dataType:"json",data:"",headers:{"content-type":"multipart/form-data"},url:"/api/resources/uploadFileToUrl",method:"POST"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("UploadFile",n)}(),function(){"use strict";function n(n){return n("/api/users/:id",{},{update:{method:"PUT"},"delete":{url:"/api/users/:userId",method:"DELETE"},invalidate:{url:"/api/accounts/invalidate/:userId/",method:"POST"},add:{url:"/api/roles/users/:userId/:roleName",method:"POST"},getRoles:{url:"/api/roles/users/:userId",method:"GET",isArray:!0},remove:{url:"/api/roles/users/:userId/:roleName",method:"DELETE"}})}n.$inject=["$resource"];angular.module("FEMACPT.admin").factory("AdminUsers",n)}(),function(){"use strict";function n(n){return n("/api/assessment/:id",{},{createAssessment:{url:"/api/assessment/createNewAssessment",method:"POST",isArray:!1},update:{url:"/api/assessment/updateUserAssessment",method:"POST",isArray:!1},updateLockUsersAssessment:{url:"/api/assessment/updateLockUsersAssessment/",method:"POST",isArray:!1},updateUnLockUsersAssessment:{url:"/api/assessment/updateUnLockUsersAssessment/",method:"POST",isArray:!0},updateUserFeedbackRequest:{url:"/api/assessment/updateUserFeedbackRequest/",method:"POST",isArray:!1},deleteUserFeedbackRequest:{url:"/api/assessment/deleteUserFeedbackRequest/",method:"DELETE",isArray:!1},deleteUserCareerPlan:{url:"/api/assessment/deleteUserCareerPlan/",method:"DELETE",isArray:!0},returnCompetencyData:{url:"/api/assessment/returnCompetencyData/",method:"GET",isArray:!1},returnCompetenciesProficiencyLevels:{url:"/api/assessment/returnCompetenciesProficiencyLevels/:id",method:"GET",isArray:!0},returnAssessmentById:{url:"/api/assessment/returnAssessmentById/:id/:comments",method:"GET",isArray:!1},returnUserCompetencyDevelopmentActvivities:{url:"/api/assessment/returnUserCompetencyDevelopmentActvivities/:id",method:"GET",isArray:!1},returnUserCompetencyDevelopmentActvivitiesRO:{url:"/api/assessment/returnUserCompetencyDevelopmentActvivitiesRO/:id",method:"GET",isArray:!1},returnUserDevelopmentalActivities:{url:"api/assessment/returnUserDevelopmentalActivities/:id",method:"GET",isArray:!0},returnInvites:{url:"api/assessment/returnInvites/",method:"GET",isArray:!0},returnRequests:{url:"api/assessment/returnRequests/",method:"GET",isArray:!0},returnUserSelfReflections:{url:"api/assessment/returnUserSelfReflections/",method:"GET",isArray:!0},returnSelfReflectionQuestionsAnswers:{url:"api/assessment/returnSelfReflectionQuestionsAnswers/",method:"GET",isArray:!1},returnUserCareerGoalsQuestionsAnswers:{url:"api/assessment/returnUserCareerGoalsQuestionsAnswers/",method:"GET",isArray:!1},returnUserCareerPlans:{url:"/api/assessment/returnUserCareerPlans/",method:"GET",isArray:!0},returnUserAssessmentData:{url:"/api/assessment/returnUserAssessmentData/",method:"GET",isArray:!0},getSavedCareerPlans:{url:"/api/careerplan/getSavedCareerPlans",method:"GET",isArray:!0},returnLocalCareerPlan:{url:"/api/assessment/returnLocalCareerPlan",method:"GET",isArray:!0},returnEmptyAssessmentData:{url:"/api/assessment/returnEmptyAssessmentData/",method:"GET",isArray:!0},returnProcessStatus:{url:"/api/assessment/returnProcessStatus/",method:"GET",isArray:!1},returnFeedbackRequests:{url:"/api/assessment/returnFeedbackRequests/",method:"GET",isArray:!0},returnFeedbackRequest:{url:"/api/assessment/returnFeedbackRequest/",method:"GET",isArray:!1},returnFeedbackInvites:{url:"/api/assessment/returnFeedbackInvites/",method:"GET",isArray:!0},returnUserFeedbackQuestions:{url:"/api/assessment/returnUserFeedbackQuestions/",method:"GET",isArray:!1},returnCareerPlanPath:{url:"/api/assessment/returnCareerPlanPath/",method:"GET",isArray:!1},returnUserAssessmentRatings:{url:"/api/assessment/returnUserAssessmentRatings/",method:"GET",isArray:!0},returnAssessmentMetrics:{url:"/api/assessment/returnAssessmentMetrics/",method:"GET",isArray:!1}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("Assessment",n)}();angular.module("FEMACPT").factory("CareerPlanMap",["$resource",function(n){return n("/api/resources/:id",{},{get:{method:"GET",IsArray:!0},returnCareerMapLegend:{method:"GET",url:"/api/resources/returnCareerMapLegend",isArray:!0},update:{method:"PUT"}})}]),function(){"use strict";function n(n){return n("/api/experience/:id",{},{createExperienceResponse:{url:"/api/experience/createNewExperience",method:"POST",isArray:!1},update:{url:"/api/experience/updateExperience",method:"POST",isArray:!1},returnExperienceQuestions:{url:"/api/experience/returnExperienceQuestions",method:"GET",isArray:!1},compileEvaluationResults:{url:"/api/experience/compileEvaluationResults",method:"GET",isArray:!1},compileEvaluationGridResults:{url:"/api/experience/compileEvaluationGridResults",method:"GET",isArray:!0},exportToExcel:{url:"/api/experience/exportToExcel",method:"GET",isArray:!1},returnExcelDocument:{url:"/api/experience/returnExcelDocument/",method:"GET",isArray:!1}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("Experience",n)}(),function(){"use strict";function n(n){return n("/api/help/:id",{},{returnFrequentlyAskedQuestions:{method:"GET",url:"/api/help/returnFrequentlyAskedQuestions/",isArray:!0},returnFrequentlyAskedQuestionTypes:{method:"GET",url:"/api/help/returnFrequentlyAskedQuestionTypes/",isArray:!0}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("Help",n)}(),function(){"use strict";angular.module("FEMACPT").service("pdfService",["$http",function(n){return{returnPdf:function(t){return n.get(t,{responseType:"arraybuffer"}).success(function(n){return new Blob([n],{type:"application/pdf"})})}}}])}(),function(){"use strict";function n(n){return n("/api/resources/:id",{},{get:{method:"GET",IsArray:!0},update:{method:"PUT"}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("Resources",n)}(),function(){"use strict";function n(n){return n("/api/reports/",{},{get:{method:"GET"},returnReport:{method:"GET",url:"returnReport",isArray:!1},render:{method:"POST",headers:{accept:["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/png","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},responseType:"arraybuffer",transformResponse:function(n){var t;return n&&(t=new Blob([n])),{response:t}}}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("UserReport",n)}(),function(){"use strict";function n(n){return n("/api/accounts/:id",{},{self:{url:"/api/users/self",method:"GET"},update:{method:"PUT"},updateSelf:{url:"/api/users/updateSelf",method:"PUT"},setCompassUserAuthenticated:{url:"/api/users/setCompassUserAuthenticated",method:"PUT"},getUsers:{url:"/api/accounts/users",method:"GET"},getUser:{url:"/api/accounts/users/:Id",method:"GET"},getRoles:{url:"/api/roles/users/:userId",method:"GET",isArray:!0},getRoleById:{url:"/api/users/getRoleById",method:"GET",isArray:!1},returnUserEmail:{url:"/api/users/returnUserEmail",method:"GET",isArray:!1},returnRequesterInfo:{url:"api/users/returnRequesterInfo",method:"GET",isArray:!1},returnRequester:{url:"api/users/returnRequester",method:"GET",isArray:!1},returnTestMode:{url:"api/users/returnTestMode",method:"GET",isArray:!1},returnUserTenant:{url:"api/users/returnUserTenant",method:"GET",isArray:!1},userCanSeeCompassLink:{url:"api/users/userCanSeeCompassLink",method:"GET",isArray:!1}})}n.$inject=["$resource"];angular.module("FEMACPT").factory("Users",n)}(),function(){"use strict";function n(n){var t=this;t.canViewUsers=n.isAuthorized("SuperAdmin,System Administrator,Helpdesk");t.canViewRoles=n.isAuthorized("SuperAdmin,System Administrator");t.canViewSystemFunctions=n.isAuthorized("SuperAdmin,System Administrator");t.canManageDevelopmentalActivity=n.isAuthorized("SuperAdmin, System Administrator");t.canCreateSelfReflectionQuestions=n.isAuthorized("System Administrator");t.canViewSatisfactionQuestions=n.isAuthorized("SuperAdmin");t.canBuildPositions=n.isAuthorized("SuperAdmin,System Administrator");t.canManageCompetencies=n.isAuthorized("SuperAdmin, System Administrator");t.canCreateJobData=n.isAuthorized(null,"CreateJobData");t.canViewReports=n.isAuthorized("System Administrator");t.canManageEvaluations=n.isAuthorized("System Administrator");t.canViewEvaluations=n.isAuthorized("SuperAdmin, System Administrator");t.canManageResources=n.isAuthorized("SuperAdmin, System Administrator");t.canManageCareerGoals=n.isAuthorized("SuperAdmin, System Administrator");t.canManageFAQs=n.isAuthorized("SuperAdmin, System Administrator")}n.$inject=["femaAuth","alertService","localStorageService","$confirm"];angular.module("FEMACPT.admin").controller("adminController",n)}(),function(){"use strict";function n(n,t,i,r){function o(){r.returnAssessmentMetrics({from:u.from,to:u.to,showAllDates:u.showAllDates}).$promise.then(function(n){u.assessmentMetrics=n})}function s(){t.location.href="/#/setup/userAssessmentPrintMetrics/"+i.from+"/"+i.to+"/"+i.showAllDates}var u=this,f=new Date(i.from),e=new Date(i.to);u.from=f.toLocaleDateString();u.to=e.toLocaleDateString();u.showAllDates=i.showAllDates=="false"?!1:!0;u.assessmentMetrics={};u.goPrint=s;o()}n.$inject=["$scope","$window","$routeParams","Assessment"];angular.module("FEMACPT").controller("assessmentMetricsController",n)}(),function(){"use strict";function n(n,t,i,r,u,f){function c(){$("#printBut").hide();t.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();t.location.href="#/setup"}function l(){f.returnAssessmentMetrics({from:e.from,to:e.to,showAllDates:e.showAllDates}).$promise.then(function(n){e.assessmentMetrics=n;e.metrics.push({item:"<div class='tag1 title-row'>Statistics<\/div>"});e.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Number of Assessments: "+e.assessmentMetrics.assessments+"<\/div>"});e.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Number of Assessments Completed: "+e.assessmentMetrics.assessmentsCompleted+"<\/div>"});e.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Number of Feedback Requests: "+e.assessmentMetrics.feedbackRequests+"<\/div>"});e.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Number of Feedback Requests Completed: "+e.assessmentMetrics.feedbackRequestsCompleted+"<\/div>"});e.metrics.push({item:"<div class='tag1 title-row'>Aging<\/div>"});e.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Assessments Incomplete Past Thirty Days: "+e.assessmentMetrics.assessmentsIncompletePastThirtyDays+"<\/div>"});e.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Assessments Incomplete Past Sixty Days: "+e.assessmentMetrics.assessmentsIncompletePastSixtyDays+"<\/div>"});e.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Feedback Requests Incomplete Past Thirty Days: "+e.assessmentMetrics.feedbackRequestsIncompletePastThirtyDays+"<\/div>"});e.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Feedback Requests Incomplete Past Sixty Days: "+e.assessmentMetrics.feedbackRequestsIncompletePastSixtyDays+"<\/div>"})})}var e=this,s=new Date(r.from),h=new Date(r.to),o;e.from=s.toLocaleDateString();e.to=h.toLocaleDateString();e.showAllDates=r.showAllDates=="false"?!1:!0;e.assessmentMetrics={};l();n.trustAsHtml=i.trustAsHtml;e.metrics=[];e.print=c;o=$("#mainBody");o.hide();$("#footer").hide()}n.$inject=["$scope","$window","$sce","$routeParams","alertService","Assessment"];angular.module("FEMACPT").controller("assessmentMetricsPrintController",n)}(),function(){"use strict";function n(n,t,i,r,u){function o(){f.behaviors.forEach(function(n){n.editable=!1});n.loading=!1}function s(n){n.editable||(n.originalBehavior=n.behavior1);n.editable=!0}function h(){e();f.addingNew=!1}function c(){var n=new t(f.newBehavior);n.$save(function(){r.addAlert("New behavior has been added.","success");f.behaviors.push(n);e();f.addingNew=!1},function(){r.addAlert("An error occurred adding the behavior.","danger")})}function e(){f.newBehavior={behaviorID:-1,behavior1:""}}function l(n){n.behavior1=n.originalBehavior;n.editable=!1}function a(n){i({text:"Are you certain you want to delete this behavior?",title:"Delete Behavior"}).then(function(){y(n)})}function v(n){var i=new t(n);i.$update(function(){r.addAlert("Behavior has been updated.","success");n.editable=!1})}function y(n){t.delete({id:n.behaviorID}).$promise.then(function(){var t=f.behaviors.indexOf(n);f.behaviors.splice(t,1);r.addAlert("Behavior has been deleted.","info")},function(){r.addAlert("An error occurred deleting the behavior.","danger")})}var f=this;f.behaviors=u.behaviors;f.newBehavior={behaviorID:-1,behavior1:""};f.showHover=!f.showHover;f.searchBehavior=null;f.addingNew=!1;f.cancelSave=h;f.cancelUpdateBehavior=l;f.confirmDelete=a;f.save=c;f.toggleEdit=s;f.updateBehavior=v;o()}n.$inject=["$rootScope","Behaviors","$confirm","alertService","behaviorPrepService"];angular.module("FEMACPT.admin").controller("behaviorController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e){function h(){c()}function c(){o.careerGoalQuestions.forEach(function(n){n.editable=!1});t.loading=!1}function l(n){n.editable||(n.originalCareerGoalQuestion=n.careerGoalQuestion,n.originalCareerGoalArchived=n.archived);n.editable=!0}function a(n){o.reset=!0;n.originalCareerGoalQuestion1=n.careerGoalQuestion;n.originalCareerGoalArchived=n.archived;n.editable=!1}function v(n){var t=new r(n);t.$update(function(){f.addAlert("Career goal question has been updated.","success");n.editable=!1})}function y(){var n=new r(o.newCareerGoalQuestion);n.careerGoalQuestion1=o.question;n.$save(function(n){f.addAlert("New career goal question has been added.","success");o.careerGoalQuestions.push(n);s();o.addingNew=!1;o.addedNew=!0;$route.reload()},function(){f.addAlert("An error occurred adding the career goal question.","danger")})}function s(){o.reset=!0;o.question="";o.newCareerGoalQuestion={careerGoalQuestionID:-1,careerGoalQuestion1:"",careerGoalSectionID:-1}}function p(){s();o.addingNew=!1}var o=this;o.careerGoalQuestions=e.careerGoalQuestions;o.search="";o.addingNew=!1;o.addedNew=!1;o.newCareerGoalQuestion={careerGoalQuestionID:-1,careerGoalSectionID:-1,careerGoalQuestion:""};o.showId=-1;o.showHover=!o.showHover;o.question;o.sectionId;o.searchFocus=null;o.reset=!1;o.resetNew=s;o.toggleEdit=l;o.update=v;o.cancel=a;o.cancelSave=p;o.save=y;n.trustAsHtml=i.trustAsHtml;h();n.keydown=function(t,i){t.keyCode==13&&(i.archived=!i.archived,n.keydownEvent=i.archived)};n.mousedown=function(t,i){i.archived=!i.archived;n.mousedownEvent=i.archived}}n.$inject=["$scope","$rootScope","$sce","Goals","$confirm","alertService","careerGoalsPrepService"];angular.module("FEMACPT.admin").controller("careerGoalQuestionsController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e){function c(){e.returnCareerPlanMetrics({from:o.from,to:o.to,showAllDates:o.showAllDates}).$promise.then(function(n){o.careerPlans=n;o.userCareerPlans=n.userCareerPlans})}function l(){t.location.href="#/setup/careerPlanMetricsPrint/"+r.from+"/"+r.to+"/"+r.showAllDates}var o=this,s=new Date(r.from),h=new Date(r.to);o.from=s.toLocaleDateString();o.to=h.toLocaleDateString();o.showAllDates=r.showAllDates=="false"?!1:!0;o.metrics=[];o.userCareerPlans=[];o.goPrint=l;n.trustAsHtml=i.trustAsHtml;c()}n.$inject=["$scope","$window","$sce","$routeParams","alertService","femaAuth","UserCareerPlans"];angular.module("FEMACPT").controller("careerPlanMetricsController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e){function l(){e.returnCareerPlanMetrics({from:o.from,to:o.to,showAllDates:o.showAllDates}).$promise.then(function(n){o.careerPlans=n;o.metrics.push({item:"<div class='tag1 title-row'>Statistics<\/div>"});o.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Registered Career Path Tool Users: "+o.careerPlans.registeredCareerPathToolUsers+"<\/div>"});o.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Registered User Career Plans <i>(within range)<\/i>: "+o.careerPlans.registeredUserCareerPlans+"<\/div>"});o.metrics.push({item:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:16px; font-weight:bold;'><div>Registered User Career Plans Overall: "+o.careerPlans.registeredUserCareerPlansOverall+"<\/div>"});o.userCareerPlans=n.userCareerPlans})}function a(){$("#printBut").hide();t.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();t.location.href="#/setup/"}var o=this,h=new Date(r.from),c=new Date(r.to),s;o.from=h.toLocaleDateString();o.to=c.toLocaleDateString();o.showAllDates=r.showAllDates=="false"?!1:!0;o.metrics=[];o.userCareerPlans=[];o.print=a;n.trustAsHtml=i.trustAsHtml;s=$("#mainBody");s.hide();$("#footer").hide();l()}n.$inject=["$scope","$window","$sce","$routeParams","alertService","femaAuth","UserCareerPlans"];angular.module("FEMACPT").controller("careerPlanMetricsPrintController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h){function l(){p();w();t.loading=!1}function a(n){n.editable||(n.originalCareerTrack=n.careerTrack1,n.originalFunctionalArea=n.functionalArea,n.originalDescription=n.careerTrackDescription);n.editable=!0;var t=c.functionalAreas.map(function(n){return n.functionalAreaID}).indexOf(n.functionalAreaID);c.functionalAreas.selected=c.functionalAreas[t]}function v(n){n.editable=!1;n.careerTrack1=n.originalCareerTrack;n.functionalArea=n.originalFunctionalArea;n.careerTrackDescription=n.originalDescription}function y(n){n.functionalAreaID=n.functionalArea.functionalAreaID;var t=new r(n);t.$update(function(){f.addAlert("Career Track has been updated.","success");n.editable=!1})}function p(){c.careerTracks.forEach(function(n){n.editable=!1});c.careerTracks=e("orderBy")(c.careerTracks,"careerTrack1")}function w(){angular.copy(c.functionalAreas,c.filterFunctionalAreas);c.filterFunctionalAreas.unshift({functionalArea1:"All",functionalAreaID:-1});c.filterFunctionalAreas.selected=c.filterFunctionalAreas[0]}function b(){c.resetNew();c.addingNew=!1}function k(){var n=new r(c.newCareerTrack),i,t;n.functionalAreaID=c.newCareerTrack.functionalArea.functionalAreaID;n.functionalArea1=c.newCareerTrack.functionalArea.functionalArea1;n.functionalArea.functionalArea1=c.newCareerTrack.functionalArea.functionalArea1;i=c.functionalAreas.map(function(n){return n.functionalAreaID}).indexOf(n.functionalAreaID);t={};angular.copy(c.functionalAreas[i],t);n.$save(function(){f.addAlert("New career track has been added.","success");n.functionalArea=t;c.careerTracks.push(n);c.resetNew();c.addingNew=!1},function(){f.addAlert("An error occurred adding the career track.","danger")})}function d(){c.newCareerTrack={careerTrack1:"",careerTrackDescription:"",functionalAreaID:null}}var c=this;c.careerTracks=h.careerTracks;c.functionalAreas=h.functionalAreas;c.search=null;c.showHover=!c.showHover;c.addingNew=!1;c.newCareerTrack={careerTrack1:"",careerTrackDescription:"",functionalAreaID:null,functionalArea:{}};c.filterFunctionalArea={functionalArea1:"All",functionalAreaID:-1};c.filterFunctionalAreas=[];c.toggleEdit=a;c.cancelUpdateCareerTrack=v;c.updateCareerTrack=y;c.cancelSave=b;c.save=k;c.resetNew=d;l();n.keydown=function(t,i){t.keyCode==13&&(i.archived=!i.archived,n.keydownEvent=i.archived)};n.mousedown=function(t,i){i.archived=!i.archived;n.mousedownEvent=i.archived}}n.$inject=["$scope","$rootScope","$location","CareerTracks","FunctionalArea","alertService","$filter","$confirm","$uibModal","careerTrackPrepService"];angular.module("FEMACPT.admin").controller("careerTrackController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e){function h(){c()}function c(){o.claims.forEach(function(n){var t=[];o.roles.forEach(function(i){var r=!1;o.claimsRoles.forEach(function(t){t.claimID==n.claimID&&t.roleID==i.id&&(r=!0)});t.push({roleID:i.id,role:i.name,hasPermission:r})});o.claimsViewModel.push({claimID:n.claimID,claim:n.claimName,claimDescription:n.claimDescription,roles:t,editable:!1})});o.roles.forEach(function(n){o.newClaim.roles.push({roleID:n.id,role:n.name,hasPermission:!1})});n.loading=!1}function l(){var n=new t(o.newClaim);n.$save(function(n){o.newClaim.claimID=n.claimID;o.claimsViewModel.push(o.newClaim);s();r.addAlert("Added new system function","success")})}function a(n){var i=new t(n);i.$update(function(){n.editable=!1;r.addAlert("Updated system function.","success")})}function v(n){e({text:"Are you certain you wish to delete the "+n.claim+" system function?",title:"Delete System Function?"}).then(function(){t.delete({ClaimId:n.claimID}).$promise.then(function(){var i=o.claims.map(function(n){return n.claimID}).indexOf(n.claimID),t;o.claims.splice(i,1);t=o.claimsViewModel.map(function(n){return n.claimID}).indexOf(n.claimID);o.claimsViewModel.splice(t,1);r.addAlert("System function has been deleted","info")},function(){r.addAlert("Error deleting system function.","danger")})})}function y(n){n.editable=!1;n.claim=n.originalName;n.claimDescription=n.originalDescription;angular.copy(n.originalRoles,n.roles)}function p(n){n.originalName=n.claim;n.originalDescription=n.claimDescription;n.originalRoles=[];angular.copy(n.roles,n.originalRoles);n.editable=!0}function w(){s()}function s(){o.addingNew=!1;o.newClaim={claim:"",claimDescription:"",roles:[]};o.roles.forEach(function(n){o.newClaim.roles.push({roleID:n.id,role:n.name,hasPermission:!1})})}var o=this;o.claims=f.claims;o.roles=f.roles;o.claimsRoles=f.claimsInRoles;o.claimsViewModel=[];o.addingNew=!1;o.showHover=!o.showHover;o.newClaim={claim:"",claimDescription:"",roles:[]};o.saveClaim=l;o.updateClaim=a;o.deleteClaim=v;o.cancelAdd=w;o.cancelEdit=y;o.enableEdit=p;h()}n.$inject=["$rootScope","Claims","Roles","alertService","femaAuth","claimPrepService","$confirm"];angular.module("FEMACPT.admin").controller("claimsController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s){function a(){h.developmentalActivities.forEach(function(n){n.editable=!1});t.loading=!1}function v(n){n.editable||(n.originalDevelopmentalActivity=n.developmentalActivity1,n.originalDevelopmentalActivityTypeID=n.developmentalActivityTypeID,n.originalDevelopmentalActivityArchived=n.archived);n.editable=!0}function y(n){h.reset=!0;n.developmentalActivity1=n.originalDevelopmentalActivity;n.developmentalActivityTypeID=n.originalDevelopmentalActivityTypeID;n.archived=n.originalDevelopmentalActivityArchived;n.editable=!1}function p(n){var t=new u(n);t.$update(function(){o.addAlert("Developmental activity has been updated.","success");n.editable=!1})}function w(){var n=new u(h.newDevelopmentalActivity);n.developmentalActivity1=h.developmentalActivity1;n.$save(function(n){o.addAlert("New developmental activity has been added.","success");h.developmentalActivities.push(n);l();h.addingNew=!1;h.addedNew=!0;i.reload()},function(){o.addAlert("An error occurred adding the developmental activity.","danger")})}function b(n){u.delete({id:n.developmentalActivityID}).$promise.then(function(){var t=h.competenciesDevelopmentalActivities.indexOf(n);h.competenciesDevelopmentalActivities.splice(t,1);o.addAlert("Developmental activity has been inactivated.","info")},function(){o.addAlert("An error occurred deleting the competency.","danger")})}function l(){h.reset=!0;h.newDevelopmentalActivity={developmentalActivityID:-1,developmentalActivity1:"",developmentalActivityTypeID:-1}}function k(){l();h.addingNew=!1}function d(n){e({text:"Are you certain you want to delete this developmental activity?",title:"Delete developmental activity"}).then(function(){b(n)})}function g(n){c.developmentalActivityID=n;var t=f.open({templateUrl:"/app/templates/modals/mapDevelopmentalActivitiesCompetenciesModal.html",controller:"mapDACController as vm",size:"sm",animation:!0,windowClass:"pull-top",windowTopClass:"slide-from-top",resolve:{activity:function(){return c}}});t.result.then(function(){},function(){})}var h=this,c;h.developmentalActivities=s.developmentalActivities;h.search="";h.addingNew=!1;h.addedNew=!1;h.newDevelopmentalActivity={};h.showId=-1;h.showHover=!h.showHover;h.newDevelopmentalActivity={developmentalActivityID:-1,developmentalActivity1:"",developmentalActivityTypeID:-1};h.developmentalActivity1="";h.developmentalActivityTypeID;c={developmentalActivityID:null,archived:null};h.searchFocus=null;h.reset=!1;h.resetNew=l;h.toggleEdit=v;h.update=p;h.cancel=y;h.confirmDelete=d;h.cancelSave=k;h.save=w;h.manageCompetency=g;a();n.keydown=function(t,i){t.keyCode==13&&(i.archived=!i.archived,n.keydownEvent=i.archived)};n.mousedown=function(t,i){i.archived=!i.archived;n.mousedownEvent=i.archived}}n.$inject=["$scope","$rootScope","$route","$window","Activity","$uibModal","$confirm","alertService","activityPrepService"];angular.module("FEMACPT.admin").controller("developmentalActivityController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h){function v(){return s.compileEvaluationGridResults({from:c.from,to:c.to,showAllDates:c.showAllDates}).$promise.then(function(n){c.gridData=n;s.compileEvaluationResults({from:c.from,to:c.to,showAllDates:c.showAllDates}).$promise.then(function(n){c.evaluationData=n;c.questionResults=c.evaluationData.questionResults})})}function y(n){return c.objectId=n,s.exportToExcel({id:c.objectId}).$promise.then(function(n){var t=n;t==null?h.addAlert("Exporting evaluation data to excel failed.","danger"):c.downloadLink=t.fileName})}function p(){var n=t.open({template:'<div class="modal-close"><a href="" data-ng-click="vm.close()">Close<\/a><\/div><br/><div><table><thead><tr><th colspan="2" class="title-bar">Legend<\/th><\/tr><tr class="table-bordered"><th>Value<\/th><th>Meaning<\/th><\/tr><\/thead><tbody><tr data-ng-repeat="l in vm.legendData"><td>{{l.abbreviation}}<\/td><td style="text-align:left">{{l.definition}}<\/td><\/tr><\/tbody><\/table><\/div>',controller:"legendModalController as vm",size:"sm",animation:!0,windowClass:"legend-modal",windowTopClass:"slide-from-right"});n.result.then(function(){},function(){})}function w(n){var i=[],r;i=c.evaluationData.otherInformations[n];r=t.open({templateUrl:"/app/templates/modals/commentsModal.html",controller:"commentsModalController as vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right",resolve:{comments:function(){return i}}});r.result.then(function(){},function(){})}function b(){i.location.href="/#/setup/evaluationsPrint/"+r.from+"/"+r.to+"/"+r.showAllDates}var c=this,l=new Date(r.from),a=new Date(r.to);c.from=l.toLocaleDateString();c.to=a.toLocaleDateString();c.showAllDates=r.showAllDates=="false"?!1:!0;c.tmp=[];c.formattedData=[{question:null}];c.download={};c.downloadLink=null;c.showComments=w;c.showLegend=p;c.goPrint=b;c.exportToExcel=y;c.questionResults=[];c.evaluationData=[];c.gridData=[];c.objectId=0;v();n.downloadFile=function(){var t=c.downloadLink,n;n=n||f.get("$http");n({method:"GET",url:"api/experience/returnExcelDocument",params:{fileName:t},responseType:"arraybuffer"}).success(function(n,t,i){var u,o,s;i=i();var f=i["x-filename"],c=i["content-type"],r=document.createElement("a");try{u=new e([n],{type:c});window.navigator.msSaveOrOpenBlob(u,f)}catch(l){try{o=window.URL.createObjectURL(u);r.setAttribute("href",o);r.setAttribute("download",f);try{s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(s)}catch(l){h.addAlert("Download request failed.","danger")}}catch(l){h.addAlert("Download request failed.","danger")}}}).error(function(n){h.addAlert("Download request failed. "+n,"danger")})}}n.$inject=["$scope","$uibModal","$window","$routeParams","$q","$injector","Blob","FileSaver","Experience","alertService"];angular.module("FEMACPT").controller("evaluationsController",n)}(),function(){"use strict";function n(n,t,i,r,u){function h(){return u.compileEvaluationGridResults({from:f.from,to:f.to,showAllDates:f.showAllDates}).$promise.then(function(n){f.gridData=n;u.compileEvaluationResults({from:f.from,to:f.to,showAllDates:f.showAllDates}).$promise.then(function(n){f.evaluationData=n;f.questionResults=f.evaluationData.questionResults})})}function c(){$("#printBut").hide();t.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();t.location.href="#/setup"}var f=this,o=new Date(i.from),s=new Date(i.to),e;f.from=o.toLocaleDateString();f.to=s.toLocaleDateString();f.showAllDates=i.showAllDates=="false"?!1:!0;f.questionResults=[];f.evaluationData=[];n.trustAsHtml=r.trustAsHtml;f.print=c;h();e=$("#mainBody");e.hide();$("#footer").hide()}n.$inject=["$scope","$window","$routeParams","$sce","Experience","alertService"];angular.module("FEMACPT").controller("evaluationsPrintController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h){function a(){v()}function v(){c.frequentlyAskedQuestions.forEach(function(n){n.editable=!1});t.loading=!1}function y(n){n.editable||(n.originalQuestion=n.question,n.originalAnswer=n.answer,n.originalQuestionOrder=-1);n.editable=!0}function p(n){c.reset=!0;n.originalQuestion=n.question;n.originalAnswer=n.answer;n.originalQuestionOrder=n.questionOrder;n.editable=!1}function w(n){var t=new f(n);t.$update(function(){s.addAlert("Frequently asked question has been updated.","success");n.editable=!1})}function b(){var n=new f(c.newFrequentlyAskedQuestion);n.$save(function(n){n!=null?(s.addAlert("New frequently asked question has been added.","success"),c.frequentlyAskedQuestions.push(n),l(),c.addingNew=!1,c.addedNew=!0,r.reload()):s.addAlert("An error occurred adding the frequently asked question.","danger")},function(){s.addAlert("An error occurred adding the frequently asked question.","danger")})}function k(n){f.delete({id:n.questionID}).$promise.then(function(){var t=c.frequentlyAskedQuestions.indexOf(n);c.frequentlyAskedQuestions.splice(t,1);s.addAlert("Frequently asked question has been deleted.","info")},function(){s.addAlert("An error occurred deleting the frequently asked question.","danger")})}function l(){c.reset=!0;c.newFrequentlyAskedQuestion={questionID:-1,question:"",answer:"",frequentlyAskedQuestionTypeID:-1,questionOrder:-1}}function d(){l();c.addingNew=!1}function g(n){o({text:"Are you certain you want to delete this frequently asked question?",title:"Delete frequently asked question"}).then(function(){k(n)})}var c=this;c.frequentlyAskedQuestions=h.frequentlyAskedQuestions;c.search="";c.addingNew=!1;c.addedNew=!1;c.newFrequentlyAskedQuestion={questionID:-1,question:"",answer:"",frequentlyAskedQuestionTypeID:-1,questionOrder:0};c.showId=-1;c.showHover=!c.showHover;c.searchFocus=null;c.reset=!1;c.resetNew=l;c.toggleEdit=y;c.update=w;c.cancel=p;c.confirmDelete=g;c.cancelSave=d;c.save=b;n.trustAsHtml=i.trustAsHtml;n.parseInt=parseInt;a()}n.$inject=["$scope","$rootScope","$sce","$route","$window","FAQ","$uibModal","$confirm","alertService","faqPrepService"];angular.module("FEMACPT.admin").controller("frequentlyAskedQuestionsController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h){function a(){l();w();b();t.loading=!1}function v(n){n.editable||(n.originalFunctionalArea=n.functionalArea1,n.originalCareerType=n.careerType,n.originalFunctionalAreaDescription=n.functionalAreaDescription,n.originalArchive=n.Archived);n.editable=!0;var t=c.careerTypes.map(function(n){return n.careerTypeID}).indexOf(n.careerTypeID);c.careerTypes.selected=c.careerTypes[t]}function y(n){n.editable=!1;n.functionalArea1=n.originalFunctionalArea;n.functionalAreaDescription=n.originalFunctionalAreaDescription;n.careerType=n.originalCareerType}function p(n){n.careerTypeID=n.careerType.careerTypeID;var t=new r(n);t.$update(function(){f.addAlert("Functional Area has been updated.","success");n.editable=!1})}function w(){c.functionalAreas.forEach(function(n){n.editable=!1});c.functionalAreas=e("orderBy")(c.functionalAreas,"functionalArea1")}function b(){angular.copy(c.careerTypes,c.filterCareerTypes);c.filterCareerTypes.unshift({careerTypeID:-1,careerType1:"All"});c.filterCareerTypes.selected=c.filterCareerTypes[0]}function k(){l();c.addingNew=!1}function d(){var n=new r(c.newFunctionalArea),i,t;n.careerTypeID=c.newFunctionalArea.careerType.careerTypeID;n.careerType1=c.newFunctionalArea.careerType.careerType1;n.careerType.careerType1=c.newFunctionalArea.careerType.careerType1;i=c.careerTypes.map(function(n){return n.careerTypeID}).indexOf(n.careerTypeID);t={};angular.copy(c.careerTypes[i],t);n.$save(function(){f.addAlert("New Functional Area has been added.","success");n.careerType=t;c.functionalAreas.push(n);l();c.addingNew=!1},function(){f.addAlert("An error occurred adding the functional area.","danger")})}function l(){c.newFunctionalArea={functionalArea1:"",functionalAreaDescription:"",careerTypeID:null}}var c=this;c.functionalAreas=h.functionalAreas;c.careerTypes=h.careerTypes;c.search=null;c.addingNew=!1;c.showHover=!c.showHover;c.newFunctionalArea={};c.filterCareerType={careerType1:"All",careerTypeID:-1};c.filterCareerTypes=[];c.toggleEdit=v;c.save=d;c.cancelSave=k;c.update=p;c.cancelUpdate=y;n.keydown=function(t,i){t.keyCode==13&&(i.archived=!i.archived,n.keydownEvent=i.archived)};n.mousedown=function(t,i){i.archived=!i.archived;n.mousedownEvent=i.archived};a()}n.$inject=["$scope","$rootScope","$location","FunctionalArea","CareerTypes","alertService","$filter","$confirm","$uibModal","functionalAreaPrepService"];angular.module("FEMACPT.admin").controller("functionalAreaController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e){function h(n){o.showId=o.showId==n?-1:n}function c(){o.competencies.forEach(function(n){n.editable=!1});t.loading=!1}function l(n){n.editable||(n.originalcompetency=n.competency1);n.editable=!0}function a(n){n.competency1=n.originalcompetency;n.editable=!1}function v(n){var t=new i(n);t.$update(function(){f.addAlert("Competency has been updated.","success");n.editable=!1})}function y(){var n=new i(o.newCompetency);n.$save(function(t){n=t;f.addAlert("New competency has been added.","success");o.competencies.push(n);s();o.addingNew=!1;o.addedNew=!0},function(){f.addAlert("An error occurred adding the competency.","danger")})}function s(){o.newcompetency={competencyID:-1,competency1:""}}function p(){s();o.addingNew=!1}function w(n){var t=r.open({templateUrl:"/app/templates/modals/mapCompetencyBehaviorsModal.html",controller:"mapCompetencyBehaviorsController as vm",size:"sm",animation:!0,windowClass:"pull-top",windowTopClass:"slide-from-top",resolve:{competencyid:function(){return n}}});t.result.then(function(){},function(){})}var o=this;o.competencies=[];o.competencies=e.competencies;o.search="";o.addingNew=!1;o.addedNew=!1;o.newCompetency={};o.showId=-1;o.showHover=!o.showHover;o.newCompetency={competencyID:-1,competency1:""};o.resetNew=s;o.toggleEdit=l;o.update=v;o.cancel=a;o.cancelSave=p;o.save=y;o.viewDescriptions=h;o.manageBehaviours=w;c();n.keydown=function(t){t.keyCode==13&&(o.addingNew=!o.addingNew,n.keydownEvent=o.addingNew)};n.keydownArchive=function(t,i){t.keyCode==13&&(i.archived=!i.archived,n.keydownArchiveEvent=i.archived)};n.mousedownArchive=function(t,i){i.archived=!i.archived;n.mousedownArchiveEvent=i.archived}}n.$inject=["$scope","$rootScope","Competency","$uibModal","$confirm","alertService","competencyPrepService"];angular.module("FEMACPT.admin").controller("managecompetenciesController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h,c,l){function y(){h.id&&(a.newPosition=e.get({id:h.id},function(){a.careerTracks=r.getNonAdmin();a.competencies=u.query(function(){v()});a.filteredCompetencies=u.query();p()}))}function p(){var n=a.careerTypes.map(function(n){return n.careerTypeID}).indexOf(a.newPosition.careerTypeID);a.selectedCareerType=a.careerTypes[n];a.functionalAreas=f.getByCareerTrack({id:a.newPosition.careerTypeID},function(){w()})}function w(){var n=a.functionalAreas.map(function(n){return n.functionalAreaID}).indexOf(a.newPosition.careerTrack.functionalAreaID);a.selectedFunctionalArea=a.functionalAreas[n];a.careerTracks=r.getByFunctionalArea({id:a.newPosition.careerTrack.functionalAreaID},function(){b()})}function b(){var n=a.careerTracks.map(function(n){return n.careerTrackID}).indexOf(a.newPosition.careerTrack.careerTrackID);a.newPosition.careerTrack=a.careerTracks[n];a.showDescription=!0;a.showJobLink=!0;a.showCompetencies=!0;k()}function k(){a.loadCompetencies().then(function(){a.newPosition.competencies=[];a.newPosition.positionCompetencies.forEach(function(n){var r=a.competencies.map(function(n){return n.competencyID}).indexOf(n.competenciesDescription.competencyID),t,i;if(r>=0){for(t=a.competencies[r],t.proficiencyLevelID=n.proficiencyLevelID,i=0;i<a.profiencyLevels.length;i++)if(a.profiencyLevels[i].proficiencyLevelID==n.proficiencyLevelID){t.proficiencyLevel=a.profiencyLevels[i].proficiencyLevel1.split("\n")[0];break}t.active=!0;a.newPosition.competencies.push(t)}});d()})}function d(){a.newPosition.promoteFrom.forEach(function(n){var t=a.filteredPromoteFromPositions.map(function(n){return n.positionID}).indexOf(n.positionID),i=a.filteredPromoteFromPositions[t];i.active=!0});a.newPosition.promoteTo.forEach(function(n){var t=a.filteredPromoteToPositions.map(function(n){return n.positionID}).indexOf(n.positionID),i=a.filteredPromoteToPositions[t];i.active=!0});c.loading=!1}function g(n){a.selectedCareerType=n;a.functionalAreas=f.getByCareerTrack({id:n.careerTypeID});a.selectedFunctionalArea=null;a.newPosition.careerTrack=null;a.newPosition.careerTypeID=n.careerTypeID;v()}function nt(n){a.selectedFunctionalArea=n;a.careerTracks=r.getByFunctionalArea({id:n.functionalAreaID});a.newPosition.careerTrack=null;v()}function tt(n){a.newPosition.careerTrack=n;a.newPosition.promoteFrom=[];a.newPosition.promoteTo=[]}function it(){var t=n.defer();return a.showCompetencies=!0,a.competencies=u.query(function(){a.competencies.forEach(function(n){n.active=!1});a.profiencyLevels=o.query(function(){a.profiencyLevels.unshift({proficiencyLevelID:-1,proficiencyLevel1:"All"});t.resolve()})}),a.filteredCompetencies=a.competencies,t.promise}function rt(n){var t=a.newPosition.competencies.indexOf(n);t>-1?(a.newPosition.competencies.splice(t,1),a.newPosition.positionCompetencies.splice(t,1),n.active=!1,n.proficiencyLevel=undefined):yt(n)}function ut(n){var t=a.newPosition.competencies.indexOf(n);return a.newPosition.positionCompetencies[t].proficiencyLevel}function ft(n){var t=a.newPosition.promoteFrom.map(function(n){return n.positionID}).indexOf(n.positionID);t>-1?a.newPosition.promoteFrom.splice(t,1):a.newPosition.promoteFrom.push(n);n.active=!n.active}function et(n){var t=a.newPosition.promoteTo.map(function(n){return n.positionID}).indexOf(n.positionID);t>-1?a.newPosition.promoteTo.splice(t,1):a.newPosition.promoteTo.push(n);n.active=!n.active}function ot(n){a.competencyFilter.selected=n}function st(n){a.positionsFilterType=n}function ht(n){a.positionsToFilterType=n}function ct(n){a.competencyFilter.proficiency=n.proficiencyLevel1}function lt(n){a.positionsFilterType=n;a.filteredPromoteFromPositions=n==="All"?a.positions:n==="Selected"?a.positions.filter(function(n){return a.newPosition.promoteFrom.indexOf(n)!=-1}):a.positions.filter(function(n){return a.newPosition.promoteFrom.indexOf(n)==-1})}function at(n){a.positionsToFilterType=n;a.filteredPromoteToPositions=n==="All"?a.positions:n==="Selected"?a.positions.filter(function(n){return a.newPosition.promoteTo.indexOf(n)!=-1}):a.positions.filter(function(n){return a.newPosition.promoteTo.indexOf(n)==-1})}function vt(){var n=new e(a.newPosition);a.newPosition.positionID!==undefined&&a.newPosition.positionID>0?n.$update(function(){t.addAlert("Successfully updated position","success");l.path("/setup/positions")}):n.$save(function(){t.addAlert("Successfully added position","success");l.path("/setup/positions")})}function v(){a.competencies.forEach(function(n){n.active=!1})}function yt(n){var i=s.open({templateUrl:"/app/templates/positionBuilder/selectProficiencyLevel.html",controller:"proficiencyLevelController",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right",resolve:{levels:function(){return a.profiencyLevels},competency:function(){return n}}});i.result.then(function(i){i&&pt(n).then(function(r){r!=null?(n.proficiencyLevelID=i.proficiencyLevelID,n.proficiencyLevel=i.proficiencyLevel1.split("\n")[0],a.newPosition.competencies.push(n),a.newPosition.positionCompetencies.push({competencyID:n.competencyID,proficiencyLevelID:i.proficiencyLevelID,positionID:a.newPosition.positionID,competencyDescriptionID:r.competencyDescriptionID}),n.active=!0):t.addAlert("You must select both a proficiency level and a description.","warning")},function(){t.addAlert("You must select both a proficiency level and a description.","warning")})},function(){})}function pt(n){var t=s.open({templateUrl:"/app/templates/positionBuilder/selectCompentencyDescription.html",controller:"CompetencyDescriptionModalController",controllerAs:"comp",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right",resolve:{competency:function(){return n}}});return t.result.then(function(n){if(n)return n},function(){return null})}function wt(){a.selectedFunctionalArea=null;var n=s.open({templateUrl:"/app/templates/positionBuilder/addFunctionalArea.html",controller:"functionalAreaModalController",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right",resolve:{careerType:function(){return a.selectedCareerType}}});n.result.then(function(n){n&&a.functionalAreas.push(n)})}function bt(){a.newPosition.careerTrack=null;var n=s.open({templateUrl:"/app/templates/positionBuilder/addCareerTrack.html",controller:"careerTrackModalController as vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right",resolve:{functionalArea:function(){return a.selectedFunctionalArea}}});n.result.then(function(n){n&&a.careerTracks.push(n)})}var a=this;a.newPosition={position:"",positionID:0,positionDescription:"",careerTrack:null,careerTypeID:null,competencies:[],positionCompetencies:[],jobLink:"",promoteTo:[],promoteFrom:[]};a.careerTypes=i.query(function(){h.id===undefined&&(c.loading=!1)});a.competencyFilter={selected:"All",proficiency:"All"};a.selectedFilterOptions=["All","Selected","Not Selected"];a.careerTracks=[];a.competencies=[];a.filteredCompetencies=[];a.functionalAreas=[];a.filteredPromoteFromPositions=[];a.filteredPromoteToPositions=[];a.profiencyLevels=[];a.positions=e.query(function(){a.positions.forEach(function(n){n.active=!1});angular.copy(a.positions,a.filteredPromoteFromPositions);angular.copy(a.positions,a.filteredPromoteToPositions)});a.selectedCareerType=null;a.selectedFunctionalArea=null;a.expanded={careerType:!0,functionalArea:!0,careerTrack:!0,positionName:!0,positionDescription:!0,jobLink:!0,competencies:!0,promoteFrom:!0,promoteTo:!0};a.showDescription=!1;a.showJobLink=!1;a.showCompetencies=!1;a.competencyFilterType="All";a.positionsFilterType="All";a.positionsToFilterType="All";a.selectCareerType=g;a.selectFunctionalArea=nt;a.selectCareerTrack=tt;a.loadCompetencies=it;a.toggleCompetency=rt;a.getProficiencyLevel=ut;a.togglePromoteFrom=ft;a.togglePromoteTo=et;a.setFilter=ot;a.setPositionsFilterType=st;a.setPositionsToFilterType=ht;a.filterCompetenciesProficiencyLevel=ct;a.setPositionFromFilter=lt;a.setPositionToFilter=at;a.savePosition=vt;a.addNewFunctionalArea=wt;a.addNewCareerTrack=bt;y()}n.$inject=["$q","alertService","CareerTypes","CareerTracks","Competency","FunctionalArea","Positions","ProficiencyLevels","$uibModal","$routeParams","$rootScope","$location"];angular.module("FEMACPT.admin").controller("PositionBuilderController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s){function l(){i.loading=!1;angular.copy(h.positions,h.filteredPositions);h.careerTracks=h.positions.map(function(n){return n.careerTrack});h.careerTracks.unshift("All");h.careerTracks=o("unique")(h.careerTracks);h.functionalAreas=h.positions.map(function(n){return n.functionalArea});h.functionalAreas.unshift("All");h.functionalAreas=o("unique")(h.functionalAreas)}function a(n,t){h.filterPosition.careerTrackFilter=n||h.filterPosition.careerTrackFilter;h.filterPosition.functionalAreaFilter=t||h.filterPosition.functionalAreaFilter}function v(n){for(var i=!1,t=0;t<h.displayCompetencies.length;t++)if(h.displayCompetencies[t].id==n){h.displayCompetencies[t].selected=!h.displayCompetencies[t].selected;i==!0;break}i||h.displayCompetencies.push({id:n,selected:!0})}function y(n){for(var t=0;t<h.displayCompetencies.length;t++)if(h.displayCompetencies[t].id==n)return h.displayCompetencies[t].selected?!0:!1;return!1}function p(n){for(var i=!1,t=0;t<h.displayFrom.length;t++)if(h.displayFrom[t].id==n){h.displayFrom[t].selected=!h.displayFrom[t].selected;i==!0;break}i||h.displayFrom.push({id:n,selected:!0})}function w(n){for(var t=0;t<h.displayFrom.length;t++)if(h.displayFrom[t].id==n)return h.displayFrom[t].selected?!0:!1;return!1}function b(n){for(var i=!1,t=0;t<h.displayTo.length;t++)if(h.displayTo[t].id==n){h.displayTo[t].selected=!h.displayTo[t].selected;i==!0;break}i||h.displayTo.push({id:n,selected:!0})}function k(n){for(var t=0;t<h.displayTo.length;t++)if(h.displayTo[t].id==n)return h.displayTo[t].selected?!0:!1;return!1}function c(n){var i,r;n.archived!=null&&(i={position1:null,positionID:null,archived:null},i.position1=n.position,i.positionID=n.positionID,i.archived=n.archived,r=new t(i),r.$updatePositionStatus(function(n){var t=n;t.length>0?f.addAlert("Failed to update position status.","danger"):f.addAlert("Position status has been updated.","success")}))}var h=this;h.displayCompetencies=[{id:null,selected:!1}];h.displayTo=[{id:null,selected:!1}];h.displayFrom=[{id:null,selected:!1}];h.filteredPositions=[];h.filterPosition={careerTrackFilter:"All",functionalAreaFilter:"All"};n.keydown=function(t,i){t.keyCode==13&&(i.archived=!i.archived,c(i),n.keydownEvent=i.archived)};n.mousedown=function(t,i){i.archived=!i.archived;c(i);n.mousedownEvent=i.archived};h.filterPositions=a;h.updateState=c;h.showCompetencies=v;h.isCompetencyOpen=y;h.showPromotesFrom=p;h.isPromotesFromOpen=w;h.showPromotesTo=b;h.isPromotesToOpen=k;h.positions=s.positions;l()}n.$inject=["$scope","Positions","$rootScope","$confirm","$uibModal","alertService","CareerTracks","$filter","positionPrepService"];angular.module("FEMACPT.admin").controller("positionsController",n)}(),function(){"use strict";function n(n,t){function r(n){var r=t.open({templateUrl:"/app/templates/modals/datePickerModal.html",controller:"datePickerModalController as vm",size:"sm",animation:!0,windowClass:"pull-right",windowTopClass:"datepicker",resolve:{selectedDates:function(){return u},returnDates:function(){return i.returnDates}}});r.result.then(function(t){i.reportMetric.from=t.from;i.reportMetric.to=t.to;i.reportMetric.showAllDates=t.showAllDates;f(t,n)})}function f(t,r){i.reportMetric.from=t.from;i.reportMetric.to=t.to;i.reportMetric.showAllDates=t.showAllDates;r=="assessment"?n.location.href="#/setup/userAssessmentMetrics/"+i.reportMetric.from+"/"+i.reportMetric.to+"/"+i.reportMetric.showAllDates:r=="careerPlan"?n.location.href="#/setup/careerPlanMetrics/"+i.reportMetric.from+"/"+i.reportMetric.to+"/"+i.reportMetric.showAllDates:r=="evaluations"&&(n.location.href="#/setup/evaluations/"+i.reportMetric.from+"/"+i.reportMetric.to+"/"+i.reportMetric.showAllDates)}function e(){r("careerPlan")}function o(){r("assessment")}function s(){r("evaluations")}var i=this,u;i.goCareerPlanMetrics=e;i.goUserAssessmentMetrics=o;i.goEvaluationMetrics=s;i.reportMetric={from:null,to:null,showAllDates:null};u={from:null,to:null,showAllDates:null};i.returnDates={from:null,to:null,showAllDates:null}}n.$inject=["$window","$uibModal","alertService","Assessment","femaAuth"];angular.module("FEMACPT.admin").controller("reportsController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o){function h(){s.newResource.pageName=="ALL"?(s.newResource.pageName="USER",s.isAll=!1):(s.newResource.pageName="ALL",s.isAll=!0)}function c(){s.isFile=!s.isFile}function l(){v()}function a(){s.addingNew=!1;s.newResource.resourceTitle="";s.newResource.resourceLink="";s.newResource.pageName="ALL"}function v(){return s.resources=o.query()}function y(n){e({text:"Are you certain you wish to delete this resource?",title:"Delete Resource?"}).then(function(){var t=new o(n),i=t.resourceID;t.$delete({id:i},function(){var t=s.resources.indexOf(n);s.resources.splice(t,1);f.addAlert("Resource successfully deleted.","info")},function(n){f.addHeader("An error occurred attempting to delete the resource.");f.addAlert(n.data.message,"danger")})})}function p(){s.newResource.pageName=s.isAll==!0?"USER":"ALL";var n=new o(s.newResource);n.$save(function(){s.resources.push(n);a();s.addingNew=!1;f.addAlert("New resource has been added.","success")},function(){f.addAlert("An error occurred adding the question.","danger")})}function w(){s.resources=new o;s.addingNew=!1}function b(){s.addingNew=!1;s.file=null;s.isFile=!s.isFile}var s=this;s.resources=[];s.addingNew=!1;s.showHover=!s.showHover;s.noHover=!s.noHover;s.isAll;s.isFile;s.newResource={resourceTitle:null,resourceLink:null,pageName:"ALL"};s.newFile=null;s.pageName;s.files=[];s.saveResource=p;s.deleteResource=y;s.cancelAdd=w;s.cancelUpload=b;s.change=h;s.resource={};l();n.keydown=function(t){t.keyCode==13&&(n.keydownEvent=c())};n.mousedown=function(){n.mousedownEvent=c()};n.keydownWho=function(t){t.keyCode==13&&(n.keydownWhoEvent=h())};n.mousedownWho=function(){n.mousedownWhoEvent=h()};n.saveFile=function(){if(s.newFile==null){f.addAlert("You must select a file to upload","danger");return}if(s.newFile.name.indexOf(".pdf")==-1){f.addAlert("Only Pdf files can be uploaded.","danger");return}s.newResource.pageName=s.isAll==!0?"USER":"ALL";var n=new FormData;r({method:"POST",url:"/api/resources/uploadFileToUrl",headers:{"Content-Type":undefined},data:{model:s.newResource,files:s.newFile},transformRequest:function(){return n.append("newResource",JSON.stringify({resourceTitle:s.newResource.resourceTitle,resourceLink:"",pageName:s.newResource.pageName})),n.append(s.newFile.name,s.newFile),n}}).success(function(n){s.resources.push(n);s.isFile=!s.isFile;s.file=null;s.addingNew=!1;f.addAlert("File upload succeeded.","success")}).error(function(){f.addAlert("Part of all the file upload failed.","danger")})}}n.$inject=["$scope","UploadFile","$q","$http","$injector","alertService","$confirm","Resources"];angular.module("FEMACPT.admin").controller("adminResourcesController",n)}(),function(){"use strict";function n(n,t,i,r){function f(){return n.query().$promise.then(function(n){return u.roleList=n,u.roleList.forEach(function(n){n.editable=!1}),i.loading=!1,u.roleList})}function e(){u.newRole.$save(function(i){u.newRole.Id=i.Id;u.roleList.push(u.newRole);u.addingNew=!1;u.newRole=new n;t.addAlert("Added new role.","success")},function(){})}function o(n){r({text:"Are you certain you wish to delete the "+n.name+" role?",title:"Delete Role?"}).then(function(){s(n)})}function s(i){var r=new n(i);r.$delete(r,function(){var n=u.roleList.indexOf(i);u.roleList.splice(n,1);t.addAlert("Role has been deleted","info")})}function h(){u.newRole=new n;u.addingNew=!1}function c(n){n.originalName=n.name;n.editable=!0}function l(i){var r=new n(i);r.$update(function(){t.addAlert("Role has been updated.","info")})}function a(n){n.name=n.originalName;n.editable=!1}var u=this;u.newRole=new n;u.roleList=[];u.addingNew=!1;u.saveRole=e;u.removeRole=o;u.cancelAdd=h;u.enableEditRole=c;u.updateRole=l;u.cancelEdit=a;u.showHover=!u.showHover;f()}n.$inject=["Roles","alertService","$rootScope","$confirm"];angular.module("FEMACPT.admin").controller("rolesController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o){function h(){}function l(n){n.editable||(n.originalSatisfactionEvaluationQuestion1=n.satisfactionEvaluationQuestion1,n.originalArchived=n.archived);n.editable=!0;s.reset=!0}function a(){s.addingNew=!1;s.reset=!0}function v(n){n.satisfactionEvaluationQuestion1=n.originalSatisfactionEvaluationQuestion1;n.archived=n.originalArchived;n.satisfactionEvaluationQuestionOrder=n.originalSatisfactionEvaluationQuestionOrder;n.editable=!n.editable}function y(n){var t=new f(n);t.$update(function(){o.addAlert("Satisfaction evaluation question has been updated.","success");n.editable=!1},function(){o.addAlert("Failed to update satisfaction evaulation question.","danger")})}function p(){s.newQuestion.satisfactionEvaluationQuestionOrder=0;s.newQuestion.originalSatisfactionEvaluationQuestion1="";s.reset=!0}function w(){var n=new f(s.newQuestion);n.$save(function(n){n!=null?(o.addAlert("New satisfaction evaulation question has been added.","success"),s.questions.push(n),p(),s.addingNew=!1,s.addedNew=!0,t.reload()):o.addAlert("Failed to add new satisfaction evaulation question. The question may already exist.","danger")},function(){o.addAlert("Failed to add new satisfaction evaulation question.","danger")})}var s=this;s.questions=e.evaluationQuestions;s.newQuestion={categoryID:-1,satisfactionEvaluationQuestionOrder:0,satisfactionEvaluationQuestion1:"",archived:!1};s.tmp=[];s.addingNew=!1;s.search="";s.searchFocus=null;s.reset=!1;s.toggleEdit=l;s.cancelAdd=a;s.cancelEdit=v;s.updateQuestion=y;s.save=w;h();n.keydown=function(t,i){t.keyCode==13&&(i.archived=!i.archived,updateState(i),n.keydownEvent=i.archived)};n.mousedown=function(t,i){i.archived=!i.archived;updateState(i);n.mousedownEvent=i.archived}}n.$inject=["$scope","$route","$uibModal","$q","$window","SatisfactionQuestions","evaluationPrepService","alertService"];angular.module("FEMACPT").controller("satisfactionQuestionsController",n)}(),function(){"use strict";function n(n,t,i,r,u,f){function s(){e.questions.forEach(function(n){n.editable=!1});o();t.loading=!1;e.questions.sort(function(n,t){return n.selfReflectionQuestionOrder>t.selfReflectionQuestionOrder})}function h(){e.addingNew=!1;o()}function c(n){e.reset=!0;n.selfReflectionQuestion1=n.originalSelfReflectionQuestion1;n.selfReflectionQuestionID=n.originalSelfReflectionQuestionID;n.archived=n.originalArchived;n.selfReflectionQuestionOrder=n.originalSelfReflectionQuestionOrder;n.editable=!1}function l(n){r({text:"Are you certain you wish to delete this question?",title:"Delete question?"}).then(function(){a(n)})}function a(){}function o(){e.reset=!0;e.newQuestion={selfReflectionQuestion1:"",selfReflectionQuestionID:-1,archived:!1,selfReflectionQuestionOrder:-1,selfReflectionTypeID:-1}}function v(){var n=new i(e.newQuestion);n.$save(function(){u.addAlert("New question has been added.","success");e.questions.push(n);o();e.addingNew=!1},function(){u.addAlert("An error occurred adding the question.","danger")})}function y(n){n.editable||(n.originalSelfReflectionQuestion1=n.selfReflectionQuestion1,n.originalSelfReflectionQuestionID=n.selfReflectionQuestionID,n.originalArchived=n.archived,n.originalSelfReflectionQuestionOrder=n.selfReflectionQuestionOrder,n.originalSelfReflectionType1=n.selfReflectionType1);n.editable=!0}function p(n){var t=new i(n);t.$update(function(){u.addAlert("Question has been updated.","success");n.editable=!1})}var e=this;e.questions=f.questions;e.showHover=!e.showHover;e.newQuestion={selfReflectionQuestion1:"",selfReflectionQuestionID:-1,archived:!1,SelfReflectionQuestionOrder:-1,selfReflectionTypeID:-1};e.search={};e.addingNew=!1;e.choice=50;e.reset=!1;e.cancelAddQuestion=h;e.cancelUpdateQuestion=c;e.confirmDelete=l;e.save=v;e.toggleEdit=y;e.updateQuestion=p;s();n.keydown=function(t,i){t.keyCode==13&&(i.archived=!i.archived,n.keydownEvent=i.archived)};n.mousedown=function(t,i){i.archived=!i.archived;n.mousedownEvent=i.archived}}n.$inject=["$scope","$rootScope","SR","$confirm","alertService","selfReflectionQuestionPrepService"];angular.module("FEMACPT.admin").controller("selfReflectionQuestionsController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s){function l(){var o,e;!f.isAuthorized("Helpdesk")||f.isAuthorized("System Administrator")||f.isAuthorized("SuperAdmin")?f.isAuthorized("System Administrator")&&f.isAuthorized("SuperAdmin")?(h.helpdesk=!1,o=r.query(),e=i.query(),t.all({users:e.$promise,roles:o.$promise}).then(function(n){h.roles=n.roles;h.users=n.users;c()})):(u.addAlert("You are not authorized to view this resource","danger"),n.path("/")):(e=i.query(),t.all({users:e.$promise}).then(function(n){h.users=n.users;f.isAuthorized("System Administrator")&&f.isAuthorized("SuperAdmin")||(h.showDelete=!h.showDelete);c()}))}function c(){e.id?(angular.forEach(h.users,function(n){n.id==e.id&&(h.user=n)}),i.getRoles({userId:e.id},function(n){h.user.roles=n;h.user.allRoles=angular.copy(h.roles,h.user.allRoles);h.user.allRoles.forEach(function(n){n.hasPermission=h.user.roles.indexOf(n.name)>-1;n.disabled=n.name==="User"});o.loading=!1})):(a(),o.loading=!1)}function a(){h.users.forEach(function(n){n.allRoles=[];angular.copy(h.roles,n.allRoles);n.allRoles.forEach(function(n){n.hasPermission=!1})})}function v(){var n=new i(h.user);n.roles=[];n.roles=h.user.allRoles.filter(function(n){return n.hasPermission});n.roles.forEach(function(n){n.role=n.name;n.roleId=n.id;n.userId=h.user.id});n.$update(function(){u.addAlert("Information has been updated.","success")})}function y(n){f.isAuthorized("System Administrator")?s({text:"Deleting this user, will remove any user assessments and career path information? Are you sure",title:"Delete User?"}).then(function(){i.delete({userId:n.id},function(){var t=h.users.indexOf(n);h.users.splice(t,1);u.addAlert("User has been removed.","info")})}):u.addAlert("You are not authorized to view this resource","danger")}function p(n){f.isAuthorized("System Administrator")||f.isAuthorized("Helpdesk")?i.invalidate({userId:n.id},function(){u.addAlert("User's existing access has been removed. User will have to re-authenticate.","info")},function(){}):u.addAlert("You are not authorized to view this resource","danger")}var h=this;h.user;h.showDelete=!0;h.updateUser=v;h.deleteUser=y;h.invalidate=p;h.helpdesk=!0;l()}n.$inject=["$location","$q","AdminUsers","Roles","alertService","femaAuth","$routeParams","$rootScope","$confirm"];angular.module("FEMACPT.admin").controller("usersController",n)}(),function(){"use strict";function n(n,t,i){function u(){manageAccountService.getUsers().then(function(n){r.users=n.data})}function f(n){manageAccountService.getUser({Id:n}).then(function(n){r.user=n.data})}var r=this;r.users=[];r.user="";r.message="";r.savedSucessfully=!1;r.getUsers=u;r.getUser=f}n.$inject=["$location","$timeout","$window","Users","alertService"];angular.module("FEMACPT").controller("accountController",n)}(),function(){"use strict";function n(n,t){var i=this;i.user=n.user;i.userAssessmentID=t.id;i.careerPlanID=t.careerPlanId}n.$inject=["$scope","$routeParams","alertService","Users","Assessment","jwtHelper"];angular.module("FEMACPT").controller("assessmentActivitiesController",n)}(),function(){"use strict";function n(n,t,i,r,u,f){function s(){f.returnSelfReflectionQuestionsAnswers({userId:""}).$promise.then(function(n){e.items=n;e.userSelfReflections=e.items.userSelfReflections;e.userSelfReflectionId=e.items.userSelfReflectionID;return})}function h(){$("#printBut").hide();i.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();i.location.href="#/resources"}var e=this,o;e.print=h;o=$("#mainBody");o.hide();$("#footer").hide();s()}n.$inject=["$scope","$routeParams","$window","alertService","femaAuth","Assessment","jwtHelper"];angular.module("FEMACPT").controller("assessmentBlankSelfReflectionPrintController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s){function l(){h.userIs=s.user;h.user=h.userIs.id}function a(){e.returnUserCareerGoalsQuestionsAnswers({userId:h.user}).$promise.then(function(n){h.items=n;h.userCareerGoals=h.items.userCareerGoals;h.userCareerGoalId=h.items.userCareerGoalId;return})}function v(){$("#printBut").hide();t.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();t.location.href="#/careerPath/userGoalSetting/0"}var h=this,c;h.userIs={};h.user={};h.print=v;c=$("#mainBody");c.hide();$("#footer").hide();l();n.trustAsHtml=r.trustAsHtml;a()}n.$inject=["$scope","$window","$routeParams","$sce","femaAuth","Users","Assessment","jwtHelper","userPrepService"];angular.module("FEMACPT").controller("assessmentCareerGoalSettingPrintController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h,c){function v(){return o.getSavedCareerPlans().$promise.then(function(n){l.careerPlans=n;angular.forEach(l.careerPlans,function(n){n.userCareerPlanID==l.userCareerPlanId&&(l.endPositionId=l.careerPlans[0].overView.endPositionID,p())})})}function y(){l.userIs=c.user;l.user=l.userIs.id}function p(){return s.returnUserCareerPlans({userId:l.user,positionId:l.endPositionId,userCareerPlanId:l.userCareerPlanId}).$promise.then(function(n){l.assessmentData=n;l.careerPlans=l.assessmentData;l.assessmentData.forEach(function(n){l.steps.push({startPositionTitle:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:13px; top:"+l.top+"px; left:340px;'><div  style='font-family:sans-serif; font-size:15px;'>Position: "+(l.index+1)+"<\/div><div><img src='../../../Content/images/check_mark_green_36.png' alt='' />"+n.startPosition+"<\/div><\/div>"});l.top=l.top+65;l.index=l.index+1});l.steps.push({startPositionTitle:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:13px; top:"+l.top+"px; left:340px;'><div  style='font-family:sans-serif; font-size:15px;'>End Position: "+(l.index+1)+"<\/div><div><img src='../../../Content/images/check_mark_green_36.png' alt='' />"+l.assessmentData[l.assessmentData.length-1].endPosition+"<\/div><\/div>"})})}function w(){$("#printBut").hide();t.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();t.location.href="#/"}var l=this,a;l.userCareerPlanId=parseInt(r.id);l.positionid=parseInt(n.positionid);l.hide=!1;l.assessment={};l.competencyData=[];l.proficiency=0;l.userId="";l.userComments="";l.competencyProficiency=[];l.competencyProficiencyCheck=[];l.careerPlans=[];l.endPositionId=-1;l.steps=[];n.trustAsHtml=i.trustAsHtml;l.userIs={};l.user={};l.print=w;l.top=300;l.length=0;l.index=0;a=$("#mainBody");a.hide();$("#footer").hide();y();v()}n.$inject=["$scope","$window","$sce","$routeParams","alertService","femaAuth","Users","CareerPlan","Assessment","jwtHelper","userPrepService"];angular.module("FEMACPT").controller("assessmentCareerPlansPrintController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e){function s(){o.user=e.user.id}var o=this;o.user={};s()}n.$inject=["$scope","$routeParams","alertService","femaAuth","Users","jwtHelper","userPrepService"];angular.module("FEMACPT").controller("assessmentController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h,c){function p(){l.user=c.user;y()}function y(){h.returnFeedbackRequest({id:l.userFeedbackRequestId}).$promise.then(function(n){a=n;l.user=a.userID;l.requestedUserId=a.requestedUserID;l.userRequestObj.userFeedbackRequestId=a.userFeedbackRequestID;l.firstTime&&(l.firstTime=!1);var t=e.open({templateUrl:"/app/templates/modals/feedbackUserInfoModal.html",controller:"feedbackUserInfoModalController as vm",size:"lg",animation:!0,windowClass:"user-career-info",windowTopClass:"slide-from-right",resolve:{feedbackrequest:function(){return a}}});t.result.then(function(){},function(){})})}function w(){v.userFeedbackRequestId=l.userFeedbackRequestId;var t=i.defer(),n;return n=n||r.get("$http"),n.post("api/assessment/updateUserFeedbackRequest",v).success(function(n){var r=n,i;r!=null&&(s.addAlert("User has been notified the review is completed.","success"),i=$("#markAsCompleted"),i.attr("disabled","disabled"),b());t.resolve(n)}).error(function(n){t.reject(n)})}function b(){f.location.href="/#/user"}var l=this,a,v;l.firstTime=!0;l.userFeedbackRequestId=parseInt(t.id);l.careerPlanId=parseInt(t.careerPlanId);l.fullName=t.fullName;l.show=!1;l.showUserCareerPlanInformation=y;l.markAsCompleted=w;l.requestedUserId;a={};l.userRequestObj={userFeedbackRequestId:null,answers:null};p();v={userFeedbackRequestId:null}}n.$inject=["$scope","$routeParams","$q","$injector","$location","$window","$uibModal","femaAuth","alertService","Assessment","userPrepService"];angular.module("FEMACPT").controller("assessmentFeedbackController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h){function l(){c.info=h.user}function a(){f.isAuthorized&&(c.info.firstName==c.colleague.requestedUserFirstName&&c.info.lastName==c.colleague.requestUserLastName?(e.addAlert("A user cannot request to rate themselves","danger"),c.colleague=null):o.returnUserEmail({requestedUserFirstName:c.colleague.requestedUserFirstName,requestedUserLastName:c.colleague.requestedUserLastName}).$promise.then(function(n){c.searchEmail=n;c.searchEmail==null?(c.colleague.requestedUserEmail=null,e.addAlert(c.colleague.requestedUserFirstName+" "+c.colleague.requestedUserLastName+"is not a registered FEMA Careers User. Enter an email address.","info")):(c.colleague.requestedUserEmail=c.searchEmail.requestedUserEmail,c.colleague.requestedUserID=c.searchEmail.requestedUserID);return}))}function v(){c.invitees.length<c.inviteeLimit&&c.colleague!=undefined&&(c.invitees.push({userAssessmentID:c.userAssessmentId,requestedUserEmail:c.colleague.requestedUserEmail,requestedUserFirstName:c.colleague.requestedUserFirstName,requestedUserLastName:c.colleague.requestedUserLastName,personalMessage:c.colleague.personalMessage,requestedUserID:c.colleague.requestedUserID,professionalRelationship:c.colleague.professionalRelationship}),c.colleague=null);c.invitees.length>0?$("#sendBut").removeAttr("disabled"):$("#sendBut").attr("disabled","disabled")}function y(){var t=i.defer(),n;return n=n||u.get("$http"),n.post("api/assessment/sendInvites",c.invitees).success(function(n){return t.resolve(n),c.errors=n,c.invitees.splice(0,c.invitees.length),c.errors.length==0?e.addAlert("Invitation emails have been requested","success"):angular.forEach(c.errors,function(n){e.addAlert(n,"success")}),t.promise})}function p(){r.location.href="/#/user"}var c=this;c.info={};c.userAssessmentId;c.userAssessmentId=t.id;c.invitees=[];c.invitee="";c.inviteeLimit=5;c.searchEmail={};c.colleague={requestedUserFirstName:null,requestedUserLastName:null,requestedUserEmail:null,personalMessage:null,userAssessmentID:null,requestedUserID:null,dateOfRequest:null,professionalRelationship:null};c.searchFemaCpt=a;c.sendInvites=y;c.addInvitee=v;c.goUserHome=p;l()}n.$inject=["$scope","$routeParams","$q","$window","$injector","femaAuth","alertService","Users","Assessment","userPrepService","jwtHelper"];angular.module("FEMACPT").controller("assessmentInviteController",n)}(),function(){"use strict";function n(n,t){var i=this;i.userAssessmentId;i.userAssessmentId=t.id;i.careerPlanId=t.careerPlanId}n.$inject=["$scope","$routeParams","alertService","Assessment","jwtHelper"];angular.module("FEMACPT").controller("assessmentListController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h,c){function v(){return o.getSavedCareerPlans({userCareerPlanId:l.careerPlanId}).$promise.then(function(n){l.careerPlans=n;l.length=l.steps.length;l.careerPlans[0].steps.forEach(function(n){l.steps.push({startPositionTitle:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:13px; top:"+l.top+"px; left:380px;'><div style='font-family:sans-serif; font-weight:bold; font-size:15px'>Position: "+(l.index+1)+"<\/div><div><img src='../../../Content/images/check_mark_green_36.png' alt='' /><span style='font-family:sans-serif; font-weight:bold; font-size:15px'>"+n.startPositionTitle+"<\/span><\/div><\/div>"});l.top=l.top+65;l.index=l.index+1});l.steps.push({startPositionTitle:"<div class='tag1'  style='font-family:'Source Sans Pro', sans-serif; font-size:13px; top:"+l.top+"px; left:380px;'><div style='font-family:sans-serif; font-weight:bold; font-size:15px'>End Position: "+(l.index+1)+"<\/div><div><img src='../../../Content/images/check_mark_green_36.png' alt='' /><span style='font-family:sans-serif; font-weight:bold; font-size:15px'>"+l.careerPlans[0].steps[l.careerPlans[0].steps.length-1].endPositionTitle+"<\/span><\/div><\/div>"});p()})}function y(){l.userIs=c.user;l.user=l.userIs.id}function p(){s.returnUserAssessmentData({userId:l.user,careerPlanId:l.careerPlanId}).$promise.then(function(n){l.assessmentData=n;return})}function w(){$("#printBut").hide();r.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();r.location.href="#/user"}var l=this,a;l.hide=!1;l.assessment={};l.assessmentData=[];l.careerPlans=[];l.steps=[];l.print=w;l.careerPlanId=parseInt(i.id);l.positionid=parseInt(n.positionid);n.trustAsHtml=t.trustAsHtml;l.userIs={};l.user={};l.careerPlanId;l.end;l.top=300;l.length=0;l.index=0;a=$("#mainBody");a.hide();$("#footer").hide();y();v()}n.$inject=["$scope","$sce","$routeParams","$window","alertService","femaAuth","Users","CareerPlan","Assessment","jwtHelper","userPrepService"];angular.module("FEMACPT").controller("assessmentPrintController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s){function l(){t.getUserTenant().then(function(n){h.tenant=n});a()}function a(){return s.returnLocalCareerPlan({step:h.step}).$promise.then(function(n){h.assessmentData=n;h.assessmentData.forEach(function(n){h.steps.push({startPositionTitle:"<div class='tag1'>Position: "+(h.index+1)+"<\/div><div><img src='../../../Content/images/check_mark_green_36.png' alt='' /><span class='position-label'>"+n.startPosition+"<\/span><\/div>"});h.index=h.index+1});h.steps.push({startPositionTitle:"<div class='tag1'>End Position: "+(h.index+1)+"<\/div><div><img src='../../../Content/images/check_mark_green_36.png' alt='' /><span class='position-label'>"+h.assessmentData[h.assessmentData.length-1].endPosition+"<\/span><\/div>"})})}function v(){$("#printBut").hide();h.tenant=="DHS"?$("#positions-box").attr("class","cover-label-print-dhs"):$("#positions-box").attr("class","cover-label-print-fema");f.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();f.location.href="#/user"}var h=this,c;h.tenant="";h.steps=[];h.step=u.step;h.hide=!1;h.assessmentData=[];h.print=v;n.trustAsHtml=i.trustAsHtml;h.top=300;h.length=0;h.index=0;c=$("#mainBody");c.hide();$("#footer").hide();l()}n.$inject=["$scope","$rootScope","$sce","femaAuth","$routeParams","$window","alertService","CareerPlan","Assessment"];angular.module("FEMACPT").controller("assessmentPrintGuestController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h,c,l){function y(){a.user=l.user.id;h.returnAssessmentById({id:a.assessmentId}).$promise.then(function(n){a.assessment=n;p()});return}function p(){h.returnCareerPlanPath({user:a.assessment.userID,startPositionId:a.assessment.startPositionID,endPositionId:a.assessment.endPositionID}).$promise.then(function(n){a.careerPlanPath=n;w()}).catch(function(){n.error="dummy error"});return}function w(){h.returnCompetencyData({id:a.assessment.endPositionID,userCareerPlanId:a.careerPlanPath.userCareerPlanID,userId:a.user,relatedUserId:a.assessment.userID}).$promise.then(function(n){a.competencyData=n;a.hide=!0;a.addAssessment&&v()});return}function v(){var n,u,t;if(o.isAuthorized())return n=a.newAssessment,n.startPositionID=a.competencyData.startPositionID,n.endPositionID=a.competencyData.endPositionID,n.relatedUserAssessmentID=a.assessment.userAssessmentID,u=i.defer(),t=t||r.get("$http"),t.post("api/assessment/createNewAssessment",n).success(function(n){a.userAssessment=n;u.resolve(n)})}function b(){var u,n,t;if(o.isAuthorized()&&a.userAssessment!=null){if(u=a.userAssessment.userAssessmentID,angular.forEach(a.competencyData.competencyObj,function(n){var r,i,t;for(n.gap=n.proficiencyLevelID-n.competencyRating,r=n.competencyID,i=-1,t=0;t<a.competencyProficiency.length;t++)a.competencyProficiency[t].competencyID===r&&(i=t);(i=-1)&&n.competencyRating>-1&&a.competencyProficiencyNew.push({userAssessmentID:u,competencyID:n.competencyID,proficiencyLevelID:n.competencyRating,isCompetencyActive:0})}),a.competencyProficiency.length==0&&a.competencyProficiencyNew==0){e.addAlert("At least one Competency must be rated.","fail");return}return a.userAssessment.usersAssessmentsCompetenciesProficiencyLevels=a.competencyProficiencyNew,a.isCompleted&&(a.userAssessment.dateAssessmentCompleted=new Date),n=i.defer(),t=t||r.get("$http"),t.post("api/assessment/updateUserAssessment",a.userAssessment).success(function(t){a.userAssessment=t;a.userAssessment!=null?e.addAlert("Your ratings have been saved.","success"):e.addAdler("Application failed to save your ratings.","danger");n.resolve(t)}).error(function(t){n.reject(t)})}}function k(){t.location.href="#/user"}var a=this;a.user={};a.assessment={};a.userAssessment={};a.competencyData=[];a.userComments="";a.addAssessment=!0;a.showCompetencies=!1;a.competencyProficiency=[];a.competencyProficiencyNew=[];a.isCompleted=!1;a.newAssessment={userID:null,startPositionID:null,endPositionID:null,relatedUserAssessmentID:null,dateAssessmentModified:null,dataAssessmentCompleted:null};a.saveAssessment=b;a.goUserHome=k;a.assessmentId=parseInt(u.id);a.fullName=u.fullName;a.assessment={};a.careerPlanPath={};a.endPositionId;a.firstName;a.lastName;y()}n.$inject=["$scope","$window","$q","$injector","$routeParams","$route","alertService","femaAuth","Users","Assessment","jwtHelper","userPrepService","CareerPlan"];angular.module("FEMACPT").controller("assessmentRateAssessmentController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h,c){function a(n,t){var i=w(n);return i==-1?(l.selected.push({key:n,id:t,isSelected:"true"}),i):(l.selected.push({key:n,id:t,isSelected:"false"}),i)}function v(){l.showSelfRating=!l.showSelfRating}function p(){y()}function w(n){var u=$.grep(l.selected,function(t){return t.Key==n}),i=-1,t,r;if(u.length==0)return-1;for(t=0,r=l.selected.length;t<r;t++)if(l.selected[t].Key==n){i=t;break}return i}function b(){l.info=c.user;l.userId=l.info.id;l.colleague.userId=c.user.id}function k(){return h.returnProcessStatus({userId:l.userId,assessmentId:l.userAssessmentId}).$promise.then(function(n){l.status=n;l.statusItems=[];l.statusItemsMandatory=[];l.status.careerPlansCompleted||(o.addAlert("A career path must be completed.","danger"),l.incomplete||(l.incomplete=!0));l.status.assessmentCompleted||(o.addAlert("Assessment must be completed.","danger"),l.incomplete||(l.incomplete=!0));l.isRequest=l.incomplete?!1:!0;l.statusItems.push({key:"SF",title:"Self Reflection",status:l.status.selfReflectionCompleted,id:l.status.selfReflectionId,isSelected:!1});l.statusItems.push({key:"CG",title:"Career Goals Planning",status:l.status.careerGoalsPlanningCompleted,id:l.status.careerGoalId,isSelected:!1});l.statusItemsMandatory.push({key:"CP",title:"Career Path",status:l.status.careerPlansCompleted,id:l.userCareerPlanId,isSelected:!0});l.statusItemsMandatory.push({key:"UA",title:"Assessment",status:l.status.assessmentCompleted,id:l.userAssessmentId,isSelected:!0})})}function d(){e.isAuthorized("User",null)&&(l.info.firstName.toUpperCase()==l.colleague.requestedUserFirstName.toUpperCase()&&l.info.lastName.toUpperCase()==l.colleague.requestedUserLastName.toUpperCase()?(o.addAlert("A user cannot request to rate themselves.","danger"),l.colleague=null):s.returnUserEmail({requestedUserFirstName:l.colleague.requestedUserFirstName,requestedUserLastName:l.colleague.requestedUserLastName}).$promise.then(function(n){l.searchEmail=n;l.searchEmail.requestedUserEmail==null?(l.colleague.requestedUserEmail=null,o.addAlert(l.colleague.requestedUserFirstName+" "+l.colleague.requestedUserLastName+" is not a registered FEMA Careers User. Enter an email address.","info"),l.registeredUser=!1,$("#raterEmail").removeAttr("disabled"),$("#addColleague").removeAttr("disabled")):(l.colleague.requestedUserEmail=l.searchEmail.requestedUserEmail,l.colleague.requestedUserFirstName=l.searchEmail.requestedUserFirstName,l.colleague.requestedUserLastName=l.searchEmail.requestedUserLastName,l.colleague.requestedUserID=l.searchEmail.requestedUserID,l.registeredUser=!0,l.colleague.professionalRelationship=l.searchEmail.professionalRelationship,$("#addColleague").removeAttr("disabled"));return}))}function g(){if(angular.forEach(l.statusItems,function(n){switch(n.key){case"SF":l.colleague.userSelfReflectionId=n.isSelected?n.id:null;break;case"CG":l.colleague.userCareeerGoalsId=n.isSelected?n.id:null}}),angular.forEach(l.statusItemsMandatory,function(n){switch(n.key){case"CP":l.colleague.userCareerPlanId=n.id;break;case"UA":l.colleague.userAssessmentId=n.id}}),l.colleague.userId=l.userId,l.colleague.requestedUserFirstName==""||l.colleague.requestedUserFirstName==null){o.addAlert("First name is required.","danger");return}if(l.colleague.requestedUserLastName==""||l.colleague.requestedUserLastName==null){o.addAlert("Last name is required.","danger");return}if(l.colleague.requestedUserEmail==""||l.colleague.requestedUserEmail==null){o.addAlert("User email is required.","danger");return}if(l.colleague.professionalRelationship==""||l.colleague.professionalRelationship==null){o.addAlert("Professional Relationship is required.","danger");return}if(l.colleague.personalMessage!=null&&l.colleague.personalMessage.length>0&&l.colleague.personalMessage.length>200){o.addAlert("Personal message is limited to 200 chars.","danger");return}l.requestees.length<l.requesteeLimit&&l.colleague!=undefined&&(l.requestees.push({userID:l.colleague.userId,requestedUserID:l.colleague.requestedUserID,userSelfReflectionID:l.colleague.userSelfReflectionId,userAssessmentId:l.colleague.userAssessmentId,userCareerPlanID:l.colleague.userCareerPlanId,userCareerGoalID:l.colleague.userCareeerGoalsId,requestedUserEmail:l.colleague.requestedUserEmail,requestedUserFirstName:l.colleague.requestedUserFirstName,requestedUserLastName:l.colleague.requestedUserLastName,personalMessage:l.colleague.personalMessage,wasRequesteDeclined:"false",dateOfRequest:"1001/01/01",showSelfRating:l.showSelfRating,registeredUser:l.registeredUser,professionalRelationship:l.colleague.professionalRelationship}),l.colleague=null);l.requestees.length>0?$("#sendBut").removeAttr("disabled"):$("#sendBut").attr("disabled","disabled");l.registeredUser=null}function nt(){var t=r.defer(),n;return n=n||f.get("$http"),n.post("api/assessment/sendFeedbackRequests",l.requestees).success(function(n){return t.resolve(n),l.errors=n,l.requestees.splice(0,l.requestees.length),l.errors.length==0?o.addAlert("Feedback request email have been sent.","success"):angular.forEach(l.errors,function(n){o.addAlert(n,"success")}),t.promise})}function tt(){u.location.href="/#/user"}function y(){var n=i.open({templateUrl:"/app/templates/modals/selectAssessmentModal.html",controller:"selectAssessmentModalController as vm",size:"lg",animation:!0,windowClass:"select-feedback-assessment",windowTopClass:"slide-from-right",resolve:{positionid:function(){return l.positionid},results:function(){return l.results}}});n.result.then(function(n){l.userAssessmentId=n.userAssessmentId;l.userCareerPlanId=n.userCareerPlanId;l.startPositionTitle=n.startPositionTitle;l.endPositionTitle=n.endPositionTitle;$("#numberTwo").focus();k()})}var l=this;l.selected=[];l.positionid=0;l.status={};l.info={};l.userAssessmentId;l.userCareerPlanId;l.startPositionTitle;l.endPositionTitle;l.results={userAssessmentId:null,userCareerId:null,startPositionTitle:null,endPositionTitle:null};l.isRequest;l.incomplete=!1;l.requestees=[];l.request="";l.requesteeLimit=5;l.searchEmail={};l.showSelfRating;l.registeredUser;l.colleague={userId:null,requestedUserId:null,userSelfReflectionId:null,userAssessmentId:null,userCareerPlanId:null,userCareerGoalsId:null,requestedUserEmail:null,requestedUserFirstName:null,requestedUserLastName:null,personalMessage:null,wasRequesteDeclined:null,dateOfRequest:null,showSelfRating:!1,registeredUser:null,professionalRelationship:null};l.searchFemaCpt=d;l.sendFeedbackRequests=nt;l.toggleCheck=a;l.toggleShow=v;l.showSelfAssessments=p;l.addRequest=g;l.goUserHome=tt;b();y();n.keydownCheck=function(t,i,r,u){t.keyCode==13&&l.statusItems[i].status==!0&&(a(r,u),l.statusItems[i].isSelected=!l.statusItems[i].isSelected,n.keydownCheckEvent=l.statusItems[i])};n.mousedownCheck=function(t,i,r,u){l.statusItems[i].status==!0&&(a(r,u),l.statusItems[i].isSelected=!l.statusItems[i].isSelected,n.mousedownCheckEvent=l.statusItems[i])};n.keydown=function(t){t.keyCode==13&&(n.keydownCheckEvent=v())};n.mousedown=function(){n.mousedownEvent=v()}}n.$inject=["$scope","$routeParams","$uibModal","$q","$window","$injector","femaAuth","alertService","Users","Assessment","userPrepService"];angular.module("FEMACPT").controller("assessmentRequestFeedbackController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o){function h(){s.userIs=o.user;s.user=s.userIs.id}var s=this;s.userIs={};s.user={};h()}n.$inject=["$scope","$routeParams","alertService","femaAuth","Users","Assessment","jwtHelper","userPrepService"];angular.module("FEMACPT").controller("assessmentSelfReflectionController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s){function l(){h.userIs=s.user;h.user=h.userIs.id}function a(){e.returnSelfReflectionQuestionsAnswers({userId:h.user}).$promise.then(function(n){h.items=n;h.userSelfReflections=h.items.userSelfReflections;h.userSelfReflectionId=h.items.userSelfReflectionID;return})}function v(){$("#printBut").hide();i.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();i.location.href="#/careerPath/userSelfReflection/0"}var h=this,c;h.userIs={};h.user={};h.print=v;c=$("#mainBody");c.hide();$("#footer").hide();l();a()}n.$inject=["$scope","$routeParams","$window","alertService","femaAuth","Users","Assessment","jwtHelper","userPrepService"];angular.module("FEMACPT").controller("assessmentSelfReflectionPrintController",n)}(),function(){"use strict";function n(n,t,i,r,u){function o(){$("#printBut").hide();u.print();$("#printBut").show();var n=$("#mainBody");n.show();$("#footer").show();u.location.href="#/user"}var f=this,e;f.readOnly=!0;f.user={};f.userAssessmentId=parseInt(i.userAssessmentId);f.careerPlanId=parseInt(i.careerPlanId);f.userFeedbackRequestId=parseInt(i.userFeedbackRequestId);f.fullName=i.fullName;f.hideNR=i.hideNR;f.print=o;f.hideNR&&(e=$("#mainBody"),e.hide(),$("#footer").hide())}n.$inject=["$scope","$q","$routeParams","$route","$window","alertService","femaAuth","Assessment","CareerPlan"];angular.module("FEMACPT").controller("assessmentViewRatingController",n)}(),function(){"use strict";function n(n,t,i,r,u){function e(){}function o(n){var t={header:null,name:null},i;switch(n){case"DIMEAC":t.name="dimeac.txt";t.header="External Affairs Key";f.size="external-modal";break;case"DIMHMC":t.name="dimhmc.txt";t.header="Hazard Mitigation Key";f.size="hazard-modal";break;case"DIMLC":t.name="dimlc.txt";t.header="Logistics Key";f.size="logistics-modal"}i=u.open({templateUrl:"/app/templates/modals/careerPlanMapModal.html",controller:"careerPlanMapLegendController as vm",size:"sm",animation:!0,windowClass:f.size,windowTopClass:"slide-from-right",resolve:{legend:function(){return t}}});i.result.then(function(){},function(){})}var f=this;f.size;f.DIMEAC;f.DIMHMC;f.DIMLC;e();f.showLegend=o;n.trustAsHtml=r.trustAsHtml}n.$inject=["$scope","$q","$window","$sce","$uibModal","CareerPlanMap"];angular.module("FEMACPT").controller("careerPlanMapController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h,c,l,a){function p(){v.info=h.user;v.newInfo.firstName=v.info.firstName;v.newInfo.lastName=v.info.lastName;v.newInfo.email=v.info.email;v.userId=v.info.id;b()}function w(){v.showRoles=!v.showRoles}function b(){angular.forEach(v.info.roles,function(n){r.getRoleById({Id:n.roleId}).$promise.then(function(n){v.roles.push(n.name)})})}function k(){if(i.isAuthorized("System Administrator")){var n=new r(v.info);return n.email=v.newInfo.email,n.$updateSelf().then(function(){t.addAlert("Email name has been updated.","success");v.info.email=v.newInfo.email})}}function d(){if(i.isAuthorized("System Administrator")){var n=new r(v.info);return n.firstName=v.newInfo.firstName,n.lastName=v.newInfo.lastName,n.$updateSelf().then(function(){t.addAlert("User name has been updated.","success");v.info.firstName=v.newInfo.firstName;v.info.lastName=v.newInfo.lastName})}}var v=this,y;v.showRoles;v.showCareerPlans;v.showRequests;v.showInvites;v.userid={};v.info={};v.roles=[];v.invites=[];v.navCollapsed;v.resources=[];v.viewer;v.hideMe=!0;y={};v.newInfo={firstName:null,lastName:null,email:null};v.requesterInfo={userID:null,userAssessmentID:null,fullName:null,startPositionTitle:null,endPositionTitle:null};v.updateEmail=k;v.updateUserName=d;v.showUserRoles=w;p();n.showDetails=function(){var n=a.open({templateUrl:"/app/templates/modals/showDetails.html",controller:"showDetailsModalController as vm",size:"sm",animation:!0,windowClass:"pull-top",windowTopClass:"slide-from-top",resolve:{}});n.result.then(function(){},function(){})}}n.$inject=["$scope","alertService","femaAuth","Users","Roles","Assessment","Resources","jwtHelper","localStorageService","userPrepService","$q","$routeParams","$uibModal"];angular.module("FEMACPT").controller("dashboardController",n)}(),function(){"use strict";function n(){var n=this}n.$inject=["$scope","$routeParams","alertService","Experience"];angular.module("FEMACPT").controller("experienceEvaluationController",n)}(),function(){"use strict";function n(n,t,i,r,u,f){function h(){f.returnFrequentlyAskedQuestions().$promise.then(function(n){e.faqs=n;var t=$("#proficiencyScale")})}function c(t,i,r){t.keyCode==13&&(o(i,r),n.keydownFAQEvent=s(i,r))}function o(n,t){for(var r=!1,i=0;i<e.showAnswer.length;i++)if(e.showAnswer[i].id==n+"-"+t){r=!0;e.showAnswer[i].show=!e.showAnswer[i].show;break}r||e.showAnswer.push({id:n+"-"+t,show:!0})}function s(n,t){for(var i=0;i<e.showAnswer.length;i++)if(e.showAnswer[i].id==n+"-"+t)return e.showAnswer[i].show;return!1}function l(){i.location.href="#"}var e=this;e.faqs=[];e.showAnswer=[];e.goUserHome=l;e.toggleSub=o;e.isExpanded=s;e.showLink=[];e.keydownFAQ=c;h();n.trustAsHtml=r.trustAsHtml;n.ratingLegend=function(){var n=u.open({templateUrl:"/app/templates/modals/quickStartAssessmentModal.html",controller:"quickStartAssessmentModalController as vm",size:"lg",animation:!0,windowClass:"pull-right",windowTopClass:"slide-from-right"});n.result.then(function(){},function(){})}}n.$inject=["$scope","$q","$window","$sce","$uibModal","Help"];angular.module("FEMACPT").controller("helpController",n)}(),function(){"use strict";function n(n,t,i,r,u){function s(){t.getUserTenant().then(function(n){f.tenant=n})}function h(n){return n==1?"../../../Content/FEMACPT1.mp4":n==2?"../../../Content/FEMACPB2.mp4":n==3?"../../../Content/FEMACPT63.mp4":void 0}function c(n){return n==1?"../../../Content/FEMACPT_vid1.vtt":n==2?"../../../Content/FEMACPT_vid2.vtt":n==3?"../../../Content/FEMACPT_vid3.vtt":void 0}function l(){var n=r.open({templateUrl:"/app/templates/modals/playVideoModal.html",controller:"playVideoModalController as vm",size:"lg",animation:!0,windowClass:"pull-right video-player",windowTopClass:"slide-from-right",resolve:{videopath:function(){return e},ccpath:function(){return o}}});n.result.then(function(){},function(){})}var f=this,e,o;i.error&&u.addAlert("An error occurred confirming your account. Please contact an administrator.","danger");n.playVideo1=function(n){e=h(n);o=c(n);l()};f.tenant="";s()}n.$inject=["$scope","$rootScope","$routeParams","$uibModal","alertService"];angular.module("FEMACPT").controller("homeController",n)}(),function(){"use strict";function n(n,t,i,r,u,f){function h(){try{window.location.toString().indexOf("guestLogin")==-1?o():s()}catch(n){r.addAlert("There was a problem logging in.","danger")}}function o(){return i.login().then(function(n){n!=""&&(r.addAlert("Successfully logged in!","success"),window.location.href="/",f.checkAdmin(),f.startTimeoutTimer())})}function s(){i.setGuest();t.path("/careerPath/home")}var e=this;e.login=o;e.guestLogin=s;h()}n.$inject=["$window","$location","femaAuth","alertService","$routeParams","$rootScope","$injector"];angular.module("FEMACPT").controller("loginController",n)}(),function(){function n(n,t){function r(t){var r=i.Resources[t];n.open(r.resourceLink)}var i=this;i.viewer="ALL";i.Resources=t.resources;i.displayPDFModal=r}n.$inject=["$window","resourcePrepService"];angular.module("FEMACPT").controller("resourcesController",n)}(),function(){"use strict";function n(n,t,i,r,u,f,e,o){function h(){s.userIs=o.user;s.user=s.userIs.id}var s=this;s.userIs={};s.user={};h()}n.$inject=["$scope","$routeParams","alertService","femaAuth","Users","Assessment","jwtHelper","userPrepService"];angular.module("FEMACPT").controller("userGoalSettingController",n)}(),function(){function n(n,t,i,r,u,f,e){function s(){}function h(){var n=new r;return n.$returnReport().then(function(n){o.reportObject=n})}function c(n){report=o.reportObject;report.reportType="PDF";report.reportParameters[0].value=n;report.$render(function(n){e.saveAs(n.response,o.selectedReport.reportName+"."+o.selectedFileType.toLowerCase())})}var o=this;o.processReport=c;h();s()}n.$inject=["$scope","$location","$routeParams","Reports","alertService","femaAuth","FileSaver"];angular.module("FEMACPT").controller("userReportController",n)}()