{"version":3,"sources":["webpack:///js/main.4b19d3b0ec2854c06e4e.js","webpack:///./src/app/dialog/dialog.component.ts","webpack:///./src/app/config.ts","webpack:///./~/moment/locale ^\\.\\/.*$","webpack:///./src/app/user-activity-logs/user-activity.logs.component.scss","webpack:///./src/app/loader/loader.component.css","webpack:///./src/app/activate-deactivate-request/activate-deactivate.component.html","webpack:///./src/app/admin-dashboard/admin-dashboard.component.html","webpack:///./src/app/app.component.html","webpack:///./src/app/applications-manager-dashboard/applications-manager-dashboard.component.html","webpack:///./src/app/approve-reject-request/approve-reject.component.html","webpack:///./src/app/dialog/activeInactiveDialog.component.html","webpack:///./src/app/dialog/applicationDashboardActionDialogComponent.html","webpack:///./src/app/dialog/applicationRejectActionDialog.component.html","webpack:///./src/app/dialog/buAssignmentDialog.component.html","webpack:///./src/app/dialog/csvErrorDialog.component.html","webpack:///./src/app/dialog/dashboardActionDialogComponent.html","webpack:///./src/app/dialog/dialog.component.html","webpack:///./src/app/dialog/registrationDialog.component.html","webpack:///./src/app/dialog/selectApplicationDialog.component.html","webpack:///./src/app/dialog/showApplicationDialog.component.html","webpack:///./src/app/dialog/welcomeDialog.component.html","webpack:///./src/app/file-upload/add-file/addFile.component.html","webpack:///./src/app/file-upload/fileUpload.component.html","webpack:///./src/app/file-upload/fileUploadList/fileUploadList.component.html","webpack:///./src/app/forgot-password/forgotPassword.component.html","webpack:///./src/app/layout/customizer/customizer.component.html","webpack:///./src/app/layout/footer/footer.component.html","webpack:///./src/app/layout/header/header.component.html","webpack:///./src/app/layout/layout.component.html","webpack:///./src/app/layout/search-overlay/search-overlay.component.html","webpack:///./src/app/layout/sidenav/sidenav-menu/sidenav-menu.component.html","webpack:///./src/app/layout/sidenav/sidenav.component.html","webpack:///./src/app/loader/loader.component.html","webpack:///./src/app/login/login.component.html","webpack:///./src/app/multi-approve-reject/multi-approve-reject.component.html","webpack:///./src/app/page-layouts/fullscreen/fullscreen.component.html","webpack:///./src/app/partners-dashboard/partners-dashboard.component.html","webpack:///./src/app/profile/emailPasswordActionDialogComponent.html","webpack:///./src/app/profile/profile.component.html","webpack:///./src/app/registration/registration.component.html","webpack:///./src/app/system-level-setting/adminManagement/addAdmin/addAdmin.component.html","webpack:///./src/app/system-level-setting/adminManagement/adminList/adminList.component.html","webpack:///./src/app/system-level-setting/adminManagement/adminManagement.component.html","webpack:///./src/app/system-level-setting/adminManagement/viewAdmin/viewAdmin.component.html","webpack:///./src/app/system-level-setting/applicationManagement/addApplication/addApplication.component.html","webpack:///./src/app/system-level-setting/applicationManagement/applicationList/applicationList.component.html","webpack:///./src/app/system-level-setting/applicationManagement/applicationManagement.component.html","webpack:///./src/app/system-level-setting/managerAssignment/addManager/addManager.component.html","webpack:///./src/app/system-level-setting/managerAssignment/managerAssignment.component.html","webpack:///./src/app/system-level-setting/managerAssignment/managerList/managerList.component.html","webpack:///./src/app/system-level-setting/managerAssignment/viewManager/viewManager.component.html","webpack:///./src/app/system-level-setting/wpass/wpass.component.html","webpack:///./src/app/translation-email/translation-email.component.html","webpack:///./src/app/translation-messages/translation-messages.component.html","webpack:///./src/app/unlock-account/unlockAccount.component.html","webpack:///./src/app/user-activity-logs/user-activity.logs.component.html","webpack:///./src/app/user-operations/request-business-unit/add-business-unit/add-business-unit.component.html","webpack:///./src/app/user-operations/request-business-unit/business-unit-list/business-unit-list.component.html","webpack:///./src/app/user-operations/request-business-unit/request-business-unit.component.html","webpack:///./src/app/user-operations/request-business-unit/view-business-unit/view-business-unit.component.html","webpack:///./src/app/user/add-edit-user/add-edit-user.component.html","webpack:///./src/app/user/user.component.html","webpack:///./src/app/viewRequest/emailActionDialogComponent.html","webpack:///./src/app/viewRequest/view-request.component.html","webpack:///./src/app/viewRequest/viewApplicationRequest/viewApplicationRequest.component.html","webpack:///./src/app/viewRequest/viewPartners/viewPartners.component.html","webpack:///./src/app/viewRequest/viewSubUsers/viewSubUsers.component.html","webpack:///./src/app/newCommon.scss","webpack:///./src/app/activate-deactivate-request/activate-deactivate-request.module.ts","webpack:///./src/app/shared/services/http.service.ts","webpack:///./src/app/shared/services/session-handler.service.ts","webpack:///./src/app/layout/layout.component.ts","webpack:///./src/app/loader/loader.service.ts","webpack:///./src/app/profile/profile.component.ts","webpack:///./src/app/viewRequest/view-request.component.ts","webpack:///./src/app/shared/services/common.service.ts","webpack:///./src/app/shared/shared.module.ts","webpack:///./~/@angular/core/@angular lazy","webpack:///./src/app/admin-dashboard/admin-dashboard.component.ts","webpack:///./src/app/admin-dashboard/admin-datatable/admin-page.ts","webpack:///./src/app/adminDashboardResultService.ts","webpack:///./src/app/applications-manager-dashboard/applications-datatable/applications-page.ts","webpack:///./src/app/applications-manager-dashboard/applications-manager-dashboard.component.ts","webpack:///./src/app/applicationsManagerDashboardResultService.ts","webpack:///./src/app/approve-reject-request/approve-reject-request.module.ts","webpack:///./src/app/file-upload/add-file/addFile.component.ts","webpack:///./src/app/file-upload/fileUpload.component.ts","webpack:///./src/app/file-upload/fileUpload.module.ts","webpack:///./src/app/file-upload/fileUploadList-datatable/fileUploadList-page.ts","webpack:///./src/app/file-upload/fileUploadList/fileUploadList.component.ts","webpack:///./src/app/file-upload/fileUploadListDashboardResultService.ts","webpack:///./src/app/forgot-password/forgotPassword.component.ts","webpack:///./src/app/login/login.component.ts","webpack:///./src/app/page-layouts/fullscreen/fullscreen.component.ts","webpack:///./src/app/partners-dashboard/partners-dashboard.component.ts","webpack:///./src/app/partners-dashboard/partners-datatable/partners-page.ts","webpack:///./src/app/partnersDashboardResultService.ts","webpack:///./src/app/registration/registration.component.ts","webpack:///./src/app/system-level-setting/adminManagement/addAdmin/addAdmin.component.ts","webpack:///./src/app/system-level-setting/adminManagement/adminList-datatable/adminList-page.ts","webpack:///./src/app/system-level-setting/adminManagement/adminList/adminList.component.ts","webpack:///./src/app/system-level-setting/adminManagement/adminListDashboardResultService.ts","webpack:///./src/app/system-level-setting/adminManagement/adminManagement.component.ts","webpack:///./src/app/system-level-setting/adminManagement/adminManagement.module.ts","webpack:///./src/app/system-level-setting/adminManagement/viewAdmin/viewAdmin.component.ts","webpack:///./src/app/system-level-setting/applicationManagement/addApplication/addApplication.component.ts","webpack:///./src/app/system-level-setting/applicationManagement/applicationList-datatable/applicationList-page.ts","webpack:///./src/app/system-level-setting/applicationManagement/applicationList/applicationList.component.ts","webpack:///./src/app/system-level-setting/applicationManagement/applicationListDashboardResultService.ts","webpack:///./src/app/system-level-setting/applicationManagement/applicationManagement.component.ts","webpack:///./src/app/system-level-setting/applicationManagement/applicationManagement.module.ts","webpack:///./src/app/system-level-setting/managerAssignment/addManager/addManager.component.ts","webpack:///./src/app/system-level-setting/managerAssignment/managerAssignment.component.ts","webpack:///./src/app/system-level-setting/managerAssignment/managerAssignment.module.ts","webpack:///./src/app/system-level-setting/managerAssignment/managerList-datatable/managerList-page.ts","webpack:///./src/app/system-level-setting/managerAssignment/managerList/managerList.component.ts","webpack:///./src/app/system-level-setting/managerAssignment/managerListDashboardResultService.ts","webpack:///./src/app/system-level-setting/managerAssignment/viewManager/viewManager.component.ts","webpack:///./src/app/system-level-setting/wpass/wpass.component.ts","webpack:///./src/app/translation-email/translation-email.component.ts","webpack:///./src/app/translation-messages/translation-messages.component.ts","webpack:///./src/app/translation-messages/translation-messages/translation-messages-page.ts","webpack:///./src/app/unlock-account/UnlockAccountComponent.ts","webpack:///./src/app/user-activity-logs/user-activity-datatable/user-activity-page.ts","webpack:///./src/app/user-activity-logs/user-activity-datatable/userActivityResultService.ts","webpack:///./src/app/user-activity-logs/user-activity.logs.component.ts","webpack:///./src/app/user-operations/request-business-unit/add-business-unit/add-business-unit.component.ts","webpack:///./src/app/user-operations/request-business-unit/business-unit-list/business-unit-list.component.ts","webpack:///./src/app/user-operations/request-business-unit/businessUnitForUserDashboardResultService.ts","webpack:///./src/app/user-operations/request-business-unit/businessUnitList-datatable/businessUnitList-page.ts","webpack:///./src/app/user-operations/request-business-unit/request-business-unit.component.ts","webpack:///./src/app/user-operations/request-business-unit/request-business-unit.module.ts","webpack:///./src/app/user-operations/request-business-unit/view-business-unit/view-business-unit.component.ts","webpack:///./src/app/user/add-edit-user/add-edit-user.component.ts","webpack:///./src/app/user/user.component.ts","webpack:///./src/app/user/user.module.ts","webpack:///./src/app/viewRequest/view-request.module.ts","webpack:///./src/app/viewRequest/viewApplicationRequest/viewApplicationRequest.component.ts","webpack:///./src/app/viewRequest/viewPartners/viewPartners.component.ts","webpack:///./src/app/viewRequest/viewSubUsers/viewSubUsers.component.ts","webpack:///./src/app/app.module.ts","webpack:///./src/app/layout/layout.service.ts","webpack:///./src/app/system-level-setting/businessUnitManagement/businessUnitDashboardResultService.ts","webpack:///./src/app/system-level-setting/businessUnitManagement/businessUnitList-datatable/businessUnitList-page.ts","webpack:///./src/app/activate-deactivate-request/activate-deactivate.component.ts","webpack:///./src/app/admin-dashboard/admin-datatable/admin-dashboardList.ts","webpack:///./src/app/admin-dashboard/admin-datatable/admin-page-data.ts","webpack:///./src/app/app-routing.module.ts","webpack:///./src/app/app.component.ts","webpack:///./src/app/applications-manager-dashboard/applications-datatable/applications-dashboardList.ts","webpack:///./src/app/applications-manager-dashboard/applications-datatable/applications-page-data.ts","webpack:///./src/app/approve-reject-request/approve-reject.component.ts","webpack:///./src/app/file-upload/fileUpload-routing.module.ts","webpack:///./src/app/file-upload/fileUploadList-datatable/fileUploadList-dashboard.ts","webpack:///./src/app/file-upload/fileUploadList-datatable/fileUploadList-page-data.ts","webpack:///./src/app/layout/customizer/customizer.component.ts","webpack:///./src/app/layout/customizer/toggle-quickview.directive.ts","webpack:///./src/app/layout/footer/footer.component.ts","webpack:///./src/app/layout/header/header.component.ts","webpack:///./src/app/layout/layout-routing.module.ts","webpack:///./src/app/layout/layout.module.ts","webpack:///./src/app/layout/preloader.directive.ts","webpack:///./src/app/layout/search-overlay/open-search-overlay.directive.ts","webpack:///./src/app/layout/search-overlay/search-overlay.component.ts","webpack:///./src/app/layout/search-overlay/search-overlay.directive.ts","webpack:///./src/app/layout/sidenav/auto-close-mobile-nav.directive.ts","webpack:///./src/app/layout/sidenav/sidenav-menu/accordion-nav.directive.ts","webpack:///./src/app/layout/sidenav/sidenav-menu/append-submenu-icon.directive.ts","webpack:///./src/app/layout/sidenav/sidenav-menu/highlight-active-items.directive.ts","webpack:///./src/app/layout/sidenav/sidenav-menu/sidenav-menu.component.ts","webpack:///./src/app/layout/sidenav/sidenav.component.ts","webpack:///./src/app/layout/sidenav/toggle-offcanvas-nav.directive.ts","webpack:///./src/app/loader/loader.component.ts","webpack:///./src/app/multi-approve-reject/multi-approve-reject-request.module.ts","webpack:///./src/app/multi-approve-reject/multi-approve-reject.component.ts","webpack:///./src/app/partners-dashboard/partners-datatable/partners-page-data.ts","webpack:///./src/app/partners-dashboard/partners-datatable/partnersDashboardList.ts","webpack:///./src/app/shared/directive/blockCutCopyPaste.directive.ts","webpack:///./src/app/shared/echarts.directive.ts","webpack:///./src/app/shared/slim-scroll.directive.ts","webpack:///./src/app/system-level-setting/adminManagement/adminList-datatable/adminList-dashboard.ts","webpack:///./src/app/system-level-setting/adminManagement/adminList-datatable/adminList-page-data.ts","webpack:///./src/app/system-level-setting/adminManagement/adminManagement-routing.module.ts","webpack:///./src/app/system-level-setting/applicationManagement/applicationList-datatable/applicationList-dashboard.ts","webpack:///./src/app/system-level-setting/applicationManagement/applicationList-datatable/applicationList-page-data.ts","webpack:///./src/app/system-level-setting/applicationManagement/applicationManagement-routing.module.ts","webpack:///./src/app/system-level-setting/businessUnitManagement/businessUnitList-datatable/businessUnitList-dashboard.ts","webpack:///./src/app/system-level-setting/businessUnitManagement/businessUnitList-datatable/businessUnitList-page-data.ts","webpack:///./src/app/system-level-setting/managerAssignment/managerAssignment-routing.module.ts","webpack:///./src/app/system-level-setting/managerAssignment/managerList-datatable/managerList-dashboard.ts","webpack:///./src/app/system-level-setting/managerAssignment/managerList-datatable/managerList-page-data.ts","webpack:///./src/app/translation-messages/translation-messages/translation-messages.ts","webpack:///./src/app/translation-messages/translation-messages/translationResultService.ts","webpack:///./src/app/translation-messages/translation-messages/translations-messages.list.ts","webpack:///./src/app/user-activity-logs/user-activity-datatable/user-activity-dashboardList.ts","webpack:///./src/app/user-activity-logs/user-activity-datatable/user-activity-page-data.ts","webpack:///./src/app/user-operations/request-business-unit/businessUnitList-datatable/businessUnitList-dashboard.ts","webpack:///./src/app/user-operations/request-business-unit/businessUnitList-datatable/businessUnitList-page-data.ts","webpack:///./src/app/user-operations/request-business-unit/request-business-unit-routing.module.ts","webpack:///./src/app/user/user-routing.module.ts","webpack:///./src/app/viewRequest/view-request-routing.module.ts","webpack:///./src/main.ts","webpack:///./src/app/shared/services/error-handler.service.ts"],"names":["webpackJsonp","11","module","__webpack_exports__","__webpack_require__","d","DialogComponent","RegistrationDialogComponent","ApplicationRejectActionDialogComponent","DashboardActionDialogComponent","ApplicationDashboardActionDialogComponent","ActiveInactiveDialogComponent","CSVErrorDialogComponent","ShowApplicationsDialogComponent","SelectApplicationsDialogComponent","WelcomeDialogComponent","BuAssignmentDialogComponent","__WEBPACK_IMPORTED_MODULE_0_tslib__","__WEBPACK_IMPORTED_MODULE_1__angular_core__","__WEBPACK_IMPORTED_MODULE_2__angular_forms__","__WEBPACK_IMPORTED_MODULE_3__angular_material__","dialog","dialogRef","isConfirm","ngOnInit","closeDialog","this","closeAll","template","formBuilder","buildForm","RejectActionForm","group","reason","control","required","valueChanges","subscribe","data","reasonDeatils","getRawValue","isApproved","isReject","RoleData","ActionForm","approveGroup","selectedPartnerType","customerNumber","row","rejectGroup","multiApproveGroup","selectedRadioValue","multiRejectGroup","actionFormDetails","approveDetails","push","rejectDetails","multiApproveDetails","multiRejectDetails","condition3Flag","get","setValidators","updateValueAndValidity","condition2Flag","role","settings","ApplicationsForm","applicationsData","ApplicationsFormDetails","businessUnitId","validate","valid","length","applicationFlag","singleSelection","text","labelKey","selectAllText","unSelectAllText","classes","closeBtn","onChange","admin","selectedAdminData","dialogClose","result","ngOnDestroy","close","12","APPCONFIG","brand","URL","apiKey","google_client_id","validNameRegex","toasterDefaultTimeOut","toasterDefaultPositionClass","toastrType","error","info","wait","success","warning","emailPattern","user","year","Date","getFullYear","layoutBoxed","navCollapsed","navBehind","fixedHeader","sidebarWidth","theme","colorOption","AutoCloseMobileNav","productLink","systemAdmin","regionalAdmin","BUManager","applicationManager","serviceOwner","tradePartner","subuser","1204","exports","1205","1206","1207","1208","1209","1210","1213","webpackContext","req","webpackContextResolve","id","map","Error","keys","Object","resolve","1239","1240","1241","1242","1243","1244","1245","1246","1247","1248","1249","1250","1251","1252","1253","1254","1255","1256","1257","1258","1259","1260","1261","1262","1263","1264","1265","1266","1267","1268","1269","1270","1271","1272","1273","1274","1275","1276","1277","1278","1279","1280","1281","1282","1283","1284","1285","1286","1287","1288","1289","1290","1291","1292","1293","1294","1295","1296","1297","1298","1299","1300","1301","1302","132","148","ActivateDeactivateModule","imports","forRoot","provide","useFactory","http","deps","declarations","15","router","LoaderService","sessionHandler","errorHandler","translate","commonService","url","headers","getRequestWithoutAuth","showLoader","res","errorCheckFunction","json","catch","throw","handleError","getRequestWithoutLoader","saveItem","Math","round","getTime","accessToken","loginDataArray","JSON","parse","getItem","getRequest","getRequestForAutocomplete","postRequest","body","api","stringify","options","post","noUserError","localStorage","clear","navigateByUrl","onEnd","hideLoader","show","hide","e","errorJson","code","handle","open","disableClose","componentInstance","msg","message","afterClosed","alert","jsonResult","HttpService","16","key","value","setItem","removeItem","clearAllItems","setRedirectionUrl","prevUrl","getRedirectionUrl","SessionHandler","195","LayoutComponent","selector","196","loaderSubject","loaderState","asObservable","next","197","httpService","isSystemAdmin","isBUManager","isApplicationManager","isRegionalAdmin","isServiceOwner","isTradePartner","isSubUser","businessUnitsFlag","businessUnitWithApplicationAndRoles","businessUnitWithAppRolesProfile","userDetails","roleCode","includes","getLanguages","flag","profileData","languageId","setLanguage","checkNotAdminRole","langFlag","getDataFlag","getPartnersProfileData","getSubUsersProfileData","saveLanguageResponse","err","items","LanguageData","savePartnersProfileData","businessUnits","businessUnit","appAndRoles","temp","actionObject","setAppLanguage","errorStatus","saveSubUsersProfileData","responseLanguageId","ProfileForm","ProfileFormDetails","onLanguageChange","saveLnaguageChangeResponse","controls","setValue","setDefaultLang","use","performAction","action","EmailPasswordActionDialogComponent","currentEmailAddress","email","userId","setProfileAction","profileFormData","saveResponse","showApplicationsWithRoles","apps","appIndex","profileFlag","ProfileComponent","styles","providers","profileComponent","passwordPattern","passwordErrorMsg","changeEmail","changePass","ProfileActionForm","emailGroup","disabled","pattern","confirmEmail","validator","checkEmail","passwordGroup","currentPassword","password","minLength","maxLength","confirmPassword","checkPassword","profileDetails","profileEmailDetails","profilePasswordDetails","setErrors","test","toLowerCase","userId_WPASS","showPassword","input","type","changeEmailAddress","changePassword","198","route","showApproveReject","viewData","ownerId","userEmail","viewDataFlag","dynamicViewText","statusCode","sessionUserManager","EmailActionDialogComponent","ViewRequestComponent","viewRequestComponent","EmailActionForm","EmailDetails","24","userData","adminDashboard","partnersDashboard","applicationDashboard","partnersView","subUsersView","adminList","managerList","applicationList","setLoginRedirectUrl","loginRedirectUrl","getLoginRedirectUrl","changeViewData","changeUserData","changeAdminDashboardData","changePartnersDashboardData","changeApplicationDashboardData","changePartnerViewData","changeSubUserViewData","changeAdminListDashboardData","changeManagerListDashboardData","changeApplicationListDashboardData","contains","term","caseInsensitiveSearch","indexOf","equals","value1","value2","caseInsensitiveMatch","stopPropagationCheckBox","event","stopPropagation","cancelBubble","getChoosenFile","componentModal","componentKey","file","srcElement","files","fileName","name","reader","FileReader","onload","bind","readAsDataURL","CommonService","276","SharedModule","__WEBPACK_IMPORTED_MODULE_2__echarts_directive__","__WEBPACK_IMPORTED_MODULE_3__slim_scroll_directive__","278","webpackEmptyAsyncContext","Promise","reject","279","serverResultsService","page","tableRows","filters","adminDashboardData","Countries","showTable","selected","selectedStatusId","selectedCountryId","searchedFilters","firstName","wpassId","isDisabled","showCheckbox","wpassLogin","autocompleteLoader","searchName","searchEmail","searchWpass","Names","Emails","Wpass","dataTableMessage","StatusData","getUserList","saveUserList","filter","rows","offset","count","totalCount","list","parseInt","status","customerNumberMandatory","finalRows","f","setPage","size","pageNumber","adminText","getCountries","getStatusList","getUsersList","autocompleteSearch","filterArray","index","onSelectAutocomplete","textFlag","search","undefined","checkAutocompleteWord","objArray","searchValue","resetSearch","saveCountries","concat","saveStatusList","s","selectedStatus","limit","offSet","pageInfo","getResults","pageData","totalElements","onSelect","splice","selectedCount","_b","forgetPassword","processResponse","downloadCsv","window","msgCode","unlockAccount","resendEmailVerificationEmail","totalMessage","selectedMessage","AdminDashboardComponent","prototype","280","totalPages","281","AdminDashboardResultService","__WEBPACK_IMPORTED_MODULE_2_rxjs__","__WEBPACK_IMPORTED_MODULE_3__admin_dashboard_admin_datatable_admin_page_data__","n","__WEBPACK_IMPORTED_MODULE_4__admin_dashboard_admin_datatable_admin_dashboardList__","listData","of","getPageData","raw","l","start","end","min","i","jsonObj","282","283","applicationsName","selectedApplicationId","applicationName","applicationsDashboardData","countries","tempCountries","tempBusinessUnits","selectedBusinessUnit","saveApplicationsList","multipleApplicationRoles","roles","applicationText","getBusinessUnitAll","getApplicationsName","getApplicationsList","onCountryChange","countryId","getBusinessUnitForCountry","saveBusinessUnitForCountry","saveBusinessUnitAll","saveApplicationsName","tempApp","applicationId","rejectAction","isRejected","today","dd","getDate","slice","mm","getMonth","yyyy","statusTxt","saveRevokeData","user_application_id","ApplicationsManagerDashboardComponent","284","ApplicationsManagerDashboardResultService","__WEBPACK_IMPORTED_MODULE_3__applications_manager_dashboard_applications_datatable_applications_page_data__","__WEBPACK_IMPORTED_MODULE_4__applications_manager_dashboard_applications_datatable_applications_dashboardList__","285","ApproveRejectRequestModule","286","Http","showError","BusinessUnit","uploadAction","formDataFlag","uploader","disableMultipart","FileUploadForm","disable","getBusinessUnitByCountryId","saveBusinessUnitByCountryId","FileUploadFormDetails","enable","fileupload","formData","FormData","queue","isSuccess","_file","csvName","checkExtension","substring","errorMsg","append","isError","downloadSampleCSVFile","sampleMigrationData","csvContent","forEach","infoArray","dataString","join","encodedUri","encodeURI","link","document","createElement","setAttribute","click","saveUploadCSVData","toPromise","then","setFormData","AddFileComponent","287","FileUploadComponent","288","CSVUploadModule","289","290","saveFileUploadList","uploadList","getFileUploadList","showErrorMsg","FileUploadListComponent","291","FileUploadListDashboardResultService","292","ForgetPasswordForm","ForgetPasswordFormDetails","ForgotPasswordComponent","293","layoutService","redirectUrl","PartnersFormDetails","params","urlId","toUpperCase","console","log","googleInit","that","gapi","load","auth2","init","client_id","cookiepolicy","scope","attachSignin","getElementById","element","attachClickHandler","googleUser","adminLogin","profile","getBasicProfile","token","getAuthResponse","id_token","getName","image","getImageUrl","getEmail","popToast","servicePartnerLogin","PartnersForm","reset","selectedLogin","location","href","languageDetails","localStorageLanguageId","defaultLanguageId","ngAfterViewInit","LoginComponent","294","PageLayoutFullscreenComponent","295","partnersDashboardData","partnersText","callUsersListbyAdminOrPartner","isNaN","PartnersFiltersForm","disablefields","NaN","PartnersDashboardComponent","296","297","PartnersDashboardResultService","298","daterangepickerOptions","RegistrationDataById","CountryAndBusinessUnitDataById","isApplicationRemovable","Applications","phoneNumberPattern","customerNumberLength","urlIdFlag","appsUrlIdFlag","getCountryAndBusinessUnitById","getBusinessUnit","getRegistrationDataById","validateName","saveBusinessUnits","getApplicationsByCountryAndBusinessUnit","saveApplicationsByCountryAndBusinessUnit","createRoles","saveCountryAndBusinessUnitById","saveRegistrationData","RegistrationForm","$","focus","selectedApplications","lastName","companyName","companyAddress","companyPhone","applications","array","checkPasswords","RegistrationFormDetails","countryData","toString","onAddApplicationsProperty","newGroup","arrayControl","onDeleteRoleProperty","removeAt","saveData","RegistrationComponent","call","299","adminRoles","languages","api1","getAdminRoles","saveAdminRoles","saveLanguage","AdminForm","roleData","AdminFormDetails","buroleSelect","item","selectedAdminItems","find","x","sliceFor","findIndex","onBlurWpass","noWpassId","saveAdminData","saveAdminResponse","temp_settings","AddAdminComponent","300","301","adminListData","adminListText","defaulAdminId","a","FiltersForm","AdminListComponent","302","AdminListDashboardResultService","303","AdminManagementComponent","304","AdminManagementModule","305","adminDetails","selectedItems","getAdminDataById","saveRequestData","AdminEditFormDetails","AdminEditForm","saveAdminRole","saveAdminEditResponse","ViewAdminComponent","306","admins","ApplicationFormDetailsById","managers","managersMessage","managersFlag","idFlag","activeFlag","isAssigned","allowMultipleRolesFlag","skipManagerApprovalFlag","skipManagerApprovalMessage","countryWiseDefaults","forSpecificCountry","selectedContries","getApplicationDataById","getApplicationManagers","saveApplicationManagers","saveApplicationDataById","countrySpecificRoles","ApplicationForm","ldapApplicationId","managerData","applicationRoles","multipleRole","customerNumberRequired","skipManagerApproval","ApplicationFormDetails","appRolesObject","setTimeout","j","countryName","createDefaultRoles","setApplicationRoleSpecific","formdata","country","rolesData","onAddCountriestoForm","roleDataIndex","onAddRoleProperty","contries","ldapRoleId","defaultRole","valueArr","k","fg","isAssignFlag","onlyOneDefault","index2","createDefaultRolesCountSpecific","calculateErrorForRDefault","index1","groupControl","saveApplicationData","requestData","saveApplicationResponse","copyToClipboard","textArea","style","position","top","left","width","height","padding","border","outline","boxShadow","background","origin","appendChild","select","execCommand","removeChild","countSpecificFun","checked","contId","contry","source","_element","nativeElement","innerText","trim","rolesAddForSelectedCountries","countrySelect","writeValue","deleteCountry","onDeleteRolePropertySelected","cIndex","countIndex","onlyOneDefaultSpecific","defaultFlag","AddApplicationComponent","307","308","applicationListData","applicationListText","getApplicationList","ApplicationListComponent","309","applicationDashboardData","ApplicationListDashboardResultService","310","ApplicationManagementComponent","311","ApplicationManagementModule","312","manager_settings","application_settings","getAdmins","getApplications","saveBusinessUnit","saveAdmins","saveApplications","AddManagerForm","applicationData","AddManagerFormDetails","addManager","saveAddManagerResponse","app_settings","mgr_settings","AddManagerComponent","313","ManagerAssignmentComponent","314","ManagerAssignmentModule","315","316","managerListData","managerListText","CountryOrBusinessUnitData","ManagerFiltersForm","uniqueKey","downloadBuMappingCsv","showApplications","ManagerListComponent","317","ManagerListDashboardResultService","318","managerDetails","selectedManagerItems","selectedManagerItemsCopy","selectedApplicationItems","selectedApplicationItemsCopy","tempRemoved","tempReplaced","tempReplacedCopy","tempFlag","getManagerDataById","saveManagerData","ManagerEditFormDetails","ManagerEditForm","buManagerReplacementsData","currentId","newId","updateManagerDetails","saveUpdateManagerResponse","onDeSelectAll","assign","OnItemDeSelect","OnManagerDeSelect","removedAdmin","managerName","replacementAdmin","selectionId","ViewManagerComponent","319","WPASSResponse","urlPattern","isChecked","getWPASSDetails","saveWPASSDetails","saveUserData","systemSetting","WPASSFormDetails","apiStatus","toggle","WPASSForm","wpassUrl","wpassAppUserId","wpassAppUserPassword","wpassAppUserConfirmPassword","wpassApplicationId","WPASSComponent","320","TranslationEmailComponent","__WEBPACK_IMPORTED_MODULE_2__shared_services_http_service__","__WEBPACK_IMPORTED_MODULE_3__config__","__WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__","__WEBPACK_IMPORTED_MODULE_5__angular_forms__","emailBody","updatedSubject","getlanguages","getSubjectList","savelanguageResponse","selectEmail","emailSubject","getEmailBodyList","st","SubjectData","SubjectItems","emailSubjectid","emailBodyData","html","emailBodyid","updateSubject","updateBody","321","TranslationMessagesComponent","__WEBPACK_IMPORTED_MODULE_3__dialog_dialog_component__","__WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable__","__WEBPACK_IMPORTED_MODULE_5__translation_messages_translation_messages_page__","__WEBPACK_IMPORTED_MODULE_6__translation_messages_translationResultService__","__WEBPACK_IMPORTED_MODULE_7__angular_forms__","__WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__","__WEBPACK_IMPORTED_MODULE_9__config__","language2","saveTranslationList","translationData","getTranslationData","searchText","resetDateFlag","updateBtn","rowdata","editedText","322","323","UnlockAccountForm","UnlockAccountFormDetails","UnlockAccountComponent","324","325","UserActivityResultService","__WEBPACK_IMPORTED_MODULE_3__user_activity_page_data__","__WEBPACK_IMPORTED_MODULE_4__user_activity_dashboardList__","326","userActivityLogs","__WEBPACK_IMPORTED_MODULE_2__dialog_dialog_component__","__WEBPACK_IMPORTED_MODULE_3__user_activity_datatable_user_activity_page__","__WEBPACK_IMPORTED_MODULE_5__user_activity_datatable_userActivityResultService__","__WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__","__WEBPACK_IMPORTED_MODULE_7__config__","__WEBPACK_IMPORTED_MODULE_9__shared_services_common_service__","__WEBPACK_IMPORTED_MODULE_10__angular_common__","datePipe","todaySelected","model","date","month","day","response","myDatePickerOptions","dateFormat","selectedDate","transform","formatted","date1","327","getBusinessUnitAndCountry","saveBusinessUnitAndCountry","availableBusinessUnits","defaultBusinessUnit","AddBusinessUnitForm","AddBusinessUnitFormDetails","getApplicationsByBusinessUnit","app","saveApplicationsByBusinessUnit","availableApplications","saveBusinessUnitData","saveBusinessUnitDataResponse","AddBusinessUnitForUserComponent","328","businessUnitListData","ApplicationData","businessUnitForUserListText","BusinessUnitListForUserComponent","329","BusinessUnitListForUserDashboardResultService","330","331","RequestBusinessUnitComponent","332","RequestBusinessUnitModule","333","businessUnitDetails","getBusinessUnitDetailsById","saveBusinessUnitDetails","requestNewApplication","requestNewApplicationResponse","ViewBusinessUnitForUserComponent","334","LanguageDetails","UserForm","UserFormDetails","AddEditUserComponent","335","UserComponent","336","UserModule","337","ViewRequestModule","338","showApproveButton","settingSingleField","settingMultipleField","getApplicationRequestDataById","saveApplicationRequestDataById","ApplicationsRequestData","selectedRoles","ApplicationsRequestForm","ApplicationsRequestFormDetails","saveApplicationDataApi","appAction","ViewApplicationRequestComponent","339","wPassIdFlag","companyPhoneFlag","businessUnitWithAppRoles","updatingBuAppId","emailUpdating","allCustomerNumberChecked","getRequestDataWithId","initUpdateCustomerNumber","buAppId","updateCustomerNumber","newCustomerNumber","val","split","reload","cancelUpdateCustomerNumber","customerNumberUpdating","updateEmail","newEmail","initUpdateEmail","cancelUpdateEmail","isEmailUpdating","toggleAllCustomerNumberCheck","ViewPartnersRequestComponent","340","businessUnitWithAppRolesSubPartner","ViewSubUsersRequestComponent","718","createTranslateLoader","AppModule","__WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__","__WEBPACK_IMPORTED_MODULE_3__angular_http__","__WEBPACK_IMPORTED_MODULE_4__angular_forms__","__WEBPACK_IMPORTED_MODULE_5__angular_material__","__WEBPACK_IMPORTED_MODULE_6__angular_platform_browser_animations__","__WEBPACK_IMPORTED_MODULE_7_hammerjs__","__WEBPACK_IMPORTED_MODULE_8__app_routing_module__","__WEBPACK_IMPORTED_MODULE_9__app_component__","__WEBPACK_IMPORTED_MODULE_10__layout_layout_component__","__WEBPACK_IMPORTED_MODULE_11__layout_preloader_directive__","__WEBPACK_IMPORTED_MODULE_12__layout_header_header_component__","__WEBPACK_IMPORTED_MODULE_13__layout_sidenav_sidenav_component__","__WEBPACK_IMPORTED_MODULE_14__layout_sidenav_toggle_offcanvas_nav_directive__","__WEBPACK_IMPORTED_MODULE_15__layout_sidenav_auto_close_mobile_nav_directive__","__WEBPACK_IMPORTED_MODULE_16__layout_sidenav_sidenav_menu_sidenav_menu_component__","__WEBPACK_IMPORTED_MODULE_17__layout_sidenav_sidenav_menu_accordion_nav_directive__","__WEBPACK_IMPORTED_MODULE_18__layout_sidenav_sidenav_menu_append_submenu_icon_directive__","__WEBPACK_IMPORTED_MODULE_19__layout_sidenav_sidenav_menu_highlight_active_items_directive__","__WEBPACK_IMPORTED_MODULE_20__layout_customizer_customizer_component__","__WEBPACK_IMPORTED_MODULE_21__layout_customizer_toggle_quickview_directive__","__WEBPACK_IMPORTED_MODULE_22_ng2_daterangepicker__","__WEBPACK_IMPORTED_MODULE_23__layout_footer_footer_component__","__WEBPACK_IMPORTED_MODULE_24__layout_search_overlay_search_overlay_component__","__WEBPACK_IMPORTED_MODULE_25__layout_search_overlay_search_overlay_directive__","__WEBPACK_IMPORTED_MODULE_26__layout_search_overlay_open_search_overlay_directive__","__WEBPACK_IMPORTED_MODULE_27__loader_loader_component__","__WEBPACK_IMPORTED_MODULE_28__loader_loader_service__","__WEBPACK_IMPORTED_MODULE_29__shared_services_common_service__","__WEBPACK_IMPORTED_MODULE_30__login_login_component__","__WEBPACK_IMPORTED_MODULE_31__registration_registration_component__","__WEBPACK_IMPORTED_MODULE_32__forgot_password_forgotPassword_component__","__WEBPACK_IMPORTED_MODULE_33__unlock_account_UnlockAccountComponent__","__WEBPACK_IMPORTED_MODULE_34__system_level_setting_wpass_wpass_component__","__WEBPACK_IMPORTED_MODULE_35__admin_dashboard_admin_dashboard_component__","__WEBPACK_IMPORTED_MODULE_36__partners_dashboard_partners_dashboard_component__","__WEBPACK_IMPORTED_MODULE_37__applications_manager_dashboard_applications_manager_dashboard_component__","__WEBPACK_IMPORTED_MODULE_38__profile_profile_component__","__WEBPACK_IMPORTED_MODULE_39__page_layouts_fullscreen_fullscreen_component__","__WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__","__WEBPACK_IMPORTED_MODULE_41__viewRequest_view_request_component__","__WEBPACK_IMPORTED_MODULE_42__swimlane_ngx_datatable__","__WEBPACK_IMPORTED_MODULE_43__approve_reject_request_approve_reject_request_module__","__WEBPACK_IMPORTED_MODULE_44__multi_approve_reject_multi_approve_reject_request_module__","__WEBPACK_IMPORTED_MODULE_45__activate_deactivate_request_activate_deactivate_request_module__","__WEBPACK_IMPORTED_MODULE_46__layout_layout_module__","__WEBPACK_IMPORTED_MODULE_47__shared_shared_module__","__WEBPACK_IMPORTED_MODULE_48_angular2_toaster__","__WEBPACK_IMPORTED_MODULE_49_angular2_multiselect_dropdown_angular2_multiselect_dropdown__","__WEBPACK_IMPORTED_MODULE_50__viewRequest_view_request_module__","__WEBPACK_IMPORTED_MODULE_51__system_level_setting_adminManagement_adminManagement_module__","__WEBPACK_IMPORTED_MODULE_52__system_level_setting_managerAssignment_managerAssignment_module__","__WEBPACK_IMPORTED_MODULE_53__user_user_module__","__WEBPACK_IMPORTED_MODULE_54__user_operations_request_business_unit_request_business_unit_module__","__WEBPACK_IMPORTED_MODULE_55__file_upload_fileUpload_module__","__WEBPACK_IMPORTED_MODULE_56_mydatepicker__","__WEBPACK_IMPORTED_MODULE_57__angularclass_hmr__","__WEBPACK_IMPORTED_MODULE_58__shared_services_http_service__","__WEBPACK_IMPORTED_MODULE_59__shared_services_session_handler_service__","__WEBPACK_IMPORTED_MODULE_60__shared_services_error_handler_service__","__WEBPACK_IMPORTED_MODULE_61__adminDashboardResultService__","__WEBPACK_IMPORTED_MODULE_62__partnersDashboardResultService__","__WEBPACK_IMPORTED_MODULE_63__applicationsManagerDashboardResultService__","__WEBPACK_IMPORTED_MODULE_64__system_level_setting_adminManagement_adminListDashboardResultService__","__WEBPACK_IMPORTED_MODULE_65__system_level_setting_applicationManagement_applicationListDashboardResultService__","__WEBPACK_IMPORTED_MODULE_66__system_level_setting_businessUnitManagement_businessUnitDashboardResultService__","__WEBPACK_IMPORTED_MODULE_67__system_level_setting_managerAssignment_managerListDashboardResultService__","__WEBPACK_IMPORTED_MODULE_68__file_upload_fileUploadListDashboardResultService__","__WEBPACK_IMPORTED_MODULE_69__user_operations_request_business_unit_businessUnitForUserDashboardResultService__","__WEBPACK_IMPORTED_MODULE_70__shared_directive_blockCutCopyPaste_directive__","__WEBPACK_IMPORTED_MODULE_71_ng2_input_autocomplete__","__WEBPACK_IMPORTED_MODULE_72_ng2_translate__","__WEBPACK_IMPORTED_MODULE_73__system_level_setting_applicationManagement_applicationManagement_module__","__WEBPACK_IMPORTED_MODULE_74__app_user_activity_logs_user_activity_logs_component__","__WEBPACK_IMPORTED_MODULE_75__app_translation_messages_translation_messages_component__","__WEBPACK_IMPORTED_MODULE_76__app_user_activity_logs_user_activity_datatable_userActivityResultService__","__WEBPACK_IMPORTED_MODULE_77__app_translation_email_translation_email_component__","__WEBPACK_IMPORTED_MODULE_78__config__","__WEBPACK_IMPORTED_MODULE_79_ng2_ckeditor__","appRef","hmrOnInit","store","hmrOnDestroy","cmpLocation","components","cmp","disposeOldHosts","hmrAfterDestroy","entryComponents","bootstrap","72","LayoutService","__WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__","__WEBPACK_IMPORTED_MODULE_4_angular2_toaster__","toasterService","toasterConfig","timeout","positionClass","preloaderStateSource","preloaderState$","searchOverlaySource","searchOverlayState$","popToastWithTimeOut","title","toast","pop","updatePreloaderState","state","updateSearchOverlayState","738","BusinessUnitListDashboardResultService","739","743","activeDeactive","dashboard","note","childData","buAssociationId","Name","ActivateDeactivateComponent","744","roleName","emailVerified","pendingSubUserCount","languageName","personalArea","costCenter","actionFlag","contractorType","appStatus","createdAt","745","Array","746","AppRoutes","path","redirectTo","pathMatch","component","loadChildren","AppRoutingModule","useHash","747","AppComponent","__WEBPACK_IMPORTED_MODULE_2__angular_router__","__WEBPACK_IMPORTED_MODULE_4__layout_layout_service__","__WEBPACK_IMPORTED_MODULE_7__shared_services_error_handler_service__","__WEBPACK_IMPORTED_MODULE_9_ng2_translate__","__WEBPACK_IMPORTED_MODULE_10_styles_font_awesome_scss__","__WEBPACK_IMPORTED_MODULE_11_styles_material2_theme_scss__","__WEBPACK_IMPORTED_MODULE_12_styles_bootstrap_scss__","__WEBPACK_IMPORTED_MODULE_13_styles_layout_scss__","__WEBPACK_IMPORTED_MODULE_14_styles_theme_scss__","__WEBPACK_IMPORTED_MODULE_15_styles_ui_scss__","__WEBPACK_IMPORTED_MODULE_16_styles_app_scss__","AppConfig","events","evt","scrollTop","748","businessUnitName","approverId","approverName","updatedAt","749","750","multiApproveRejectFlag","wpassIdCreated","ApproveRejectComponent","751","FileUploadRoutes","children","FileUploadRoutingModule","forChild","752","includesHeader","csvUrl","uploadBy","uploadedAt","753","754","AppCustomizerComponent","__WEBPACK_IMPORTED_MODULE_2__config__","755","ToggleQuickviewDirective","el","$el","$body","target","myToggleQuickview","qvClass","on","toggleClass","preventDefault","String","756","AppFooterComponent","757","AppHeaderComponent","__WEBPACK_IMPORTED_MODULE_3__angular_router__","__WEBPACK_IMPORTED_MODULE_4__shared_services_error_handler_service__","__WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__","__WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__","__WEBPACK_IMPORTED_MODULE_8__layout_layout_service__","navigate","logout","toggleCollapsedNav","758","routes","LayoutRoutingModule","759","LayoutModule","__WEBPACK_IMPORTED_MODULE_2__layout_routing_module__","__WEBPACK_IMPORTED_MODULE_3__shared_shared_module__","760","PreloaderDirective","__WEBPACK_IMPORTED_MODULE_3__layout_service__","navigationInterceptor","subscription","updatePreloader","active","removeClass","addClass","unsubscribe","761","OpenSearchOverlaylDirective","__WEBPACK_IMPORTED_MODULE_2__layout_service__","openOverlay","762","AppSearchOverlayComponent","763","SearchOverlayDirective","updateSearchOverlay","$searchInput","$closeOverlayBtn","keyCode","closeOverlay","defaultValue","764","AutoCloseMobileNavDirective","765","AccordionNavDirective","$nav","$lists","parent","$parentLi","closest","$subUl","depth","parents","slideUp","has","stop","slideToggle","766","AppendSubmenuIconDirective","prepend","767","HighlightActiveItemsDirective","__WEBPACK_IMPORTED_MODULE_2__angular_common__","highlightActive","links","hash","each","$link","$li","attr","hasClass","$links","768","AppSidenavMenuComponent","__WEBPACK_IMPORTED_MODULE_3__shared_services_session_handler_service__","__WEBPACK_IMPORTED_MODULE_4__shared_services_common_service__","__WEBPACK_IMPORTED_MODULE_5__layout_layout_service__","769","AppSidenavComponent","770","ToggleOffcanvasNavDirective","$navToggler","771","loaderService","chRef","isLogin","detectChanges","LoaderComponent","772","MultiApproveRejectRequestModule","773","checkStatus","getApplicationRoles","saveApplicationRoles","actionStatus","condition1Flag","c","checkResponse","allSelected","MultiApproveRejectComponent","774","775","776","blockPaste","blockCopy","blockCut","Function","KeyboardEvent","BlockCutCopyPasteDirective","777","EChartsDirective","__WEBPACK_IMPORTED_MODULE_2_echarts__","__WEBPACK_IMPORTED_MODULE_2_echarts___default","__WEBPACK_IMPORTED_MODULE_3_echarts_theme_macarons__","myChart","EChartsOptions","setOption","ngOnChanges","dispose","onResize","resize","778","SlimScrollDirective","__WEBPACK_IMPORTED_MODULE_2_jquery_slimscroll_jquery_slimscroll_min_js__","slimScroll","scrollHeight","779","780","781","AdminManagementRoutes","AdminManagementRoutingModule","782","managerNames","783","784","ApplicationManagementRoutes","ApplicationManagementRoutingModule","785","786","787","ManagerAssignmentRoutes","ManagerAssignmentRoutingModule","788","789","790","791","TranslationMessagesResultService","__WEBPACK_IMPORTED_MODULE_3__translation_messages__","__WEBPACK_IMPORTED_MODULE_4__translations_messages_list__","792","english","seletedLanguage","793","username","description","794","795","selectedApplicationNames","796","797","RequestBusinessUnitRoutes","RequestBusinessUnitRoutingModule","798","UserRoutes","UserRoutingModule","799","RequestRoutes","RequestRoutingModule","800","main","bootstrapModule","readyState","addEventListener","92","ErrorHandler","__WEBPACK_IMPORTED_MODULE_3__session_handler_service__"],"mappings":"AAAAA,cAAc,KAERC,GACA,SAAUC,EAAQC,EAAqBC,GAE7C,YAC+BA,GAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOG,KACpEF,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOI,KACpEH,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOK,KACpEJ,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOM,KACpEL,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOO,KACpEN,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOQ,KACpEP,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOS,KACpER,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOU,KACpET,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOW,KACpEV,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOY,KACpEX,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOa,IAC9E,IAAIC,GAAsCb,EAAoB,GAC1Dc,EAA8Cd,EAAoB,GAClEe,EAA+Cf,EAAoB,IACnEgB,EAAkDhB,EAAoB,ICZ/F,aAGI,yBAAmBiB,EAAwBC,GAAxB,KAAAD,SA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B,EAASn8B,MAAMyK,SAA6D,mBAAxB0xB,EAASn8B,MAAMyK,SACrEjP,KAAKoM,cAAc2L,oBAAoB0H,OAAO0K,SAAS2sB,MAExD92C,KAAKiM,eAAe0D,gBAEpB3P,KAAK+L,OAAOqnC,UAAU,YACS,KAAvBzS,EAASn8B,MAAMmK,MACvByZ,QAAQC,IAAI,eAAesY,GAC3BlhB,OAAO0K,SAASC,KAAO,gBACQ,KAAvBuW,EAASn8B,MAAMmK,OACvByZ,QAAQC,IAAI,sBAAsBsY,GAClClhB,OAAO0K,SAASC,KAAO,kBApBduzB,aAAY,KADxB,oB3Mk6dOp+C,EAAwD,EAAE,qB2M/5drC,IAAgC,IAAqC,OAFrFo+C,oB3M06dV","file":"js/main.4b19d3b0ec2854c06e4e.js","sourcesContent":["webpackJsonp([10],{\n\n/***/ 11:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return DialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"e\", function() { return RegistrationDialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"h\", function() { return ApplicationRejectActionDialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"f\", function() { return DashboardActionDialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"g\", function() { return ApplicationDashboardActionDialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"i\", function() { return ActiveInactiveDialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"j\", function() { return CSVErrorDialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"k\", function() { return ShowApplicationsDialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return SelectApplicationsDialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return WelcomeDialogComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return BuAssignmentDialogComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n\r\n\r\n\r\n\r\nvar DialogComponent = (function () {\r\n function DialogComponent(dialog, dialogRef) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.isConfirm = false;\r\n }\r\n DialogComponent.prototype.ngOnInit = function () {\r\n };\r\n DialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n DialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1252)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */]])\r\n ], DialogComponent);\r\n return DialogComponent;\r\n}());\r\n\r\nvar RegistrationDialogComponent = (function () {\r\n function RegistrationDialogComponent(dialog, dialogRef) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.isConfirm = false;\r\n }\r\n RegistrationDialogComponent.prototype.ngOnInit = function () {\r\n };\r\n RegistrationDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n RegistrationDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1253)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */]])\r\n ], RegistrationDialogComponent);\r\n return RegistrationDialogComponent;\r\n}());\r\n\r\nvar ApplicationRejectActionDialogComponent = (function () {\r\n function ApplicationRejectActionDialogComponent(dialog, dialogRef, formBuilder) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.formBuilder = formBuilder;\r\n }\r\n ApplicationRejectActionDialogComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.RejectActionForm = this.formBuilder.group({\r\n reason: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required])\r\n });\r\n this.RejectActionForm.valueChanges.subscribe(function (data) {\r\n _this.reasonDeatils = _this.RejectActionForm.getRawValue();\r\n });\r\n };\r\n ApplicationRejectActionDialogComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n ApplicationRejectActionDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n ApplicationRejectActionDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1248)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */], __WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"h\" /* FormBuilder */]])\r\n ], ApplicationRejectActionDialogComponent);\r\n return ApplicationRejectActionDialogComponent;\r\n}());\r\n\r\nvar DashboardActionDialogComponent = (function () {\r\n function DashboardActionDialogComponent(dialog, dialogRef, formBuilder) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.formBuilder = formBuilder;\r\n this.isApproved = false;\r\n this.isReject = false;\r\n this.RoleData = [\r\n {\r\n \"id\": 1,\r\n \"name\": \"Service Partner\"\r\n }, {\r\n \"id\": 2,\r\n \"name\": \"Trade Partner\"\r\n }\r\n ];\r\n }\r\n DashboardActionDialogComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ActionForm = this.formBuilder.group({\r\n approveGroup: this.formBuilder.group({\r\n /*role: this.formBuilder.control(null, [Validators.required]),*/\r\n selectedPartnerType: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required]),\r\n customerNumber: this.formBuilder.control(this.row['customerNumber'] ? this.row['customerNumber'] : null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required])\r\n }),\r\n rejectGroup: this.formBuilder.group({\r\n reason: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required]),\r\n }),\r\n multiApproveGroup: this.formBuilder.group({\r\n /*role: this.formBuilder.control(null, [Validators.required]),*/\r\n selectedRadioValue: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required])\r\n }),\r\n multiRejectGroup: this.formBuilder.group({\r\n reason: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required]),\r\n selectedRadioValue: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required])\r\n })\r\n });\r\n this.ActionForm.valueChanges.subscribe(function (data) {\r\n var actionFormDetails = _this.ActionForm.getRawValue();\r\n _this.approveDetails = actionFormDetails.approveGroup;\r\n _this.approveDetails['roleId'] = [];\r\n _this.approveDetails['roleId'].push(_this.approveDetails['role']);\r\n _this.rejectDetails = actionFormDetails.rejectGroup;\r\n _this.multiApproveDetails = actionFormDetails.multiApproveGroup;\r\n _this.multiApproveDetails['roleId'] = [];\r\n _this.multiApproveDetails['roleId'].push(_this.multiApproveDetails['role']);\r\n _this.multiRejectDetails = actionFormDetails.multiRejectGroup;\r\n if (_this.condition3Flag) {\r\n _this.multiApproveDetails['selectedRadioValue'] = \"Approve All\";\r\n _this.multiRejectDetails['selectedRadioValue'] = \"Approve All\";\r\n }\r\n });\r\n };\r\n DashboardActionDialogComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n if (!this.row['customerNumberMandatory']) {\r\n this.ActionForm.get('approveGroup').get('selectedPartnerType').setValidators(null);\r\n this.ActionForm.get('approveGroup').get('selectedPartnerType').updateValueAndValidity();\r\n this.ActionForm.get('approveGroup').get('customerNumber').setValidators(null);\r\n this.ActionForm.get('approveGroup').get('customerNumber').updateValueAndValidity();\r\n }\r\n if (this.condition2Flag != true) {\r\n this.ActionForm.get('multiApproveGroup').get('selectedRadioValue').setValidators(null);\r\n this.ActionForm.get('multiApproveGroup').get('selectedRadioValue').updateValueAndValidity();\r\n this.ActionForm.get('multiRejectGroup').get('selectedRadioValue').setValidators(null);\r\n this.ActionForm.get('multiRejectGroup').get('selectedRadioValue').updateValueAndValidity();\r\n }\r\n };\r\n DashboardActionDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n DashboardActionDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1251)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */], __WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"h\" /* FormBuilder */]])\r\n ], DashboardActionDialogComponent);\r\n return DashboardActionDialogComponent;\r\n}());\r\n\r\nvar ApplicationDashboardActionDialogComponent = (function () {\r\n function ApplicationDashboardActionDialogComponent(dialog, dialogRef, formBuilder) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.formBuilder = formBuilder;\r\n this.isApproved = false;\r\n this.isReject = false;\r\n }\r\n ApplicationDashboardActionDialogComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ActionForm = this.formBuilder.group({\r\n multiApproveGroup: this.formBuilder.group({\r\n role: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required]),\r\n selectedRadioValue: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required]),\r\n }),\r\n multiRejectGroup: this.formBuilder.group({\r\n reason: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required]),\r\n selectedRadioValue: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required]),\r\n })\r\n });\r\n this.ActionForm.valueChanges.subscribe(function (data) {\r\n var actionFormDetails = _this.ActionForm.getRawValue();\r\n _this.multiApproveDetails = actionFormDetails.multiApproveGroup;\r\n _this.multiApproveDetails['selectedRoles'] = [];\r\n for (var d in _this.multiApproveDetails.role) {\r\n _this.multiApproveDetails['selectedRoles'].push(_this.multiApproveDetails.role[d]['id']);\r\n }\r\n _this.multiRejectDetails = actionFormDetails.multiRejectGroup;\r\n if (_this.condition3Flag) {\r\n _this.multiApproveDetails['selectedRadioValue'] = \"Approve All\";\r\n _this.multiRejectDetails['selectedRadioValue'] = \"Approve All\";\r\n }\r\n });\r\n };\r\n ApplicationDashboardActionDialogComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n if (this.condition2Flag != true) {\r\n this.ActionForm.get('multiApproveGroup').get('selectedRadioValue').setValidators(null);\r\n this.ActionForm.get('multiApproveGroup').get('selectedRadioValue').updateValueAndValidity();\r\n this.ActionForm.get('multiRejectGroup').get('selectedRadioValue').setValidators(null);\r\n this.ActionForm.get('multiRejectGroup').get('selectedRadioValue').updateValueAndValidity();\r\n }\r\n };\r\n ApplicationDashboardActionDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n ApplicationDashboardActionDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1247)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */], __WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"h\" /* FormBuilder */]])\r\n ], ApplicationDashboardActionDialogComponent);\r\n return ApplicationDashboardActionDialogComponent;\r\n}());\r\n\r\nvar ActiveInactiveDialogComponent = (function () {\r\n function ActiveInactiveDialogComponent(dialog, dialogRef) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.isConfirm = false;\r\n }\r\n ActiveInactiveDialogComponent.prototype.ngOnInit = function () {\r\n };\r\n ActiveInactiveDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n ActiveInactiveDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1246)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */]])\r\n ], ActiveInactiveDialogComponent);\r\n return ActiveInactiveDialogComponent;\r\n}());\r\n\r\nvar CSVErrorDialogComponent = (function () {\r\n function CSVErrorDialogComponent(dialog, dialogRef) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n }\r\n CSVErrorDialogComponent.prototype.ngOnInit = function () {\r\n };\r\n CSVErrorDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n CSVErrorDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1250)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */]])\r\n ], CSVErrorDialogComponent);\r\n return CSVErrorDialogComponent;\r\n}());\r\n\r\nvar ShowApplicationsDialogComponent = (function () {\r\n function ShowApplicationsDialogComponent(dialog, dialogRef) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n }\r\n ShowApplicationsDialogComponent.prototype.ngOnInit = function () { };\r\n ShowApplicationsDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n ShowApplicationsDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1255)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */]])\r\n ], ShowApplicationsDialogComponent);\r\n return ShowApplicationsDialogComponent;\r\n}());\r\n\r\nvar SelectApplicationsDialogComponent = (function () {\r\n function SelectApplicationsDialogComponent(dialog, dialogRef, formBuilder) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.formBuilder = formBuilder;\r\n this.settings = {};\r\n this.buildForm();\r\n }\r\n SelectApplicationsDialogComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ApplicationsForm = this.formBuilder.group({\r\n applicationsData: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"g\" /* Validators */].required])\r\n });\r\n this.ApplicationsForm.valueChanges.subscribe(function (data) {\r\n _this.ApplicationsFormDetails = _this.ApplicationsForm.getRawValue();\r\n _this.ApplicationsFormDetails['businessUnitId'] = _this.businessUnitId;\r\n _this.ApplicationsFormDetails['applicationId'] = [];\r\n for (var d in _this.ApplicationsFormDetails.applicationsData) {\r\n _this.ApplicationsFormDetails['applicationId'].push(_this.ApplicationsFormDetails.applicationsData[d]['id']);\r\n }\r\n _this.ApplicationsFormDetails.validate = _this.ApplicationsForm.valid;\r\n });\r\n this.ApplicationsForm.get('applicationsData').valueChanges.subscribe(function (data) {\r\n if (data != null && data.length > 0) {\r\n _this.applicationFlag = false;\r\n }\r\n else {\r\n _this.applicationFlag = true;\r\n }\r\n });\r\n };\r\n SelectApplicationsDialogComponent.prototype.ngOnInit = function () {\r\n this.settings = {\r\n singleSelection: false,\r\n text: \"Select Application\",\r\n labelKey: \"name\",\r\n selectAllText: 'Select All',\r\n unSelectAllText: 'UnSelect All',\r\n classes: \"myclass custom-class\"\r\n };\r\n };\r\n SelectApplicationsDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n SelectApplicationsDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1254)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */], __WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"h\" /* FormBuilder */]])\r\n ], SelectApplicationsDialogComponent);\r\n return SelectApplicationsDialogComponent;\r\n}());\r\n\r\nvar WelcomeDialogComponent = (function () {\r\n function WelcomeDialogComponent(dialog, dialogRef) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n }\r\n WelcomeDialogComponent.prototype.ngOnInit = function () {\r\n };\r\n WelcomeDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n WelcomeDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1256)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */]])\r\n ], WelcomeDialogComponent);\r\n return WelcomeDialogComponent;\r\n}());\r\n\r\n// Bu Assignment Dialog.\r\nvar BuAssignmentDialogComponent = (function () {\r\n function BuAssignmentDialogComponent(dialog, dialogRef) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.isConfirm = false;\r\n this.closeBtn = false;\r\n }\r\n BuAssignmentDialogComponent.prototype.ngOnInit = function () {\r\n };\r\n BuAssignmentDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n BuAssignmentDialogComponent.prototype.onChange = function (admin) {\r\n this.isConfirm = true;\r\n this.selectedAdminData = admin;\r\n };\r\n BuAssignmentDialogComponent.prototype.dialogClose = function (result) {\r\n this.closeBtn = result;\r\n };\r\n BuAssignmentDialogComponent.prototype.ngOnDestroy = function () {\r\n if (!this.closeBtn) {\r\n this.dialogRef.close(this.selectedAdminData);\r\n }\r\n };\r\n BuAssignmentDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1249)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"d\" /* MdDialogRef */]])\r\n ], BuAssignmentDialogComponent);\r\n return BuAssignmentDialogComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 12:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return APPCONFIG; });\nfunction makeAppConfig() {\r\n var date = new Date();\r\n var year = date.getFullYear();\r\n var AppConfig = {\r\n brand: ' Whirlpool EMEA Partner Registration Portal',\r\n URL: 'https://backendservice-dot-whr-self-registration-prod.appspot.com',\r\n apiKey: 'AIzaSyC6hpVLEnGHyCEC-2sLZt4-AgUeil9Xdi0',\r\n google_client_id: '731139322915-nctt38kpf4dg8hufuo1kdaesod2dq2nd.apps.googleusercontent.com',\r\n validNameRegex: /^[a-zA-Z0-9`$%&*_+-:,. ']+$/,\r\n toasterDefaultTimeOut: 2000,\r\n toasterDefaultPositionClass: 'toast-bottom-right',\r\n // 'toast-top-left', 'toast-top-center', 'toast-top-right',\r\n // 'toast-bottom-left', 'toast-bottom-center', 'toast-bottom-right',\r\n toastrType: { error: 'error', info: 'info', wait: 'wait', success: 'success', warning: 'warning' },\r\n emailPattern: /^.+@.+\\..+$/,\r\n user: '',\r\n year: year,\r\n layoutBoxed: false,\r\n navCollapsed: true,\r\n navBehind: false,\r\n fixedHeader: true,\r\n sidebarWidth: 'middle',\r\n theme: 'light',\r\n colorOption: '21',\r\n AutoCloseMobileNav: true,\r\n productLink: '',\r\n systemAdmin: 'SYSTEM_ADMIN',\r\n regionalAdmin: 'REGIONAL_ADMIN',\r\n BUManager: 'BU_MANAGER',\r\n applicationManager: 'APPLICATION_MANAGER',\r\n serviceOwner: 'SERVICE_OWNER',\r\n tradePartner: 'TRADE_PARTNER',\r\n subuser: 'SUBUSER'\r\n };\r\n return AppConfig;\r\n}\r\nvar APPCONFIG = makeAppConfig();\r\n\n\n/***/ }),\n\n/***/ 1204:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 1205:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 1206:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 1207:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 1208:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 1209:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 1210:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 1213:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar map = {\n\t\"./af\": 438,\n\t\"./af.js\": 438,\n\t\"./ar\": 445,\n\t\"./ar-dz\": 439,\n\t\"./ar-dz.js\": 439,\n\t\"./ar-kw\": 440,\n\t\"./ar-kw.js\": 440,\n\t\"./ar-ly\": 441,\n\t\"./ar-ly.js\": 441,\n\t\"./ar-ma\": 442,\n\t\"./ar-ma.js\": 442,\n\t\"./ar-sa\": 443,\n\t\"./ar-sa.js\": 443,\n\t\"./ar-tn\": 444,\n\t\"./ar-tn.js\": 444,\n\t\"./ar.js\": 445,\n\t\"./az\": 446,\n\t\"./az.js\": 446,\n\t\"./be\": 447,\n\t\"./be.js\": 447,\n\t\"./bg\": 448,\n\t\"./bg.js\": 448,\n\t\"./bm\": 449,\n\t\"./bm.js\": 449,\n\t\"./bn\": 450,\n\t\"./bn.js\": 450,\n\t\"./bo\": 451,\n\t\"./bo.js\": 451,\n\t\"./br\": 452,\n\t\"./br.js\": 452,\n\t\"./bs\": 453,\n\t\"./bs.js\": 453,\n\t\"./ca\": 454,\n\t\"./ca.js\": 454,\n\t\"./cs\": 455,\n\t\"./cs.js\": 455,\n\t\"./cv\": 456,\n\t\"./cv.js\": 456,\n\t\"./cy\": 457,\n\t\"./cy.js\": 457,\n\t\"./da\": 458,\n\t\"./da.js\": 458,\n\t\"./de\": 461,\n\t\"./de-at\": 459,\n\t\"./de-at.js\": 459,\n\t\"./de-ch\": 460,\n\t\"./de-ch.js\": 460,\n\t\"./de.js\": 461,\n\t\"./dv\": 462,\n\t\"./dv.js\": 462,\n\t\"./el\": 463,\n\t\"./el.js\": 463,\n\t\"./en-SG\": 464,\n\t\"./en-SG.js\": 464,\n\t\"./en-au\": 465,\n\t\"./en-au.js\": 465,\n\t\"./en-ca\": 466,\n\t\"./en-ca.js\": 466,\n\t\"./en-gb\": 467,\n\t\"./en-gb.js\": 467,\n\t\"./en-ie\": 468,\n\t\"./en-ie.js\": 468,\n\t\"./en-il\": 469,\n\t\"./en-il.js\": 469,\n\t\"./en-nz\": 470,\n\t\"./en-nz.js\": 470,\n\t\"./eo\": 471,\n\t\"./eo.js\": 471,\n\t\"./es\": 474,\n\t\"./es-do\": 472,\n\t\"./es-do.js\": 472,\n\t\"./es-us\": 473,\n\t\"./es-us.js\": 473,\n\t\"./es.js\": 474,\n\t\"./et\": 475,\n\t\"./et.js\": 475,\n\t\"./eu\": 476,\n\t\"./eu.js\": 476,\n\t\"./fa\": 477,\n\t\"./fa.js\": 477,\n\t\"./fi\": 478,\n\t\"./fi.js\": 478,\n\t\"./fo\": 479,\n\t\"./fo.js\": 479,\n\t\"./fr\": 482,\n\t\"./fr-ca\": 480,\n\t\"./fr-ca.js\": 480,\n\t\"./fr-ch\": 481,\n\t\"./fr-ch.js\": 481,\n\t\"./fr.js\": 482,\n\t\"./fy\": 483,\n\t\"./fy.js\": 483,\n\t\"./ga\": 484,\n\t\"./ga.js\": 484,\n\t\"./gd\": 485,\n\t\"./gd.js\": 485,\n\t\"./gl\": 486,\n\t\"./gl.js\": 486,\n\t\"./gom-latn\": 487,\n\t\"./gom-latn.js\": 487,\n\t\"./gu\": 488,\n\t\"./gu.js\": 488,\n\t\"./he\": 489,\n\t\"./he.js\": 489,\n\t\"./hi\": 490,\n\t\"./hi.js\": 490,\n\t\"./hr\": 491,\n\t\"./hr.js\": 491,\n\t\"./hu\": 492,\n\t\"./hu.js\": 492,\n\t\"./hy-am\": 493,\n\t\"./hy-am.js\": 493,\n\t\"./id\": 494,\n\t\"./id.js\": 494,\n\t\"./is\": 495,\n\t\"./is.js\": 495,\n\t\"./it\": 497,\n\t\"./it-ch\": 496,\n\t\"./it-ch.js\": 496,\n\t\"./it.js\": 497,\n\t\"./ja\": 498,\n\t\"./ja.js\": 498,\n\t\"./jv\": 499,\n\t\"./jv.js\": 499,\n\t\"./ka\": 500,\n\t\"./ka.js\": 500,\n\t\"./kk\": 501,\n\t\"./kk.js\": 501,\n\t\"./km\": 502,\n\t\"./km.js\": 502,\n\t\"./kn\": 503,\n\t\"./kn.js\": 503,\n\t\"./ko\": 504,\n\t\"./ko.js\": 504,\n\t\"./ku\": 505,\n\t\"./ku.js\": 505,\n\t\"./ky\": 506,\n\t\"./ky.js\": 506,\n\t\"./lb\": 507,\n\t\"./lb.js\": 507,\n\t\"./lo\": 508,\n\t\"./lo.js\": 508,\n\t\"./lt\": 509,\n\t\"./lt.js\": 509,\n\t\"./lv\": 510,\n\t\"./lv.js\": 510,\n\t\"./me\": 511,\n\t\"./me.js\": 511,\n\t\"./mi\": 512,\n\t\"./mi.js\": 512,\n\t\"./mk\": 513,\n\t\"./mk.js\": 513,\n\t\"./ml\": 514,\n\t\"./ml.js\": 514,\n\t\"./mn\": 515,\n\t\"./mn.js\": 515,\n\t\"./mr\": 516,\n\t\"./mr.js\": 516,\n\t\"./ms\": 518,\n\t\"./ms-my\": 517,\n\t\"./ms-my.js\": 517,\n\t\"./ms.js\": 518,\n\t\"./mt\": 519,\n\t\"./mt.js\": 519,\n\t\"./my\": 520,\n\t\"./my.js\": 520,\n\t\"./nb\": 521,\n\t\"./nb.js\": 521,\n\t\"./ne\": 522,\n\t\"./ne.js\": 522,\n\t\"./nl\": 524,\n\t\"./nl-be\": 523,\n\t\"./nl-be.js\": 523,\n\t\"./nl.js\": 524,\n\t\"./nn\": 525,\n\t\"./nn.js\": 525,\n\t\"./pa-in\": 526,\n\t\"./pa-in.js\": 526,\n\t\"./pl\": 527,\n\t\"./pl.js\": 527,\n\t\"./pt\": 529,\n\t\"./pt-br\": 528,\n\t\"./pt-br.js\": 528,\n\t\"./pt.js\": 529,\n\t\"./ro\": 530,\n\t\"./ro.js\": 530,\n\t\"./ru\": 531,\n\t\"./ru.js\": 531,\n\t\"./sd\": 532,\n\t\"./sd.js\": 532,\n\t\"./se\": 533,\n\t\"./se.js\": 533,\n\t\"./si\": 534,\n\t\"./si.js\": 534,\n\t\"./sk\": 535,\n\t\"./sk.js\": 535,\n\t\"./sl\": 536,\n\t\"./sl.js\": 536,\n\t\"./sq\": 537,\n\t\"./sq.js\": 537,\n\t\"./sr\": 539,\n\t\"./sr-cyrl\": 538,\n\t\"./sr-cyrl.js\": 538,\n\t\"./sr.js\": 539,\n\t\"./ss\": 540,\n\t\"./ss.js\": 540,\n\t\"./sv\": 541,\n\t\"./sv.js\": 541,\n\t\"./sw\": 542,\n\t\"./sw.js\": 542,\n\t\"./ta\": 543,\n\t\"./ta.js\": 543,\n\t\"./te\": 544,\n\t\"./te.js\": 544,\n\t\"./tet\": 545,\n\t\"./tet.js\": 545,\n\t\"./tg\": 546,\n\t\"./tg.js\": 546,\n\t\"./th\": 547,\n\t\"./th.js\": 547,\n\t\"./tl-ph\": 548,\n\t\"./tl-ph.js\": 548,\n\t\"./tlh\": 549,\n\t\"./tlh.js\": 549,\n\t\"./tr\": 550,\n\t\"./tr.js\": 550,\n\t\"./tzl\": 551,\n\t\"./tzl.js\": 551,\n\t\"./tzm\": 553,\n\t\"./tzm-latn\": 552,\n\t\"./tzm-latn.js\": 552,\n\t\"./tzm.js\": 553,\n\t\"./ug-cn\": 554,\n\t\"./ug-cn.js\": 554,\n\t\"./uk\": 555,\n\t\"./uk.js\": 555,\n\t\"./ur\": 556,\n\t\"./ur.js\": 556,\n\t\"./uz\": 558,\n\t\"./uz-latn\": 557,\n\t\"./uz-latn.js\": 557,\n\t\"./uz.js\": 558,\n\t\"./vi\": 559,\n\t\"./vi.js\": 559,\n\t\"./x-pseudo\": 560,\n\t\"./x-pseudo.js\": 560,\n\t\"./yo\": 561,\n\t\"./yo.js\": 561,\n\t\"./zh-cn\": 562,\n\t\"./zh-cn.js\": 562,\n\t\"./zh-hk\": 563,\n\t\"./zh-hk.js\": 563,\n\t\"./zh-tw\": 564,\n\t\"./zh-tw.js\": 564\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 1213;\n\n/***/ }),\n\n/***/ 1239:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\"\n\n/***/ }),\n\n/***/ 1240:\n/***/ (function(module, exports) {\n\nmodule.exports = \".loader-hidden {\\n visibility: hidden;\\n}\\n.loader-overlay {\\n position: absolute;\\n width:100%;\\n top:0;\\n left: 0;\\n opacity: 1;\\n z-index: 500000;\\n}\"\n\n/***/ }),\n\n/***/ 1241:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n\"\n\n/***/ }),\n\n/***/ 1242:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n

{{ 'User Dashboard' | translate | uppercase }}

\\n
\\n
\\n
\\n
\\n = 1\\\" [childData]=selected\\n [count]=count [dashboard]=adminText\\n [searchedFilters]=searchedFilters [selectedCount]=selectedCount\\n [totalCount]=totalCount>\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n {{statusData.name | lowercase | translate}}\\n \\n \\n\\n
\\n
\\n \\n \\n {{country.name | translate}}\\n \\n \\n
\\n \\n \\n \\n \\n\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n
\\n \\n\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{row['Name']}}\\n \\n
    {{ 'Request Submission Date' | translate }}\\n
  • {{row['createdAt']}}
  • \\n
\\n
    {{ 'UserId Creation Date' | translate }}\\n
  • {{row['wpassCreatedAt']}}
  • \\n
\\n
\\n
\\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n
\\n

{{'pending' | translate}}

\\n
    \\n
  • \\n {{pending.name}}
  • \\n
\\n
\\n
\\n

{{'approved' | translate}}

\\n
    \\n
  • \\n {{approved.name}}
  • \\n
\\n
\\n
\\n

{{'rejected' | translate}}

\\n
    \\n
  • \\n {{rejected.name}}
  • \\n
\\n
\\n
\\n
\\n
\\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['email']}}\\n \\n \\n\\n \\n \\n {{'WPASS Id' | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n
\\n vpn_key\\n lock_open\\n
\\n
\\n
\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['countryName']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n
\\n mail_outline\\n
\\n
\\n
\\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{'view' | translate}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1243:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
\\n
\\n \\n
\"\n\n/***/ }),\n\n/***/ 1244:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n
\\n

{{ 'Application Dashboard' | translate | uppercase }}

\\n\\n
\\n
\\n
\\n
\\n
\\n = 1\\\" [childData]=selected\\n [searchedFilters]=searchedFilters [dashboard]=applicationText [selectedCount]=selectedCount\\n [count]=count [totalCount]=totalCount>\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n \\n \\n {{statusData.name | lowercase | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{application.name | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{country.name | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{businessUnit.name | translate}}\\n \\n \\n
\\n \\n\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n \\n
\\n
\\n
\\n \\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n \\n\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{row['applicationName']}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['businessUnitName']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['countryName'] | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n \\n \\n\\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n \\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1245:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n\"\n\n/***/ }),\n\n/***/ 1246:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n

{{ msg | translate }}

\\n
{{ msg | translate }}
\\n

{{ note | translate }}

\\n

{{ systemSetting | translate}}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1247:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n
{{ 'multi_rqst_approve_confirm' | translate }}
\\n
{{ 'multi_rqst_rjct_confirm' | translate }}
\\n \\n
{{ following_pages_request_notify | translate }}
\\n\\n
{{ 'rqst_approve_slctd_or_all_confirm' | translate }}
\\n
{{ 'rqst_rjct_slctd_or_all_confirm' | translate }}
\\n\\n
{{ 'rqst_approve_slctd_confirm' | translate }}
\\n
{{ 'rqst_rjct_slctd_confirm' | translate }}
\\n\\n
\\n
\\n
\\n \\n Reject Selected\\n Reject All\\n \\n\\n \\n \\n {{biography.value.length}} / 150\\n \\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\\n \\n {{ 'Approve Selected' | translate }}\\n {{ 'Approve All' | translate }}\\n \\n\\n
\\n \\n
\\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1248:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
{{ msg | translate }}
\\n\\n
\\n
\\n
\\n \\n \\n {{biography.value.length}} / 150\\n \\n
\\n\\n \\n \\n
\\n
\\n \\n \\n \\n \\n\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1249:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ msg | translate }}

\\n
{{ 'pls_select_a_replace_for' | translate }}\\n {{ managerName}}
\\n
\\n \\n \\n {{admin.name}}\\n \\n \\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1250:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

\\n \\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1251:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
{{ msg | translate }}
\\n\\n
\\n
\\n
\\n \\n \\n {{biography.value.length}} / 150\\n \\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\\n\\n \\n
\\n
\\n  Partner Type? \\n \\n Service Partner\\n Trade Partner\\n \\n
\\n
\\n
\\n\\n \\n \\n {{customerNumberLength}} / 10\\n \\n
\\n\\n \\n \\n
\\n
\\n
\\n\\n
\\n
{{ 'multi_rqst_approve_confirm' | translate }}
\\n
{{ 'multi_rqst_rjct_confirm' | translate }}
\\n \\n
{{ following_pages_request_notify | translate }}
\\n\\n
{{ 'rqst_approve_slctd_or_all_confirm' | translate }}
\\n
{{ 'rqst_rjct_slctd_or_all_confirm' | translate }}
\\n\\n
{{ 'rqst_approve_slctd_confirm' | translate }}
\\n
{{ 'rqst_rjct_slctd_confirm' | translate }}
\\n\\n
\\n
\\n
\\n \\n {{'Reject Selected' | translate}}\\n {{'Reject All' | translate}}\\n \\n\\n \\n \\n {{biography.value.length}} / 150\\n \\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\\n \\n {{ 'Approve Selected' | translate }}\\n {{ 'Approve All' | translate }}\\n \\n\\n \\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1252:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ msg | translate }}

\\n \\n \\n \\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1253:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n
\\n

{{ 'Registration Successful' | translate }}

\\n
\\n
\\n check_circle\\n
\\n
\\n
\\n

{{ 'Thank You' | translate }}

\\n

{{ msg | translate }}

\\n \\n \\n \\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1254:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\\n
\\n\\n
\\n \\n \\n
\\n\\n
\"\n\n/***/ }),\n\n/***/ 1255:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
{{ 'Applications' | translate }}
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{ 'Applications' | translate }}{{ 'Application Name' | translate }}{{ 'Status' | translate }}{{ 'Role' | translate }}{{ 'Reject Reason' | translate }}
{{i + 1}}{{appsList}}{{appsList.applicationName}}{{appsList.status}}\\n {{appsList.status}}\\n {{appsList.status}}\\n {{appsList.status}}\\n {{appsList.status}}\\n {{appsList.selectedRoleNames}}{{appsList.message}}
\\n
\\n\\n
\\n \\n
\\n\\n
\"\n\n/***/ }),\n\n/***/ 1256:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n\\n
{{ \\\"WelcomeLine1\\\" | translate }}
\\n
{{ \\\"WelcomeLine2\\\" | translate }}
\\n

{{ 'WelcomeLine3' | translate }} :

\\n

{{ 'WelcomeLine4' | translate }}

\\n

{{ 'WelcomeLine5' | translate }}

\\n

{{ \\\"WelcomeLine6\\\" | translate }}

\\n

{{ 'WelcomeLine7' | translate }}

\\n

{{ 'WelcomeLine8' | translate }}

\\n\\n \\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1257:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'Data Upload' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'Data Information' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n {{ 'Role Maintenance' | translate }}\\n {{ 'User Migration' | translate }}\\n \\n
\\n\\n
\\n \\n \\n {{countryId.name | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{businessUnitId.name}}\\n \\n \\n
\\n
\\n
\\n \\n
\\n
\\n {{ 'Insert CSV file' | translate }}\\n \\n \\n
\\n
\\n {{ 'CSV Name' | translate }} : \\n \\n
\\n
\\n
\\n\\n
\\n
\\n

\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1258:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\"\n\n/***/ }),\n\n/***/ 1259:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'MIGRATION INFORMATION' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['type'] | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['countryName'] | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['businessUnitName']}}\\n \\n \\n\\n \\n \\n {{'Uploaded By' | translate}}\\n \\n \\n {{row['uploadBy']}}\\n \\n \\n\\n \\n \\n {{'Uploaded At' | translate}} (UTC)\\n \\n \\n {{row['uploadedAt']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}info\\n \\n \\n\\n \\n \\n {{'Uploaded File' | translate}}\\n \\n \\n \\n {{row['csvName']}}\\n \\n \\n \\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1260:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
\\n
\\n
\\n
\\n
\\n

{{'Reset Password' | translate}}

\\n
\\n
\\n
\\n
\\n \\n perm_identity\\n \\n \\n
\\n

\\n {{'after_reset_password_confirm' | translate}}\\n

\\n\\n
\\n \\n
\\n
\\n\\n \\n
\\n\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1261:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n close\\n settings\\n\\n
\\n
\\n

Customizer

\\n

Customize and preview in real time.

\\n\\n
\\n

Layout Options

\\n
\\n \\n \\n

Fixed Header

\\n \\n
\\n \\n

Collapsed Sidebar

\\n \\n
\\n \\n

Full Width Header

\\n \\n
\\n \\n

Boxed Layout

\\n \\n
\\n \\n

Sidebar Width

\\n \\n small\\n middle\\n large\\n \\n
\\n
\\n\\n\\n
\\n

Color Options

\\n

Tip: Additionally, you can active \\\"Full Width Header\\\" above

\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n \\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n
\\n
\\n \\n \\n \\n \\n \\n \\n
\\n
\\n\\n\\n\\n
\\n

Theme Options

\\n
\\n\\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n \\n\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1262:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\"\n\n/***/ }),\n\n/***/ 1263:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
= 0,\\n 'bg-color-dark': AppConfig.colorOption === '31',\\n 'bg-color-primary': ['22','32'].indexOf(AppConfig.colorOption) >= 0,\\n 'bg-color-success': ['23','33'].indexOf(AppConfig.colorOption) >= 0,\\n 'bg-color-info': ['24','34'].indexOf(AppConfig.colorOption) >= 0,\\n 'bg-color-warning': ['25','35'].indexOf(AppConfig.colorOption) >= 0,\\n 'bg-color-danger': ['26','36'].indexOf(AppConfig.colorOption) >= 0}\\\">\\n\\n
\\n \\n menu\\n \\n \\n
\\n\\n
\\n
    \\n
  • \\n \\n \\n \\n \\n power_settings_new\\n

    {{ 'Logout' | translate }}

    \\n
    \\n
    \\n
    \\n
  • \\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1264:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n
\\n \\n\\n
\\n
\\n
\\n \\n
\\n
\\n\\n \\n
\\n
\\n\\n\"\n\n/***/ }),\n\n/***/ 1265:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n \\n
\\n \\n\\n
\\n Press Esc key to dismiss\\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ 1266:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\"\n\n/***/ }),\n\n/***/ 1267:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\"\n\n/***/ }),\n\n/***/ 1268:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1269:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
\\n
\\n
\\n\\n
\\n
\\n \\n

{{ 'WelcomeLine1' | translate }}

\\n
\\n\\n
\\n
{{ 'Login As Whirlpool Partner' | translate}}
\\n
\\n
\\n
\\n
\\n
\\n language\\n
\\n
\\n \\n {{languageId.name}} \\n \\n
\\n
\\n
\\n
\\n \\n perm_identity\\n \\n \\n
\\n
\\n \\n lock_outline\\n \\n \\n

visibility

\\n

visibility_off

\\n
\\n
\\n
\\n \\n \\n
\\n
\\n\\n
\\n\\n
\\n \\n
\\n\\n
\\n
\\n\\n
\\n
\\n\\n
\\n
\\n
\\n

{{'I forgot my password' | translate}}

\\n
\\n
\\n

{{'unlock_account' | translate}}

\\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1270:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n\"\n\n/***/ }),\n\n/***/ 1271:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n\\n
Blank
\\n\\n
\"\n\n/***/ }),\n\n/***/ 1272:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'Dashboard' | translate | uppercase }}

\\n

{{ 'Sub Users' | translate | uppercase }}

\\n
\\n
\\n \\n \\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n \\n \\n {{statusData.name | lowercase | translate}}\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n \\n\\n \\n \\n\\n \\n \\n {{'Name' | translate}}\\n \\n \\n \\n {{row['Name']}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['roleName']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['email']}}\\n \\n \\n\\n \\n \\n {{'WPASS Id' | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1273:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n\\n
\\n

{{ 'Change Email Address' | translate }}?

\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n {{ 'Email Id Mismatch' | translate }}\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n\\n
\\n

{{ 'Change Password' | translate }}?

\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n

visibility

\\n

visibility_off

\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n

visibility

\\n

visibility_off

\\n\\n
\\n info\\n
\\n
    \\n
  • {{ 'pass_8_chars' | translate }}
  • \\n
  • {{ 'pass_one_upper_lower_char' | translate }}
  • \\n
  • {{ 'pass_one_number' | translate }}
  • \\n
  • {{ 'pass_no_userId' | translate }}
  • \\n
\\n
\\n
\\n
\\n {{ passwordErrorMsg | translate }}\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n

visibility

\\n

visibility_off

\\n
\\n {{ 'Password Mismatch' | translate }}\\n
\\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1274:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'Profile' | translate | uppercase }}

\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'Profile Information' | translate }}

\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{profileData.firstName}}

\\n
\\n
\\n \\n

{{profileData.lastName}}

\\n
\\n
\\n \\n {{languageData.name}} \\n \\n
\\n
\\n \\n

{{profileData.email}}

\\n
\\n
\\n \\n

{{profileData.countryName | translate}}

\\n
\\n
\\n \\n

{{profileData.status | lowercase | translate}}

\\n
\\n
\\n \\n

{{profileData.userId_WPASS}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n

{{profileData.createdAt}}

\\n
\\n
\\n \\n

{{profileData.wpassCreatedAt}}

\\n
\\n
\\n \\n
\\n
\\n \\n

{{profileData.companyName}}

\\n
\\n
\\n \\n

{{profileData.companyAddress}}

\\n
\\n
\\n \\n

{{profileData.companyPhone}}

\\n
\\n
\\n \\n

{{profileData.roleName}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Business Unit Information' | translate }}

\\n\\n
\\n
\\n 0\\\">\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{'Application Name' | translate }}{{'Business Unit' | translate }}{{'Customer Number' | translate }}{{'Status' | translate }}{{'Role' | translate }}
{{i + 1}}\\n near_me \\n {{appData.applicationName}}\\n {{appData.businessUnitName}}{{appData.customerNumber}}{{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.selectedRoleNames}}
\\n
\\n
\\n\\n \\n
\\n\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1275:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
\\n
\\n\\n
\\n
\\n
{{ 'Register Now' | translate }}
\\n
\\n\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n \\n\\n

visibility

\\n

visibility_off

\\n\\n
\\n info\\n
\\n
    \\n
  • {{ 'pass_8_chars' | translate }}
  • \\n
  • {{ 'pass_one_upper_lower_char' | translate }}
  • \\n
  • {{ 'pass_one_number' | translate }}
  • \\n
\\n
\\n
\\n
\\n {{ passwordErrorMsg | translate }}\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n {{ 'Password Mismatch' | translate }}\\n
\\n
\\n
\\n \\n\\n \\n \\n {{countryId.name | translate}}\\n \\n \\n
\\n
\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n
\\n \\n \\n {{businessUnitId.name}}\\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n {{languageId.name}}\\n \\n \\n
\\n
\\n \\n \\n {{customerNumberLength}} / 10\\n \\n
\\n
\\n \\n \\n {{biography.value.length}} / 130\\n \\n
\\n
\\n
\\n\\n
0\\\">\\n

{{ 'Application Details' | translate }}

\\n\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n \\n
\\n \\n
\\n
\\n
\\n
\\n\\n
\\n\\n
\\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1276:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'Admin Management' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'Create Admin' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n {{language.name}}\\n \\n \\n
\\n
\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1277:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'ADMIN LIST' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n \\n \\n {{adminRole.name}}\\n \\n \\n
\\n
\\n \\n \\n {{statusData.name | uppercase | translate}}\\n \\n \\n
\\n\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n \\n\\n \\n\\n \\n \\n {{'Name' | translate}}\\n \\n \\n \\n {{row['Name']}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['email']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['roleName']}}\\n \\n \\n\\n \\n \\n {{'WPASS Id' | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | uppercase | translate}}\\n {{row['status'] | uppercase | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1278:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\"\n\n/***/ }),\n\n/***/ 1279:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'Admin Management' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'View Admin' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{adminDetails.firstName}}

\\n
\\n
\\n \\n

{{adminDetails.lastName}}

\\n
\\n
\\n \\n

{{adminDetails.email}}

\\n
\\n
\\n \\n

{{adminDetails.languageName}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n \\n \\n
\\n
\\n \\n

{{adminDetails.roleName}}

\\n
\\n
\\n \\n

{{adminDetails.userId_WPASS}}

\\n
\\n
\\n \\n

{{adminDetails.createdAt}}

\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1280:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'Application Management' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'Create Application' | translate }}

\\n

{{ 'Update Application' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Application Details' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n
\\n
\\n

{{ 'Manager' | translate }}

\\n \\n \\n
\\n
\\n
\\n

{{managersMessage | translate}}

\\n
\\n
\\n
\\n
\\n\\n
\\n

{{ \\\"Application Roles\\\" | translate }}

\\n
\\n {{ \\\"Country Specific Roles\\\" | translate }}\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n {{'default' | translate}}\\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n

{{skipManagerApprovalMessage | translate}}

\\n
\\n
\\n
\\n\\n\\n \\n
0\\\" formArrayName=\\\"countries\\\">\\n
\\n
\\n \\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n {{'default' | translate}}\\n
\\n
\\n \\n \\n \\n
\\n
\\n\\n
\\n
\\n
\\n

{{skipManagerApprovalMessage | translate}}

\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n\\n\\n \\n\\n\\n
\\n \\n \\n \\n {{country.name | translate}}\\n \\n \\n
\\n
\\n
\\n

{{skipManagerApprovalMessage | translate}}

\\n
\\n
\\n
\\n
\\n\\n\\n\\n
\\n\\n\\n\\n
\\n
\\n
\\n {{ \\\"Allow Multiple Roles\\\" | translate }}\\n
\\n
\\n {{ \\\"Customer Number Required\\\" | translate }}\\n
\\n
\\n {{ \\\"Skip Manager Approval\\\" | translate }}\\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ 1281:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'APPLICATION LIST' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n \\n \\n {{statusData.name | uppercase | translate}}\\n \\n \\n
\\n\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n \\n\\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{row['applicationName']}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n done\\n clear\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n done\\n clear\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n done\\n clear\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | uppercase | translate}}\\n {{row['status'] | uppercase | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1282:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\"\n\n/***/ }),\n\n/***/ 1283:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'Manager Assignment' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'Assign Manager' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n {{country.name | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{businessUnit.name}}\\n \\n \\n
\\n
\\n \\n

{{ 'Managers' | translate }}

\\n \\n \\n
\\n
\\n

{{ 'Applications' | translate }}

\\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1284:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\"\n\n/***/ }),\n\n/***/ 1285:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'ASSIGNMENT LIST' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n {{statusData.name | uppercase | translate}}\\n \\n \\n \\n \\n {{country.name | translate}}\\n \\n \\n \\n \\n {{businessUnit.name | translate}}\\n \\n \\n \\n \\n {{application.name | translate}}\\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n\\n
\\n\\n
\\n \\n\\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{row['Name']}}\\n \\n \\n \\n\\n \\n \\n {{'WPASS Id' | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['countryName'] | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['businessUnitName']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{'view' | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | uppercase | translate}}\\n {{row['status'] | uppercase | translate}}\\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1286:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'Manager Assignment' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'View Manager' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{managerDetails.firstName}}

\\n
\\n \\n
\\n \\n

{{managerDetails.userId_WPASS}}

\\n
\\n
\\n \\n

{{managerDetails.email}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n

{{managerDetails.countryName | translate}}

\\n
\\n
\\n \\n

{{managerDetails.businessUnitName}}

\\n
\\n
\\n \\n

{{managerDetails.createdAt}}

\\n
\\n
\\n \\n

{{ 'Managers' | translate }}

\\n \\n \\n
\\n
\\n

{{ 'Applications' | translate }}

\\n \\n \\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1287:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'System Settings' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'WPASS Information' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n Please enter valid url\\n
\\n
\\n
\\n \\n \\n \\n
\\n\\n
\\n {{ 'Change Password' | translate }} \\n
\\n\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n info\\n
    \\n
  • {{ 'pass_8_chars' | translate }}
  • \\n
  • {{ 'pass_one_upper_lower_char' | translate }}
  • \\n
  • {{ 'pass_one_number' | translate }}
  • \\n
\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n \\n \\n \\n
\\n {{ 'Password Mismatch' | translate }}\\n
\\n
\\n\\n
\\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1288:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n

{{ 'translation_email' | translate | uppercase }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n\\n
\\n
\\n \\n {{languageData.name}}\\n \\n \\n
\\n
\\n\\n \\n
\\n
\\n
\\n\\n
\\n\\n
\\n\\n \\n
\\n
\\n
\\n
\\n
\\n
{{ 'choose_subject' | translate }}
\\n
\\n
\\n
\\n
\\n
\\n \\n
{{i.text}}
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n\\n
\\n
{{ 'email_subject' | translate }}
\\n \\n \\n
\\n \\n
\\n \\n
{{ 'email_body' | translate }}
\\n \\n \\n
\\n
\\n
\\n \\n \\n
\\n \\n
\\n \\n
\"\n\n/***/ }),\n\n/***/ 1289:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'translation_messages' | translate | uppercase }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n {{languageData.name}}\\n \\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n \\n\\n \\n\\n\\n\\n \\n \\n {{column.name}}\\n \\n \\n {{row['english']}}\\n \\n \\n\\n \\n \\n {{column.name}}\\n \\n \\n\\n \\n \\n \\n \\n \\n {{column.name | translate}}\\n \\n \\n\\n \\n\\n \\n \\n\\n \\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1290:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
\\n
\\n
\\n
\\n
\\n

{{'unlock_account' | translate}}

\\n
\\n
\\n
\\n
\\n \\n perm_identity\\n \\n \\n
\\n

\\n {{'after_unlock_account_confirm' | translate}}\\n

\\n\\n
\\n \\n
\\n
\\n\\n \\n
\\n\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1291:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n

{{ 'user_activity' | translate | uppercase }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n
\\n \\n \\n \\n\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n {{column.name}}\\n \\n \\n {{row['username']}}\\n \\n \\n \\n \\n {{column.name}}\\n \\n \\n {{row['wpassId']}}\\n \\n \\n \\n \\n {{column.name}}\\n \\n \\n {{row['createdAt']}}\\n \\n \\n \\n \\n {{column.name}}\\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1292:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'Request Application' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'NEW APPLICATION' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n {{businessUnit.name}}\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1293:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'my_requests' | translate | uppercase }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n \\n \\n {{application.name}}\\n \\n \\n
\\n
\\n \\n \\n \\n \\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n\\n 0\\\">\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{'Application Name' | translate }}{{'Business Unit' | translate }}{{'Customer Number' | translate }}{{'Status' | translate }}{{'Role' | translate }}
{{i + 1}}\\n near_me \\n {{appData.applicationName}}\\n {{appData.businessUnitName}}{{appData.customerNumber}}{{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.selectedRoleNames}}
\\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1294:\n/***/ (function(module, exports) {\n\nmodule.exports = \"\"\n\n/***/ }),\n\n/***/ 1295:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n

{{ 'Request Business Unit' | translate }}

\\n
\\n
\\n \\n \\n \\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'View Business Unit' | translate }}

\\n
\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n

{{businessUnitDetails.countryName}}

\\n
\\n
\\n \\n

{{businessUnitDetails.businessUnitName}}

\\n
\\n
\\n \\n

{{businessUnitDetails.customerNumber}}

\\n
\\n
\\n \\n

{{businessUnitDetails.status}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Applications Information' | translate }}

\\n\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#Application NameApplication StatusRejection Message
{{i + 1}}{{application.applicationName}}{{application.status | lowercase | translate}}\\n {{application.status | lowercase | translate}}\\n {{application.status | lowercase | translate}}\\n {{application.message}}
\\n
\\n
\\n\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1296:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n \\n\\n

visibility

\\n

visibility_off

\\n\\n
\\n info\\n
\\n
    \\n
  • {{ 'pass_8_chars' | translate }}
  • \\n
  • {{ 'pass_one_upper_lower_char' | translate }}
  • \\n
  • {{ 'pass_one_number' | translate }}
  • \\n
  • {{ 'pass_no_userId' | translate }}
  • \\n
\\n
\\n
\\n
\\n {{ passwordErrorMsg | translate }}\\n
\\n
\\n
\\n\\n
\\n
\\n \\n \\n \\n
\\n {{ 'Password Mismatch' | translate }}\\n
\\n
\\n
\\n \\n \\n {{languageId.name}}\\n \\n \\n
\\n
\\n
\\n\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1297:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
{{ 'Manage User' | translate }}
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n
\\n

{{ 'Add User' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1298:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n\\n
\\n

{{ 'Change Email Address' | translate }}?

\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n {{ 'Email Id Mismatch' | translate }}\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1299:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n {{ 'WPASS Id' | translate }}: {{userId}}\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n
\\n

{{ 'User Information' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1300:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{ApplicationsRequestData.userName}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.userEmail}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.countryName | translate}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n

{{ApplicationsRequestData.businessUnitName}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.customerNumber}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.status | lowercase | translate}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.userId_WPASS}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Applications Information' | translate }}

\\n
\\n \\n

{{ApplicationsRequestData.applicationName}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.approverName}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.createdAt}}

\\n
\\n
\\n \\n
\\n

{{ApplicationsRequestData.message}}

\\n
\\n
\\n
\\n

\\n {{ 'BU manager suggested partner Type:' | translate }} {{ApplicationsRequestData.partnerType}}\\n

\\n \\n \\n
\\n
\\n\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1301:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{formData.firstName}}

\\n
\\n
\\n \\n

{{formData.lastName}}

\\n
\\n
\\n \\n

\\n {{formData.email}}  \\n \\n   \\n
\\n \\n \\n check_circle  \\n highlight_off\\n \\n\\n

\\n
\\n
\\n \\n

{{formData.languageName}}

\\n
\\n
\\n \\n

{{formData.countryName | translate}}

\\n
\\n
\\n \\n

{{formData.roleName}}

\\n
\\n
\\n \\n

{{formData.status | lowercase | translate}}

\\n
\\n
\\n \\n

{{formData.userId_WPASS}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n\\n
\\n \\n

{{formData.createdAt}}

\\n
\\n
\\n \\n

{{formData.wpassCreatedAt}}

\\n
\\n
\\n \\n
\\n
\\n \\n

{{formData.companyName}}

\\n
\\n
\\n \\n

{{formData.companyPhone}}

\\n
\\n
\\n \\n

{{formData.companyAddress}}

\\n
\\n
\\n\\n
\\n
\\n

{{ 'Business Unit Information' | translate }}

\\n\\n
\\n
\\n 0\\\">\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{'Application Name' | translate }}{{'Business Unit' | translate }}\\n
\\n {{'Customer Number' | translate }} \\n \\n
\\n
{{'Status' | translate }}{{'Role' | translate }}
{{i + 1}}\\n near_me \\n {{appData.applicationName}}\\n {{appData.businessUnitName}}\\n {{appData.customerNumber}}\\n \\n   \\n \\n \\n check_circle  \\n highlight_off\\n \\n {{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.selectedRoleNames}}
\\n
\\n
\\n
\\n\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 1302:\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{formData.firstName}}

\\n
\\n
\\n \\n

{{formData.lastName}}

\\n
\\n
\\n \\n

{{formData.email}}

\\n
\\n
\\n \\n

{{formData.languageName}}

\\n
\\n
\\n \\n

{{formData.status}}

\\n
\\n
\\n \\n

{{formData.roleName}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n\\n
\\n \\n

{{formData.userId_WPASS}}

\\n
\\n
\\n \\n

{{formData.createdAt}}

\\n
\\n
\\n \\n

{{formData.wpassCreatedAt}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Business Unit Information' | translate }}

\\n\\n
\\n
\\n 0\\\">\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{'Application Name' | translate }}{{'Business Unit' | translate }}{{'Customer Number' | translate }}{{'Status' | translate }}{{'Role' | translate }}
{{i + 1}}\\n near_me \\n {{appData.applicationName}}\\n {{appData.businessUnitName}}{{appData.customerNumber}}{{appData.status}}\\n {{appData.status}}\\n {{appData.status}}\\n {{appData.selectedRoleNames}}
\\n
\\n
\\n\\n \\n
\\n\\n
\\n\\n
\\n
\"\n\n/***/ }),\n\n/***/ 132:\n/***/ (function(module, exports) {\n\nmodule.exports = \".datePicker {\\n float: left;\\n width: 30%; }\\n\\n::ng-deep .custom-field-class ng2-input-autocomplete {\\n overflow-wrap: break-word; }\\n\\n::ng-deep .custom-textfield-class ng2-input-autocomplete {\\n overflow-wrap: break-word; }\\n\\n::ng-deep .custom-md-table * {\\n height: auto !important; }\\n\\n::ng-deep .custom-md-table datatable-body-row {\\n height: auto !important; }\\n\\n::ng-deep .custom-md-table .datatable-body-cell {\\n white-space: normal !important;\\n overflow: visible !important;\\n height: auto !important;\\n line-height: 1.3 !important; }\\n\\n::ng-deep .custom-md-table .datatable-body-cell-label span {\\n white-space: normal !important;\\n overflow: visible !important; }\\n\\n::ng-deep .autocomplete ::-webkit-input-placeholder {\\n color: transparent; }\\n\\n::ng-deep .margin-tag {\\n margin-top: 15px; }\\n\\n::ng-deep .filter-select {\\n float: left;\\n margin-top: -16px !important;\\n margin-bottom: 19px; }\\n\\n::ng-deep textarea {\\n resize: none; }\\n\\n::ng-deep .f-s-18 {\\n font-size: 18px; }\\n\\n::ng-deep .m-l-20 {\\n margin-left: 21px; }\\n\\n/*Vertical Tabs*/\\n.mdl-tabs__panel {\\n display: none; }\\n\\n.vertical-mdl-tabs .mdl-tabs__tab-bar {\\n -ms-flex-direction: column;\\n flex-direction: column;\\n height: inherit;\\n border-bottom: none; }\\n\\n.vertical-mdl-tabs .mdl-tabs__tab {\\n width: 100%;\\n height: auto;\\n line-height: 20px;\\n box-sizing: border-box;\\n letter-spacing: 0px;\\n overflow: visible !important;\\n border-bottom: 1px solid #b9c7d2;\\n padding: 8px;\\n cursor: pointer; }\\n\\n.md-pad {\\n padding-left: 5px; }\\n\\n.containerEditor {\\n background-color: #fff;\\n padding: 0px; }\\n\\n.vertical-mdl-tabs .mdl-tabs__tab:hover {\\n background: rgba(158, 158, 158, 0.34);\\n color: black; }\\n\\n.left-css {\\n background-color: #2d3440 !important;\\n color: #fbfafa !important;\\n border-radius: 4px !important; }\\n\\n.style1 {\\n background-color: #49b1ef;\\n border-top-right-radius: 50px;\\n border-bottom-right-radius: 50px;\\n width: 100%;\\n height: auto;\\n line-height: 20px;\\n box-sizing: border-box;\\n letter-spacing: 0px;\\n overflow: visible !important;\\n border-bottom: 0px solid #b9c7d2;\\n padding: 8px;\\n cursor: pointer; }\\n\\n.style2 {\\n width: 100%;\\n height: auto;\\n line-height: 20px;\\n box-sizing: border-box;\\n letter-spacing: 0px;\\n overflow: visible !important;\\n border-bottom: 1px solid #b9c7d2;\\n padding: 8px;\\n cursor: pointer;\\n background: #d4dee9d6 !important; }\\n\\n.vertical-mdl-tabs.mdl-tabs.is-upgraded a.mdl-tabs__tab.is-active:active {\\n border-right: 3px solid #ED462F; }\\n\\n.vertical-mdl-tabs.mdl-tabs.is-upgraded .mdl-tabs__tab.is-active:after {\\n content: inherit;\\n height: 0; }\\n\\n.vertical-mdl-tabs.mdl-tabs.is-upgraded .mdl-tabs__panel.is-active, .mdl-tabs__panel {\\n padding: 0 30px; }\\n\\n.vertical-mdl-tabs.mdl-tabs .mdl-tabs__tab {\\n text-align: left; }\\n\\n.text-center {\\n text-align: center; }\\n\\n.mdl-tabs.is-upgraded .mdl-tabs__tab.is-active {\\n color: #E21549; }\\n\\n.ckeEditor-1 {\\n width: 100%;\\n margin-bottom: 15px; }\\n\\n.ckeEditor-2 {\\n width: 100%;\\n margin-bottom: 15px; }\\n\\n.p-l-16 {\\n padding-left: 16px; }\\n\\n.m-0 {\\n margin: 0px !important; }\\n\\n.m-l.40 {\\n margin-left: -40px; }\\n\\n::ng-deep .custom-field-class input {\\n height: 35px !important;\\n border-radius: 3px !important;\\n border: 1px solid #ccc !important;\\n padding: 10px;\\n width: 100%;\\n max-width: 174px; }\\n\\n::ng-deep .custom-textfield-class input {\\n height: 35px !important;\\n border-radius: 3px !important;\\n border: 1px solid #ccc !important;\\n padding: 10px;\\n width: 100%; }\\n\\n::ng-deep .data-loading + ng2-input-autocomplete .autocomplete input {\\n background-color: #ffffff;\\n background-image: url(\\\"../assets/images/autocomplete-loader.gif\\\");\\n background-size: 18px 18px;\\n background-position: 96% 50%;\\n background-repeat: no-repeat; }\\n\\n::ng-deep .Data-Search + ng2-input-autocomplete .autocomplete ul {\\n height: 200px !important;\\n padding: 10px !important;\\n overflow-y: auto; }\\n\\n::ng-deep .Data-Search + ng2-input-autocomplete .autocomplete ul li {\\n cursor: pointer !important;\\n border-bottom: 0.5px solid #d4d4d4 !important; }\\n\\n::ng-deep .table-filter-box {\\n display: -ms-flexbox;\\n display: flex;\\n position: relative;\\n width: 100%;\\n -ms-flex-direction: row;\\n flex-direction: row;\\n -ms-flex-flow: wrap;\\n flex-flow: wrap; }\\n ::ng-deep .table-filter-box > .datepicker-custom {\\n min-width: 180px;\\n max-width: 100%; }\\n ::ng-deep .table-filter-box > .datepicker-custom button {\\n height: 90%; }\\n ::ng-deep .table-filter-box > div {\\n margin-right: 15px;\\n margin-bottom: 10px; }\\n ::ng-deep .table-filter-box > div:last-child {\\n margin-right: auto !important; }\\n\\n@media (max-width: 767px) {\\n ::ng-deep .action-btn-group {\\n display: -ms-flexbox;\\n display: flex;\\n -ms-flex-flow: wrap;\\n flex-flow: wrap;\\n -ms-flex-direction: row;\\n flex-direction: row; }\\n ::ng-deep .action-btn-group > .action-btn {\\n width: auto !important;\\n margin-bottom: 10px; }\\n ::ng-deep .table-filter-box {\\n -ms-flex-direction: column !important;\\n flex-direction: column !important; }\\n ::ng-deep .table-filter-box > div {\\n width: 100%; }\\n ::ng-deep .table-filter-box input {\\n width: 100% !important;\\n margin-bottom: 10px !important; } }\\n\"\n\n/***/ }),\n\n/***/ 148:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ActivateDeactivateModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__activate_deactivate_request_activate_deactivate_component__ = __webpack_require__(743);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 22/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ActivateDeactivateModule = (function () {\r\n function ActivateDeactivateModule() {\r\n }\r\n ActivateDeactivateModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_2__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_2__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_3__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_6__activate_deactivate_request_activate_deactivate_component__[\"a\" /* ActivateDeactivateComponent */]\r\n ],\r\n exports: [\r\n __WEBPACK_IMPORTED_MODULE_6__activate_deactivate_request_activate_deactivate_component__[\"a\" /* ActivateDeactivateComponent */],\r\n ]\r\n })\r\n ], ActivateDeactivateModule);\r\n return ActivateDeactivateModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 15:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return HttpService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(177);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch__ = __webpack_require__(248);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__error_handler_service__ = __webpack_require__(92);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rxjs_Rx__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rxjs_Rx___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_rxjs_Rx__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__loader_loader_service__ = __webpack_require__(196);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__shared_services_common_service__ = __webpack_require__(24);\n/**\r\n * Created by shubham on 27/2/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar HttpService = (function () {\r\n function HttpService(http, router, LoaderService, dialog, sessionHandler, errorHandler, translate, commonService) {\r\n this.http = http;\r\n this.router = router;\r\n this.LoaderService = LoaderService;\r\n this.dialog = dialog;\r\n this.sessionHandler = sessionHandler;\r\n this.errorHandler = errorHandler;\r\n this.translate = translate;\r\n this.commonService = commonService;\r\n this.url = __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].URL + \"/_ah/api\";\r\n this.headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__[\"c\" /* Headers */]({ 'Content-Type': 'application/json', 'apiKey': '' });\r\n }\r\n HttpService.prototype.getRequestWithoutAuth = function (url, showLoader) {\r\n var _this = this;\r\n if (showLoader) {\r\n this.showLoader();\r\n }\r\n var headers;\r\n headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__[\"c\" /* Headers */]({ 'Content-Type': 'application/json', 'apiKey': __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].apiKey });\r\n return this.http.get(this.url + \"/\" + url, { headers: headers })\r\n .map(function (res) { return _this.errorCheckFunction(res.json(), url); })\r\n .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_8_rxjs_Rx__[\"Observable\"].throw(_this.handleError(error.json(), url)); });\r\n };\r\n HttpService.prototype.getRequestWithoutLoader = function (url) {\r\n var _this = this;\r\n this.sessionHandler.saveItem(\"timestamp\", Math.round(new Date().getTime() / 1000.0));\r\n var loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\r\n var headers;\r\n var accessToken;\r\n if (loginDataArray) {\r\n accessToken = loginDataArray['accessToken'];\r\n }\r\n headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__[\"c\" /* Headers */]({ 'Content-Type': 'application/json', 'apiKey': __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].apiKey, 'access-token': accessToken });\r\n return this.http.get(this.url + \"/\" + url, { headers: headers })\r\n .map(function (res) { return _this.errorCheckFunction(res.json(), url); })\r\n .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_8_rxjs_Rx__[\"Observable\"].throw(_this.handleError(error.json(), url)); });\r\n };\r\n HttpService.prototype.getRequest = function (url) {\r\n var _this = this;\r\n this.sessionHandler.saveItem(\"timestamp\", Math.round(new Date().getTime() / 1000.0));\r\n this.showLoader();\r\n var loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\r\n var headers;\r\n var accessToken;\r\n if (loginDataArray) {\r\n accessToken = loginDataArray['accessToken'];\r\n }\r\n headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__[\"c\" /* Headers */]({ 'Content-Type': 'application/json', 'apiKey': __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].apiKey, 'access-token': accessToken });\r\n return this.http.get(this.url + \"/\" + url, { headers: headers })\r\n .map(function (res) { return _this.errorCheckFunction(res.json(), url); })\r\n .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_8_rxjs_Rx__[\"Observable\"].throw(_this.handleError(error.json(), url)); });\r\n };\r\n HttpService.prototype.getRequestForAutocomplete = function (url) {\r\n var _this = this;\r\n this.sessionHandler.saveItem(\"timestamp\", Math.round(new Date().getTime() / 1000.0));\r\n var loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\r\n var accessToken;\r\n var headers;\r\n if (loginDataArray) {\r\n accessToken = loginDataArray['accessToken'];\r\n }\r\n headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__[\"c\" /* Headers */]({ 'Content-Type': 'application/json', 'apiKey': __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].apiKey, 'access-token': accessToken });\r\n return this.http.get(this.url + \"/\" + url, { headers: headers })\r\n .map(function (res) { return _this.errorCheckFunction(res.json(), url); })\r\n .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_8_rxjs_Rx__[\"Observable\"].throw(_this.handleError(error.json(), url)); });\r\n };\r\n HttpService.prototype.postRequest = function (body, api) {\r\n var _this = this;\r\n this.sessionHandler.saveItem(\"timestamp\", Math.round(new Date().getTime() / 1000.0));\r\n this.showLoader();\r\n var loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\r\n var accessToken;\r\n var headers;\r\n if (loginDataArray) {\r\n accessToken = loginDataArray['accessToken'];\r\n }\r\n var bodyString = JSON.stringify(body);\r\n if (api == 'userOperationsApi/v1/wpasslogin' || api == 'userOperationsApi/v1/googleLogin' || api == 'userRegistrationsApi/v1/register/serviceOwner') {\r\n headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__[\"c\" /* Headers */]({ 'Content-Type': 'application/json', 'apiKey': __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].apiKey });\r\n }\r\n else {\r\n headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__[\"c\" /* Headers */]({ 'Content-Type': 'application/json', 'apiKey': __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].apiKey, 'access-token': accessToken });\r\n }\r\n var options = new __WEBPACK_IMPORTED_MODULE_2__angular_http__[\"d\" /* RequestOptions */]({ headers: headers });\r\n return this.http.post(this.url + \"/\" + api, body, options)\r\n .map(function (res) { return _this.errorCheckFunction(res.json(), api); })\r\n .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_8_rxjs_Rx__[\"Observable\"].throw(_this.handleError(error.json(), api)); });\r\n };\r\n HttpService.prototype.noUserError = function () {\r\n localStorage.clear();\r\n //this.commonService.setLoginRedirectUrl(window.location.hash);\r\n this.router.navigateByUrl('/login');\r\n this.onEnd();\r\n };\r\n HttpService.prototype.onEnd = function () {\r\n this.hideLoader();\r\n };\r\n HttpService.prototype.showLoader = function () {\r\n this.LoaderService.show();\r\n };\r\n HttpService.prototype.hideLoader = function () {\r\n this.LoaderService.hide();\r\n };\r\n HttpService.prototype.handleError = function (e, api) {\r\n var _this = this;\r\n var errorJson = e;\r\n if (errorJson.error && (api == 'userOperationsApi/v1/googleLogin' || api == 'userOperationsApi/v1/wpasslogin')) {\r\n var msg = errorJson.error.message;\r\n this.translate.get(msg).subscribe(function (res) {\r\n alert(res);\r\n });\r\n /*this.dialogRef = this.dialog.open(DialogComponent);\r\n this.dialogRef.componentInstance.msg = errorJson.error.message;*/\r\n }\r\n else if (errorJson.error && (api != 'userOperationsApi/v1/googleLogin' && api != 'userOperationsApi/v1/wpasslogin')) {\r\n if (errorJson.error.code != 400 && errorJson.error.code != 412 && errorJson.error.code != 503) {\r\n this.errorHandler.handle(errorJson);\r\n }\r\n else if (errorJson.error.code == 412 || errorJson.error.code == 503) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_11__dialog_dialog_component__[\"a\" /* DialogComponent */], { disableClose: true });\r\n this.dialogRef.componentInstance.msg = \"Something_went_wrong\";\r\n }\r\n else {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_11__dialog_dialog_component__[\"a\" /* DialogComponent */], { disableClose: true });\r\n this.dialogRef.componentInstance.msg = errorJson.error.message;\r\n if (errorJson.error.message == 'INVITATION_USED') {\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n _this.router.navigateByUrl('/login');\r\n });\r\n }\r\n }\r\n }\r\n this.hideLoader();\r\n return false;\r\n };\r\n HttpService.prototype.errorCheckFunction = function (jsonResult, api) {\r\n return jsonResult;\r\n };\r\n HttpService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_http__[\"b\" /* Http */], __WEBPACK_IMPORTED_MODULE_12__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_10__loader_loader_service__[\"a\" /* LoaderService */], __WEBPACK_IMPORTED_MODULE_9__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_6__error_handler_service__[\"a\" /* ErrorHandler */], __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"d\" /* TranslateService */], __WEBPACK_IMPORTED_MODULE_14__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], HttpService);\r\n return HttpService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 16:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return SessionHandler; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/**\r\n * Created by shubham on 27/2/18.\r\n */\r\n\r\n\r\nvar SessionHandler = (function () {\r\n function SessionHandler() {\r\n }\r\n SessionHandler.prototype.saveItem = function (key, value) {\r\n localStorage.setItem(key, value);\r\n };\r\n SessionHandler.prototype.getItem = function (key) {\r\n ;\r\n return localStorage.getItem(key);\r\n };\r\n SessionHandler.prototype.removeItem = function (key) {\r\n localStorage.removeItem(key);\r\n };\r\n SessionHandler.prototype.clearAllItems = function () {\r\n localStorage.clear();\r\n };\r\n SessionHandler.prototype.setRedirectionUrl = function (prevUrl) {\r\n this.prevUrl = prevUrl;\r\n };\r\n SessionHandler.prototype.getRedirectionUrl = function () {\r\n return this.prevUrl;\r\n };\r\n SessionHandler = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], SessionHandler);\r\n return SessionHandler;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 195:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return LayoutComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n\r\n\r\nvar LayoutComponent = (function () {\r\n function LayoutComponent() {\r\n }\r\n LayoutComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'my-app-layout',\r\n template: __webpack_require__(1264),\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], LayoutComponent);\r\n return LayoutComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 196:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return LoaderService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__ = __webpack_require__(31);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__);\n/**\r\n * Created by shubham on 27/2/18.\r\n */\r\n\r\n\r\n\r\nvar LoaderService = (function () {\r\n function LoaderService() {\r\n this.loaderSubject = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.loaderState = this.loaderSubject.asObservable();\r\n }\r\n LoaderService.prototype.show = function () {\r\n this.loaderSubject.next({ show: true });\r\n };\r\n LoaderService.prototype.hide = function () {\r\n this.loaderSubject.next({ show: false });\r\n };\r\n LoaderService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], LoaderService);\r\n return LoaderService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 197:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ProfileComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return EmailPasswordActionDialogComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 20/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ProfileComponent = (function () {\r\n function ProfileComponent(dialog, httpService, sessionHandler, formBuilder, translate) {\r\n this.dialog = dialog;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.formBuilder = formBuilder;\r\n this.translate = translate;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isApplicationManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.businessUnitsFlag = false;\r\n this.businessUnitWithApplicationAndRoles = [];\r\n this.businessUnitWithAppRolesProfile = [];\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_4__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_4__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_4__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n this.isApplicationManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_4__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_4__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_4__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_4__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n //Close Sidebar Initially\r\n __WEBPACK_IMPORTED_MODULE_4__config__[\"a\" /* APPCONFIG */].navCollapsed = true;\r\n this.getLanguages();\r\n if (this.isSystemAdmin || this.isBUManager || this.isRegionalAdmin || this.isApplicationManager) {\r\n if (this.isSystemAdmin) {\r\n this.flag = 'systemAdmin';\r\n }\r\n if (this.isBUManager || this.isRegionalAdmin) {\r\n this.flag = 'buManager';\r\n }\r\n if (this.isApplicationManager) {\r\n this.flag = 'applicationManager';\r\n }\r\n this.profileData = this.userDetails;\r\n if (this.profileData.languageId) {\r\n this.setLanguage(this.profileData.languageId);\r\n }\r\n }\r\n this.checkNotAdminRole(false, true);\r\n }\r\n ProfileComponent.prototype.checkNotAdminRole = function (langFlag, getDataFlag) {\r\n if (this.isServiceOwner || this.isTradePartner) {\r\n this.flag = 'partners';\r\n if (getDataFlag) {\r\n this.getPartnersProfileData(langFlag);\r\n }\r\n }\r\n if (this.isSubUser) {\r\n this.flag = 'subUsers';\r\n if (getDataFlag) {\r\n this.getSubUsersProfileData(langFlag);\r\n }\r\n }\r\n };\r\n //Get Languages Details\r\n ProfileComponent.prototype.getLanguages = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(function (res) { _this.saveLanguageResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n //Save Languages Response\r\n ProfileComponent.prototype.saveLanguageResponse = function (res) {\r\n if (res && res.items) {\r\n this.LanguageData = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n ProfileComponent.prototype.getPartnersProfileData = function (langFlag) {\r\n var _this = this;\r\n this.httpService.getRequest('partnerOperationsApi/v1/partnerDetails').subscribe(function (res) { _this.savePartnersProfileData(res, langFlag); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ProfileComponent.prototype.savePartnersProfileData = function (res, langFlag) {\r\n if (res) {\r\n this.profileData = res;\r\n if (this.profileData) {\r\n if (this.profileData.businessUnits) {\r\n this.businessUnitsFlag = true;\r\n }\r\n if (this.profileData.languageId) {\r\n this.setLanguage(this.profileData.languageId);\r\n }\r\n if (this.profileData.businessUnitWithApplicationAndRoles) {\r\n this.businessUnitWithApplicationAndRoles = this.profileData.businessUnitWithApplicationAndRoles;\r\n for (var businessUnit in this.businessUnitWithApplicationAndRoles) {\r\n for (var appAndRoles in this.businessUnitWithApplicationAndRoles[businessUnit]['applications']) {\r\n var temp = [];\r\n temp['businessUnitName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitName'];\r\n temp['customerNumber'] = this.businessUnitWithApplicationAndRoles[businessUnit]['customerNumber'];\r\n temp['applicationName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationName'];\r\n temp['selectedRoleNames'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['selectedRoleNames'];\r\n temp['url'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['url'];\r\n var actionObject = {};\r\n if (this.businessUnitWithApplicationAndRoles[businessUnit]['statusCode'] != 'APPROVED') {\r\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit];\r\n }\r\n else {\r\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles];\r\n }\r\n temp['statusCode'] = actionObject['statusCode'];\r\n temp['status'] = actionObject['status'];\r\n temp['message'] = actionObject['message'];\r\n this.businessUnitWithAppRolesProfile.push(temp);\r\n }\r\n }\r\n }\r\n /*if(this.profileData.businessUnitWithApplicationAndRoles){\r\n this.businessUnitWithApplicationAndRoles = this.profileData.businessUnitWithApplicationAndRoles;\r\n\n for(let appIndex in this.businessUnitWithApplicationAndRoles){\r\n if(!this.businessUnitWithApplicationAndRoles[appIndex]['message']){\r\n this.businessUnitWithApplicationAndRoles[appIndex]['message'] = \"\";\r\n }\r\n }\r\n }*/\r\n }\r\n if (langFlag) {\r\n this.setAppLanguage();\r\n }\r\n this.httpService.onEnd();\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_load_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ProfileComponent.prototype.getSubUsersProfileData = function (langFlag) {\r\n var _this = this;\r\n this.httpService.getRequest('partnerOperationsApi/v1/companyUser').subscribe(function (res) { _this.saveSubUsersProfileData(res, langFlag); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ProfileComponent.prototype.saveSubUsersProfileData = function (res, langFlag) {\r\n if (res) {\r\n this.profileData = res;\r\n if (this.profileData) {\r\n if (this.profileData.businessUnits) {\r\n this.businessUnitsFlag = true;\r\n }\r\n if (this.profileData.languageId) {\r\n this.setLanguage(this.profileData.languageId);\r\n }\r\n }\r\n if (langFlag) {\r\n this.setAppLanguage();\r\n }\r\n this.httpService.onEnd();\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_load_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ProfileComponent.prototype.setLanguage = function (languageId) {\r\n this.responseLanguageId = languageId;\r\n this.buildForm();\r\n };\r\n ProfileComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ProfileForm = this.formBuilder.group({\r\n languageId: this.formBuilder.control(this.responseLanguageId, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required])\r\n });\r\n this.ProfileForm.valueChanges.subscribe(function (data) {\r\n _this.ProfileFormDetails = _this.ProfileForm.getRawValue();\r\n });\r\n };\r\n ProfileComponent.prototype.onLanguageChange = function (value) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'lang_update_confirm';\r\n this.dialogRef.componentInstance.isConfirm = true;\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n _this.httpService.postRequest(_this.ProfileFormDetails, 'userOperationsApi/v1/languageUpdate').subscribe(function (res) { _this.saveLnaguageChangeResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n else {\r\n _this.ProfileForm.controls['languageId'].setValue(_this.responseLanguageId);\r\n }\r\n });\r\n };\r\n ProfileComponent.prototype.saveLnaguageChangeResponse = function (res) {\r\n this.httpService.onEnd();\r\n if (res) {\r\n this.profileData = res;\r\n this.setLanguage(this.profileData.languageId);\r\n this.sessionHandler.saveItem(\"loginData\", JSON.stringify(res));\r\n this.setAppLanguage();\r\n if (this.isServiceOwner || this.isTradePartner || this.isSubUser) {\r\n this.checkNotAdminRole(true, false);\r\n }\r\n }\r\n };\r\n ProfileComponent.prototype.setAppLanguage = function () {\r\n this.sessionHandler.saveItem(\"languageId\", this.profileData.languageId);\r\n this.translate.setDefaultLang(this.profileData.languageId);\r\n this.translate.use(this.profileData.languageId);\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"lang_update_success\";\r\n };\r\n ProfileComponent.prototype.performAction = function (action) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(EmailPasswordActionDialogComponent);\r\n this.dialogRef.componentInstance.action = action;\r\n this.dialogRef.componentInstance.currentEmailAddress = this.profileData.email;\r\n this.dialogRef.componentInstance.userId = this.userDetails.id;\r\n this.dialogRef.componentInstance.userDetails = this.userDetails;\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n _this.data = result;\r\n });\r\n };\r\n ProfileComponent.prototype.setProfileAction = function (action, profileFormData) {\r\n var _this = this;\r\n this.dialog.closeAll();\r\n if (action == 'changeEmail') {\r\n this.httpService.postRequest(profileFormData, 'userOperationsApi/v1/selfEmailUpdate').subscribe(function (res) { _this.saveResponse(res, 'changeEmail'); }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n else if (action == 'changePassword') {\r\n this.httpService.postRequest(profileFormData, 'userOperationsApi/v1/changePassword').subscribe(function (res) { _this.saveResponse(res, 'changePassword'); }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n };\r\n ProfileComponent.prototype.saveResponse = function (res, action) {\r\n this.httpService.onEnd();\r\n if (res) {\r\n if (action == 'changePassword') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'Password updated successfully';\r\n }\r\n else if (action == 'changeEmail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'account_update_request_notify';\r\n }\r\n }\r\n };\r\n ProfileComponent.prototype.showApplicationsWithRoles = function (apps) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"k\" /* ShowApplicationsDialogComponent */]);\r\n for (var appIndex in apps) {\r\n if (!apps[appIndex]['message']) {\r\n apps[appIndex]['message'] = \"\";\r\n }\r\n }\r\n this.dialogRef.componentInstance.apps = apps;\r\n this.dialogRef.componentInstance.profileFlag = true;\r\n };\r\n ProfileComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n ProfileComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'my-profile',\r\n styles: [],\r\n template: __webpack_require__(1274),\r\n providers: []\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_5__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_2__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_8_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ProfileComponent);\r\n return ProfileComponent;\r\n}());\r\n\r\nvar EmailPasswordActionDialogComponent = (function () {\r\n function EmailPasswordActionDialogComponent(dialog, dialogRef, formBuilder, profileComponent) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.formBuilder = formBuilder;\r\n this.profileComponent = profileComponent;\r\n this.emailPattern = __WEBPACK_IMPORTED_MODULE_4__config__[\"a\" /* APPCONFIG */].emailPattern;\r\n //passwordPattern = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$/;\r\n this.passwordPattern = /^(?=.*?[A-Za-z])(?=.*?[0-9]).{5,}$/;\r\n this.passwordErrorMsg = '';\r\n this.changeEmail = 'changeEmail';\r\n this.changePass = 'changePassword';\r\n }\r\n EmailPasswordActionDialogComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ProfileActionForm = this.formBuilder.group({\r\n emailGroup: this.formBuilder.group({\r\n currentEmailAddress: this.formBuilder.control({ value: this.currentEmailAddress, disabled: true }, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.emailPattern)]),\r\n email: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.emailPattern)]),\r\n confirmEmail: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.emailPattern)])\r\n }, { validator: this.checkEmail }),\r\n passwordGroup: this.formBuilder.group({\r\n currentPassword: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required]),\r\n password: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].minLength(8), __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].maxLength(8), __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.passwordPattern)]),\r\n confirmPassword: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.passwordPattern)])\r\n }, { validator: this.checkPassword })\r\n });\r\n this.ProfileActionForm.valueChanges.subscribe(function (data) {\r\n var profileDetails = _this.ProfileActionForm.getRawValue();\r\n _this.profileEmailDetails = profileDetails.emailGroup;\r\n _this.profileEmailDetails['id'] = _this.userId;\r\n _this.profilePasswordDetails = profileDetails.passwordGroup;\r\n });\r\n this.ProfileActionForm.get('passwordGroup').get('password').valueChanges.subscribe(function (data) {\r\n if (data != null && data != \"\") {\r\n _this.ProfileActionForm.get('passwordGroup').get('password').setErrors({ 'incorrect': true });\r\n if (!/.*[A-Z]/.test(data) || !/.*[a-z]/.test(data)) {\r\n _this.passwordErrorMsg = \"pass_one_upper_lower_char\";\r\n }\r\n else if (!/.*[0-9]/.test(data)) {\r\n _this.passwordErrorMsg = \"pass_one_number\";\r\n }\r\n else if (data.length != 8) {\r\n _this.passwordErrorMsg = \"pass_8_chars\";\r\n }\r\n else if (data.toLowerCase().includes(_this.userDetails.userId_WPASS.toLowerCase())) {\r\n _this.passwordErrorMsg = \"pass_no_userId\";\r\n }\r\n else {\r\n _this.passwordErrorMsg = \"\";\r\n _this.ProfileActionForm.get('passwordGroup').get('password').setErrors(null);\r\n }\r\n }\r\n });\r\n };\r\n EmailPasswordActionDialogComponent.prototype.checkEmail = function (group) {\r\n if (group.get('email').value === group.get('confirmEmail').value) {\r\n return null;\r\n }\r\n else {\r\n group.get('confirmEmail').setErrors({ 'incorrect': true });\r\n return { 'mismatch': true };\r\n }\r\n };\r\n EmailPasswordActionDialogComponent.prototype.checkPassword = function (group) {\r\n if (group.get('password').value === group.get('confirmPassword').value) {\r\n group.get('confirmPassword').setErrors(null);\r\n return null;\r\n }\r\n else {\r\n group.get('confirmPassword').setErrors({ 'incorrect': true });\r\n return { 'mismatch': true };\r\n }\r\n };\r\n EmailPasswordActionDialogComponent.prototype.showPassword = function (input) {\r\n input.type = input.type === 'password' ? 'text' : 'password';\r\n };\r\n EmailPasswordActionDialogComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n EmailPasswordActionDialogComponent.prototype.changeEmailAddress = function () {\r\n this.profileComponent.setProfileAction(this.changeEmail, this.profileEmailDetails);\r\n };\r\n EmailPasswordActionDialogComponent.prototype.changePassword = function () {\r\n this.profileComponent.setProfileAction(this.changePass, this.profilePasswordDetails);\r\n };\r\n EmailPasswordActionDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n EmailPasswordActionDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n providers: [ProfileComponent],\r\n template: __webpack_require__(1273)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_5__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__angular_material__[\"d\" /* MdDialogRef */], __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"h\" /* FormBuilder */], ProfileComponent])\r\n ], EmailPasswordActionDialogComponent);\r\n return EmailPasswordActionDialogComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 198:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return ViewRequestComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return EmailActionDialogComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 16/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ViewRequestComponent = (function () {\r\n function ViewRequestComponent(router, route, httpService, sessionHandler, dialog, commonService, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.commonService = commonService;\r\n this.translate = translate;\r\n this.data = [];\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isApplicationManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.showApproveReject = false;\r\n this.languageId = this.sessionHandler.getItem('languageId');\r\n if (!this.languageId) {\r\n this.languageId = \"EN\";\r\n }\r\n this.translate.use(this.languageId);\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n this.isApplicationManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.commonService.viewData.subscribe(function (value) {\r\n _this.data = value;\r\n if (_this.data) {\r\n if (_this.data.userId_WPASS) {\r\n _this.userId = _this.data.userId_WPASS;\r\n }\r\n else {\r\n _this.translate.get('pending').subscribe(function (res) {\r\n _this.userId = res;\r\n });\r\n }\r\n _this.id = _this.data.id;\r\n _this.ownerId = _this.data.ownerId;\r\n _this.userEmail = _this.data.email;\r\n }\r\n if (_this.isBUManager || _this.isRegionalAdmin || _this.isApplicationManager) {\r\n _this.commonService.viewDataFlag.subscribe(function (value) {\r\n if (value) {\r\n _this.dynamicViewText = value;\r\n if (_this.dynamicViewText == 'subUsersView') {\r\n _this.showApproveReject = false;\r\n }\r\n else if (_this.dynamicViewText == 'partnersView') {\r\n if (_this.data['businessUnitWithApplicationAndRoles']) {\r\n for (var _i = 0, _a = _this.data['businessUnitWithApplicationAndRoles']; _i < _a.length; _i++) {\r\n var businessUnit = _a[_i];\r\n if (businessUnit.statusCode == \"PENDING\" && businessUnit.sessionUserManager) {\r\n _this.showApproveReject = true;\r\n _this.data['businessUnitId'] = businessUnit.businessUnitId;\r\n break;\r\n }\r\n else {\r\n _this.showApproveReject = false;\r\n }\r\n }\r\n }\r\n else {\r\n _this.showApproveReject = false;\r\n }\r\n }\r\n else {\r\n _this.showApproveReject = false;\r\n }\r\n }\r\n });\r\n }\r\n else if (_this.isServiceOwner || _this.isTradePartner) { }\r\n });\r\n }\r\n ViewRequestComponent.prototype.performAction = function (action) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(EmailActionDialogComponent);\r\n this.dialogRef.componentInstance.action = action;\r\n this.dialogRef.componentInstance.currentEmailAddress = this.userEmail;\r\n this.dialogRef.componentInstance.userId = this.id;\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n _this.data = result;\r\n });\r\n };\r\n ViewRequestComponent.prototype.setProfileAction = function (action, profileFormData) {\r\n var _this = this;\r\n this.dialog.closeAll();\r\n if (action == 'changeEmail') {\r\n this.httpService.postRequest(profileFormData, 'userOperationsApi/v1/emailUpdate').subscribe(function (res) { _this.saveResponse(res, 'changeEmail'); }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n };\r\n ViewRequestComponent.prototype.saveResponse = function (res, action) {\r\n this.httpService.onEnd();\r\n if (res) {\r\n if (action == 'changePassword') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_9__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'Password updated successfully';\r\n }\r\n else if (action == 'changeEmail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_9__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'account_update_request_notify';\r\n }\r\n }\r\n };\r\n ViewRequestComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1299)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_10_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ViewRequestComponent);\r\n return ViewRequestComponent;\r\n}());\r\n\r\nvar EmailActionDialogComponent = (function () {\r\n function EmailActionDialogComponent(dialog, dialogRef, formBuilder, viewRequestComponent) {\r\n this.dialog = dialog;\r\n this.dialogRef = dialogRef;\r\n this.formBuilder = formBuilder;\r\n this.viewRequestComponent = viewRequestComponent;\r\n this.emailPattern = __WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].emailPattern;\r\n this.changeEmail = 'changeEmail';\r\n }\r\n EmailActionDialogComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.EmailActionForm = this.formBuilder.group({\r\n emailGroup: this.formBuilder.group({\r\n currentEmailAddress: this.formBuilder.control({ value: this.currentEmailAddress, disabled: true }, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.emailPattern)]),\r\n email: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.emailPattern)]),\r\n confirmEmail: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.emailPattern)])\r\n }, { validator: this.checkEmail })\r\n });\r\n this.EmailActionForm.valueChanges.subscribe(function (data) {\r\n var profileDetails = _this.EmailActionForm.getRawValue();\r\n _this.EmailDetails = profileDetails.emailGroup;\r\n _this.EmailDetails['id'] = _this.userId;\r\n });\r\n };\r\n EmailActionDialogComponent.prototype.checkEmail = function (group) {\r\n if (group.get('email').value === group.get('confirmEmail').value) {\r\n return null;\r\n }\r\n else {\r\n group.get('confirmEmail').setErrors({ 'incorrect': true });\r\n return { 'mismatch': true };\r\n }\r\n };\r\n EmailActionDialogComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n EmailActionDialogComponent.prototype.changeEmailAddress = function () {\r\n this.viewRequestComponent.setProfileAction(this.changeEmail, this.EmailDetails);\r\n };\r\n EmailActionDialogComponent.prototype.closeDialog = function () {\r\n this.dialog.closeAll();\r\n };\r\n EmailActionDialogComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n providers: [ViewRequestComponent],\r\n template: __webpack_require__(1298)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_5__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__angular_material__[\"d\" /* MdDialogRef */], __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"h\" /* FormBuilder */],\r\n ViewRequestComponent])\r\n ], EmailActionDialogComponent);\r\n return EmailActionDialogComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 24:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return CommonService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__ = __webpack_require__(31);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__);\n/**\r\n * Created by shubham on 27/2/18.\r\n */\r\n\r\n\r\n\r\nvar CommonService = (function () {\r\n function CommonService() {\r\n this.viewData = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.viewDataFlag = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.userData = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.adminDashboard = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.partnersDashboard = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.applicationDashboard = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.partnersView = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.subUsersView = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.adminList = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.managerList = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.applicationList = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n }\r\n CommonService.prototype.setLoginRedirectUrl = function (url) {\r\n this.loginRedirectUrl = url;\r\n };\r\n CommonService.prototype.getLoginRedirectUrl = function () {\r\n return this.loginRedirectUrl;\r\n };\r\n CommonService.prototype.changeViewData = function (data, flag) {\r\n this.viewData.next(data);\r\n this.viewDataFlag.next(flag);\r\n };\r\n CommonService.prototype.changeUserData = function (data) {\r\n this.userData.next(data);\r\n };\r\n CommonService.prototype.changeAdminDashboardData = function () {\r\n this.adminDashboard.next();\r\n };\r\n CommonService.prototype.changePartnersDashboardData = function () {\r\n this.partnersDashboard.next();\r\n };\r\n CommonService.prototype.changeApplicationDashboardData = function () {\r\n this.applicationDashboard.next();\r\n };\r\n CommonService.prototype.changePartnerViewData = function () {\r\n this.partnersView.next();\r\n };\r\n CommonService.prototype.changeSubUserViewData = function () {\r\n this.subUsersView.next();\r\n };\r\n CommonService.prototype.changeAdminListDashboardData = function () {\r\n this.adminList.next();\r\n };\r\n CommonService.prototype.changeManagerListDashboardData = function () {\r\n this.managerList.next();\r\n };\r\n CommonService.prototype.changeApplicationListDashboardData = function () {\r\n this.applicationList.next();\r\n };\r\n CommonService.prototype.contains = function (value, term, caseInsensitiveSearch) {\r\n if (!value)\r\n return false;\r\n if (!term)\r\n return false;\r\n if (caseInsensitiveSearch) {\r\n value = value.toLowerCase();\r\n term = term.toLowerCase();\r\n }\r\n return (value.indexOf(term) != -1);\r\n };\r\n CommonService.prototype.equals = function (value1, value2, caseInsensitiveMatch) {\r\n if (!value1)\r\n return false;\r\n if (!value2)\r\n return false;\r\n if (caseInsensitiveMatch) {\r\n value1 = value1.toLowerCase();\r\n value2 = value2.toLowerCase();\r\n }\r\n return (value1 == value2);\r\n };\r\n CommonService.prototype.stopPropagationCheckBox = function (event) {\r\n if (event.stopPropagation) {\r\n event.stopPropagation(); // Standard\r\n }\r\n else {\r\n event.cancelBubble = true; // Old IE\r\n }\r\n };\r\n CommonService.prototype.getChoosenFile = function (event, componentModal, componentKey) {\r\n var file = event.srcElement.files[0];\r\n var fileName = file.name;\r\n var reader = new FileReader();\r\n reader.onload = function () {\r\n componentModal[componentKey] = { name: fileName, data: reader.result };\r\n }.bind(componentModal);\r\n reader.readAsDataURL(file);\r\n };\r\n CommonService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], CommonService);\r\n return CommonService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 276:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return SharedModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__echarts_directive__ = __webpack_require__(777);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__slim_scroll_directive__ = __webpack_require__(778);\n\r\n\r\n\r\n\r\nvar SharedModule = (function () {\r\n function SharedModule() {\r\n }\r\n SharedModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_2__echarts_directive__[\"a\" /* EChartsDirective */],\r\n __WEBPACK_IMPORTED_MODULE_3__slim_scroll_directive__[\"a\" /* SlimScrollDirective */],\r\n ],\r\n exports: [\r\n __WEBPACK_IMPORTED_MODULE_2__echarts_directive__[\"a\" /* EChartsDirective */],\r\n __WEBPACK_IMPORTED_MODULE_3__slim_scroll_directive__[\"a\" /* SlimScrollDirective */],\r\n ]\r\n })\r\n ], SharedModule);\r\n return SharedModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 278:\n/***/ (function(module, exports) {\n\nfunction webpackEmptyAsyncContext(req) {\n\treturn new Promise(function(resolve, reject) { reject(new Error(\"Cannot find module '\" + req + \"'.\")); });\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 278;\n\n/***/ }),\n\n/***/ 279:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminDashboardComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__admin_datatable_admin_page__ = __webpack_require__(280);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__adminDashboardResultService__ = __webpack_require__(281);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 20/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AdminDashboardComponent = (function () {\r\n function AdminDashboardComponent(router, httpService, sessionHandler, dialog, formBuilder, serverResultsService, commonService, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.serverResultsService = serverResultsService;\r\n this.commonService = commonService;\r\n this.translate = translate;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_10__admin_datatable_admin_page__[\"a\" /* AdminPage */]();\r\n this.tableRows = [];\r\n this.filters = {};\r\n this.adminDashboardData = [];\r\n this.temp = [];\r\n this.Countries = [{\r\n \"id\": \"\",\r\n \"name\": \"all\",\r\n \"code\": \"\",\r\n \"active\": true,\r\n \"createdAt\": \"2019-02-26T12:49:39.329Z\"\r\n }];\r\n this.showTable = true;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.selected = [];\r\n this.selectedStatusId = 'PENDING';\r\n this.selectedCountryId = '';\r\n this.searchedFilters = { email: '', firstName: '', wpassId: '' };\r\n this.isDisabled = false;\r\n this.showCheckbox = false;\r\n this.wpassLogin = false;\r\n this.autocompleteLoader = \"\";\r\n this.searchName = \"\";\r\n this.searchEmail = \"\";\r\n this.searchWpass = \"\";\r\n this.Names = [];\r\n this.Emails = [];\r\n this.Wpass = [];\r\n this.dataTableMessage = { 'selectedMessage': '', 'totalMessage': '' };\r\n this.StatusData = [{\r\n \"id\": \"PENDING\",\r\n \"code\": \"\",\r\n \"name\": \"Pending\"\r\n }];\r\n this.getUserList = function () {\r\n this.showTable = false;\r\n };\r\n this.saveUserList = function (res, filter) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.adminDashboardData = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n this.count = res.count;\r\n this.totalCount = res.totalCount;\r\n if (this.adminDashboardData.list) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.adminDashboardData.list) {\r\n if (this.isBUManager || this.isRegionalAdmin || this.isSystemAdmin) {\r\n this.rows[data] = {};\r\n this.rows[data]['id'] = this.adminDashboardData.list[data]['id'];\r\n this.rows[data]['Name'] = this.adminDashboardData.list[data]['firstName'] + ' ' + this.adminDashboardData.list[data]['lastName'];\r\n this.rows[data]['roleName'] = this.adminDashboardData.list[data]['roleName'];\r\n this.rows[data]['email'] = this.adminDashboardData.list[data]['email'];\r\n this.rows[data]['emailVerified'] = this.adminDashboardData.list[data]['emailVerified'];\r\n if (this.adminDashboardData.list[data]['categorizedBusinessUnits'] && Object.keys(this.adminDashboardData.list[data]['categorizedBusinessUnits']).length > 0) {\r\n this.rows[data]['businessUnits'] = this.adminDashboardData.list[data]['categorizedBusinessUnits'];\r\n }\r\n else {\r\n this.rows[data]['businessUnits'] = null;\r\n }\r\n if (this.adminDashboardData.list[data]['userId_WPASS']) {\r\n this.rows[data]['userId_WPASS'] = this.adminDashboardData.list[data]['userId_WPASS'];\r\n }\r\n else {\r\n this.rows[data]['userId_WPASS'] = null;\r\n }\r\n if (this.adminDashboardData.list[data]['pendingSubUserCount']) {\r\n this.rows[data]['pendingSubUserCount'] = this.adminDashboardData.list[data]['pendingSubUserCount'];\r\n }\r\n else {\r\n this.rows[data]['pendingSubUserCount'] = 0;\r\n }\r\n this.rows[data]['languageId'] = this.adminDashboardData.list[data]['languageId'];\r\n this.rows[data]['languageName'] = this.adminDashboardData.list[data]['languageName'];\r\n this.rows[data]['countryId'] = this.adminDashboardData.list[data]['countryId'];\r\n this.rows[data]['countryName'] = this.adminDashboardData.list[data]['countryName'];\r\n this.rows[data]['companyName'] = this.adminDashboardData.list[data]['companyName'];\r\n this.rows[data]['companyAddress'] = this.adminDashboardData.list[data]['companyAddress'];\r\n this.rows[data]['companyPhone'] = this.adminDashboardData.list[data]['companyPhone'];\r\n this.rows[data]['personalArea'] = this.adminDashboardData.list[data]['personalArea'];\r\n this.rows[data]['costCenter'] = this.adminDashboardData.list[data]['costCenter'];\r\n this.rows[data]['location'] = this.adminDashboardData.list[data]['location'];\r\n this.rows[data]['contractorType'] = this.adminDashboardData.list[data]['contractorType'];\r\n if ((this.adminDashboardData.list[data]['status'] == \"Pending\" || this.adminDashboardData.list[data]['status'] == \"Approved\")\r\n && this.adminDashboardData.list[data]['categorizedBusinessUnits'] && this.adminDashboardData.list[data]['categorizedBusinessUnits']['PENDING']) {\r\n for (var _i = 0, _a = this.adminDashboardData.list[data]['categorizedBusinessUnits']['PENDING']; _i < _a.length; _i++) {\r\n var businessUnit = _a[_i];\r\n if (businessUnit.status == 'PENDING' && businessUnit.sessionUserManager) {\r\n this.rows[data]['actionFlag'] = true;\r\n if (businessUnit.customerNumber) {\r\n this.rows[data]['customerNumber'] = businessUnit.customerNumber;\r\n }\r\n if (businessUnit.customerNumberMandatory) {\r\n this.rows[data]['customerNumberMandatory'] = businessUnit.customerNumberMandatory;\r\n }\r\n if (businessUnit.id) {\r\n this.rows[data]['businessUnitId'] = businessUnit.id;\r\n }\r\n break;\r\n }\r\n else {\r\n this.rows[data]['actionFlag'] = false;\r\n }\r\n }\r\n }\r\n else {\r\n this.rows[data]['actionFlag'] = false;\r\n }\r\n this.rows[data]['status'] = this.adminDashboardData.list[data]['status'];\r\n this.rows[data]['createdAt'] = this.adminDashboardData.list[data]['createdAt'];\r\n this.rows[data]['updatedAt'] = this.adminDashboardData.list[data]['updatedAt'];\r\n this.rows[data]['wpassCreatedAt'] = this.adminDashboardData.list[data]['wpassCreatedAt'];\r\n }\r\n else {\r\n //For Other Service Partner's\r\n this.rows[data] = {};\r\n }\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n //Close Sidebar Initially\r\n __WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].navCollapsed = true;\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.adminText = 'admin';\r\n /*this.wpassLogin = JSON.parse(this.sessionHandler.getItem('wpassLogin'));\r\n if(this.wpassLogin != null && this.wpassLogin == true){\r\n this.dialogRef = this.dialog.open(WelcomeDialogComponent);\r\n this.dialogRef.afterClosed().subscribe(result => {\r\n localStorage.removeItem('wpassLogin');\r\n });\r\n }*/\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n if (this.isBUManager || this.isRegionalAdmin || this.isSystemAdmin) {\r\n this.getCountries();\r\n this.getStatusList();\r\n this.getUsersList(this.filters, this.selectedStatusId, this.selectedCountryId, this.searchEmail, this.searchName, this.searchWpass);\r\n }\r\n else {\r\n this.getUserList();\r\n }\r\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\r\n this.commonService.adminDashboard.subscribe(function (value) {\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, _this.selectedCountryId, _this.searchEmail, _this.searchName, _this.searchWpass);\r\n });\r\n }\r\n AdminDashboardComponent.prototype.autocompleteSearch = function (term, filter) {\r\n var _this = this;\r\n if (filter == \"name\") {\r\n this.Names = [];\r\n this.searchName = term;\r\n }\r\n else if (filter == \"email\") {\r\n this.Emails = [];\r\n this.searchEmail = term;\r\n }\r\n else if (filter == \"wpass\") {\r\n this.Wpass = [];\r\n this.searchWpass = term;\r\n }\r\n if (term == \"\")\r\n return;\r\n var url = \"/lookupDataOperationsApi/v1/partialSearch?type=\" + filter + \"&searchStr=\" + term;\r\n this.autocompleteLoader = filter;\r\n this.httpService.getRequestForAutocomplete(url).subscribe(function (res) {\r\n if (res && res['items']) {\r\n var name_1 = res['items'];\r\n var filterArray = [];\r\n for (var index in name_1) {\r\n filterArray.push(name_1[index]['name']);\r\n }\r\n if (filter == \"name\") {\r\n _this.Names = filterArray;\r\n }\r\n else if (filter == \"email\") {\r\n _this.Emails = filterArray;\r\n }\r\n else if (filter == \"wpass\") {\r\n _this.Wpass = filterArray;\r\n }\r\n }\r\n _this.autocompleteLoader = \"\";\r\n _this.httpService.onEnd();\r\n }, function (err) {\r\n _this.autocompleteLoader = \"\";\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n AdminDashboardComponent.prototype.onSelectAutocomplete = function (value, textFlag) {\r\n if (textFlag == \"name\") {\r\n this.searchName = value;\r\n }\r\n else if (textFlag == \"email\") {\r\n this.searchEmail = value;\r\n }\r\n else if (textFlag == \"wpass\") {\r\n this.searchWpass = value;\r\n }\r\n };\r\n AdminDashboardComponent.prototype.search = function () {\r\n this.selected = [];\r\n this.filters['offSet'] = 0;\r\n /*if (this.searchName == undefined) {\r\n this.searchName = \"\";\r\n } else if(this.searchName != \"\" && this.Names.length > 0){\r\n if(this.checkAutocompleteWord(this.Names, this.searchName)){\r\n this.searchName = \"\";\r\n }\r\n }\r\n\n if (this.searchEmail == undefined) {\r\n this.searchEmail = \"\";\r\n } else if(this.searchEmail != \"\" && this.Emails.length > 0){\r\n if(this.checkAutocompleteWord(this.Emails, this.searchEmail)){\r\n this.searchEmail = \"\";\r\n }\r\n }\r\n\n if (this.searchWpass == undefined) {\r\n this.searchWpass = \"\";\r\n } else if(this.searchWpass != \"\" && this.Wpass.length > 0){\r\n if(this.checkAutocompleteWord(this.Wpass, this.searchWpass)){\r\n this.searchWpass = \"\";\r\n }\r\n }*/\r\n if (this.searchName == undefined) {\r\n this.searchName = \"\";\r\n }\r\n if (this.searchEmail == undefined) {\r\n this.searchEmail = \"\";\r\n }\r\n if (this.searchWpass == undefined) {\r\n this.searchWpass = \"\";\r\n }\r\n this.getUsersList(this.filters, this.selectedStatusId, this.selectedCountryId, this.searchEmail, this.searchName, this.searchWpass);\r\n };\r\n AdminDashboardComponent.prototype.checkAutocompleteWord = function (objArray, searchValue) {\r\n if (objArray.includes(searchValue)) {\r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n };\r\n AdminDashboardComponent.prototype.resetSearch = function () {\r\n this.searchName = \"\";\r\n this.searchEmail = \"\";\r\n this.searchWpass = \"\";\r\n this.Names = [];\r\n this.Emails = [];\r\n this.Wpass = [];\r\n this.selectedStatusId = \"PENDING\";\r\n this.selectedCountryId = \"\";\r\n this.search();\r\n };\r\n AdminDashboardComponent.prototype.getCountries = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/countriesForAdmin').subscribe(function (res) {\r\n _this.saveCountries(res);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n AdminDashboardComponent.prototype.saveCountries = function (res) {\r\n if (res && res.items) {\r\n this.Countries = this.Countries.concat(res.items);\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AdminDashboardComponent.prototype.getStatusList = function () {\r\n var _this = this;\r\n this.httpService.getRequest(\"lookupDataOperationsApi/v1/registrationStatusFilter?includeDeleted=true\").subscribe(function (res) {\r\n _this.saveStatusList(res);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n AdminDashboardComponent.prototype.saveStatusList = function (res) {\r\n this.StatusData.push({ \"id\": \"\", \"code\": \"\", \"name\": \"all\" });\r\n if (res) {\r\n if (res.items) {\r\n for (var s in res.items) {\r\n if (res.items[s]['id'] != 'PENDING') {\r\n this.StatusData.push(res.items[s]);\r\n }\r\n }\r\n }\r\n }\r\n };\r\n AdminDashboardComponent.prototype.getUsersList = function (filter, selectedStatus, selectedCountryId, email, firstName, wpassId) {\r\n var _this = this;\r\n this.searchedFilters.email = email;\r\n this.searchedFilters.firstName = firstName;\r\n this.searchedFilters.wpassId = wpassId;\r\n if (selectedStatus == 'PENDING') {\r\n this.showCheckbox = true;\r\n }\r\n else {\r\n this.showCheckbox = false;\r\n }\r\n this.httpService.getRequest(\"userRegistrationsApi/v1/user/list?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&status=\" + selectedStatus + \"&countryId=\" + selectedCountryId + \"&email=\" + email + \"&firstName=\" + firstName + \"&wpassId=\" + wpassId).subscribe(function (res) {\r\n _this.saveUserList(res, filter);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n /**\r\n * Populate the table with new data based on the page number\r\n * @param page The page to select\r\n */\r\n AdminDashboardComponent.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, _this.selectedCountryId, _this.searchEmail, _this.searchName, _this.searchWpass);\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n AdminDashboardComponent.prototype.onSelect = function (_a) {\r\n var selected = _a.selected;\r\n this.selected.splice(0, this.selected.length);\r\n (_b = this.selected).push.apply(_b, selected);\r\n this.selectedCount = this.selected.length;\r\n var _b;\r\n };\r\n AdminDashboardComponent.prototype.forgetPassword = function (wpassId) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'sure_to_init_reset_process';\r\n this.dialogRef.componentInstance.isConfirm = true;\r\n this.dialogRef.afterClosed().subscribe(function (data) {\r\n if (data) {\r\n var body = { userId_WPASS: wpassId };\r\n _this.httpService.postRequest(body, 'userOperationsApi/v1/forgotPassword').subscribe(function (res) {\r\n _this.processResponse(res, 'after_reset_password_notify');\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n else {\r\n }\r\n });\r\n };\r\n AdminDashboardComponent.prototype.downloadCsv = function (action) {\r\n var loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\r\n var accessToken;\r\n if (loginDataArray) {\r\n accessToken = loginDataArray['accessToken'];\r\n }\r\n window.open(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].URL + '/export?access-token=' + accessToken + '&action=' + action + '&status=' + this.selectedStatusId + '&email=' + this.searchEmail + '&firstName=' + this.searchName + '&wpassId=' + this.searchWpass + '&countryId=' + this.selectedCountryId, '_blank');\r\n };\r\n AdminDashboardComponent.prototype.processResponse = function (res, msgCode) {\r\n if (res) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = msgCode;\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n });\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AdminDashboardComponent.prototype.unlockAccount = function (wpassId) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'sure_to_init_unlock_process';\r\n this.dialogRef.componentInstance.isConfirm = true;\r\n this.dialogRef.afterClosed().subscribe(function (data) {\r\n if (data) {\r\n var body = { userId_WPASS: wpassId };\r\n _this.httpService.postRequest(body, 'userOperationsApi/v1/unlockWpassUser').subscribe(function (res) {\r\n _this.processResponse(res, 'account_unlock_succesfully');\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n });\r\n };\r\n AdminDashboardComponent.prototype.resendEmailVerificationEmail = function (userId) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'sure_to_resend_email_verification_link';\r\n this.dialogRef.componentInstance.isConfirm = true;\r\n this.dialogRef.afterClosed().subscribe(function (data) {\r\n if (data) {\r\n var body = {};\r\n _this.httpService.postRequest(body, 'userRegistrationsApi/v1/resendNewRegistrationEmailVerificationEmail/' + userId).subscribe(function (res) {\r\n _this.processResponse(res, 'email_sent_success');\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n });\r\n };\r\n AdminDashboardComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.translate.get('total').subscribe(function (res) {\r\n _this.dataTableMessage.totalMessage = res;\r\n });\r\n this.translate.get('selected').subscribe(function (res) {\r\n _this.dataTableMessage.selectedMessage = res;\r\n });\r\n };\r\n AdminDashboardComponent.prototype.ngOnDestroy = function () {\r\n this.dialog.closeAll();\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], AdminDashboardComponent.prototype, \"table\", void 0);\r\n AdminDashboardComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'admin-dashboard',\r\n template: __webpack_require__(1242),\r\n styles: [__webpack_require__(132)],\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_9__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_12__adminDashboardResultService__[\"a\" /* AdminDashboardResultService */], __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__[\"a\" /* CommonService */],\r\n __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], AdminDashboardComponent);\r\n return AdminDashboardComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 280:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminPage; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * An object used to get page information from the server\r\n */\r\nvar AdminPage = (function () {\r\n function AdminPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return AdminPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 281:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminDashboardResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__admin_dashboard_admin_datatable_admin_page_data__ = __webpack_require__(745);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__admin_dashboard_admin_datatable_admin_dashboardList__ = __webpack_require__(744);\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar AdminDashboardResultService = (function () {\r\n function AdminDashboardResultService() {\r\n this.rows = {};\r\n this.adminDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n AdminDashboardResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n AdminDashboardResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__admin_dashboard_admin_datatable_admin_page_data__[\"a\" /* AdminPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__admin_dashboard_admin_datatable_admin_dashboardList__[\"a\" /* AdminDashboardList */](jsonObj['id'], jsonObj['Name'], jsonObj['roleName'], jsonObj['email'], jsonObj['emailVerified'], jsonObj['businessUnits'], jsonObj['pendingSubUserCount'], jsonObj['userId_WPASS'], jsonObj['languageId'], jsonObj['languageName'], jsonObj['countryId'], jsonObj['countryName'], jsonObj['companyName'], jsonObj['companyAddress'], jsonObj['companyPhone'], jsonObj['personalArea'], jsonObj['costCenter'], jsonObj['location'], jsonObj['contractorType'], jsonObj['actionFlag'], jsonObj['status'], jsonObj['appStatus'], jsonObj['createdAt']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n AdminDashboardResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], AdminDashboardResultService);\r\n return AdminDashboardResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 282:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationsPage; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * An object used to get page information from the server\r\n */\r\nvar ApplicationsPage = (function () {\r\n function ApplicationsPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return ApplicationsPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 283:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationsManagerDashboardComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__applications_datatable_applications_page__ = __webpack_require__(282);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__applicationsManagerDashboardResultService__ = __webpack_require__(284);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 20/10/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ApplicationsManagerDashboardComponent = (function () {\r\n function ApplicationsManagerDashboardComponent(router, httpService, sessionHandler, dialog, formBuilder, serverResultsService, commonService, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.serverResultsService = serverResultsService;\r\n this.commonService = commonService;\r\n this.translate = translate;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_10__applications_datatable_applications_page__[\"a\" /* ApplicationsPage */]();\r\n this.isSystemAdmin = false;\r\n this.isApplicationManager = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.tableRows = [];\r\n this.filters = {};\r\n this.applicationsName = [];\r\n this.selectedApplicationId = '';\r\n this.isDisabled = false;\r\n this.selected = [];\r\n this.selectedStatusId = '';\r\n this.searchedFilters = { applicationName: '', wpassId: '' };\r\n this.showCheckbox = false;\r\n this.applicationsDashboardData = [];\r\n this.temp = [];\r\n this.showTable = true;\r\n this.Wpass = [];\r\n this.autocompleteLoader = \"\";\r\n this.searchWpass = \"\";\r\n this.countries = [];\r\n this.businessUnits = [];\r\n this.tempCountries = [{\r\n \"id\": \"\",\r\n \"name\": \"all\",\r\n \"code\": \"\",\r\n \"active\": true,\r\n \"createdAt\": \"2019-02-26T12:49:39.329Z\"\r\n }];\r\n this.tempBusinessUnits = [{\r\n \"id\": \"\",\r\n \"name\": \"all\",\r\n \"codeISAM\": \"\",\r\n \"active\": true,\r\n \"createdAt\": \"2018-04-06T20:05:02.397Z\",\r\n \"updatedAt\": \"2018-05-31T06:41:54.303Z\"\r\n }];\r\n this.selectedCountryId = \"\";\r\n this.selectedBusinessUnit = \"\";\r\n this.dataTableMessage = { 'selectedMessage': '', 'totalMessage': '' };\r\n this.StatusData = [{\r\n \"id\": \"\",\r\n \"code\": \"\",\r\n \"name\": \"all\"\r\n }];\r\n this.saveApplicationsList = function (res, filter) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.applicationsDashboardData = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n this.count = res.count;\r\n this.totalCount = res.totalCount;\r\n if (this.applicationsDashboardData.list) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.applicationsDashboardData.list) {\r\n if (this.isBUManager || this.isRegionalAdmin || this.isApplicationManager || this.isSystemAdmin) {\r\n this.rows[data] = {};\r\n this.rows[data]['id'] = this.applicationsDashboardData.list[data]['id'];\r\n this.rows[data]['applicationId'] = this.applicationsDashboardData.list[data]['applicationId'];\r\n this.rows[data]['applicationName'] = this.applicationsDashboardData.list[data]['applicationName'];\r\n if (this.applicationsDashboardData.list[data]['applicationRoles'] && Object.keys(this.applicationsDashboardData.list[data]['applicationRoles']).length > 0) {\r\n var multipleApplicationRoles = [];\r\n for (var roles in this.applicationsDashboardData.list[data]['applicationRoles']) {\r\n if (this.applicationsDashboardData.list[data]['applicationRoles'][roles]['roleName']) {\r\n multipleApplicationRoles.push(this.applicationsDashboardData.list[data]['applicationRoles'][roles]);\r\n this.rows[data]['applicationRoles'] = multipleApplicationRoles;\r\n }\r\n else {\r\n this.rows[data]['applicationRoles'] = null;\r\n }\r\n }\r\n }\r\n else {\r\n this.rows[data]['applicationRoles'] = null;\r\n }\r\n if (this.applicationsDashboardData.list[data]['userId_WPASS']) {\r\n this.rows[data]['userId_WPASS'] = this.applicationsDashboardData.list[data]['userId_WPASS'];\r\n }\r\n else {\r\n this.rows[data]['userId_WPASS'] = null;\r\n }\r\n this.rows[data]['businessUnitId'] = this.applicationsDashboardData.list[data]['businessUnitId'];\r\n this.rows[data]['businessUnitName'] = this.applicationsDashboardData.list[data]['businessUnitName'];\r\n this.rows[data]['countryId'] = this.applicationsDashboardData.list[data]['countryId'];\r\n this.rows[data]['countryName'] = this.applicationsDashboardData.list[data]['countryName'];\r\n if (this.applicationsDashboardData.list[data]['approverId']) {\r\n this.rows[data]['approverId'] = this.applicationsDashboardData.list[data]['approverId'];\r\n this.rows[data]['approverName'] = this.applicationsDashboardData.list[data]['approverName'];\r\n }\r\n else {\r\n this.rows[data]['approverId'] = null;\r\n this.rows[data]['approverName'] = null;\r\n }\r\n this.rows[data]['multipleRole'] = this.applicationsDashboardData.list[data]['multipleRole'];\r\n if (this.applicationsDashboardData.list[data]['reason']) {\r\n this.rows[data]['reason'] = this.applicationsDashboardData.list[data]['reason'];\r\n }\r\n else {\r\n this.rows[data]['reason'] = null;\r\n }\r\n this.rows[data]['status'] = this.applicationsDashboardData.list[data]['status'];\r\n this.rows[data]['statusCode'] = this.applicationsDashboardData.list[data]['statusCode'];\r\n this.rows[data]['updatedAt'] = this.applicationsDashboardData.list[data]['updatedAt'];\r\n }\r\n else {\r\n //For Other Service Partner's\r\n this.rows[data] = {};\r\n }\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n //Close Sidebar Initially\r\n __WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].navCollapsed = true;\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.applicationText = 'applicationManagerView';\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n this.isApplicationManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n if (this.isBUManager || this.isRegionalAdmin || this.isApplicationManager || this.isSystemAdmin) {\r\n this.getCountries();\r\n this.getBusinessUnitAll();\r\n this.getStatusList();\r\n this.getApplicationsName();\r\n this.getApplicationsList(this.filters, this.selectedStatusId, this.selectedApplicationId, this.searchWpass, this.selectedBusinessUnit, this.selectedCountryId);\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\r\n this.commonService.applicationDashboard.subscribe(function (value) {\r\n _this.getApplicationsList(_this.filters, _this.selectedStatusId, _this.selectedApplicationId, _this.searchWpass, _this.selectedBusinessUnit, _this.selectedCountryId);\r\n });\r\n }\r\n /*buildForm() {\r\n this.ApplicationsFiltersForm = this.formBuilder.group({\r\n wpassId: this.formBuilder.control(''),\r\n });\r\n this.ApplicationsFiltersForm.valueChanges.subscribe(data => {\r\n this.wpassId = this.ApplicationsFiltersForm.get('wpassId').value;\r\n });\r\n }*/\r\n ApplicationsManagerDashboardComponent.prototype.getCountries = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/countriesForAdmin').subscribe(function (res) { _this.saveCountries(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.saveCountries = function (res) {\r\n if (res && res.items) {\r\n this.countries = this.tempCountries.concat(res.items);\r\n }\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.onCountryChange = function (countryId) {\r\n //this.businessUnits = [];\r\n this.businessUnits = this.tempBusinessUnits;\r\n if (countryId != \"\") {\r\n this.selectedBusinessUnit = \"\";\r\n this.getBusinessUnitForCountry(countryId);\r\n }\r\n else {\r\n this.getBusinessUnitAll();\r\n }\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.getBusinessUnitForCountry = function (countryId) {\r\n var _this = this;\r\n this.httpService.getRequestWithoutLoader('lookupDataOperationsApi/v1/buForSelectedCountry/' + countryId).subscribe(function (res) { _this.saveBusinessUnitForCountry(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.saveBusinessUnitForCountry = function (res) {\r\n if (res && res.items) {\r\n //this.businessUnits = res.items;\r\n this.businessUnits = this.tempBusinessUnits.concat(res.items);\r\n }\r\n this.httpService.onEnd();\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.getBusinessUnitAll = function () {\r\n var _this = this;\r\n this.httpService.getRequestWithoutAuth('lookupDataOperationsApi/v1/businessUnit', true).subscribe(function (res) { _this.saveBusinessUnitAll(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.saveBusinessUnitAll = function (res) {\r\n if (res && res.items) {\r\n this.businessUnits = this.tempBusinessUnits.concat(res.items);\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.autocompleteSearch = function (term, filter) {\r\n var _this = this;\r\n if (filter == \"wpass\") {\r\n this.Wpass = [];\r\n this.searchWpass = term;\r\n }\r\n if (term == \"\")\r\n return;\r\n var url = \"/lookupDataOperationsApi/v1/partialSearch?type=\" + filter + \"&searchStr=\" + term;\r\n this.autocompleteLoader = filter;\r\n this.httpService.getRequestForAutocomplete(url).subscribe(function (res) {\r\n if (res && res['items']) {\r\n var name_1 = res['items'];\r\n var filterArray = [];\r\n for (var index in name_1) {\r\n filterArray.push(name_1[index]['name']);\r\n }\r\n if (filter == \"wpass\") {\r\n _this.Wpass = filterArray;\r\n }\r\n }\r\n _this.autocompleteLoader = \"\";\r\n _this.httpService.onEnd();\r\n }, function (err) {\r\n _this.autocompleteLoader = \"\";\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.onSelectAutocomplete = function (value, textFlag) {\r\n if (textFlag == \"wpass\") {\r\n this.searchWpass = value;\r\n }\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.search = function () {\r\n this.selected = [];\r\n this.filters['offSet'] = 0;\r\n if (this.searchWpass == undefined) {\r\n this.searchWpass = \"\";\r\n }\r\n else if (this.searchWpass != \"\" && this.Wpass.length > 0) {\r\n if (this.checkAutocompleteWord(this.Wpass, this.searchWpass)) {\r\n this.searchWpass = \"\";\r\n }\r\n }\r\n this.getApplicationsList(this.filters, this.selectedStatusId, this.selectedApplicationId, this.searchWpass, this.selectedBusinessUnit, this.selectedCountryId);\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.resetSearch = function () {\r\n /*this.ApplicationsFiltersForm.controls['wpassId'].enable();\r\n this.ApplicationsFiltersForm.reset();*/\r\n this.selectedApplicationId = \"\";\r\n this.searchWpass = '';\r\n this.selectedStatusId = \"\";\r\n this.Wpass = [];\r\n this.countries = [];\r\n this.businessUnits = [];\r\n this.selectedBusinessUnit = \"\";\r\n this.selectedCountryId = \"\";\r\n this.getCountries();\r\n this.getBusinessUnitAll();\r\n this.search();\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.checkAutocompleteWord = function (objArray, searchValue) {\r\n if (objArray.includes(searchValue)) {\r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.getStatusList = function () {\r\n var _this = this;\r\n this.httpService.getRequest(\"applicationOperationApi/v1/getApplicationStatusList\").subscribe(function (res) { _this.saveStatusList(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.saveStatusList = function (res) {\r\n if (res) {\r\n if (res.items) {\r\n for (var s in res.items) {\r\n this.StatusData.push(res.items[s]);\r\n }\r\n }\r\n }\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.getApplicationsName = function () {\r\n var _this = this;\r\n this.httpService.getRequest(\"applicationOperationApi/v1/applicationsForDropdown\").subscribe(function (res) { _this.saveApplicationsName(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.saveApplicationsName = function (res) {\r\n if (res && res.items) {\r\n var tempApp = [{ \"id\": \"\", \"code\": \"\", \"name\": \"all\" }];\r\n this.applicationsName = tempApp.concat(res.items);\r\n }\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.getApplicationsList = function (filter, selectedStatus, applicationId, wpassId, selectedBusinessUnit, selectedCountryId) {\r\n var _this = this;\r\n this.searchedFilters.wpassId = wpassId;\r\n if (selectedStatus == 'PENDING' && applicationId != '') {\r\n this.showCheckbox = true;\r\n }\r\n else {\r\n this.showCheckbox = false;\r\n }\r\n this.httpService.getRequest(\"/applicationOperationApi/v1/applicationRequestsForManager?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&status=\" + selectedStatus + \"&applicationId=\" + applicationId + \"&wpassId=\" + wpassId + \"&businessUnitId=\" + selectedBusinessUnit + \"&countryId=\" + selectedCountryId).subscribe(function (res) { _this.saveApplicationsList(res, filter); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n /**\r\n * Populate the table with new data based on the page number\r\n * @param page The page to select\r\n */\r\n ApplicationsManagerDashboardComponent.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n _this.getApplicationsList(_this.filters, _this.selectedStatusId, _this.selectedApplicationId, _this.searchWpass, _this.selectedBusinessUnit, _this.selectedCountryId);\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.rejectAction = function (id, status) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"h\" /* ApplicationRejectActionDialogComponent */]);\r\n this.dialogRef.componentInstance.isRejected = true;\r\n this.dialogRef.componentInstance.msg = 'rqst_rjct_confirm';\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n var data = {};\r\n data['id'] = id;\r\n data['status'] = status;\r\n data['message'] = result;\r\n var today = new Date();\r\n var dd = ('0' + today.getDate()).slice(-2);\r\n var mm = ('0' + (today.getMonth() + 1)).slice(-2);\r\n var yyyy = today.getFullYear();\r\n data['approvalDate'] = yyyy + '' + mm + '' + dd;\r\n _this.httpService.postRequest(data, 'applicationOperationApi/v1/approveApplicationRequest').subscribe(function (res) {\r\n _this.saveResponse(res, status);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n });\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.saveResponse = function (res, status) {\r\n var _this = this;\r\n this.httpService.onEnd();\r\n var statusTxt;\r\n if (res) {\r\n if (status == 'REJECTED') {\r\n statusTxt = 'Rejected Successfully';\r\n }\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = statusTxt;\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n _this.getApplicationsList(_this.filters, _this.selectedStatusId, _this.selectedApplicationId, _this.searchWpass, _this.selectedBusinessUnit, _this.selectedCountryId);\r\n });\r\n }\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.onSelect = function (_a) {\r\n var selected = _a.selected;\r\n this.selected.splice(0, this.selected.length);\r\n (_b = this.selected).push.apply(_b, selected);\r\n this.selectedCount = this.selected.length;\r\n var _b;\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.downloadCsv = function () {\r\n var loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\r\n var accessToken;\r\n if (loginDataArray) {\r\n accessToken = loginDataArray['accessToken'];\r\n }\r\n window.open(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].URL + '/export?access-token=' + accessToken + '&action=application_requests&status=' + this.selectedStatusId + '&applicationId=' + this.selectedApplicationId + '&wpassId=' + this.searchWpass + '&businessUnitId=' + this.selectedBusinessUnit + '&countryId=' + this.selectedCountryId, '_blank');\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.saveRevokeData = function (id) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.isConfirm = true;\r\n this.dialogRef.componentInstance.msg = \"app_revoke_confirm\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n var user_application_id = { id: id };\r\n _this.httpService.postRequest(user_application_id, 'applicationOperationApi/v1/revokeAllApplicationRoles').subscribe(function (res) {\r\n _this.dialogRef = _this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n _this.dialogRef.componentInstance.msg = \"request_success\";\r\n _this.httpService.onEnd();\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n _this.dialogRef = _this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n _this.dialogRef.componentInstance.msg = \"request_failed\";\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n });\r\n };\r\n /* saveApplicationDataApi(){\r\n this.httpService.postRequest(this.ApplicationsRequestFormDetails,'applicationOperationApi/v1/updateUserApplicationRoles').subscribe(\r\n res => {\r\n this.saveApplicationResponse(res);\r\n },\r\n err => { this.httpService.onEnd(); }\r\n );\r\n } */\r\n ApplicationsManagerDashboardComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n //this.buildForm();\r\n this.translate.get('total').subscribe(function (res) {\r\n _this.dataTableMessage.totalMessage = res;\r\n });\r\n this.translate.get('selected').subscribe(function (res) {\r\n _this.dataTableMessage.selectedMessage = res;\r\n });\r\n };\r\n ApplicationsManagerDashboardComponent.prototype.ngOnDestroy = function () {\r\n this.dialog.closeAll();\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], ApplicationsManagerDashboardComponent.prototype, \"table\", void 0);\r\n ApplicationsManagerDashboardComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'applications-manager-dashboard',\r\n template: __webpack_require__(1244),\r\n styles: [__webpack_require__(132)],\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_9__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_12__applicationsManagerDashboardResultService__[\"a\" /* ApplicationsManagerDashboardResultService */], __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__[\"a\" /* CommonService */],\r\n __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ApplicationsManagerDashboardComponent);\r\n return ApplicationsManagerDashboardComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 284:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationsManagerDashboardResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__applications_manager_dashboard_applications_datatable_applications_page_data__ = __webpack_require__(749);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__applications_manager_dashboard_applications_datatable_applications_dashboardList__ = __webpack_require__(748);\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar ApplicationsManagerDashboardResultService = (function () {\r\n function ApplicationsManagerDashboardResultService() {\r\n this.rows = {};\r\n this.applicationsDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n ApplicationsManagerDashboardResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n ApplicationsManagerDashboardResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__applications_manager_dashboard_applications_datatable_applications_page_data__[\"a\" /* ApplicationsPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__applications_manager_dashboard_applications_datatable_applications_dashboardList__[\"a\" /* ApplicationsDashboardList */](jsonObj['id'], jsonObj['applicationId'], jsonObj['applicationName'], jsonObj['userId_WPASS'], jsonObj['businessUnitId'], jsonObj['businessUnitName'], jsonObj['countryId'], jsonObj['countryName'], jsonObj['approverId'], jsonObj['approverName'], jsonObj['multipleRole'], jsonObj['reason'], jsonObj['status'], jsonObj['statusCode'], jsonObj['updatedAt']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n ApplicationsManagerDashboardResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], ApplicationsManagerDashboardResultService);\r\n return ApplicationsManagerDashboardResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 285:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApproveRejectRequestModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__approve_reject_request_approve_reject_component__ = __webpack_require__(750);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 29/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ApproveRejectRequestModule = (function () {\r\n function ApproveRejectRequestModule() {\r\n }\r\n ApproveRejectRequestModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_2__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_2__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_3__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_6__approve_reject_request_approve_reject_component__[\"a\" /* ApproveRejectComponent */]\r\n ],\r\n exports: [\r\n __WEBPACK_IMPORTED_MODULE_6__approve_reject_request_approve_reject_component__[\"a\" /* ApproveRejectComponent */],\r\n ]\r\n })\r\n ], ApproveRejectRequestModule);\r\n return ApproveRejectRequestModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 286:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AddFileComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rxjs_Rx__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rxjs_Rx___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_rxjs_Rx__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_file_upload__ = __webpack_require__(571);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_file_upload___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_ng2_file_upload__);\n/**\r\n * Created by shubham on 11/6/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AddFileComponent = (function () {\r\n function AddFileComponent(router, route, Http, httpService, sessionHandler, formBuilder, dialog, translate, commonService) {\r\n this.router = router;\r\n this.route = route;\r\n this.Http = Http;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.formBuilder = formBuilder;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.commonService = commonService;\r\n this.data = [];\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.headers = new __WEBPACK_IMPORTED_MODULE_4__angular_http__[\"c\" /* Headers */]();\r\n this.showError = false;\r\n this.Countries = [];\r\n this.tempCountries = [{\r\n \"id\": \"\",\r\n \"name\": \"All\",\r\n \"code\": \"\",\r\n \"active\": true,\r\n \"createdAt\": \"2019-02-26T12:49:39.329Z\"\r\n }];\r\n this.tempBusinessUnits = [{\r\n \"id\": \"\",\r\n \"name\": \"All\",\r\n \"codeISAM\": \"\",\r\n \"active\": true,\r\n \"createdAt\": \"2018-04-06T20:05:02.397Z\",\r\n \"updatedAt\": \"2018-05-31T06:41:54.303Z\"\r\n }];\r\n this.BusinessUnit = [];\r\n this.uploadAction = false;\r\n this.formDataFlag = false;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n this.accessToken = this.userDetails['accessToken'];\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.URL = __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].URL + \"/uploadCsv/dataUpload\";\r\n this.uploader = new __WEBPACK_IMPORTED_MODULE_13_ng2_file_upload__[\"FileUploader\"]({ url: this.URL, disableMultipart: true });\r\n this.getCountries();\r\n }\r\n AddFileComponent.prototype.getCountries = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/countriesForAdmin').subscribe(function (res) { _this.saveCountries(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddFileComponent.prototype.saveCountries = function (res) {\r\n if (res && res.items) {\r\n //this.Countries = res.items;\r\n this.Countries = this.tempCountries.concat(res.items);\r\n }\r\n this.FileUploadForm.controls['countryId'].disable();\r\n this.FileUploadForm.controls['businessUnitId'].disable();\r\n this.httpService.onEnd();\r\n };\r\n AddFileComponent.prototype.getBusinessUnitByCountryId = function (countryId) {\r\n var _this = this;\r\n if (countryId) {\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/buForSelectedCountry/' + countryId).subscribe(function (res) { _this.saveBusinessUnitByCountryId(res); }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n };\r\n AddFileComponent.prototype.saveBusinessUnitByCountryId = function (res) {\r\n if (res && res.items) {\r\n //this.BusinessUnit = res.items;\r\n this.BusinessUnit = this.tempBusinessUnits.concat(res.items);\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddFileComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.FileUploadForm = this.formBuilder.group({\r\n selectedRadioValue: this.formBuilder.control('Role_Maintenance', [__WEBPACK_IMPORTED_MODULE_8__angular_forms__[\"g\" /* Validators */].required]),\r\n countryId: this.formBuilder.control('', [__WEBPACK_IMPORTED_MODULE_8__angular_forms__[\"g\" /* Validators */].required]),\r\n businessUnitId: this.formBuilder.control('', [__WEBPACK_IMPORTED_MODULE_8__angular_forms__[\"g\" /* Validators */].required]),\r\n });\r\n this.FileUploadForm.valueChanges.subscribe(function (data) {\r\n _this.FileUploadFormDetails = _this.FileUploadForm.getRawValue();\r\n _this.FileUploadFormDetails['includesHeader'] = true;\r\n _this.FileUploadFormDetails.validate = _this.FileUploadForm.valid;\r\n });\r\n this.FileUploadForm.get('selectedRadioValue').valueChanges.subscribe(function (data) {\r\n if (data != null) {\r\n if (data == 'Role_Maintenance') {\r\n _this.uploadAction = false;\r\n _this.FileUploadForm.controls['countryId'].disable();\r\n _this.FileUploadForm.controls['businessUnitId'].disable();\r\n }\r\n else if (data == 'User_Migration') {\r\n _this.uploadAction = true;\r\n _this.FileUploadForm.controls['countryId'].enable();\r\n _this.FileUploadForm.controls['businessUnitId'].enable();\r\n }\r\n }\r\n });\r\n this.FileUploadForm.get('countryId').valueChanges.subscribe(function (data) {\r\n _this.FileUploadForm.controls['businessUnitId'].setValue('');\r\n //this.BusinessUnit = [];\r\n _this.BusinessUnit = _this.tempBusinessUnits;\r\n if (data != null) {\r\n _this.getBusinessUnitByCountryId(data);\r\n }\r\n });\r\n };\r\n AddFileComponent.prototype.fileupload = function () {\r\n this.formData = new FormData();\r\n for (var i in this.uploader.queue) {\r\n if (!this.uploader.queue[i].isSuccess) {\r\n if (this.uploader.queue[i]._file.type == 'text/csv' || this.uploader.queue[i]._file.type == ''\r\n || (this.uploader.queue[i]._file.type.indexOf(\"excel\") != -1)) {\r\n this.csvName = this.uploader.queue[i]._file.name;\r\n if (this.uploader.queue[i]._file.type == '') {\r\n if (this.csvName.indexOf(\".\")) {\r\n var checkExtension = this.csvName.substring(this.csvName.indexOf(\".\") + 1, this.csvName.length);\r\n if (checkExtension != 'csv') {\r\n this.showError = true;\r\n this.formDataFlag = false;\r\n this.errorMsg = 'invalid_csv_format';\r\n }\r\n }\r\n }\r\n if (this.uploader.queue[i]._file.size / 1024 / 1024 < 5) {\r\n this.showError = false;\r\n this.formData.append('file', this.uploader.queue[i]._file);\r\n this.formDataFlag = true;\r\n }\r\n else {\r\n this.showError = true;\r\n this.uploader.queue[i].isError = true;\r\n this.formDataFlag = false;\r\n this.errorMsg = 'file_too_large';\r\n }\r\n }\r\n else {\r\n this.showError = true;\r\n this.formDataFlag = false;\r\n this.errorMsg = 'invalid_csv_format';\r\n }\r\n }\r\n }\r\n };\r\n AddFileComponent.prototype.downloadSampleCSVFile = function () {\r\n var sampleMigrationData;\r\n var fileName = \"User_migration_sample.csv\";\r\n if (this.FileUploadFormDetails['selectedRadioValue'] == 'Role_Maintenance') {\r\n sampleMigrationData = [['LDAP ID', 'LDAP ROLE', 'Business Unit Name', 'Customer Number']];\r\n fileName = \"Role_migration_sample.csv\";\r\n }\r\n else {\r\n sampleMigrationData = [['LDAP ID (Optional)', 'First Name', 'Last Name', 'Email', 'Company Name', 'Company Phone', 'Company Address', 'Customer No', 'Language (Optional)', 'LDAP ROLE (Optional)']];\r\n }\r\n var csvContent = \"data:text/csv;charset=utf-8,\";\r\n sampleMigrationData.forEach(function (infoArray, index) {\r\n var dataString = infoArray.join(\",\");\r\n csvContent += index < sampleMigrationData.length ? dataString + \"\\n\" : dataString;\r\n });\r\n var encodedUri = encodeURI(csvContent);\r\n var link = document.createElement(\"a\");\r\n link.setAttribute(\"href\", encodedUri);\r\n link.setAttribute(\"download\", fileName);\r\n link.click();\r\n };\r\n AddFileComponent.prototype.saveUploadCSVData = function () {\r\n var _this = this;\r\n this.httpService.showLoader();\r\n this.Http\r\n .post(this.URL + '?action=' + this.FileUploadFormDetails['selectedRadioValue'] + '&includesHeader=' + this.FileUploadFormDetails['includesHeader'] + '&countryId=' + this.FileUploadFormDetails['countryId'] + '&businessUnitId=' + this.FileUploadFormDetails['businessUnitId'] + '&apiKey=' + __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].apiKey + '&access-token=' + this.accessToken, this.formData, { headers: this.headers })\r\n .toPromise()\r\n .then(function (res) { return _this.setFormData(res.json()); })\r\n .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_10_rxjs_Rx__[\"Observable\"].throw(_this.httpService.handleError(error.json(), 'uploadCsv/dataUpload')); });\r\n };\r\n AddFileComponent.prototype.setFormData = function (res) {\r\n var _this = this;\r\n this.uploader = new __WEBPACK_IMPORTED_MODULE_13_ng2_file_upload__[\"FileUploader\"]({ url: this.URL, disableMultipart: true });\r\n if (res) {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_11__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"req_rcvd_to_be_notified_by_mail\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n _this.router.navigateByUrl('/app/file-upload/list');\r\n });\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_11__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'unable_to_upload';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n AddFileComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n AddFileComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1257)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_4__angular_http__[\"b\" /* Http */], __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_2__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_8__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_12_ng2_translate__[\"d\" /* TranslateService */], __WEBPACK_IMPORTED_MODULE_9__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], AddFileComponent);\r\n return AddFileComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 287:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return FileUploadComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 13/6/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar FileUploadComponent = (function () {\r\n function FileUploadComponent(router, sessionHandler, httpService, dialog, translate) {\r\n this.router = router;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.languageId = this.sessionHandler.getItem('languageId');\r\n if (!this.languageId) {\r\n this.languageId = \"EN\";\r\n }\r\n this.translate.use(this.languageId);\r\n }\r\n FileUploadComponent.prototype.ngOnInit = function () { };\r\n FileUploadComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'file-upload',\r\n template: __webpack_require__(1258)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_6_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], FileUploadComponent);\r\n return FileUploadComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 288:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CSVUploadModule\", function() { return CSVUploadModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__fileUpload_routing_module__ = __webpack_require__(751);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__fileUpload_component__ = __webpack_require__(287);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__fileUploadList_fileUploadList_component__ = __webpack_require__(290);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__add_file_addFile_component__ = __webpack_require__(286);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_ng2_file_upload__ = __webpack_require__(571);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_ng2_file_upload___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_ng2_file_upload__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 13/6/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar CSVUploadModule = (function () {\r\n function CSVUploadModule() {\r\n }\r\n CSVUploadModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__[\"NgxDatatableModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_11_ng2_file_upload__[\"FileUploadModule\"],\r\n __WEBPACK_IMPORTED_MODULE_7__fileUpload_routing_module__[\"a\" /* FileUploadRoutingModule */],\r\n __WEBPACK_IMPORTED_MODULE_12_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_12_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_12_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_13__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_2__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_8__fileUpload_component__[\"a\" /* FileUploadComponent */],\r\n __WEBPACK_IMPORTED_MODULE_9__fileUploadList_fileUploadList_component__[\"a\" /* FileUploadListComponent */],\r\n __WEBPACK_IMPORTED_MODULE_10__add_file_addFile_component__[\"a\" /* AddFileComponent */]\r\n ],\r\n exports: []\r\n })\r\n ], CSVUploadModule);\r\n return CSVUploadModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 289:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return FileUploadListPage; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * An object used to get page information from the server\r\n */\r\nvar FileUploadListPage = (function () {\r\n function FileUploadListPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return FileUploadListPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 290:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return FileUploadListComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__fileUploadList_datatable_fileUploadList_page__ = __webpack_require__(289);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__fileUploadListDashboardResultService__ = __webpack_require__(291);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 13/6/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar FileUploadListComponent = (function () {\r\n function FileUploadListComponent(router, httpService, sessionHandler, dialog, serverResultsService, commonService, translate) {\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.serverResultsService = serverResultsService;\r\n this.commonService = commonService;\r\n this.translate = translate;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_10__fileUploadList_datatable_fileUploadList_page__[\"a\" /* FileUploadListPage */]();\r\n this.tableRows = [];\r\n this.filters = {};\r\n this.temp = [];\r\n this.showTable = true;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.dataTableMessage = { 'selectedMessage': '', 'totalMessage': '' };\r\n this.saveFileUploadList = function (res, filter) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.uploadList = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n if (this.uploadList.list) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.uploadList.list) {\r\n this.rows[data] = {};\r\n this.rows[data]['id'] = this.uploadList.list[data]['id'];\r\n this.rows[data]['type'] = this.uploadList.list[data]['type'];\r\n if (this.uploadList.list[data]['countryName']) {\r\n this.rows[data]['countryName'] = this.uploadList.list[data]['countryName'];\r\n }\r\n if (this.uploadList.list[data]['businessUnitName']) {\r\n this.rows[data]['businessUnitName'] = this.uploadList.list[data]['businessUnitName'];\r\n }\r\n this.rows[data]['includesHeader'] = this.uploadList.list[data]['includesHeader'];\r\n this.rows[data]['csvName'] = this.uploadList.list[data]['csvName'];\r\n this.rows[data]['csvUrl'] = this.uploadList.list[data]['csvUrl'];\r\n this.rows[data]['status'] = this.uploadList.list[data]['status'];\r\n this.rows[data]['error'] = this.uploadList.list[data]['error'];\r\n if (this.uploadList.list[data]['error'] == true) {\r\n this.rows[data]['message'] = this.uploadList.list[data]['message'];\r\n }\r\n this.rows[data]['uploadBy'] = this.uploadList.list[data]['uploadBy'];\r\n this.rows[data]['uploadedAt'] = this.uploadList.list[data]['uploadedAt'];\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n if (this.isSystemAdmin || this.isBUManager) {\r\n this.getFileUploadList(this.filters);\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n }\r\n FileUploadListComponent.prototype.getFileUploadList = function (filter) {\r\n var _this = this;\r\n this.httpService.getRequest(\"dataUploadOperations/v1/userMigration/list?limit=\" + filter.limit + \"&offset=\" + filter.offSet).subscribe(function (res) { _this.saveFileUploadList(res, filter); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n /**\r\n * Populate the table with new data based on the page number\r\n * @param page The page to select\r\n */\r\n FileUploadListComponent.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n _this.getFileUploadList(_this.filters);\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n FileUploadListComponent.prototype.showErrorMsg = function (msg) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"j\" /* CSVErrorDialogComponent */]);\r\n this.dialogRef.componentInstance.msg = msg;\r\n };\r\n FileUploadListComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.translate.get('total').subscribe(function (res) {\r\n _this.dataTableMessage.totalMessage = res;\r\n });\r\n this.translate.get('selected').subscribe(function (res) {\r\n _this.dataTableMessage.selectedMessage = res;\r\n });\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], FileUploadListComponent.prototype, \"table\", void 0);\r\n FileUploadListComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'fileUploadList',\r\n template: __webpack_require__(1259)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_11__fileUploadListDashboardResultService__[\"a\" /* FileUploadListDashboardResultService */], __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_12_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], FileUploadListComponent);\r\n return FileUploadListComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 291:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return FileUploadListDashboardResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__fileUploadList_datatable_fileUploadList_page_data__ = __webpack_require__(753);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__fileUploadList_datatable_fileUploadList_dashboard__ = __webpack_require__(752);\n/**\r\n * Created by shubham on 8/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar FileUploadListDashboardResultService = (function () {\r\n function FileUploadListDashboardResultService() {\r\n this.rows = {};\r\n this.adminDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n FileUploadListDashboardResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n FileUploadListDashboardResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__fileUploadList_datatable_fileUploadList_page_data__[\"a\" /* FileUploadListPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__fileUploadList_datatable_fileUploadList_dashboard__[\"a\" /* FileUploadListDashboard */](jsonObj['id'], jsonObj['type'], jsonObj['countryName'], jsonObj['businessUnitName'], jsonObj['includesHeader'], jsonObj['csvName'], jsonObj['csvUrl'], jsonObj['status'], jsonObj['error'], jsonObj['message'], jsonObj['uploadBy'], jsonObj['uploadedAt']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n FileUploadListDashboardResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], FileUploadListDashboardResultService);\r\n return FileUploadListDashboardResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 292:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ForgotPasswordComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 17/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ForgotPasswordComponent = (function () {\r\n function ForgotPasswordComponent(router, route, httpService, sessionHandler, dialog, translate, formBuilder, commonService) {\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.formBuilder = formBuilder;\r\n this.commonService = commonService;\r\n this.data = [];\r\n }\r\n ForgotPasswordComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ForgetPasswordForm = this.formBuilder.group({\r\n userId_WPASS: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required]),\r\n });\r\n this.ForgetPasswordForm.valueChanges.subscribe(function (data) {\r\n _this.ForgetPasswordFormDetails = _this.ForgetPasswordForm.getRawValue();\r\n });\r\n };\r\n ForgotPasswordComponent.prototype.forgetPassword = function () {\r\n var _this = this;\r\n this.httpService.postRequest(this.ForgetPasswordFormDetails, 'userOperationsApi/v1/forgotPassword').subscribe(function (res) { _this.saveResponse(res); }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n ForgotPasswordComponent.prototype.saveResponse = function (res) {\r\n var _this = this;\r\n if (res) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'after_reset_password_notify';\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n _this.router.navigateByUrl('/login');\r\n });\r\n }\r\n this.httpService.onEnd();\r\n };\r\n ForgotPasswordComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n ForgotPasswordComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1260)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_9_ng2_translate__[\"d\" /* TranslateService */], __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], ForgotPasswordComponent);\r\n return ForgotPasswordComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 293:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return LoginComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__layout_layout_service__ = __webpack_require__(72);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__shared_services_common_service__ = __webpack_require__(24);\n/**\r\n * Created by shubham on 27/2/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar LoginComponent = (function () {\r\n function LoginComponent(dialog, router, route, layoutService, httpService, sessionHandler, formBuilder, translate, commonService) {\r\n var _this = this;\r\n this.dialog = dialog;\r\n this.router = router;\r\n this.route = route;\r\n this.layoutService = layoutService;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.formBuilder = formBuilder;\r\n this.translate = translate;\r\n this.commonService = commonService;\r\n this.redirectUrl = \"\";\r\n this.PartnersFormDetails = [];\r\n //Get URL param value\r\n this.route.params.subscribe(function (params) {\r\n _this.urlId = params['id'];\r\n if (_this.urlId != undefined) {\r\n _this.urlId = _this.urlId.toUpperCase();\r\n }\r\n });\r\n this.redirectUrl = this.commonService.getLoginRedirectUrl();\r\n //this.redirectUrl = this.sessionHandler.getItem('lastUrl');\r\n console.log(this.redirectUrl);\r\n this.getLanguages();\r\n }\r\n LoginComponent.prototype.googleInit = function () {\r\n var that = this;\r\n gapi.load('auth2', function () {\r\n that.auth2 = gapi.auth2.init({\r\n client_id: __WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].google_client_id,\r\n cookiepolicy: 'single_host_origin',\r\n scope: 'profile email'\r\n });\r\n that.attachSignin(document.getElementById('googleBtn'));\r\n });\r\n };\r\n //Attach Click Handler\r\n LoginComponent.prototype.attachSignin = function (element) {\r\n var that = this;\r\n this.auth2.attachClickHandler(element, {}, function (googleUser) {\r\n that.adminLogin(googleUser);\r\n }, function (error) {\r\n console.log(JSON.stringify(error, undefined, 2));\r\n });\r\n };\r\n //Google Login Post API\r\n LoginComponent.prototype.adminLogin = function (googleUser) {\r\n var _this = this;\r\n var profile = googleUser.getBasicProfile();\r\n this.userDetails = {\r\n token: googleUser.getAuthResponse().id_token,\r\n name: profile.getName(),\r\n image: profile.getImageUrl(),\r\n email: profile.getEmail(),\r\n languageId: this.PartnersFormDetails.languageId\r\n };\r\n if (this.userDetails.email) {\r\n this.httpService.postRequest(this.userDetails, 'userOperationsApi/v1/googleLogin').subscribe(function (res) { _this.saveResponse(res, 'GoogleLogin'); }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n else {\r\n this.layoutService.popToast(\"Invalid Email Domain.\", __WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].toastrType.error);\r\n }\r\n };\r\n //Service Login Post API\r\n LoginComponent.prototype.servicePartnerLogin = function () {\r\n var _this = this;\r\n if (this.PartnersFormDetails.userId_WPASS) {\r\n this.httpService.postRequest(this.PartnersFormDetails, 'userOperationsApi/v1/wpasslogin').subscribe(function (res) { _this.saveResponse(res, 'PartnersLogin'); }, function (err) {\r\n _this.PartnersForm.reset();\r\n _this.getLanguages();\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n else {\r\n this.layoutService.popToast(\"Invalid Email Domain.\", __WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].toastrType.error);\r\n }\r\n };\r\n //Save Response of Google Login API/Service Partner Login API\r\n LoginComponent.prototype.saveResponse = function (res, selectedLogin) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n if (selectedLogin == 'PartnersLogin') {\r\n this.PartnersForm.reset();\r\n this.getLanguages();\r\n }\r\n alert('User is not authorized');\r\n }\r\n else {\r\n if (res) {\r\n this.sessionHandler.saveItem(\"loginData\", JSON.stringify(res));\r\n if (res.languageId) {\r\n this.setLanguage(res.languageId);\r\n }\r\n else {\r\n this.setLanguage('EN');\r\n }\r\n var redirectUrl = void 0;\r\n if (selectedLogin == \"GoogleLogin\") {\r\n this.sessionHandler.saveItem(\"userDetails\", JSON.stringify(this.userDetails));\r\n if (res.roleCode.includes(__WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n redirectUrl = '#/app/profile';\r\n //this.sessionHandler.saveItem(\"wpassLogin\", true);\r\n }\r\n else if (res.roleCode.includes(__WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].BUManager) || res.roleCode.includes(__WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n redirectUrl = '#/app/admin-dashboard';\r\n }\r\n else if (res.roleCode.includes(__WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n redirectUrl = '#/app/application-manager-dashboard';\r\n }\r\n else {\r\n alert('No role assigned to user. Please contact your administrator.');\r\n redirectUrl = '#/login';\r\n }\r\n if (this.redirectUrl != \"\" && this.redirectUrl != undefined && this.redirectUrl != null) {\r\n redirectUrl = this.redirectUrl;\r\n }\r\n }\r\n else if (selectedLogin == \"PartnersLogin\") {\r\n this.sessionHandler.saveItem(\"userDetails\", JSON.stringify(this.PartnersFormDetails));\r\n if (res.roleCode.includes(__WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].serviceOwner) || res.roleCode.includes(__WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n redirectUrl = '#/app/partners-dashboard';\r\n this.sessionHandler.saveItem(\"wpassLogin\", true);\r\n }\r\n else if (res.roleCode.includes(__WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n redirectUrl = '#/app/profile';\r\n }\r\n else {\r\n alert('No role assigned to user. Please contact your administrator.');\r\n redirectUrl = '#/login';\r\n }\r\n }\r\n this.httpService.onEnd();\r\n window.location.href = redirectUrl;\r\n }\r\n }\r\n };\r\n //Get Languages Details\r\n LoginComponent.prototype.getLanguages = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(function (res) { _this.saveLanguageResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n //Save Languages Response\r\n LoginComponent.prototype.saveLanguageResponse = function (res) {\r\n if (res && res.items) {\r\n this.languageDetails = res.items;\r\n var localStorageLanguageId = this.sessionHandler.getItem('languageId');\r\n for (var l in this.languageDetails) {\r\n if (this.urlId != undefined && this.urlId != null) {\r\n if (this.languageDetails[l]['id'] == this.urlId) {\r\n this.setLanguage(this.urlId);\r\n this.PartnersForm.controls['languageId'].setValue(this.urlId);\r\n }\r\n }\r\n else if (localStorageLanguageId != undefined && localStorageLanguageId != null) {\r\n if (this.languageDetails[l]['id'] == localStorageLanguageId) {\r\n this.setLanguage(localStorageLanguageId);\r\n this.PartnersForm.controls['languageId'].setValue(localStorageLanguageId);\r\n }\r\n }\r\n else {\r\n if (this.languageDetails[l]['id'] == 'EN') {\r\n this.defaultLanguageId = this.languageDetails[l]['id'];\r\n this.setLanguage(this.defaultLanguageId);\r\n }\r\n }\r\n }\r\n }\r\n this.httpService.onEnd();\r\n };\r\n LoginComponent.prototype.showPassword = function (input) {\r\n input.type = input.type === 'password' ? 'text' : 'password';\r\n };\r\n //Build Form\r\n LoginComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.PartnersForm = this.formBuilder.group({\r\n languageId: this.formBuilder.control(this.urlId),\r\n userId_WPASS: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n password: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required])\r\n });\r\n this.PartnersForm.valueChanges.subscribe(function (data) {\r\n _this.PartnersFormDetails = _this.PartnersForm.getRawValue();\r\n if (_this.PartnersFormDetails.languageId != null) {\r\n _this.setLanguage(_this.PartnersFormDetails.languageId);\r\n }\r\n });\r\n };\r\n LoginComponent.prototype.setLanguage = function (languageId) {\r\n this.sessionHandler.saveItem(\"languageId\", languageId);\r\n this.translate.setDefaultLang(languageId);\r\n this.translate.use(languageId);\r\n };\r\n //Initialize buildForm() function when Login Component loads\r\n LoginComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n //Initialize googleInit() function after viewPartners initialize\r\n LoginComponent.prototype.ngAfterViewInit = function () {\r\n this.googleInit();\r\n };\r\n LoginComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'app-login',\r\n styles: [],\r\n template: __webpack_require__(1269),\r\n providers: []\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_8__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_8__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_4__layout_layout_service__[\"a\" /* LayoutService */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */],\r\n __WEBPACK_IMPORTED_MODULE_2__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_9_ng2_translate__[\"d\" /* TranslateService */], __WEBPACK_IMPORTED_MODULE_10__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], LoginComponent);\r\n return LoginComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 294:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return PageLayoutFullscreenComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n\r\n\r\n// Children of AppModule instead of AppMainModule\r\nvar PageLayoutFullscreenComponent = (function () {\r\n function PageLayoutFullscreenComponent() {\r\n }\r\n PageLayoutFullscreenComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'my-page-layout-fullscreen',\r\n styles: [],\r\n template: __webpack_require__(1271)\r\n })\r\n ], PageLayoutFullscreenComponent);\r\n return PageLayoutFullscreenComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 295:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return PartnersDashboardComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__partners_datatable_partners_page__ = __webpack_require__(296);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__partnersDashboardResultService__ = __webpack_require__(297);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 24/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar PartnersDashboardComponent = (function () {\r\n function PartnersDashboardComponent(router, route, httpService, sessionHandler, formBuilder, dialog, serverResultsService, commonService, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.formBuilder = formBuilder;\r\n this.dialog = dialog;\r\n this.serverResultsService = serverResultsService;\r\n this.commonService = commonService;\r\n this.translate = translate;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_9__partners_datatable_partners_page__[\"a\" /* PartnersPage */]();\r\n this.tableRows = [];\r\n this.filters = {};\r\n this.partnersDashboardData = [];\r\n this.temp = [];\r\n this.showTable = true;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.selected = [];\r\n this.searchedFilters = { email: '', firstName: '', wpassId: '' };\r\n this.selectedStatusId = '';\r\n this.firstName = '';\r\n this.email = '';\r\n this.wpassId = '';\r\n this.isDisabled = false;\r\n this.showCheckbox = false;\r\n this.wpassLogin = false;\r\n this.type = '';\r\n this.dataTableMessage = { 'selectedMessage': '', 'totalMessage': '' };\r\n this.StatusData = [{\r\n \"id\": \"\",\r\n \"code\": \"\",\r\n \"name\": \"All\"\r\n }];\r\n //Close Sidebar Initially\r\n __WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].navCollapsed = true;\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.partnersText = 'partners';\r\n this.wpassLogin = JSON.parse(this.sessionHandler.getItem('wpassLogin'));\r\n if (this.wpassLogin != null && this.wpassLogin == true) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"c\" /* WelcomeDialogComponent */]);\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n localStorage.removeItem('wpassLogin');\r\n });\r\n }\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n //Get URL param value\r\n this.route.params.subscribe(function (params) {\r\n _this.urlId = +params['id'];\r\n });\r\n this.getStatusList();\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n this.callUsersListbyAdminOrPartner();\r\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\r\n this.commonService.partnersDashboard.subscribe(function (value) {\r\n if (!isNaN(_this.urlId)) {\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, _this.urlId, _this.email, _this.firstName, _this.wpassId);\r\n }\r\n else {\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, '', _this.email, _this.firstName, _this.wpassId);\r\n }\r\n });\r\n }\r\n PartnersDashboardComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.PartnersFiltersForm = this.formBuilder.group({\r\n firstName: this.formBuilder.control({ value: '', disabled: this.isDisabled }),\r\n email: this.formBuilder.control({ value: '', disabled: this.isDisabled }),\r\n wpassId: this.formBuilder.control(''),\r\n });\r\n this.PartnersFiltersForm.valueChanges.subscribe(function (data) {\r\n _this.firstName = _this.PartnersFiltersForm.get('firstName').value;\r\n _this.email = _this.PartnersFiltersForm.get('email').value;\r\n _this.wpassId = _this.PartnersFiltersForm.get('wpassId').value;\r\n });\r\n };\r\n PartnersDashboardComponent.prototype.disablefields = function (value) {\r\n if (value != '') {\r\n this.PartnersFiltersForm.controls['firstName'].setValue('');\r\n this.PartnersFiltersForm.controls['email'].setValue('');\r\n this.PartnersFiltersForm.controls['firstName'].disable();\r\n this.PartnersFiltersForm.controls['email'].disable();\r\n }\r\n else {\r\n this.PartnersFiltersForm.controls['firstName'].enable();\r\n this.PartnersFiltersForm.controls['email'].enable();\r\n }\r\n };\r\n PartnersDashboardComponent.prototype.resetSearch = function () {\r\n this.PartnersFiltersForm.controls['firstName'].enable();\r\n this.PartnersFiltersForm.controls['email'].enable();\r\n this.PartnersFiltersForm.reset();\r\n this.firstName = '';\r\n this.email = '';\r\n this.wpassId = '';\r\n this.selectedStatusId = \"\";\r\n this.callUsersListbyAdminOrPartner();\r\n };\r\n PartnersDashboardComponent.prototype.getStatusList = function () {\r\n var _this = this;\r\n this.httpService.getRequest(\"lookupDataOperationsApi/v1/registrationStatusFilter?includeDeleted=true\").subscribe(function (res) { _this.saveStatusList(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n PartnersDashboardComponent.prototype.saveStatusList = function (res) {\r\n if (res && res.items) {\r\n for (var s in res.items) {\r\n this.StatusData.push(res.items[s]);\r\n }\r\n }\r\n };\r\n PartnersDashboardComponent.prototype.callUsersListbyAdminOrPartner = function () {\r\n this.selected = [];\r\n this.filters['offSet'] = 0;\r\n if (this.isServiceOwner || this.isTradePartner) {\r\n this.getUsersList(this.filters, this.selectedStatusId, '', this.email, this.firstName, this.wpassId);\r\n }\r\n else if (this.isRegionalAdmin || this.isBUManager) {\r\n if (this.urlId != NaN) {\r\n this.getUsersList(this.filters, this.selectedStatusId, this.urlId, this.email, this.firstName, this.wpassId);\r\n }\r\n }\r\n };\r\n PartnersDashboardComponent.prototype.getUsersList = function (filter, selectedStatus, id, email, firstName, wpassId) {\r\n var _this = this;\r\n this.searchedFilters.email = email;\r\n this.searchedFilters.firstName = firstName;\r\n this.searchedFilters.wpassId = wpassId;\r\n if (selectedStatus == 'PENDING') {\r\n this.showCheckbox = true;\r\n }\r\n else {\r\n this.showCheckbox = false;\r\n }\r\n this.httpService.getRequest(\"partnerOperationsApi/v1/companyUser/list?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&ownerId=\" + id + \"&status=\" + selectedStatus + \"&email=\" + email + \"&firstName=\" + firstName + \"&wpassId=\" + wpassId).subscribe(function (res) {\r\n if (id) {\r\n _this.saveUserList(res, filter, 'admin');\r\n }\r\n else {\r\n _this.saveUserList(res, filter, 'partners');\r\n }\r\n }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n PartnersDashboardComponent.prototype.saveUserList = function (res, filter, type) {\r\n this.type = type;\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.partnersDashboardData = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n this.count = res.count;\r\n this.totalCount = res.totalCount;\r\n if (this.partnersDashboardData['list']) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.partnersDashboardData['list']) {\r\n if (this.isBUManager || this.isRegionalAdmin || this.isServiceOwner || this.isTradePartner) {\r\n this.rows[data] = {};\r\n this.rows[data]['id'] = this.partnersDashboardData['list'][data]['id'];\r\n this.rows[data]['Name'] = this.partnersDashboardData['list'][data]['firstName'] + ' ' + this.partnersDashboardData['list'][data]['lastName'];\r\n if (this.partnersDashboardData['list'][data]['roleName']) {\r\n this.rows[data]['roleName'] = this.partnersDashboardData['list'][data]['roleName'];\r\n }\r\n this.rows[data]['email'] = this.partnersDashboardData['list'][data]['email'];\r\n this.rows[data]['emailVerified'] = this.partnersDashboardData['list'][data]['emailVerified'];\r\n if (this.partnersDashboardData['list'][data]['userId_WPASS']) {\r\n this.rows[data]['userId_WPASS'] = this.partnersDashboardData['list'][data]['userId_WPASS'];\r\n }\r\n else {\r\n this.rows[data]['userId_WPASS'] = null;\r\n }\r\n this.rows[data]['languageId'] = this.partnersDashboardData['list'][data]['languageId'];\r\n this.rows[data]['languageName'] = this.partnersDashboardData['list'][data]['languageName'];\r\n this.rows[data]['status'] = this.partnersDashboardData['list'][data]['status'];\r\n this.rows[data]['ownerId'] = this.partnersDashboardData['list'][data]['ownerId'];\r\n this.rows[data]['sessionUserManager'] = this.partnersDashboardData['list'][data]['sessionUserManager'];\r\n this.rows[data]['createdAt'] = this.partnersDashboardData['list'][data]['createdAt'];\r\n this.rows[data]['updatedAt'] = this.partnersDashboardData['list'][data]['updatedAt'];\r\n }\r\n else {\r\n //For Other Service Partner's\r\n this.rows[data] = {};\r\n }\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n /**\r\n * Populate the table with new data based on the page number\r\n * @param page The page to select\r\n */\r\n PartnersDashboardComponent.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n console.log('type:' + _this.type);\r\n if (_this.type == 'admin') {\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, _this.urlId, _this.email, _this.firstName, _this.wpassId);\r\n }\r\n else if (_this.type == 'partners') {\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, '', _this.email, _this.firstName, _this.wpassId);\r\n }\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n PartnersDashboardComponent.prototype.onSelect = function (_a) {\r\n var selected = _a.selected;\r\n this.selected.splice(0, this.selected.length);\r\n (_b = this.selected).push.apply(_b, selected);\r\n this.selectedCount = this.selected.length;\r\n var _b;\r\n };\r\n PartnersDashboardComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n this.translate.get('total').subscribe(function (res) {\r\n _this.dataTableMessage.totalMessage = res;\r\n });\r\n this.translate.get('selected').subscribe(function (res) {\r\n _this.dataTableMessage.selectedMessage = res;\r\n });\r\n };\r\n PartnersDashboardComponent.prototype.ngOnDestroy = function () {\r\n this.dialog.closeAll();\r\n localStorage.removeItem('wpassLogin');\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], PartnersDashboardComponent.prototype, \"table\", void 0);\r\n PartnersDashboardComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'partners-dashboard',\r\n template: __webpack_require__(1272)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_10__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_12__partnersDashboardResultService__[\"a\" /* PartnersDashboardResultService */],\r\n __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], PartnersDashboardComponent);\r\n return PartnersDashboardComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 296:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return PartnersPage; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * An object used to get page information from the server\r\n */\r\nvar PartnersPage = (function () {\r\n function PartnersPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return PartnersPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 297:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return PartnersDashboardResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__partners_dashboard_partners_datatable_partners_page_data__ = __webpack_require__(774);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__partners_dashboard_partners_datatable_partnersDashboardList__ = __webpack_require__(775);\n/**\r\n * Created by shubham on 24/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar PartnersDashboardResultService = (function () {\r\n function PartnersDashboardResultService() {\r\n this.rows = {};\r\n this.partnersDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n PartnersDashboardResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n PartnersDashboardResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__partners_dashboard_partners_datatable_partners_page_data__[\"a\" /* PartnersPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__partners_dashboard_partners_datatable_partnersDashboardList__[\"a\" /* PartnersDashboardList */](jsonObj['id'], jsonObj['Name'], jsonObj['roleName'], jsonObj['email'], jsonObj['emailVerified'], jsonObj['userId_WPASS'], jsonObj['languageId'], jsonObj['languageName'], jsonObj['status'], jsonObj['ownerId'], jsonObj['sessionUserManager'], jsonObj['createdAt']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n PartnersDashboardResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], PartnersDashboardResultService);\r\n return PartnersDashboardResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 298:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return RegistrationComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__layout_layout_service__ = __webpack_require__(72);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ng2_daterangepicker__ = __webpack_require__(566);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ng2_daterangepicker___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_ng2_daterangepicker__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 28/2/18.\r\n * Updated by shubham on 06/10/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar RegistrationComponent = (function () {\r\n function RegistrationComponent(route, router, httpService, layoutService, dialog, formBuilder, daterangepickerOptions, sessionHandler, translate) {\r\n var _this = this;\r\n this.route = route;\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.layoutService = layoutService;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.daterangepickerOptions = daterangepickerOptions;\r\n this.sessionHandler = sessionHandler;\r\n this.translate = translate;\r\n this.RegistrationDataById = [];\r\n this.CountryAndBusinessUnitDataById = [];\r\n this.Countries = [];\r\n this.BusinessUnit = [];\r\n this.isApplicationRemovable = true;\r\n this.Applications = [];\r\n this.emailPattern = __WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].emailPattern;\r\n //passwordPattern = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{5,}$/;\r\n this.passwordPattern = /^(?=.*?[A-Za-z])(?=.*?[0-9]).{5,}$/;\r\n this.phoneNumberPattern = /^[+]?([0-9]*[\\.\\s\\-\\(\\)]|[0-9]+){3,7}$/;\r\n //phoneNumberPattern = /^(\\+\\d{1,2}\\s)?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}$/;\r\n this.customerNumberLength = 0;\r\n this.urlIdFlag = false;\r\n this.appsUrlIdFlag = false;\r\n this.passwordErrorMsg = '';\r\n //Get URL param value\r\n this.route.params.subscribe(function (params) {\r\n _this.urlId = params['id'];\r\n _this.getLanguages();\r\n if (_this.urlId != undefined || _this.urlId != null) {\r\n _this.urlIdFlag = true;\r\n if (router.url.indexOf(\"apps\") > -1) {\r\n _this.appsUrlIdFlag = true;\r\n _this.getCountryAndBusinessUnitById(_this.urlId);\r\n }\r\n else {\r\n _this.getCountries();\r\n _this.getBusinessUnit();\r\n _this.getRegistrationDataById(_this.urlId);\r\n }\r\n }\r\n else {\r\n _this.urlIdFlag = false;\r\n _this.getCountries();\r\n }\r\n });\r\n }\r\n RegistrationComponent.prototype.getCountries = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/country').subscribe(function (res) { _this.saveCountries(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n RegistrationComponent.prototype.validateName = function (event) {\r\n return __WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].validNameRegex.test(event.key);\r\n };\r\n RegistrationComponent.prototype.saveCountries = function (res) {\r\n if (res && res.items) {\r\n this.Countries = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n RegistrationComponent.prototype.getBusinessUnit = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/businessUnit').subscribe(function (res) { _this.saveBusinessUnits(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n RegistrationComponent.prototype.saveBusinessUnits = function (res) {\r\n if (res && res.items) {\r\n this.BusinessUnit = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n RegistrationComponent.prototype.getLanguages = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(function (res) { _this.saveLanguageResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n RegistrationComponent.prototype.saveLanguageResponse = function (res) {\r\n if (res && res.items) {\r\n this.LanguageData = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n RegistrationComponent.prototype.getBusinessUnitByCountryId = function (countryId) {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/businessUnitForCountry/' + countryId).subscribe(function (res) { _this.saveBusinessUnitByCountryId(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n RegistrationComponent.prototype.saveBusinessUnitByCountryId = function (res) {\r\n if (res && res.items) {\r\n this.BusinessUnit = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n RegistrationComponent.prototype.getApplicationsByCountryAndBusinessUnit = function (countryId, businessUnitId) {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/getApplicationForbusinessUnit?countryId=' + countryId + '&businessUnitId=' + businessUnitId).subscribe(function (res) { _this.saveApplicationsByCountryAndBusinessUnit(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n RegistrationComponent.prototype.saveApplicationsByCountryAndBusinessUnit = function (res) {\r\n if (res && res.items) {\r\n this.Applications = res.items;\r\n this.createRoles(this.Applications);\r\n }\r\n this.httpService.onEnd();\r\n };\r\n RegistrationComponent.prototype.getCountryAndBusinessUnitById = function (urlId) {\r\n var _this = this;\r\n this.httpService.getRequest('/applicationOperationApi/v1/getbusinessUnitCountryForApplication?id=' + urlId).subscribe(function (res) { _this.saveCountryAndBusinessUnitById(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n RegistrationComponent.prototype.saveCountryAndBusinessUnitById = function (res) {\r\n this.CountryAndBusinessUnitDataById = res;\r\n if (this.CountryAndBusinessUnitDataById) {\r\n this.Countries = this.CountryAndBusinessUnitDataById['countryList'];\r\n }\r\n this.httpService.onEnd();\r\n };\r\n RegistrationComponent.prototype.getRegistrationDataById = function (urlId) {\r\n var _this = this;\r\n this.httpService.getRequest('/userRegistrationsApi/v1/migratedUserDetails/' + urlId).subscribe(function (res) { _this.saveRegistrationData(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n RegistrationComponent.prototype.saveRegistrationData = function (res) {\r\n if (res) {\r\n this.RegistrationDataById = res;\r\n this.RegistrationForm.controls['email'].disable();\r\n this.RegistrationForm.controls['countryId'].disable();\r\n this.RegistrationForm.controls['businessUnitId'].disable();\r\n this.RegistrationForm.controls['companyName'].disable();\r\n this.RegistrationForm.controls['customerNumber'].disable();\r\n $('#exampleInputNewPassword').focus();\r\n this.buildForm();\r\n // Now get all the applications\r\n if (!res.selectedApplications) {\r\n this.getApplicationsByCountryAndBusinessUnit(this.RegistrationDataById['countryId'], this.RegistrationDataById['businessUnitId']);\r\n }\r\n else {\r\n this.isApplicationRemovable = false;\r\n //Case where roles are already assigned to the migrated user \r\n res.items = res.selectedApplications;\r\n this.saveApplicationsByCountryAndBusinessUnit(res);\r\n }\r\n }\r\n };\r\n RegistrationComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.RegistrationForm = this.formBuilder.group({\r\n firstName: this.formBuilder.control(this.RegistrationDataById['firstName'] ? this.RegistrationDataById['firstName'] : null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n lastName: this.formBuilder.control(this.RegistrationDataById['lastName'] ? this.RegistrationDataById['lastName'] : null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n password: this.formBuilder.control('', [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].minLength(8), __WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].maxLength(8), __WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].pattern(this.passwordPattern)]),\r\n confirmPassword: this.formBuilder.control('', [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n email: this.formBuilder.control(this.RegistrationDataById['email'] ? this.RegistrationDataById['email'] : null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].pattern(this.emailPattern)]),\r\n countryId: this.formBuilder.control(this.RegistrationDataById['countryId'] ? this.RegistrationDataById['countryId'] : null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n businessUnitId: this.formBuilder.control(this.RegistrationDataById['businessUnitId'] ? this.RegistrationDataById['businessUnitId'] : null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n companyName: this.formBuilder.control(this.RegistrationDataById['companyName'] ? this.RegistrationDataById['companyName'] : null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n companyAddress: this.formBuilder.control(this.RegistrationDataById['companyAddress'] ? this.RegistrationDataById['companyAddress'] : null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n customerNumber: this.formBuilder.control(this.RegistrationDataById['customerNumber'] ? this.RegistrationDataById['customerNumber'] : null),\r\n companyPhone: this.formBuilder.control(this.RegistrationDataById['companyPhone'] ? this.RegistrationDataById['companyPhone'] : null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].pattern(this.phoneNumberPattern)]),\r\n languageId: this.formBuilder.control(this.RegistrationDataById['languageId'] ? this.RegistrationDataById['languageId'] : null),\r\n applications: this.formBuilder.array([])\r\n }, { validator: this.checkPasswords });\r\n this.RegistrationForm.valueChanges.subscribe(function (data) {\r\n _this.RegistrationFormDetails = _this.RegistrationForm.getRawValue();\r\n if (_this.urlIdFlag) {\r\n _this.RegistrationFormDetails['migratedFrom'] = _this.RegistrationDataById['id'];\r\n }\r\n _this.RegistrationFormDetails.validate = _this.RegistrationForm.valid;\r\n });\r\n this.RegistrationForm.get('countryId').valueChanges.subscribe(function (data) {\r\n if (!_this.urlIdFlag || _this.appsUrlIdFlag) {\r\n _this.RegistrationForm.controls['businessUnitId'].setValue(null);\r\n _this.BusinessUnit = [];\r\n if (!_this.urlIdFlag && data != null) {\r\n _this.getBusinessUnitByCountryId(data);\r\n }\r\n else if (_this.appsUrlIdFlag && data != null) {\r\n for (var _i = 0, _a = _this.CountryAndBusinessUnitDataById['countryList']; _i < _a.length; _i++) {\r\n var countryData = _a[_i];\r\n if (countryData && countryData['id'] && data == countryData['id'] && countryData['businessUnitList']) {\r\n _this.BusinessUnit = countryData['businessUnitList'];\r\n }\r\n }\r\n }\r\n }\r\n });\r\n this.RegistrationForm.get('businessUnitId').valueChanges.subscribe(function (data) {\r\n if (!_this.urlIdFlag || _this.appsUrlIdFlag) {\r\n var arrayControl = _this.RegistrationForm.controls['applications'];\r\n arrayControl.controls = [];\r\n _this.Applications = [];\r\n if (!_this.urlIdFlag && data != null) {\r\n _this.getApplicationsByCountryAndBusinessUnit(_this.RegistrationForm.get('countryId').value, data);\r\n }\r\n else if (_this.appsUrlIdFlag && data != null) {\r\n _this.Applications.push(_this.CountryAndBusinessUnitDataById);\r\n _this.createRoles(_this.Applications);\r\n }\r\n }\r\n });\r\n this.RegistrationForm.get('customerNumber').valueChanges.subscribe(function (data) {\r\n if (data != null) {\r\n _this.customerNumberLength = data.toString().length;\r\n }\r\n });\r\n this.RegistrationForm.get('languageId').valueChanges.subscribe(function (data) {\r\n if (data != null) {\r\n _this.sessionHandler.saveItem(\"languageId\", data);\r\n _this.translate.setDefaultLang(data);\r\n _this.translate.use(data);\r\n }\r\n });\r\n this.RegistrationForm.get('password').valueChanges.subscribe(function (data) {\r\n if (data != null) {\r\n _this.RegistrationForm.get('password').setErrors({ 'incorrect': true });\r\n if (!/.*[A-Z]/.test(data) || !/.*[a-z]/.test(data)) {\r\n _this.passwordErrorMsg = \"pass_one_upper_lower_char\";\r\n }\r\n else if (!/.*[0-9]/.test(data)) {\r\n _this.passwordErrorMsg = \"pass_one_number\";\r\n }\r\n else if (data.length != 8) {\r\n _this.passwordErrorMsg = \"pass_8_chars\";\r\n }\r\n else {\r\n _this.passwordErrorMsg = \"\";\r\n _this.RegistrationForm.get('password').setErrors(null);\r\n }\r\n }\r\n });\r\n };\r\n RegistrationComponent.prototype.checkPasswords = function (group) {\r\n if (group.get('password').value === group.get('confirmPassword').value) {\r\n group.get('confirmPassword').setErrors(null);\r\n return null;\r\n }\r\n else {\r\n group.get('confirmPassword').setErrors({ 'incorrect': true });\r\n return { 'mismatch': true };\r\n }\r\n };\r\n RegistrationComponent.prototype.showPassword = function (input) {\r\n input.type = input.type === 'password' ? 'text' : 'password';\r\n };\r\n RegistrationComponent.prototype.createRoles = function (applicationsData) {\r\n for (var _i = 0, applicationsData_1 = applicationsData; _i < applicationsData_1.length; _i++) {\r\n var data = applicationsData_1[_i];\r\n this.onAddApplicationsProperty(data);\r\n }\r\n };\r\n RegistrationComponent.prototype.onAddApplicationsProperty = function (data) {\r\n var arrayControl = this.RegistrationForm.controls['applications'];\r\n var newGroup;\r\n if (data) {\r\n newGroup = this.formBuilder.group({\r\n applicationId: this.formBuilder.control(data.id ? data.id : null),\r\n applicationName: this.formBuilder.control({ value: data.applicationName ? data.applicationName : null, disabled: true }, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n });\r\n }\r\n else {\r\n newGroup = this.formBuilder.group({\r\n applicationId: this.formBuilder.control(null),\r\n applicationName: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required]),\r\n });\r\n }\r\n arrayControl.push(newGroup);\r\n };\r\n /*ChangeValidator(group: FormGroup){\r\n if(group.get('customerNumberCheck').value){\r\n group.get('customerNumber').setValidators([Validators.required]);\r\n } else{\r\n group.get('customerNumber').setValidators(null);\r\n }\r\n return null;\r\n }*/\r\n RegistrationComponent.prototype.onDeleteRoleProperty = function (index) {\r\n var arrayControl = this.RegistrationForm.controls['applications'];\r\n arrayControl.removeAt(index);\r\n };\r\n RegistrationComponent.prototype.saveData = function () {\r\n var _this = this;\r\n if (this.RegistrationFormDetails) {\r\n this.httpService.postRequest(this.RegistrationFormDetails, 'userRegistrationsApi/v1/register/serviceOwner').subscribe(function (res) { _this.saveResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n else {\r\n this.layoutService.popToast(\"Invalid Email Domain.\", __WEBPACK_IMPORTED_MODULE_5__config__[\"a\" /* APPCONFIG */].toastrType.error);\r\n }\r\n };\r\n RegistrationComponent.prototype.saveResponse = function (res) {\r\n var _this = this;\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_10__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'User is not authorized';\r\n }\r\n else {\r\n var email = res.email;\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_10__dialog_dialog_component__[\"e\" /* RegistrationDialogComponent */]);\r\n if (this.urlIdFlag) {\r\n this.dialogRef.componentInstance.msg = \"after_registration_notify\";\r\n }\r\n else {\r\n this.dialogRef.componentInstance.msg = \"registration_rqst_notify\";\r\n }\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n _this.router.navigateByUrl('/login');\r\n });\r\n }\r\n };\r\n RegistrationComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n RegistrationComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1275)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_8__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_8__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__layout_layout_service__[\"a\" /* LayoutService */],\r\n __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_9_ng2_daterangepicker__[\"DaterangepickerConfig\"],\r\n __WEBPACK_IMPORTED_MODULE_2__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_11_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], RegistrationComponent);\r\n return RegistrationComponent;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 299:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AddAdminComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 8/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AddAdminComponent = (function () {\r\n function AddAdminComponent(sessionHandler, httpService, dialog, formBuilder, translate) {\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.translate = translate;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.adminRoles = [];\r\n this.settings = {};\r\n this.languages = [];\r\n this.emailPattern = __WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].emailPattern;\r\n this.isDisabled = true;\r\n this.api1 = true;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n if (this.isSystemAdmin) {\r\n this.getAdminRoles();\r\n this.getLanguages();\r\n }\r\n }\r\n AddAdminComponent.prototype.validateName = function (event) {\r\n return __WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].validNameRegex.test(event.key);\r\n };\r\n AddAdminComponent.prototype.getAdminRoles = function () {\r\n var _this = this;\r\n this.httpService.getRequest('superUserOperationsApi/v1/adminRoles').subscribe(function (res) { _this.saveAdminRoles(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddAdminComponent.prototype.saveAdminRoles = function (res) {\r\n if (res && res.items) {\r\n this.adminRoles = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddAdminComponent.prototype.getLanguages = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(function (res) { _this.saveLanguage(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddAdminComponent.prototype.saveLanguage = function (res) {\r\n if (res && res.items) {\r\n this.languages = res.items;\r\n for (var l in this.languages) {\r\n if (this.languages[l]['id'] == 'EN') {\r\n this.defaultLanguageId = this.languages[l]['id'];\r\n }\r\n }\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddAdminComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.AdminForm = this.formBuilder.group({\r\n firstName: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n lastName: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n email: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].pattern(this.emailPattern)]),\r\n languageId: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n roleData: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n userId_WPASS: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n });\r\n this.AdminForm.valueChanges.subscribe(function (data) {\r\n _this.AdminFormDetails = _this.AdminForm.getRawValue();\r\n _this.AdminFormDetails['roleId'] = [];\r\n for (var d in _this.AdminFormDetails.roleData) {\r\n _this.AdminFormDetails['roleId'].push(_this.AdminFormDetails.roleData[d]['id']);\r\n }\r\n _this.AdminFormDetails.validate = _this.AdminForm.valid;\r\n });\r\n };\r\n AddAdminComponent.prototype.buroleSelect = function (item) {\r\n if (this.selectedAdminItems.find(function (x) { return x.id == \"5639445604728832\"; })) {\r\n if (this.wpassId) {\r\n if (this.api1) {\r\n /* this.dialogRef = this.dialog.open(DialogComponent);\r\n this.dialogRef.componentInstance.msg = \"This user id is not able to assign manager\"; */\r\n }\r\n }\r\n else {\r\n if (this.selectedAdminItems.find(function (x) { return x.id == \"5639445604728832\"; })) {\r\n var sliceFor = this.selectedAdminItems.findIndex(function (x) { return x.id == \"5639445604728832\"; });\r\n this.selectedAdminItems.splice(sliceFor);\r\n if (this.selectedAdminItems.length == 0) {\r\n this.selectedAdminItems = [];\r\n }\r\n console.log(this.selectedAdminItems);\r\n }\r\n }\r\n }\r\n else {\r\n if (this.wpassId) { }\r\n }\r\n };\r\n AddAdminComponent.prototype.onBlurWpass = function () {\r\n if (this.selectedAdminItems) {\r\n console.log(this.selectedAdminItems);\r\n if (this.selectedAdminItems.find(function (x) { return x.id == \"5639445604728832\"; })) {\r\n if (this.wpassId) {\r\n if (this.api1) {\r\n /* this.dialogRef = this.dialog.open(DialogComponent);\r\n this.dialogRef.componentInstance.msg = \"This user id is not able to assign manager\"; */\r\n if (this.selectedAdminItems.find(function (x) { return x.id == \"5639445604728832\"; })) {\r\n var sliceFor = this.selectedAdminItems.findIndex(function (x) { return x.id == \"5639445604728832\"; });\r\n this.selectedAdminItems.splice(sliceFor);\r\n if (this.selectedAdminItems.length == 0) {\r\n this.selectedAdminItems = [];\r\n }\r\n console.log(this.selectedAdminItems);\r\n }\r\n }\r\n }\r\n }\r\n else if (this.wpassId) { }\r\n }\r\n };\r\n AddAdminComponent.prototype.noWpassId = function (item) {\r\n console.log(item);\r\n };\r\n AddAdminComponent.prototype.saveAdminData = function () {\r\n var _this = this;\r\n this.httpService.postRequest(this.AdminFormDetails, 'superUserOperationsApi/v1/admin').subscribe(function (res) { _this.saveAdminResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddAdminComponent.prototype.saveAdminResponse = function (res) {\r\n if (res) {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"Admin added successfully\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n window.location.href = '#/app/manage-admin/list';\r\n });\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'save_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n AddAdminComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n var temp_settings = { singleSelection: false, text: \"\", labelKey: \"name\", selectAllText: \"\", unSelectAllText: \"\", classes: \"myclass custom-class\" };\r\n this.translate.get('Select Role').subscribe(function (res) {\r\n temp_settings.text = res;\r\n if (temp_settings.text && temp_settings.selectAllText && temp_settings.unSelectAllText) {\r\n _this.settings = temp_settings;\r\n }\r\n });\r\n this.translate.get('select_all').subscribe(function (res) {\r\n temp_settings.selectAllText = res;\r\n if (temp_settings.text && temp_settings.selectAllText && temp_settings.unSelectAllText) {\r\n _this.settings = temp_settings;\r\n }\r\n });\r\n this.translate.get('unselect_all').subscribe(function (res) {\r\n temp_settings.unSelectAllText = res;\r\n if (temp_settings.text && temp_settings.selectAllText && temp_settings.unSelectAllText) {\r\n _this.settings = temp_settings;\r\n }\r\n });\r\n };\r\n AddAdminComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'add-admin',\r\n template: __webpack_require__(1276)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"h\" /* FormBuilder */],\r\n __WEBPACK_IMPORTED_MODULE_8_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], AddAdminComponent);\r\n return AddAdminComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 300:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminListPage; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * An object used to get page information from the server\r\n */\r\nvar AdminListPage = (function () {\r\n function AdminListPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return AdminListPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 301:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminListComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__adminList_datatable_adminList_page__ = __webpack_require__(300);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__adminListDashboardResultService__ = __webpack_require__(302);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 8/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AdminListComponent = (function () {\r\n function AdminListComponent(router, httpService, sessionHandler, dialog, formBuilder, serverResultsService, commonService, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.serverResultsService = serverResultsService;\r\n this.commonService = commonService;\r\n this.translate = translate;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_10__adminList_datatable_adminList_page__[\"a\" /* AdminListPage */]();\r\n this.tableRows = [];\r\n this.filters = {};\r\n this.adminListData = [];\r\n this.temp = [];\r\n this.showTable = true;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.selected = [];\r\n this.firstName = '';\r\n this.email = '';\r\n this.wpassId = '';\r\n this.isDisabled = false;\r\n this.dataTableMessage = { 'selectedMessage': '', 'totalMessage': '' };\r\n this.getUserList = function () {\r\n this.showTable = false;\r\n };\r\n this.saveUserList = function (res, filter) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.adminListData = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n if (this.adminListData.list) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.adminListData.list) {\r\n if (this.isSystemAdmin) {\r\n this.rows[data] = {};\r\n this.rows[data]['id'] = this.adminListData.list[data]['id'];\r\n this.rows[data]['Name'] = this.adminListData.list[data]['firstName'] + ' ' + this.adminListData.list[data]['lastName'];\r\n this.rows[data]['roleName'] = this.adminListData.list[data]['roleName'];\r\n this.rows[data]['email'] = this.adminListData.list[data]['email'];\r\n this.rows[data]['emailVerified'] = this.adminListData.list[data]['emailVerified'];\r\n if (this.adminListData.list[data]['userId_WPASS']) {\r\n this.rows[data]['userId_WPASS'] = this.adminListData.list[data]['userId_WPASS'];\r\n }\r\n else {\r\n this.rows[data]['userId_WPASS'] = null;\r\n }\r\n if (this.adminListData.list[data]['pendingSubUserCount']) {\r\n this.rows[data]['pendingSubUserCount'] = this.adminListData.list[data]['pendingSubUserCount'];\r\n }\r\n else {\r\n this.rows[data]['pendingSubUserCount'] = 0;\r\n }\r\n this.rows[data]['languageId'] = this.adminListData.list[data]['languageId'];\r\n this.rows[data]['languageName'] = 'Language';\r\n if (this.adminListData.list[data]['active'] == true) {\r\n this.rows[data]['status'] = 'Active';\r\n }\r\n else {\r\n this.rows[data]['status'] = 'Inactive';\r\n }\r\n this.rows[data]['active'] = this.adminListData.list[data]['active'];\r\n this.rows[data]['createdAt'] = this.adminListData.list[data]['createdAt'];\r\n this.rows[data]['updatedAt'] = this.adminListData.list[data]['updatedAt'];\r\n }\r\n else {\r\n //For Other Service Partner's\r\n this.rows[data] = {};\r\n }\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n this.adminListText = 'adminList';\r\n //Assign Active or Inactive status\r\n this.StatusData = [\r\n {\r\n \"id\": true,\r\n \"code\": \"ACTIVE\",\r\n \"name\": \"Active\"\r\n }, {\r\n \"id\": false,\r\n \"code\": \"INACTIVE\",\r\n \"name\": \"Inactive\"\r\n }\r\n ];\r\n this.selectedStatusId = true;\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n if (this.isSystemAdmin) {\r\n this.getAdminRoles();\r\n }\r\n else {\r\n this.getUserList();\r\n }\r\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\r\n this.commonService.adminList.subscribe(function (value) {\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, _this.defaulAdminId, _this.email, _this.firstName, _this.wpassId);\r\n });\r\n }\r\n AdminListComponent.prototype.getAdminRoles = function () {\r\n var _this = this;\r\n this.httpService.getRequest('superUserOperationsApi/v1/adminRoles').subscribe(function (res) { _this.saveAdminRoles(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AdminListComponent.prototype.saveAdminRoles = function (res) {\r\n if (res && res.items) {\r\n this.adminRoles = res.items;\r\n for (var a in this.adminRoles) {\r\n if (this.adminRoles[a]['code'] == __WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].BUManager) {\r\n this.defaulAdminId = this.adminRoles[a]['id'];\r\n }\r\n }\r\n if (!this.defaulAdminId) {\r\n this.defaulAdminId = this.adminRoles[0]['id'];\r\n }\r\n this.getUsersList(this.filters, this.selectedStatusId, this.defaulAdminId, this.email, this.firstName, this.wpassId);\r\n }\r\n else {\r\n this.httpService.onEnd();\r\n }\r\n };\r\n AdminListComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.FiltersForm = this.formBuilder.group({\r\n firstName: this.formBuilder.control({ value: '', disabled: this.isDisabled }),\r\n email: this.formBuilder.control({ value: '', disabled: this.isDisabled }),\r\n wpassId: this.formBuilder.control(''),\r\n });\r\n this.FiltersForm.valueChanges.subscribe(function (data) {\r\n _this.firstName = _this.FiltersForm.get('firstName').value;\r\n _this.email = _this.FiltersForm.get('email').value;\r\n _this.wpassId = _this.FiltersForm.get('wpassId').value;\r\n });\r\n };\r\n AdminListComponent.prototype.disablefields = function (value) {\r\n if (value != '') {\r\n this.FiltersForm.controls['firstName'].setValue('');\r\n this.FiltersForm.controls['email'].setValue('');\r\n this.FiltersForm.controls['firstName'].disable();\r\n this.FiltersForm.controls['email'].disable();\r\n }\r\n else {\r\n this.FiltersForm.controls['firstName'].enable();\r\n this.FiltersForm.controls['email'].enable();\r\n }\r\n };\r\n AdminListComponent.prototype.search = function () {\r\n this.filters['offSet'] = 0;\r\n this.getUsersList(this.filters, this.selectedStatusId, this.defaulAdminId, this.email, this.firstName, this.wpassId);\r\n };\r\n AdminListComponent.prototype.resetSearch = function () {\r\n this.FiltersForm.controls['firstName'].enable();\r\n this.FiltersForm.controls['email'].enable();\r\n this.FiltersForm.reset();\r\n this.firstName = '';\r\n this.email = '';\r\n this.wpassId = '';\r\n this.search();\r\n };\r\n AdminListComponent.prototype.getUsersList = function (filter, selectedStatus, defaulAdminId, email, firstName, wpassId) {\r\n var _this = this;\r\n this.httpService.getRequest(\"superUserOperationsApi/v1/admin/list?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&role=\" + defaulAdminId + \"&active=\" + selectedStatus + \"&email=\" + email + \"&firstName=\" + firstName + \"&wpassId=\" + wpassId).subscribe(function (res) { _this.saveUserList(res, filter); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n /**\r\n * Populate the table with new data based on the page number\r\n * @param page The page to select\r\n */\r\n AdminListComponent.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, _this.defaulAdminId, _this.email, _this.firstName, _this.wpassId);\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n AdminListComponent.prototype.onSelect = function (_a) {\r\n var selected = _a.selected;\r\n this.selected.splice(0, this.selected.length);\r\n (_b = this.selected).push.apply(_b, selected);\r\n var _b;\r\n };\r\n AdminListComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n this.translate.get('total').subscribe(function (res) {\r\n _this.dataTableMessage.totalMessage = res;\r\n });\r\n this.translate.get('selected').subscribe(function (res) {\r\n _this.dataTableMessage.selectedMessage = res;\r\n });\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], AdminListComponent.prototype, \"table\", void 0);\r\n AdminListComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'adminList',\r\n template: __webpack_require__(1277)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_9__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_12__adminListDashboardResultService__[\"a\" /* AdminListDashboardResultService */], __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__[\"a\" /* CommonService */],\r\n __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], AdminListComponent);\r\n return AdminListComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 302:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminListDashboardResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__adminList_datatable_adminList_page_data__ = __webpack_require__(780);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__adminList_datatable_adminList_dashboard__ = __webpack_require__(779);\n/**\r\n * Created by shubham on 8/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar AdminListDashboardResultService = (function () {\r\n function AdminListDashboardResultService() {\r\n this.rows = {};\r\n this.adminDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n AdminListDashboardResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n AdminListDashboardResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__adminList_datatable_adminList_page_data__[\"a\" /* AdminListPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__adminList_datatable_adminList_dashboard__[\"a\" /* AdminListDashboard */](jsonObj['id'], jsonObj['Name'], jsonObj['roleName'], jsonObj['email'], jsonObj['emailVerified'], jsonObj['pendingSubUserCount'], jsonObj['userId_WPASS'], jsonObj['languageId'], jsonObj['languageName'], jsonObj['active'], jsonObj['status'], jsonObj['createdAt']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n AdminListDashboardResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], AdminListDashboardResultService);\r\n return AdminListDashboardResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 303:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminManagementComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 8/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AdminManagementComponent = (function () {\r\n function AdminManagementComponent(router, sessionHandler, httpService, dialog, translate) {\r\n this.router = router;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.languageId = this.sessionHandler.getItem('languageId');\r\n if (!this.languageId) {\r\n this.languageId = \"EN\";\r\n }\r\n this.translate.use(this.languageId);\r\n }\r\n AdminManagementComponent.prototype.ngOnInit = function () { };\r\n AdminManagementComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'manage-admin',\r\n template: __webpack_require__(1278)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_6_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], AdminManagementComponent);\r\n return AdminManagementComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 304:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AdminManagementModule\", function() { return AdminManagementModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_angular2_multiselect_dropdown_angular2_multiselect_dropdown__ = __webpack_require__(91);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__activate_deactivate_request_activate_deactivate_request_module__ = __webpack_require__(148);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__adminManagement_routing_module__ = __webpack_require__(781);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__adminManagement_component__ = __webpack_require__(303);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__adminList_adminList_component__ = __webpack_require__(301);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__addAdmin_addAdmin_component__ = __webpack_require__(299);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__viewAdmin_viewAdmin_component__ = __webpack_require__(305);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 8/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AdminManagementModule = (function () {\r\n function AdminManagementModule() {\r\n }\r\n AdminManagementModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__[\"NgxDatatableModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_7_angular2_multiselect_dropdown_angular2_multiselect_dropdown__[\"a\" /* AngularMultiSelectModule */],\r\n __WEBPACK_IMPORTED_MODULE_8__activate_deactivate_request_activate_deactivate_request_module__[\"a\" /* ActivateDeactivateModule */],\r\n __WEBPACK_IMPORTED_MODULE_9__adminManagement_routing_module__[\"a\" /* AdminManagementRoutingModule */],\r\n __WEBPACK_IMPORTED_MODULE_14_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_14_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_14_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_15__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_2__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_10__adminManagement_component__[\"a\" /* AdminManagementComponent */],\r\n __WEBPACK_IMPORTED_MODULE_11__adminList_adminList_component__[\"a\" /* AdminListComponent */],\r\n __WEBPACK_IMPORTED_MODULE_12__addAdmin_addAdmin_component__[\"a\" /* AddAdminComponent */],\r\n __WEBPACK_IMPORTED_MODULE_13__viewAdmin_viewAdmin_component__[\"a\" /* ViewAdminComponent */]\r\n ],\r\n exports: []\r\n })\r\n ], AdminManagementModule);\r\n return AdminManagementModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 305:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ViewAdminComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 8/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ViewAdminComponent = (function () {\r\n function ViewAdminComponent(router, route, sessionHandler, httpService, dialog, formBuilder, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.route = route;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.translate = translate;\r\n this.adminDetails = [];\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.isDisabled = true;\r\n this.adminRoles = [];\r\n this.selectedItems = [];\r\n this.settings = {};\r\n this.api1 = true;\r\n this.route.params.subscribe(function (params) {\r\n _this.id = +params['id'];\r\n });\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n if (this.isSystemAdmin) {\r\n this.getAdminDataById(this.id);\r\n this.getAdminRoles();\r\n }\r\n else {\r\n //TODO\r\n }\r\n }\r\n ViewAdminComponent.prototype.getAdminRoles = function () {\r\n var _this = this;\r\n this.httpService.getRequest('superUserOperationsApi/v1/adminRoles').subscribe(function (res) { _this.saveAdminRoles(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewAdminComponent.prototype.saveAdminRoles = function (res) {\r\n if (res && res.items) {\r\n this.adminRoles = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n ViewAdminComponent.prototype.getAdminDataById = function (id) {\r\n var _this = this;\r\n this.httpService.getRequest('superUserOperationsApi/v1/admin/' + id).subscribe(function (res) { _this.saveRequestData(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewAdminComponent.prototype.saveRequestData = function (res) {\r\n if (res) {\r\n this.adminDetails = res;\r\n if (this.adminDetails['roleId'] && this.adminDetails['roleName']) {\r\n for (var l in this.adminDetails['roleId']) {\r\n this.selectedItems.push({ id: this.adminDetails['roleId'][l], name: this.adminDetails['roleName'][l] });\r\n }\r\n }\r\n this.AdminEditFormDetails = this.adminDetails;\r\n this.buildForm();\r\n this.httpService.onEnd();\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_load_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ViewAdminComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.AdminEditForm = this.formBuilder.group({\r\n roleData: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].required]),\r\n });\r\n this.AdminEditForm.valueChanges.subscribe(function (data) {\r\n _this.AdminEditFormDetails = _this.AdminEditForm.getRawValue();\r\n _this.AdminEditFormDetails['id'] = _this.adminDetails['id'];\r\n _this.AdminEditFormDetails['roleId'] = [];\r\n for (var d in _this.AdminEditFormDetails.roleData) {\r\n _this.AdminEditFormDetails['roleId'].push(_this.AdminEditFormDetails.roleData[d]['id']);\r\n }\r\n _this.AdminEditFormDetails.validate = _this.AdminEditForm.valid;\r\n });\r\n };\r\n ViewAdminComponent.prototype.saveAdminRole = function () {\r\n var _this = this;\r\n this.httpService.postRequest(this.AdminEditFormDetails, 'superUserOperationsApi/v1/updateAdminRole').subscribe(function (res) { _this.saveAdminEditResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewAdminComponent.prototype.saveAdminEditResponse = function (res) {\r\n if (res) {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"Role Updated Successfully\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n window.location.href = '#/app/manage-admin/list';\r\n });\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'save_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ViewAdminComponent.prototype.buroleSelect = function (item) {\r\n console.log(item);\r\n if (this.selectedItems.find(function (x) { return x.id == \"5639445604728832\"; })) {\r\n if (this.api1) {\r\n /* this.dialogRef = this.dialog.open(DialogComponent);\r\n this.dialogRef.componentInstance.msg = \"This user id is not able to assign manager\"; */\r\n }\r\n }\r\n else {\r\n /* if(this.selectedAdminItems.find(x=> x.id == \"5639445604728832\")){\r\n var sliceFor = this.selectedAdminItems.findIndex(x=> x.id == \"5639445604728832\");\r\n this.selectedAdminItems.splice(sliceFor);\r\n } */\r\n }\r\n };\r\n ViewAdminComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n var temp_settings = { singleSelection: false, text: \"\", labelKey: \"name\", selectAllText: \"\", unSelectAllText: \"\", classes: \"myclass custom-class\" };\r\n this.translate.get('Select Role').subscribe(function (res) {\r\n temp_settings.text = res;\r\n if (temp_settings.text && temp_settings.selectAllText && temp_settings.unSelectAllText) {\r\n _this.settings = temp_settings;\r\n }\r\n });\r\n this.translate.get('select_all').subscribe(function (res) {\r\n temp_settings.selectAllText = res;\r\n if (temp_settings.text && temp_settings.selectAllText && temp_settings.unSelectAllText) {\r\n _this.settings = temp_settings;\r\n }\r\n });\r\n this.translate.get('unselect_all').subscribe(function (res) {\r\n temp_settings.unSelectAllText = res;\r\n if (temp_settings.text && temp_settings.selectAllText && temp_settings.unSelectAllText) {\r\n _this.settings = temp_settings;\r\n }\r\n });\r\n };\r\n ViewAdminComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'view-admin',\r\n template: __webpack_require__(1279)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_7__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__[\"a\" /* HttpService */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_9_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ViewAdminComponent);\r\n return ViewAdminComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 306:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AddApplicationComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 19/9/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AddApplicationComponent = (function () {\r\n function AddApplicationComponent(router, route, sessionHandler, httpService, dialog, formBuilder, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.route = route;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.translate = translate;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.isApplicationManager = false;\r\n this.admins = [];\r\n this.countries = [];\r\n this.businessUnits = [];\r\n this.ApplicationFormDetailsById = [];\r\n this.managers = [];\r\n this.settings = {};\r\n this.selectedItems = [];\r\n this.managersMessage = \"\";\r\n this.managersFlag = false;\r\n this.idFlag = false;\r\n this.activeFlag = false;\r\n this.isAssigned = false;\r\n this.allowMultipleRolesFlag = false;\r\n this.skipManagerApprovalFlag = false;\r\n this.skipManagerApprovalMessage = \"\";\r\n this.selectedCountryId = \"\";\r\n this.countryWiseDefaults = [];\r\n this.forSpecificCountry = false;\r\n this.selectedContries = [];\r\n this.route.params.subscribe(function (params) {\r\n _this.id = params['id'];\r\n });\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n this.isApplicationManager = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n if (this.isSystemAdmin) {\r\n if (this.id != null && this.id != undefined) {\r\n this.getApplicationDataById(this.id);\r\n this.idFlag = true;\r\n }\r\n else {\r\n this.activeFlag = true;\r\n this.idFlag = false;\r\n }\r\n this.getApplicationManagers();\r\n }\r\n this.getCountries();\r\n }\r\n AddApplicationComponent.prototype.getApplicationManagers = function () {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/getApplicationManagerList').subscribe(function (res) {\r\n _this.saveApplicationManagers(res);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n AddApplicationComponent.prototype.saveApplicationManagers = function (res) {\r\n if (res && res.items) {\r\n this.managers = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddApplicationComponent.prototype.getApplicationDataById = function (id) {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/application/' + id).subscribe(function (res) {\r\n _this.saveApplicationDataById(res);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n AddApplicationComponent.prototype.saveApplicationDataById = function (res) {\r\n if (res) {\r\n console.log(res);\r\n /**************************/\r\n // var applicationRoles=[];\r\n // for(let i in res.applicationRoles) {\r\n // for(let j in res.applicationRoles[i].roles) {\r\n // res.applicationRoles[i].roles[j].country=res.applicationRoles[i].country;\r\n // applicationRoles.push(res.applicationRoles[i].roles[j]);\r\n // }\r\n // }\r\n // delete res.applicationRoles;\r\n // res.applicationRoles=applicationRoles;\r\n /**************************/\r\n this.ApplicationFormDetailsById = res;\r\n this.forSpecificCountry = res.countrySpecificRoles;\r\n if (this.ApplicationFormDetailsById['active']) {\r\n this.activeFlag = true;\r\n }\r\n if (this.ApplicationFormDetailsById['managerIds'] && this.ApplicationFormDetailsById['managerNames']) {\r\n for (var l in this.ApplicationFormDetailsById['managerIds']) {\r\n this.selectedItems.push({\r\n id: this.ApplicationFormDetailsById['managerIds'][l],\r\n name: this.ApplicationFormDetailsById['managerNames'][l]\r\n });\r\n }\r\n }\r\n this.buildForm();\r\n if (this.ApplicationFormDetailsById['applicationRoles'] != null) {\r\n if (this.ApplicationFormDetailsById['assigned'] || this.ApplicationFormDetailsById['assigned'] != undefined) {\r\n this.isAssigned = true;\r\n }\r\n else {\r\n this.isAssigned = false;\r\n }\r\n // ***÷*****************************\r\n this.createRoles(this.ApplicationFormDetailsById['applicationRoles'], this.isAssigned);\r\n }\r\n this.httpService.onEnd();\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_load_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n AddApplicationComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ApplicationForm = this.formBuilder.group({\r\n applicationName: this.formBuilder.control(this.ApplicationFormDetailsById['applicationName'] ? this.ApplicationFormDetailsById['applicationName'] : null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n ldapApplicationId: this.formBuilder.control(this.ApplicationFormDetailsById['ldapApplicationId'] ? this.ApplicationFormDetailsById['ldapApplicationId'] : null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n managerData: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n url: this.formBuilder.control(this.ApplicationFormDetailsById['url'] ? this.ApplicationFormDetailsById['url'] : null),\r\n applicationRoles: this.formBuilder.array([]),\r\n multipleRole: this.formBuilder.control(this.ApplicationFormDetailsById['multipleRole'] ? this.ApplicationFormDetailsById['multipleRole'] : false),\r\n customerNumberRequired: this.formBuilder.control(this.ApplicationFormDetailsById['customerNumberRequired'] ? this.ApplicationFormDetailsById['customerNumberRequired'] : false),\r\n skipManagerApproval: this.formBuilder.control(this.ApplicationFormDetailsById['skipManagerApproval'] ? this.ApplicationFormDetailsById['skipManagerApproval'] : false),\r\n countries: this.formBuilder.array([])\r\n });\r\n this.ApplicationForm.valueChanges.subscribe(function (data) {\r\n _this.ApplicationFormDetails = _this.ApplicationForm.getRawValue();\r\n if (_this.ApplicationFormDetailsById['id']) {\r\n _this.ApplicationFormDetails['id'] = _this.ApplicationFormDetailsById['id'];\r\n }\r\n _this.ApplicationFormDetails['managerIds'] = [];\r\n for (var d in _this.ApplicationFormDetails.managerData) {\r\n _this.ApplicationFormDetails['managerIds'].push(_this.ApplicationFormDetails.managerData[d]['id']);\r\n }\r\n if (_this.ApplicationFormDetails['skipManagerApproval']) {\r\n _this.skipManagerApprovalFlag = true;\r\n }\r\n else {\r\n _this.skipManagerApprovalFlag = false;\r\n }\r\n if (_this.ApplicationFormDetails['multipleRole']) {\r\n _this.allowMultipleRolesFlag = true;\r\n if (_this.skipManagerApprovalFlag) {\r\n _this.skipManagerApprovalMessage = \"min_one_default_role\";\r\n }\r\n else {\r\n _this.skipManagerApprovalMessage = \"\";\r\n }\r\n }\r\n else {\r\n _this.skipManagerApprovalMessage = \"only_one_default_role\";\r\n _this.allowMultipleRolesFlag = false;\r\n }\r\n if (_this.ApplicationFormDetails['applicationRoles'].length > 0) {\r\n for (var _i = 0, _a = _this.ApplicationFormDetails['applicationRoles']; _i < _a.length; _i++) {\r\n var appRolesObject = _a[_i];\r\n if (appRolesObject['defaultRole']) {\r\n _this.skipManagerApprovalMessage = \"\";\r\n break;\r\n }\r\n else {\r\n if (_this.allowMultipleRolesFlag) {\r\n _this.skipManagerApprovalMessage = \"min_one_default_role\";\r\n }\r\n else {\r\n _this.skipManagerApprovalMessage = \"only_one_default_role\";\r\n }\r\n }\r\n }\r\n }\r\n // ************************************\r\n if (_this.ApplicationFormDetails['countries']) {\r\n setTimeout(function () {\r\n if (_this.forSpecificCountry && _this.selectedContries.length == 0) {\r\n _this.skipManagerApprovalMessage = \"Select at least one country.\";\r\n }\r\n if (_this.forSpecificCountry && _this.selectedContries.length > 0 && _this.skipManagerApprovalFlag) {\r\n for (var i = 0; i < _this.ApplicationFormDetails.countries.length; i++) {\r\n for (var j = 0; j < _this.ApplicationFormDetails.countries[i].countryName.length; j++) {\r\n if (_this.ApplicationFormDetails.countries[i].countryName[j]['defaultRole']) {\r\n _this.skipManagerApprovalMessage = \"\";\r\n break;\r\n }\r\n else {\r\n if (_this.allowMultipleRolesFlag) {\r\n _this.skipManagerApprovalMessage = \"min_one_default_role\";\r\n }\r\n else {\r\n _this.skipManagerApprovalMessage = \"only_one_default_role\";\r\n }\r\n }\r\n }\r\n if (_this.skipManagerApprovalMessage != \"\") {\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n // ***************************************** \r\n _this.ApplicationFormDetails.validate = _this.ApplicationForm.valid;\r\n });\r\n this.ApplicationForm.get('managerData').valueChanges.subscribe(function (data) {\r\n if (data != null && data.length < 2) {\r\n _this.managersMessage = \"atleast_two_mgrs\";\r\n _this.managersFlag = false;\r\n }\r\n else if (data.length >= 2) {\r\n _this.managersMessage = \"\";\r\n _this.managersFlag = true;\r\n }\r\n });\r\n this.ApplicationForm.get('multipleRole').valueChanges.subscribe(function (data) {\r\n console.log(data);\r\n if (data != null && !data && _this.allowMultipleRolesFlag) {\r\n _this.createDefaultRoles();\r\n }\r\n });\r\n this.ApplicationForm.get('skipManagerApproval').valueChanges.subscribe(function (data) {\r\n if (data != null && !data) {\r\n _this.createDefaultRoles();\r\n }\r\n });\r\n };\r\n // ********************************\r\n AddApplicationComponent.prototype.setApplicationRoleSpecific = function () {\r\n var _this = this;\r\n console.log(this.selectedContries);\r\n var formdata = this.ApplicationForm.getRawValue();\r\n console.log(formdata);\r\n if (this.forSpecificCountry) {\r\n formdata.countries.forEach(function (element, index) {\r\n _this.ApplicationFormDetails['applicationRoles'].push({\r\n country: _this.selectedContries[index].id,\r\n roles: element.countryName\r\n // country:this.selectedContries[index],\r\n // roles:element.countryName\r\n });\r\n });\r\n }\r\n else {\r\n this.ApplicationFormDetails.applicationRoles = [];\r\n this.ApplicationFormDetails['applicationRoles'].push({\r\n country: \"all\",\r\n roles: formdata.applicationRoles\r\n });\r\n }\r\n };\r\n AddApplicationComponent.prototype.createRoles = function (rolesData, isAssigned) {\r\n if (!this.forSpecificCountry) {\r\n for (var roleDataIndex in rolesData) {\r\n rolesData[roleDataIndex]['isAssigned'] = isAssigned;\r\n this.onAddRoleProperty(rolesData[roleDataIndex]);\r\n // this.onAddRoleProperty(rolesData[0].roles[roleDataIndex]);\r\n }\r\n }\r\n else {\r\n // rolesData.forEach((element,index) => {\r\n // console.log(element)\r\n // this.onAddCountriestoForm(element); \r\n // });\r\n this.onAddCountriestoForm(rolesData, isAssigned);\r\n }\r\n };\r\n AddApplicationComponent.prototype.onAddCountriestoForm = function (data, isAssigned) {\r\n var _this = this;\r\n var contries = [];\r\n for (var i = 0; i < data.length; i++) {\r\n if (contries.length == 0) {\r\n contries.push({ \"countryId\": data[i].country, \"countryName\": data[i].countryName, \"roles\": [{ \"id\": data[i].id, \"name\": data[i].name, \"ldapRoleId\": data[i].ldapRoleId, \"defaultRole\": data[i].defaultRole, \"isAssignFlag\": isAssigned }] });\r\n }\r\n else {\r\n var valueArr = contries.map(function (item) { return item.countryId; });\r\n if (!valueArr.includes(data[i].country)) {\r\n contries.push({ \"countryId\": data[i].country, \"countryName\": data[i].countryName, \"roles\": [{ \"id\": data[i].id, \"name\": data[i].name, \"ldapRoleId\": data[i].ldapRoleId, \"defaultRole\": data[i].defaultRole, \"isAssignFlag\": isAssigned }] });\r\n }\r\n else {\r\n for (var j = 0; j < contries.length; j++) {\r\n if (data[i].country == contries[j].countryId) {\r\n contries[j].roles.push({ \"id\": data[i].id, \"name\": data[i].name, \"ldapRoleId\": data[i].ldapRoleId, \"defaultRole\": data[i].defaultRole, \"isAssignFlag\": isAssigned });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n for (var k = 0; k < contries.length; k++) {\r\n var fg = this.formBuilder.group({\r\n 'countryName': this.formBuilder.array([]),\r\n });\r\n this.ApplicationForm.get('countries').push(fg);\r\n this.selectedContries.push({ 'id': contries[k].countryId, \"name\": contries[k].countryName, \"isAssignFlag\": isAssigned });\r\n contries[k]['roles'].forEach(function (element, index) {\r\n var newGroup = _this.formBuilder.group({\r\n id: _this.formBuilder.control(element.id ? element.id : null),\r\n name: _this.formBuilder.control(element.name ? element.name : null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n ldapRoleId: _this.formBuilder.control(element.ldapRoleId ? element.ldapRoleId : null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n defaultRole: _this.formBuilder.control(element.defaultRole ? element.defaultRole : false),\r\n isAssignFlag: _this.formBuilder.control(element.isAssignFlag ? element.isAssignFlag : false)\r\n });\r\n _this.ApplicationForm.controls['countries']\r\n .controls[_this.selectedContries.length - 1].controls['countryName'].push(newGroup);\r\n });\r\n }\r\n // data.roles.forEach((element,index) => {\r\n // console.log(element)\r\n // let newGroup = this.formBuilder.group({\r\n // id: this.formBuilder.control(element.id ? element.id : null),\r\n // name: this.formBuilder.control(element.name ? element.name : null, [Validators.required]),\r\n // ldapRoleId: this.formBuilder.control(element.ldapRoleId ? element.ldapRoleId : null, [Validators.required]),\r\n // defaultRole: this.formBuilder.control(element.defaultRole ? element.defaultRole : false),\r\n // isAssignFlag: this.formBuilder.control(element.isAssigned ? element.isAssigned : false)\r\n // });\r\n // (((this.ApplicationForm.controls['countries'])\r\n // .controls[this.selectedContries.length-1]).controls['countryName']).push(newGroup);\r\n // });\r\n };\r\n // **********************************\r\n AddApplicationComponent.prototype.onAddRoleProperty = function (data) {\r\n var arrayControl = this.ApplicationForm.controls['applicationRoles'];\r\n var newGroup;\r\n if (data) {\r\n newGroup = this.formBuilder.group({\r\n id: this.formBuilder.control(data.id ? data.id : null),\r\n name: this.formBuilder.control(data.name ? data.name : null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n ldapRoleId: this.formBuilder.control(data.ldapRoleId ? data.ldapRoleId : null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n defaultRole: this.formBuilder.control(data.defaultRole ? data.defaultRole : false),\r\n isAssignFlag: this.formBuilder.control(data.isAssigned ? data.isAssigned : false)\r\n });\r\n }\r\n else {\r\n newGroup = this.formBuilder.group({\r\n id: this.formBuilder.control(null),\r\n name: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n ldapRoleId: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n defaultRole: this.formBuilder.control(false),\r\n isAssignFlag: this.formBuilder.control(false)\r\n });\r\n }\r\n arrayControl.push(newGroup);\r\n };\r\n AddApplicationComponent.prototype.onlyOneDefault = function (index, value) {\r\n if (this.skipManagerApprovalFlag && !this.allowMultipleRolesFlag) {\r\n this.createDefaultRoles();\r\n }\r\n };\r\n AddApplicationComponent.prototype.createDefaultRoles = function () {\r\n if (!this.forSpecificCountry) {\r\n var arrayControl = this.ApplicationForm.controls['applicationRoles'];\r\n for (var index1 in arrayControl.controls) {\r\n var groupControl = arrayControl.controls[index1];\r\n groupControl.controls['defaultRole'].setValue(false);\r\n groupControl.controls['defaultRole'].updateValueAndValidity();\r\n }\r\n }\r\n else {\r\n var arrayControl = this.ApplicationForm.controls['countries'];\r\n for (var index2 in arrayControl.controls) {\r\n this.createDefaultRolesCountSpecific(index2);\r\n }\r\n this.calculateErrorForRDefault();\r\n }\r\n };\r\n AddApplicationComponent.prototype.onDeleteRoleProperty = function (index) {\r\n var arrayControl = this.ApplicationForm.controls['applicationRoles'];\r\n arrayControl.removeAt(index);\r\n };\r\n AddApplicationComponent.prototype.saveApplicationData = function () {\r\n var _this = this;\r\n this.setApplicationRoleSpecific();\r\n /**************************/\r\n var requestData = JSON.parse(JSON.stringify(this.ApplicationFormDetails));\r\n delete requestData.countries;\r\n var applicationRoles = [];\r\n for (var i in requestData.applicationRoles) {\r\n for (var j in requestData.applicationRoles[i].roles) {\r\n requestData.applicationRoles[i].roles[j].country = requestData.applicationRoles[i].country;\r\n applicationRoles.push(requestData.applicationRoles[i].roles[j]);\r\n }\r\n }\r\n delete requestData.applicationRoles;\r\n requestData.applicationRoles = applicationRoles;\r\n if (!requestData.skipManagerApproval) {\r\n requestData.applicationRoles.forEach(function (element) {\r\n element.defaultRole = false;\r\n });\r\n }\r\n /**************************/\r\n this.httpService.postRequest(requestData, 'applicationOperationApi/v1/createApplication').subscribe(function (res) {\r\n _this.saveApplicationResponse(res);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n AddApplicationComponent.prototype.saveApplicationResponse = function (res) {\r\n if (res) {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n if (this.id != null && this.id != undefined) {\r\n this.dialogRef.componentInstance.msg = \"Application updated successfully.\";\r\n }\r\n else {\r\n this.dialogRef.componentInstance.msg = \"Application added successfully.\";\r\n }\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n window.location.href = '#/app/application-management/list';\r\n });\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'save_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n AddApplicationComponent.prototype.copyToClipboard = function () {\r\n var textArea = document.createElement(\"textarea\");\r\n textArea.style.position = 'fixed';\r\n textArea.style.top = '-999px';\r\n textArea.style.left = '-999px';\r\n textArea.style.width = '2em';\r\n textArea.style.height = '2em';\r\n textArea.style.padding = '0';\r\n textArea.style.border = 'none';\r\n textArea.style.outline = 'none';\r\n textArea.style.boxShadow = 'none';\r\n textArea.style.background = 'transparent';\r\n textArea.value = window.location.origin + \"/#/registration/apps/\" + this.id;\r\n document.body.appendChild(textArea);\r\n textArea.select();\r\n try {\r\n document.execCommand('copy');\r\n }\r\n catch (err) {\r\n console.log('unable to copy');\r\n }\r\n document.body.removeChild(textArea);\r\n };\r\n AddApplicationComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n if (this.id == null || this.id == undefined) {\r\n this.onAddRoleProperty();\r\n }\r\n var temp_settings = { singleSelection: false, text: \"\", labelKey: \"name\", selectAllText: \"\", unSelectAllText: \"\", classes: \"myclass custom-class\" };\r\n this.translate.get('Assign Manager').subscribe(function (res) {\r\n temp_settings.text = res;\r\n if (temp_settings.text && temp_settings.selectAllText && temp_settings.unSelectAllText) {\r\n _this.settings = temp_settings;\r\n }\r\n });\r\n this.translate.get('select_all').subscribe(function (res) {\r\n temp_settings.selectAllText = res;\r\n if (temp_settings.text && temp_settings.selectAllText && temp_settings.unSelectAllText) {\r\n _this.settings = temp_settings;\r\n }\r\n });\r\n this.translate.get('unselect_all').subscribe(function (res) {\r\n temp_settings.unSelectAllText = res;\r\n if (temp_settings.text && temp_settings.selectAllText && temp_settings.unSelectAllText) {\r\n _this.settings = temp_settings;\r\n }\r\n });\r\n };\r\n AddApplicationComponent.prototype.getCountries = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/countriesForAdmin').subscribe(function (res) {\r\n _this.saveCountries(res);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddApplicationComponent.prototype.saveCountries = function (res) {\r\n if (res && res.items) {\r\n this.countries = res.items;\r\n }\r\n };\r\n AddApplicationComponent.prototype.countSpecificFun = function (event) {\r\n var arrayControl = this.ApplicationForm.controls['applicationRoles'];\r\n if (!event.checked) {\r\n this.forSpecificCountry = false;\r\n while (this.ApplicationForm.controls['countries'].controls.length !== 0) {\r\n this.ApplicationForm.controls['countries'].removeAt(0);\r\n }\r\n this.selectedContries = [];\r\n this.onAddRoleProperty();\r\n }\r\n else if (event.checked) {\r\n this.forSpecificCountry = true;\r\n while (this.ApplicationForm.controls['applicationRoles'].controls.length !== 0) {\r\n this.ApplicationForm.controls['applicationRoles'].removeAt(0);\r\n }\r\n }\r\n };\r\n AddApplicationComponent.prototype.onCountryChange = function (contId) {\r\n var _this = this;\r\n var valueArr = this.selectedContries.map(function (item) { return item.name; });\r\n var contry = contId.source.selected._element.nativeElement.innerText.trim();\r\n var id = contId.value;\r\n var country = contId.source.selected._element.nativeElement.innerText.trim();\r\n var fg = this.formBuilder.group({\r\n 'countryName': this.formBuilder.array([]),\r\n });\r\n if (valueArr.includes(contry) == false) {\r\n this.selectedContries.push({ \"id\": id, \"name\": contry, \"isAssignFlag\": false });\r\n this.ApplicationForm.get('countries').push(fg);\r\n this.rolesAddForSelectedCountries(this.selectedContries.length - 1);\r\n }\r\n this.calculateErrorForRDefault();\r\n setTimeout(function () {\r\n _this.countrySelect.writeValue(null);\r\n }, 1000);\r\n };\r\n AddApplicationComponent.prototype.rolesAddForSelectedCountries = function (index) {\r\n var newGroup = this.formBuilder.group({\r\n id: this.formBuilder.control(null),\r\n name: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n ldapRoleId: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n defaultRole: this.formBuilder.control(false),\r\n isAssignFlag: this.formBuilder.control(false)\r\n });\r\n this.ApplicationForm.controls['countries']\r\n .controls[index].controls['countryName'].push(newGroup);\r\n };\r\n AddApplicationComponent.prototype.deleteCountry = function (index) {\r\n var arrayControl = this.ApplicationForm.controls['countries'];\r\n arrayControl.removeAt(index);\r\n this.selectedContries.splice(index, 1);\r\n this.countryWiseDefaults.splice(index, 1);\r\n };\r\n AddApplicationComponent.prototype.onDeleteRolePropertySelected = function (cIndex, index) {\r\n var arrayControl = this.ApplicationForm.controls['countries']\r\n .controls[cIndex].controls['countryName'];\r\n arrayControl.controls[index].get('defaultRole').value ? this.countryWiseDefaults[cIndex] = false : null;\r\n arrayControl.removeAt(index);\r\n };\r\n AddApplicationComponent.prototype.createDefaultRolesCountSpecific = function (countIndex, index) {\r\n var arrayControl = this.ApplicationForm.controls['countries']\r\n .controls[countIndex].controls['countryName'];\r\n for (var index1 in arrayControl.controls) {\r\n var groupControl = arrayControl.controls[index1];\r\n groupControl.controls['defaultRole'].setValue(false);\r\n groupControl.controls['defaultRole'].updateValueAndValidity();\r\n }\r\n };\r\n AddApplicationComponent.prototype.onlyOneDefaultSpecific = function (countIndex, index) {\r\n if (!this.allowMultipleRolesFlag) {\r\n var arrayControl = this.ApplicationForm.controls['countries']\r\n .controls[countIndex].controls['countryName'];\r\n for (var index1 in arrayControl.controls) {\r\n if (index1 != index) {\r\n var groupControl = arrayControl.controls[index1];\r\n groupControl.controls['defaultRole'].setValue(false);\r\n }\r\n }\r\n }\r\n this.calculateErrorForRDefault();\r\n };\r\n AddApplicationComponent.prototype.calculateErrorForRDefault = function () {\r\n var _this = this;\r\n this.countryWiseDefaults = [];\r\n setTimeout(function () {\r\n var data = _this.ApplicationForm.get('countries').value;\r\n var defaultFlag = false;\r\n for (var i = 0; i < data.length; i++) {\r\n defaultFlag = false;\r\n for (var j = 0; j < data[i].countryName.length; j++) {\r\n if (data[i].countryName[j].defaultRole) {\r\n defaultFlag = true;\r\n }\r\n }\r\n if (defaultFlag) {\r\n _this.countryWiseDefaults.push(true);\r\n }\r\n else {\r\n _this.countryWiseDefaults.push(false);\r\n }\r\n }\r\n console.log(_this.countryWiseDefaults);\r\n });\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])('countrySelect'),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], AddApplicationComponent.prototype, \"countrySelect\", void 0);\r\n AddApplicationComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'add-application',\r\n template: __webpack_require__(1280)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_8__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_8__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__[\"a\" /* HttpService */],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_9_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], AddApplicationComponent);\r\n return AddApplicationComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 307:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationListPage; });\n/**\r\n * Created by prakash on 22/9/18.\r\n */\r\n/**\r\n * An object used to get page information from the server\r\n */\r\nvar ApplicationListPage = (function () {\r\n function ApplicationListPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return ApplicationListPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 308:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationListComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__applicationList_datatable_applicationList_page__ = __webpack_require__(307);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__applicationListDashboardResultService__ = __webpack_require__(309);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 8/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ApplicationListComponent = (function () {\r\n function ApplicationListComponent(router, httpService, sessionHandler, dialog, formBuilder, serverResultsService, commonService, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.serverResultsService = serverResultsService;\r\n this.commonService = commonService;\r\n this.translate = translate;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_10__applicationList_datatable_applicationList_page__[\"a\" /* ApplicationListPage */]();\r\n this.tableRows = [];\r\n this.filters = {};\r\n this.applicationListData = [];\r\n this.temp = [];\r\n this.showTable = true;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.selected = [];\r\n this.applicationName = '';\r\n this.wpassId = '';\r\n this.isDisabled = false;\r\n this.dataTableMessage = { 'selectedMessage': '', 'totalMessage': '' };\r\n this.getUserList = function () {\r\n this.showTable = false;\r\n };\r\n this.saveUserList = function (res, filter) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.applicationListData = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n if (this.applicationListData.list) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.applicationListData.list) {\r\n if (this.isSystemAdmin) {\r\n this.rows[data] = {};\r\n this.rows[data]['id'] = this.applicationListData.list[data]['id'];\r\n this.rows[data]['applicationName'] = this.applicationListData.list[data]['applicationName'];\r\n this.rows[data]['ldapApplicationId'] = this.applicationListData.list[data]['ldapApplicationId'];\r\n this.rows[data]['managerNames'] = this.applicationListData.list[data]['managerNames'];\r\n this.rows[data]['customerNumberRequired'] = this.applicationListData.list[data]['customerNumberRequired'];\r\n this.rows[data]['skipManagerApproval'] = this.applicationListData.list[data]['skipManagerApproval'];\r\n this.rows[data]['multipleRole'] = this.applicationListData.list[data]['multipleRole'];\r\n if (this.applicationListData.list[data]['active'] == true) {\r\n this.rows[data]['status'] = 'Active';\r\n }\r\n else {\r\n this.rows[data]['status'] = 'Inactive';\r\n }\r\n this.rows[data]['active'] = this.applicationListData.list[data]['active'];\r\n this.rows[data]['createdAt'] = this.applicationListData.list[data]['createdAt'];\r\n }\r\n else {\r\n //For Other Service Partner's\r\n this.rows[data] = {};\r\n }\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n this.applicationListText = 'applicationList';\r\n //Assign Active or Inactive status\r\n this.StatusData = [\r\n {\r\n \"id\": true,\r\n \"code\": \"ACTIVE\",\r\n \"name\": \"Active\"\r\n }, {\r\n \"id\": false,\r\n \"code\": \"INACTIVE\",\r\n \"name\": \"Inactive\"\r\n }\r\n ];\r\n this.selectedStatusId = true;\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n if (this.isSystemAdmin) {\r\n this.getAdminRoles();\r\n }\r\n else {\r\n this.getUserList();\r\n }\r\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\r\n this.commonService.applicationList.subscribe(function (value) {\r\n _this.getApplicationList(_this.filters, _this.selectedStatusId, _this.defaulAdminId, _this.applicationName);\r\n });\r\n }\r\n ApplicationListComponent.prototype.getAdminRoles = function () {\r\n var _this = this;\r\n this.httpService.getRequest('superUserOperationsApi/v1/adminRoles').subscribe(function (res) { _this.saveAdminRoles(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ApplicationListComponent.prototype.saveAdminRoles = function (res) {\r\n if (res && res.items) {\r\n this.adminRoles = res.items;\r\n for (var a in this.adminRoles) {\r\n if (this.adminRoles[a]['code'] == __WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].BUManager) {\r\n this.defaulAdminId = this.adminRoles[a]['id'];\r\n }\r\n }\r\n if (!this.defaulAdminId) {\r\n this.defaulAdminId = this.adminRoles[0]['id'];\r\n }\r\n this.getApplicationList(this.filters, this.selectedStatusId, this.defaulAdminId, this.applicationName);\r\n }\r\n else {\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ApplicationListComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.FiltersForm = this.formBuilder.group({\r\n applicationName: this.formBuilder.control({ value: '', disabled: this.isDisabled }),\r\n wpassId: this.formBuilder.control(''),\r\n });\r\n this.FiltersForm.valueChanges.subscribe(function (data) {\r\n _this.applicationName = _this.FiltersForm.get('applicationName').value;\r\n });\r\n };\r\n ApplicationListComponent.prototype.disablefields = function (value) {\r\n if (value != '') {\r\n this.FiltersForm.controls['applicationName'].setValue('');\r\n this.FiltersForm.controls['applicationName'].disable();\r\n }\r\n else {\r\n this.FiltersForm.controls['applicationName'].enable();\r\n }\r\n };\r\n ApplicationListComponent.prototype.search = function () {\r\n this.filters['offSet'] = 0;\r\n this.getApplicationList(this.filters, this.selectedStatusId, this.defaulAdminId, this.applicationName);\r\n };\r\n ApplicationListComponent.prototype.resetSearch = function () {\r\n this.FiltersForm.controls['applicationName'].enable();\r\n this.FiltersForm.reset();\r\n this.applicationName = '';\r\n this.search();\r\n };\r\n ApplicationListComponent.prototype.getApplicationList = function (filter, selectedStatus, defaulAdminId, applicationName) {\r\n var _this = this;\r\n this.httpService.getRequest(\"applicationOperationApi/v1/applicationList?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&role=\" + defaulAdminId + \"&active=\" + selectedStatus + \"&applicationName=\" + applicationName).subscribe(function (res) { _this.saveUserList(res, filter); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n /**\r\n * Populate the table with new data based on the page number\r\n * @param page The page to select\r\n */\r\n ApplicationListComponent.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n _this.getApplicationList(_this.filters, _this.selectedStatusId, _this.defaulAdminId, _this.applicationName);\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n ApplicationListComponent.prototype.onSelect = function (_a) {\r\n var selected = _a.selected;\r\n this.selected.splice(0, this.selected.length);\r\n (_b = this.selected).push.apply(_b, selected);\r\n var _b;\r\n };\r\n ApplicationListComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n this.translate.get('total').subscribe(function (res) {\r\n _this.dataTableMessage.totalMessage = res;\r\n });\r\n this.translate.get('selected').subscribe(function (res) {\r\n _this.dataTableMessage.selectedMessage = res;\r\n });\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], ApplicationListComponent.prototype, \"table\", void 0);\r\n ApplicationListComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'applicationList',\r\n template: __webpack_require__(1281)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_9__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_12__applicationListDashboardResultService__[\"a\" /* ApplicationListDashboardResultService */],\r\n __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ApplicationListComponent);\r\n return ApplicationListComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 309:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationListDashboardResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__applicationList_datatable_applicationList_page_data__ = __webpack_require__(783);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__applicationList_datatable_applicationList_dashboard__ = __webpack_require__(782);\n/**\r\n * Created by prakash on 22/9/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar ApplicationListDashboardResultService = (function () {\r\n function ApplicationListDashboardResultService() {\r\n this.rows = {};\r\n this.applicationDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n ApplicationListDashboardResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n ApplicationListDashboardResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__applicationList_datatable_applicationList_page_data__[\"a\" /* ApplicationListPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__applicationList_datatable_applicationList_dashboard__[\"a\" /* ApplicationListDashboard */](jsonObj['id'], jsonObj['applicationName'], jsonObj['ldapApplicationId'], jsonObj['managerNames'], jsonObj['customerNumberRequired'], jsonObj['skipManagerApproval'], jsonObj['multipleRole'], jsonObj['status'], jsonObj['active'], jsonObj['createdAt']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n ApplicationListDashboardResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], ApplicationListDashboardResultService);\r\n return ApplicationListDashboardResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 310:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationManagementComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 19/9/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ApplicationManagementComponent = (function () {\r\n function ApplicationManagementComponent(router, sessionHandler, httpService, dialog, translate) {\r\n this.router = router;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.languageId = this.sessionHandler.getItem('languageId');\r\n if (!this.languageId) {\r\n this.languageId = \"EN\";\r\n }\r\n this.translate.use(this.languageId);\r\n }\r\n ApplicationManagementComponent.prototype.ngOnInit = function () { };\r\n ApplicationManagementComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'application-management',\r\n template: __webpack_require__(1282)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__[\"a\" /* HttpService */],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_6_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ApplicationManagementComponent);\r\n return ApplicationManagementComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 311:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ApplicationManagementModule\", function() { return ApplicationManagementModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__applicationManagement_routing_module__ = __webpack_require__(784);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__applicationManagement_component__ = __webpack_require__(310);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__addApplication_addApplication_component__ = __webpack_require__(306);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__applicationList_applicationList_component__ = __webpack_require__(308);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_angular2_multiselect_dropdown_angular2_multiselect_dropdown__ = __webpack_require__(91);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__activate_deactivate_request_activate_deactivate_request_module__ = __webpack_require__(148);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 19/9/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ApplicationManagementModule = (function () {\r\n function ApplicationManagementModule() {\r\n }\r\n ApplicationManagementModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__[\"NgxDatatableModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_12_angular2_multiselect_dropdown_angular2_multiselect_dropdown__[\"a\" /* AngularMultiSelectModule */],\r\n __WEBPACK_IMPORTED_MODULE_13__activate_deactivate_request_activate_deactivate_request_module__[\"a\" /* ActivateDeactivateModule */],\r\n __WEBPACK_IMPORTED_MODULE_7__applicationManagement_routing_module__[\"a\" /* ApplicationManagementRoutingModule */],\r\n __WEBPACK_IMPORTED_MODULE_11_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_11_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_11_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_14__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_2__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_8__applicationManagement_component__[\"a\" /* ApplicationManagementComponent */],\r\n __WEBPACK_IMPORTED_MODULE_9__addApplication_addApplication_component__[\"a\" /* AddApplicationComponent */],\r\n __WEBPACK_IMPORTED_MODULE_10__applicationList_applicationList_component__[\"a\" /* ApplicationListComponent */]\r\n ],\r\n exports: []\r\n })\r\n ], ApplicationManagementModule);\r\n return ApplicationManagementModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 312:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AddManagerComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AddManagerComponent = (function () {\r\n function AddManagerComponent(sessionHandler, httpService, dialog, formBuilder, translate) {\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.translate = translate;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.admins = [];\r\n this.countries = [];\r\n this.applications = [];\r\n this.businessUnits = [];\r\n this.selectedItems = [];\r\n this.manager_settings = {};\r\n this.application_settings = {};\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n if (this.isSystemAdmin) {\r\n this.getCountries();\r\n this.getBusinessUnit();\r\n this.getAdmins();\r\n this.getApplications();\r\n }\r\n }\r\n AddManagerComponent.prototype.getCountries = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/country').subscribe(function (res) { _this.saveCountries(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddManagerComponent.prototype.saveCountries = function (res) {\r\n if (res && res.items) {\r\n this.countries = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddManagerComponent.prototype.getBusinessUnit = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/businessUnit').subscribe(function (res) { _this.saveBusinessUnit(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddManagerComponent.prototype.saveBusinessUnit = function (res) {\r\n if (res && res.items) {\r\n this.businessUnits = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddManagerComponent.prototype.getAdmins = function () {\r\n var _this = this;\r\n this.httpService.getRequest('superUserOperationsApi/v1/getCountryAdminList').subscribe(function (res) { _this.saveAdmins(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddManagerComponent.prototype.saveAdmins = function (res) {\r\n if (res && res.items) {\r\n this.admins = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddManagerComponent.prototype.getApplications = function () {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/getApplicationDropDownList').subscribe(function (res) { _this.saveApplications(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddManagerComponent.prototype.saveApplications = function (res) {\r\n if (res && res.items) {\r\n this.applications = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddManagerComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.AddManagerForm = this.formBuilder.group({\r\n countryId: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n businessUnitId: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n /*managerId: this.formBuilder.control(null, [Validators.required]),*/\r\n managerData: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n applicationData: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n });\r\n this.AddManagerForm.valueChanges.subscribe(function (data) {\r\n _this.AddManagerFormDetails = _this.AddManagerForm.getRawValue();\r\n _this.AddManagerFormDetails['managerIds'] = [];\r\n for (var d in _this.AddManagerFormDetails.managerData) {\r\n _this.AddManagerFormDetails['managerIds'].push(_this.AddManagerFormDetails.managerData[d]['id']);\r\n }\r\n _this.AddManagerFormDetails['applicationId'] = [];\r\n for (var d in _this.AddManagerFormDetails.applicationData) {\r\n _this.AddManagerFormDetails['applicationId'].push(_this.AddManagerFormDetails.applicationData[d]['id']);\r\n }\r\n _this.AddManagerFormDetails.validate = _this.AddManagerForm.valid;\r\n });\r\n };\r\n AddManagerComponent.prototype.addManager = function () {\r\n var _this = this;\r\n this.httpService.postRequest(this.AddManagerFormDetails, 'superUserOperationsApi/v1/addCountryBusinessUnitManagerMapping').subscribe(function (res) { _this.saveAddManagerResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddManagerComponent.prototype.saveAddManagerResponse = function (res) {\r\n if (res) {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"mngr_assigned_notify\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n window.location.href = '#/app/manager-assignment/list';\r\n });\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'save_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ;\r\n AddManagerComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n var app_settings = { singleSelection: false, text: \"\", labelKey: \"name\", selectAllText: \"\", unSelectAllText: \"\", classes: \"myclass custom-class\" };\r\n var mgr_settings = { singleSelection: false, text: \"\", labelKey: \"name\", selectAllText: \"\", unSelectAllText: \"\", classes: \"myclass custom-class\" };\r\n this.translate.get('Select Applications').subscribe(function (res) {\r\n app_settings.text = res;\r\n if (app_settings.text && app_settings.selectAllText && app_settings.unSelectAllText) {\r\n _this.application_settings = app_settings;\r\n }\r\n });\r\n this.translate.get('Assign Manager').subscribe(function (res) {\r\n mgr_settings.text = res;\r\n if (mgr_settings.text && mgr_settings.selectAllText && mgr_settings.unSelectAllText) {\r\n _this.manager_settings = mgr_settings;\r\n }\r\n });\r\n this.translate.get('select_all').subscribe(function (res) {\r\n app_settings.selectAllText = res;\r\n mgr_settings.selectAllText = res;\r\n if (mgr_settings.text && mgr_settings.selectAllText && mgr_settings.unSelectAllText) {\r\n _this.manager_settings = mgr_settings;\r\n }\r\n if (app_settings.text && app_settings.selectAllText && app_settings.unSelectAllText) {\r\n _this.application_settings = app_settings;\r\n }\r\n });\r\n this.translate.get('unselect_all').subscribe(function (res) {\r\n app_settings.unSelectAllText = res;\r\n mgr_settings.unSelectAllText = res;\r\n if (mgr_settings.text && mgr_settings.selectAllText && mgr_settings.unSelectAllText) {\r\n _this.manager_settings = mgr_settings;\r\n }\r\n if (app_settings.text && app_settings.selectAllText && app_settings.unSelectAllText) {\r\n _this.application_settings = app_settings;\r\n }\r\n });\r\n };\r\n AddManagerComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'add-manager',\r\n template: __webpack_require__(1283)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"h\" /* FormBuilder */],\r\n __WEBPACK_IMPORTED_MODULE_8_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], AddManagerComponent);\r\n return AddManagerComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 313:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ManagerAssignmentComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ManagerAssignmentComponent = (function () {\r\n function ManagerAssignmentComponent(router, sessionHandler, httpService, dialog, translate) {\r\n this.router = router;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.languageId = this.sessionHandler.getItem('languageId');\r\n if (!this.languageId) {\r\n this.languageId = \"EN\";\r\n }\r\n this.translate.use(this.languageId);\r\n }\r\n ManagerAssignmentComponent.prototype.ngOnInit = function () { };\r\n ManagerAssignmentComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'manager-assignment',\r\n template: __webpack_require__(1284)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__[\"a\" /* HttpService */],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_6_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ManagerAssignmentComponent);\r\n return ManagerAssignmentComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 314:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ManagerAssignmentModule\", function() { return ManagerAssignmentModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__activate_deactivate_request_activate_deactivate_request_module__ = __webpack_require__(148);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__managerAssignment_routing_module__ = __webpack_require__(787);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__managerAssignment_component__ = __webpack_require__(313);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__managerList_managerList_component__ = __webpack_require__(316);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__addManager_addManager_component__ = __webpack_require__(312);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__viewManager_viewManager_component__ = __webpack_require__(318);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_angular2_multiselect_dropdown_angular2_multiselect_dropdown__ = __webpack_require__(91);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ManagerAssignmentModule = (function () {\r\n function ManagerAssignmentModule() {\r\n }\r\n ManagerAssignmentModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_6__swimlane_ngx_datatable__[\"NgxDatatableModule\"],\r\n __WEBPACK_IMPORTED_MODULE_14_angular2_multiselect_dropdown_angular2_multiselect_dropdown__[\"a\" /* AngularMultiSelectModule */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_7__activate_deactivate_request_activate_deactivate_request_module__[\"a\" /* ActivateDeactivateModule */],\r\n __WEBPACK_IMPORTED_MODULE_8__managerAssignment_routing_module__[\"a\" /* ManagerAssignmentRoutingModule */],\r\n __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_15__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_2__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_9__managerAssignment_component__[\"a\" /* ManagerAssignmentComponent */],\r\n __WEBPACK_IMPORTED_MODULE_10__managerList_managerList_component__[\"a\" /* ManagerListComponent */],\r\n __WEBPACK_IMPORTED_MODULE_11__addManager_addManager_component__[\"a\" /* AddManagerComponent */],\r\n __WEBPACK_IMPORTED_MODULE_12__viewManager_viewManager_component__[\"a\" /* ViewManagerComponent */]\r\n ],\r\n exports: []\r\n })\r\n ], ManagerAssignmentModule);\r\n return ManagerAssignmentModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 315:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ManagerListPage; });\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n/**\r\n * An object used to get page information from the server\r\n */\r\nvar ManagerListPage = (function () {\r\n function ManagerListPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return ManagerListPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 316:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ManagerListComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__managerList_datatable_managerList_page__ = __webpack_require__(315);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__managerListDashboardResultService__ = __webpack_require__(317);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ManagerListComponent = (function () {\r\n function ManagerListComponent(router, httpService, sessionHandler, dialog, formBuilder, serverResultsService, commonService, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.serverResultsService = serverResultsService;\r\n this.commonService = commonService;\r\n this.translate = translate;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_10__managerList_datatable_managerList_page__[\"a\" /* ManagerListPage */]();\r\n this.tableRows = [];\r\n this.filters = {};\r\n this.managerListData = [];\r\n this.temp = [];\r\n this.showTable = true;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.selected = [];\r\n this.countries = [];\r\n this.businessUnits = [];\r\n this.applicationList = [];\r\n this.wpassId = '';\r\n this.countryId = '';\r\n this.businessUnitId = '';\r\n this.selectedApplicationId = '';\r\n this.applicationName = '';\r\n this.dataTableMessage = { 'selectedMessage': '', 'totalMessage': '' };\r\n this.tempCountries = [{\r\n \"id\": \"\",\r\n \"name\": \"All\",\r\n \"code\": \"\",\r\n \"active\": true,\r\n \"createdAt\": \"2019-02-26T12:49:39.329Z\"\r\n }];\r\n this.tempBusinessUnits = [{\r\n \"id\": \"\",\r\n \"name\": \"All\",\r\n \"codeISAM\": \"\",\r\n \"active\": true,\r\n \"createdAt\": \"2018-04-06T20:05:02.397Z\",\r\n \"updatedAt\": \"2018-05-31T06:41:54.303Z\"\r\n }];\r\n this.getUserList = function () {\r\n this.showTable = false;\r\n };\r\n this.saveUserList = function (res, filter) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.managerListData = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n if (this.managerListData.list) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.managerListData.list) {\r\n if (this.isSystemAdmin) {\r\n this.rows[data] = {};\r\n this.rows[data]['buAssociationId'] = this.managerListData.list[data]['buAssociationId'];\r\n this.rows[data]['Name'] = this.managerListData.list[data]['firstName'];\r\n /*this.rows[data]['Name'] = this.managerListData.list[data]['firstName'] +' '+this.managerListData.list[data]['lastName'];*/\r\n this.rows[data]['email'] = this.managerListData.list[data]['email'];\r\n this.rows[data]['emailVerified'] = this.managerListData.list[data]['emailVerified'];\r\n if (this.managerListData.list[data]['userId_WPASS']) {\r\n this.rows[data]['userId_WPASS'] = this.managerListData.list[data]['userId_WPASS'];\r\n }\r\n else {\r\n this.rows[data]['userId_WPASS'] = null;\r\n }\r\n if (this.managerListData.list[data]['pendingSubUserCount']) {\r\n this.rows[data]['pendingSubUserCount'] = this.managerListData.list[data]['pendingSubUserCount'];\r\n }\r\n if (this.managerListData.list[data]['applicationName']) {\r\n this.rows[data]['applicationName'] = this.managerListData.list[data]['applicationName'];\r\n }\r\n this.rows[data]['countryId'] = this.managerListData.list[data]['countryId'];\r\n this.rows[data]['countryName'] = this.managerListData.list[data]['countryName'];\r\n this.rows[data]['businessUnitId'] = this.managerListData.list[data]['businessUnitId'];\r\n this.rows[data]['businessUnitName'] = this.managerListData.list[data]['businessUnitName'];\r\n this.rows[data]['status'] = this.managerListData.list[data]['status'];\r\n this.rows[data]['active'] = this.managerListData.list[data]['active'];\r\n this.rows[data]['createdAt'] = this.managerListData.list[data]['createdAt'];\r\n this.rows[data]['updatedAt'] = this.managerListData.list[data]['updatedAt'];\r\n }\r\n else {\r\n //For Other Service Partner's\r\n this.rows[data] = {};\r\n }\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n this.managerListText = 'managerList';\r\n //Assign Active or Inactive status\r\n this.StatusData = [\r\n {\r\n \"id\": true,\r\n \"code\": \"ACTIVE\",\r\n \"name\": \"Active\"\r\n }, {\r\n \"id\": false,\r\n \"code\": \"INACTIVE\",\r\n \"name\": \"Inactive\"\r\n }\r\n ];\r\n this.selectedStatusId = true;\r\n this.CountryOrBusinessUnitData = [\r\n {\r\n \"id\": 1,\r\n \"name\": \"Country\"\r\n }, {\r\n \"id\": 2,\r\n \"name\": \"Business Unit\"\r\n }\r\n ];\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n if (this.isSystemAdmin) {\r\n this.getCountries();\r\n this.getBusinessUnit();\r\n this.getApplications();\r\n this.getUsersList(this.filters, this.selectedStatusId, this.wpassId, this.countryId, this.businessUnitId, this.selectedApplicationId);\r\n }\r\n else {\r\n this.getUserList();\r\n }\r\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\r\n this.commonService.managerList.subscribe(function (value) {\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, _this.wpassId, _this.countryId, _this.businessUnitId, _this.selectedApplicationId);\r\n });\r\n }\r\n ManagerListComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ManagerFiltersForm = this.formBuilder.group({\r\n selectedStatusId: this.formBuilder.control(true),\r\n wpassId: this.formBuilder.control(''),\r\n countryId: this.formBuilder.control(''),\r\n businessUnitId: this.formBuilder.control(''),\r\n selectedApplicationId: this.formBuilder.control('')\r\n });\r\n this.ManagerFiltersForm.valueChanges.subscribe(function (data) {\r\n _this.selectedStatusId = _this.ManagerFiltersForm.get('selectedStatusId').value;\r\n _this.wpassId = _this.ManagerFiltersForm.get('wpassId').value;\r\n _this.countryId = _this.ManagerFiltersForm.get('countryId').value;\r\n _this.businessUnitId = _this.ManagerFiltersForm.get('businessUnitId').value;\r\n _this.selectedApplicationId = _this.ManagerFiltersForm.get('selectedApplicationId').value;\r\n });\r\n };\r\n ManagerListComponent.prototype.getCountries = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/country').subscribe(function (res) { _this.saveCountries(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ManagerListComponent.prototype.saveCountries = function (res) {\r\n if (res && res.items) {\r\n this.countries = this.tempCountries.concat(res.items);\r\n }\r\n };\r\n ManagerListComponent.prototype.getBusinessUnit = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/businessUnit').subscribe(function (res) { _this.saveBusinessUnit(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ManagerListComponent.prototype.saveBusinessUnit = function (res) {\r\n if (res && res.items) {\r\n this.businessUnits = this.tempBusinessUnits.concat(res.items);\r\n }\r\n };\r\n ManagerListComponent.prototype.getApplications = function () {\r\n var _this = this;\r\n this.httpService.getRequest(\"applicationOperationApi/v1/applicationsForDropdown\").subscribe(function (res) { _this.saveApplicationsName(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ManagerListComponent.prototype.saveApplicationsName = function (res) {\r\n if (res && res.items) {\r\n var tempApp = [{ \"id\": \"\", \"code\": \"\", \"name\": \"all\" }];\r\n this.applicationList = tempApp.concat(res.items);\r\n }\r\n };\r\n ManagerListComponent.prototype.disablefields = function (value, uniqueKey) {\r\n if (value != '') {\r\n if (uniqueKey == 'wpassId') {\r\n this.ManagerFiltersForm.controls['selectedApplicationId'].setValue('');\r\n this.ManagerFiltersForm.controls['selectedApplicationId'].disable();\r\n }\r\n else {\r\n this.ManagerFiltersForm.controls['wpassId'].setValue('');\r\n this.ManagerFiltersForm.controls['wpassId'].disable();\r\n }\r\n this.ManagerFiltersForm.controls['businessUnitId'].setValue('');\r\n this.ManagerFiltersForm.controls['countryId'].setValue('');\r\n this.ManagerFiltersForm.controls['businessUnitId'].disable();\r\n this.ManagerFiltersForm.controls['countryId'].disable();\r\n }\r\n else {\r\n if (uniqueKey == 'wpassId') {\r\n this.ManagerFiltersForm.controls['selectedApplicationId'].enable();\r\n }\r\n else {\r\n this.ManagerFiltersForm.controls['wpassId'].enable();\r\n }\r\n this.ManagerFiltersForm.controls['businessUnitId'].enable();\r\n this.ManagerFiltersForm.controls['countryId'].enable();\r\n }\r\n };\r\n ManagerListComponent.prototype.search = function () {\r\n this.filters['offSet'] = 0;\r\n this.getUsersList(this.filters, this.selectedStatusId, this.wpassId, this.countryId, this.businessUnitId, this.selectedApplicationId);\r\n };\r\n ManagerListComponent.prototype.resetSearch = function () {\r\n this.ManagerFiltersForm.controls['businessUnitId'].enable();\r\n this.ManagerFiltersForm.controls['countryId'].enable();\r\n this.ManagerFiltersForm.reset();\r\n this.selectedStatusId = true;\r\n this.countryId = '';\r\n this.businessUnitId = '';\r\n this.wpassId = '';\r\n this.selectedApplicationId = '';\r\n this.buildForm();\r\n this.search();\r\n };\r\n ManagerListComponent.prototype.downloadBuMappingCsv = function () {\r\n var loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\r\n var accessToken;\r\n if (loginDataArray) {\r\n accessToken = loginDataArray['accessToken'];\r\n }\r\n window.open(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].URL + '/export?access-token=' + accessToken + '&action=bu_manager_mapping', '_blank');\r\n };\r\n ManagerListComponent.prototype.getUsersList = function (filter, selectedStatus, wpassId, countryId, businessUnitId, selectedApplicationId) {\r\n var _this = this;\r\n this.httpService.getRequest(\"superUserOperationsApi/v1/countryBusinessUnitManagerMapping/list?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&active=\" + selectedStatus + \"&countryId=\" + countryId + \"&businessUnitId=\" + businessUnitId + \"&wpassId=\" + wpassId + \"&selectedApplicationId=\" + selectedApplicationId).subscribe(function (res) { _this.saveUserList(res, filter); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n /**\r\n * Populate the table with new data based on the page number\r\n * @param page The page to select\r\n */\r\n ManagerListComponent.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n _this.getUsersList(_this.filters, _this.selectedStatusId, _this.wpassId, _this.countryId, _this.businessUnitId, _this.selectedApplicationId);\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n ManagerListComponent.prototype.onSelect = function (_a) {\r\n var selected = _a.selected;\r\n this.selected.splice(0, this.selected.length);\r\n (_b = this.selected).push.apply(_b, selected);\r\n var _b;\r\n };\r\n ManagerListComponent.prototype.showApplications = function (apps) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"k\" /* ShowApplicationsDialogComponent */]);\r\n this.dialogRef.componentInstance.apps = apps;\r\n };\r\n ManagerListComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n this.translate.get('total').subscribe(function (res) {\r\n _this.dataTableMessage.totalMessage = res;\r\n });\r\n this.translate.get('selected').subscribe(function (res) {\r\n _this.dataTableMessage.selectedMessage = res;\r\n });\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], ManagerListComponent.prototype, \"table\", void 0);\r\n ManagerListComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'managerList',\r\n template: __webpack_require__(1285)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_9__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_12__managerListDashboardResultService__[\"a\" /* ManagerListDashboardResultService */],\r\n __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ManagerListComponent);\r\n return ManagerListComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 317:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ManagerListDashboardResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__managerList_datatable_managerList_dashboard__ = __webpack_require__(788);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__managerList_datatable_managerList_page_data__ = __webpack_require__(789);\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar ManagerListDashboardResultService = (function () {\r\n function ManagerListDashboardResultService() {\r\n this.rows = {};\r\n this.adminDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n ManagerListDashboardResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n ManagerListDashboardResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_4__managerList_datatable_managerList_page_data__[\"a\" /* ManagerListPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_3__managerList_datatable_managerList_dashboard__[\"a\" /* ManagerListDashboard */](jsonObj['buAssociationId'], jsonObj['Name'], jsonObj['email'], jsonObj['emailVerified'], jsonObj['userId_WPASS'], jsonObj['pendingSubUserCount'], jsonObj['applicationName'], jsonObj['countryId'], jsonObj['countryName'], jsonObj['businessUnitId'], jsonObj['businessUnitName'], jsonObj['active'], jsonObj['status'], jsonObj['createdAt']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n ManagerListDashboardResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], ManagerListDashboardResultService);\r\n return ManagerListDashboardResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 318:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ViewManagerComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ViewManagerComponent = (function () {\r\n function ViewManagerComponent(router, route, sessionHandler, httpService, dialog, formBuilder, translate) {\r\n var _this = this;\r\n this.router = router;\r\n this.route = route;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.translate = translate;\r\n this.managerDetails = [];\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.isDisabled = true;\r\n this.admins = [];\r\n this.manager_settings = {};\r\n this.application_settings = {};\r\n this.selectedManagerItems = [];\r\n this.selectedManagerItemsCopy = [];\r\n this.selectedApplicationItems = [];\r\n this.selectedApplicationItemsCopy = [];\r\n this.applications = [];\r\n this.tempRemoved = [];\r\n this.tempReplaced = [];\r\n this.tempReplacedCopy = [];\r\n this.tempFlag = false;\r\n this.route.params.subscribe(function (params) {\r\n _this.id = params['buAssociationId'];\r\n });\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n if (this.isSystemAdmin) {\r\n this.getManagerDataById(this.id);\r\n this.getAdmins();\r\n this.getApplications();\r\n }\r\n }\r\n ViewManagerComponent.prototype.getManagerDataById = function (id) {\r\n var _this = this;\r\n this.httpService.getRequest('superUserOperationsApi/v1/countryBusinessUnitManagerMapping/' + id).subscribe(function (res) { _this.saveManagerData(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewManagerComponent.prototype.saveManagerData = function (res) {\r\n if (res) {\r\n this.managerDetails = res;\r\n if (this.managerDetails['managerIds'] && this.managerDetails['managerNames']) {\r\n for (var l in this.managerDetails['managerIds']) {\r\n this.selectedManagerItems.push({ id: this.managerDetails['managerIds'][l], name: this.managerDetails['managerNames'][l] });\r\n this.selectedManagerItemsCopy.push({ id: this.managerDetails['managerIds'][l], name: this.managerDetails['managerNames'][l] });\r\n }\r\n }\r\n if (this.managerDetails['applicationId'] && this.managerDetails['applicationName']) {\r\n for (var l in this.managerDetails['applicationId']) {\r\n this.selectedApplicationItems.push({ id: this.managerDetails['applicationId'][l], name: this.managerDetails['applicationName'][l] });\r\n this.selectedApplicationItemsCopy.push({ id: this.managerDetails['applicationId'][l], name: this.managerDetails['applicationName'][l] });\r\n }\r\n }\r\n this.ManagerEditFormDetails = this.managerDetails;\r\n this.buildForm();\r\n this.httpService.onEnd();\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_load_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ViewManagerComponent.prototype.getAdmins = function () {\r\n var _this = this;\r\n this.httpService.getRequest('superUserOperationsApi/v1/getCountryAdminList').subscribe(function (res) { _this.saveAdmins(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewManagerComponent.prototype.saveAdmins = function (res) {\r\n if (res && res.items) {\r\n this.admins = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n ViewManagerComponent.prototype.getApplications = function () {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/getApplicationDropDownList').subscribe(function (res) { _this.saveApplications(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewManagerComponent.prototype.saveApplications = function (res) {\r\n if (res && res.items) {\r\n this.applications = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n ViewManagerComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ManagerEditForm = this.formBuilder.group({\r\n /*managerId: this.formBuilder.control(this.managerDetails['managerId'], [Validators.required]),*/\r\n managerData: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].required]),\r\n applicationData: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].required]),\r\n buManagerReplacementsData: this.formBuilder.control(null)\r\n });\r\n this.ManagerEditForm.valueChanges.subscribe(function (data) {\r\n _this.ManagerEditFormDetails = _this.ManagerEditForm.getRawValue();\r\n _this.ManagerEditFormDetails['buAssociationId'] = _this.managerDetails['buAssociationId'];\r\n _this.ManagerEditFormDetails['managerIds'] = [];\r\n for (var d in _this.ManagerEditFormDetails.managerData) {\r\n _this.ManagerEditFormDetails['managerIds'].push(_this.ManagerEditFormDetails.managerData[d]['id']);\r\n }\r\n _this.ManagerEditFormDetails['applicationId'] = [];\r\n for (var d in _this.ManagerEditFormDetails.applicationData) {\r\n _this.ManagerEditFormDetails['applicationId'].push(_this.ManagerEditFormDetails.applicationData[d]['id']);\r\n }\r\n _this.ManagerEditFormDetails['buManagerReplacements'] = [];\r\n console.log(_this.ManagerEditFormDetails);\r\n for (var d in _this.ManagerEditFormDetails.buManagerReplacementsData) {\r\n _this.ManagerEditFormDetails['buManagerReplacements'].push({ currentId: _this.ManagerEditFormDetails.buManagerReplacementsData[d]['currentId'],\r\n newId: _this.ManagerEditFormDetails.buManagerReplacementsData[d]['newId'] });\r\n }\r\n _this.ManagerEditFormDetails.validate = _this.ManagerEditForm.valid;\r\n });\r\n };\r\n ViewManagerComponent.prototype.updateManagerDetails = function () {\r\n var _this = this;\r\n console.log(this.tempReplaced);\r\n console.log(this.ManagerEditFormDetails);\r\n this.httpService.postRequest(this.ManagerEditFormDetails, '/superUserOperationsApi/v1/updateCountryBusinessUnitManagerMapping').subscribe(function (res) { _this.saveUpdateManagerResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewManagerComponent.prototype.saveUpdateManagerResponse = function (res) {\r\n if (res) {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"Updated Successfully\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n window.location.href = '#/app/manager-assignment/list';\r\n });\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'save_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ViewManagerComponent.prototype.onDeSelectAll = function (items) {\r\n this.selectedApplicationItems = Object.assign([], this.selectedApplicationItemsCopy);\r\n this.ManagerEditForm.controls['applicationData'].setValue(this.selectedApplicationItems);\r\n };\r\n ViewManagerComponent.prototype.OnItemDeSelect = function (item) {\r\n if (this.selectedApplicationItemsCopy.find(function (s) { return s.id === item.id; })) {\r\n this.selectedApplicationItems.push({ id: item.id, name: item.name });\r\n this.ManagerEditForm.controls['applicationData'].setValue(this.selectedApplicationItems);\r\n }\r\n };\r\n ViewManagerComponent.prototype.OnManagerDeSelect = function (item) {\r\n var _this = this;\r\n this.removedAdmin = item;\r\n if (this.selectedManagerItemsCopy.find(function (x) { return x.id == item.id; })) {\r\n console.log(this.selectedManagerItemsCopy.find(function (x) { return x.id == item.id; }).name);\r\n if (this.tempReplaced.find(function (x) { return x.currentId == item.id; })) { }\r\n else {\r\n this.tempReplaced.push({ currentId: this.selectedManagerItemsCopy.find(function (x) { return x.id == item.id; }).id });\r\n }\r\n console.log(this.tempReplaced.find(function (x) { return x.currentId == item.id; }));\r\n var currentId = this.tempReplaced.find(function (x) { return x.currentId == item.id; }).currentId;\r\n console.log(this.selectedManagerItemsCopy.find(function (x) { return x.id == currentId; }).name);\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"d\" /* BuAssignmentDialogComponent */]);\r\n this.dialogRef.componentInstance.admins = this.admins;\r\n this.dialogRef.componentInstance.managerName = this.selectedManagerItemsCopy.find(function (x) { return x.id == currentId; }).name;\r\n this.dialogRef.afterClosed().subscribe(function (data) {\r\n console.log(data);\r\n if (data) {\r\n _this.replacementAdmin = data;\r\n if (_this.tempReplaced.find(function (x) { return x.currentId == _this.removedAdmin.id; })) {\r\n console.log(_this.tempReplaced);\r\n if (_this.selectedManagerItemsCopy.find(function (x) { return x.id == _this.replacementAdmin.id; })) {\r\n if (_this.tempReplaced.find(function (x) { return x.currentId == _this.replacementAdmin.id; })) {\r\n _this.selectedManagerItems.push({ id: _this.replacementAdmin.id, name: _this.replacementAdmin.name });\r\n _this.ManagerEditForm.controls['managerData'].setValue(_this.selectedManagerItems);\r\n }\r\n }\r\n else {\r\n if (_this.tempReplaced.find(function (x) { return x.newId == _this.replacementAdmin.id; })) { }\r\n else {\r\n _this.selectedManagerItems.push({ id: _this.replacementAdmin.id, name: _this.replacementAdmin.name });\r\n _this.ManagerEditForm.controls['managerData'].setValue(_this.selectedManagerItems);\r\n }\r\n }\r\n }\r\n _this.tempReplaced.find(function (x) { return x.currentId == _this.removedAdmin.id; }).newId = _this.replacementAdmin.id;\r\n console.log(_this.tempReplaced);\r\n console.log(_this.selectedManagerItems);\r\n _this.ManagerEditForm.controls['buManagerReplacementsData'].setValue(_this.tempReplaced);\r\n }\r\n else {\r\n _this.selectedManagerItems.push(_this.removedAdmin);\r\n _this.ManagerEditForm.controls['managerData'].setValue(_this.selectedManagerItems);\r\n }\r\n });\r\n }\r\n else if (this.tempReplaced.find(function (x) { return x.newId == _this.removedAdmin.id; })) {\r\n console.log(this.tempReplaced.find(function (x) { return x.newId == _this.removedAdmin.id; }));\r\n var selectionId = this.tempReplaced.find(function (x) { return x.newId == _this.removedAdmin.id; }).currentId;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"d\" /* BuAssignmentDialogComponent */]);\r\n this.dialogRef.componentInstance.admins = this.admins;\r\n console.log(this.selectedManagerItemsCopy.find(function (x) { return x.id == selectionId; }).name);\r\n this.dialogRef.componentInstance.managerName = this.selectedManagerItemsCopy.find(function (x) { return x.id == selectionId; }).name;\r\n this.dialogRef.afterClosed().subscribe(function (data) {\r\n console.log(data);\r\n if (data) {\r\n _this.replacementAdmin = data;\r\n if (_this.tempReplaced.find(function (x) { return x.currentId == selectionId; })) {\r\n console.log(_this.tempReplaced);\r\n if (_this.selectedManagerItemsCopy.find(function (x) { return x.id == _this.replacementAdmin.id; })) {\r\n if (_this.tempReplaced.find(function (x) { return x.currentId == _this.replacementAdmin.id; })) {\r\n _this.selectedManagerItems.push({ id: _this.replacementAdmin.id, name: _this.replacementAdmin.name });\r\n _this.ManagerEditForm.controls['managerData'].setValue(_this.selectedManagerItems);\r\n }\r\n }\r\n else {\r\n if (_this.tempReplaced.find(function (x) { return x.newId == _this.replacementAdmin.id; })) { }\r\n else {\r\n _this.selectedManagerItems.push({ id: _this.replacementAdmin.id, name: _this.replacementAdmin.name });\r\n _this.ManagerEditForm.controls['managerData'].setValue(_this.selectedManagerItems);\r\n }\r\n }\r\n }\r\n _this.tempReplaced.find(function (x) { return x.currentId == selectionId; }).newId = _this.replacementAdmin.id;\r\n console.log(_this.tempReplaced);\r\n _this.ManagerEditForm.controls['buManagerReplacementsData'].setValue(_this.tempReplaced);\r\n }\r\n else {\r\n _this.selectedManagerItems.push(_this.removedAdmin);\r\n }\r\n });\r\n this.ManagerEditForm.controls['managerData'].setValue(this.selectedManagerItems);\r\n }\r\n console.log(this.tempReplaced);\r\n };\r\n ViewManagerComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n var app_settings = { singleSelection: false, text: \"\", labelKey: \"name\", selectAllText: \"\", unSelectAllText: \"\", classes: \"myclass custom-class\" };\r\n var mgr_settings = { singleSelection: false, text: \"\", labelKey: \"name\", selectAllText: \"\", unSelectAllText: \"\", classes: \"myclass custom-class\" };\r\n this.translate.get('Select Applications').subscribe(function (res) {\r\n app_settings.text = res;\r\n if (app_settings.text && app_settings.selectAllText && app_settings.unSelectAllText) {\r\n _this.application_settings = app_settings;\r\n }\r\n });\r\n this.translate.get('Assign Manager').subscribe(function (res) {\r\n mgr_settings.text = res;\r\n if (mgr_settings.text && mgr_settings.selectAllText && mgr_settings.unSelectAllText) {\r\n _this.manager_settings = mgr_settings;\r\n }\r\n });\r\n this.translate.get('select_all').subscribe(function (res) {\r\n app_settings.selectAllText = res;\r\n mgr_settings.selectAllText = res;\r\n if (mgr_settings.text && mgr_settings.selectAllText && mgr_settings.unSelectAllText) {\r\n _this.manager_settings = mgr_settings;\r\n }\r\n if (app_settings.text && app_settings.selectAllText && app_settings.unSelectAllText) {\r\n _this.application_settings = app_settings;\r\n }\r\n });\r\n this.translate.get('unselect_all').subscribe(function (res) {\r\n app_settings.unSelectAllText = res;\r\n mgr_settings.unSelectAllText = res;\r\n if (mgr_settings.text && mgr_settings.selectAllText && mgr_settings.unSelectAllText) {\r\n _this.manager_settings = mgr_settings;\r\n }\r\n if (app_settings.text && app_settings.selectAllText && app_settings.unSelectAllText) {\r\n _this.application_settings = app_settings;\r\n }\r\n });\r\n };\r\n ViewManagerComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'view-manager',\r\n template: __webpack_require__(1286)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_7__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__[\"a\" /* HttpService */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_9_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ViewManagerComponent);\r\n return ViewManagerComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 319:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return WPASSComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__ = __webpack_require__(11);\n/**\r\n * Created by shubham on 4/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar WPASSComponent = (function () {\r\n function WPASSComponent(router, sessionHandler, httpService, dialog, formBuilder) {\r\n this.router = router;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.WPASSResponse = [];\r\n this.urlPattern = /^((https?|ftp|smtp):\\/\\/)?(www.)?[a-z0-9]+(\\.[a-z]{2,}){1,3}(#?\\/?[a-zA-Z0-9#]+)*\\/?(\\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+&?)?$/;\r\n this.passwordPattern = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$/;\r\n this.isChecked = false;\r\n this.isDisabled = true;\r\n //Close Sidebar Initially\r\n __WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].navCollapsed = true;\r\n this.getWPASSDetails();\r\n }\r\n WPASSComponent.prototype.getWPASSDetails = function () {\r\n var _this = this;\r\n this.httpService.getRequest('superUserOperationsApi/v1/applicationDetailsWPASS').subscribe(function (res) { _this.saveWPASSDetails(res, 'getAPI'); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n WPASSComponent.prototype.saveUserData = function () {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"i\" /* ActiveInactiveDialogComponent */]);\r\n this.dialogRef.componentInstance.isConfirm = true;\r\n this.dialogRef.componentInstance.msg = 'You are updating very sensitive information.';\r\n this.dialogRef.componentInstance.systemSetting = 'update_confirmation';\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n _this.httpService.postRequest(_this.WPASSFormDetails, 'superUserOperationsApi/v1/applicationDetailsWPASS').subscribe(function (res) { _this.saveWPASSDetails(res, 'postAPI'); }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n });\r\n };\r\n WPASSComponent.prototype.saveWPASSDetails = function (res, apiStatus) {\r\n if (res) {\r\n if (apiStatus == 'postAPI') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"WPASS information updated successfully.\";\r\n }\r\n this.WPASSResponse = res;\r\n this.WPASSFormDetails = this.WPASSResponse;\r\n this.buildForm();\r\n }\r\n this.httpService.onEnd();\r\n };\r\n WPASSComponent.prototype.toggle = function () {\r\n this.isChecked = !this.isChecked;\r\n if (this.isChecked == true) {\r\n this.isDisabled = false;\r\n }\r\n else {\r\n this.isDisabled = true;\r\n this.WPASSForm.get('wpassAppUserPassword').setValue('');\r\n this.WPASSForm.get('wpassAppUserConfirmPassword').setValue('');\r\n }\r\n this.buildForm();\r\n };\r\n WPASSComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.WPASSForm = this.formBuilder.group({\r\n wpassUrl: this.formBuilder.control(this.WPASSResponse['wpassUrl'], [__WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].pattern(this.urlPattern)]),\r\n wpassAppUserId: this.formBuilder.control(this.WPASSResponse['wpassAppUserId'], [__WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].required]),\r\n wpassAppUserPassword: this.formBuilder.control({ value: '', disabled: this.isDisabled }, [__WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].minLength(8), __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].maxLength(8), __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].pattern(this.passwordPattern)]),\r\n wpassAppUserConfirmPassword: this.formBuilder.control({ value: '', disabled: this.isDisabled }, [__WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].required]),\r\n wpassApplicationId: this.formBuilder.control(this.WPASSResponse['wpassApplicationId'], [__WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].required]),\r\n }, { validator: this.checkPasswords });\r\n this.WPASSForm.valueChanges.subscribe(function (data) {\r\n _this.WPASSFormDetails = _this.WPASSForm.getRawValue();\r\n _this.WPASSFormDetails['id'] = _this.WPASSResponse['id'];\r\n _this.WPASSFormDetails.validate = _this.WPASSForm.valid;\r\n });\r\n };\r\n WPASSComponent.prototype.checkPasswords = function (group) {\r\n if (group.get('wpassAppUserPassword').value === group.get('wpassAppUserConfirmPassword').value) {\r\n group.get('wpassAppUserConfirmPassword').setErrors(null);\r\n return null;\r\n }\r\n else {\r\n group.get('wpassAppUserConfirmPassword').setErrors({ 'incorrect': true });\r\n return { 'mismatch': true };\r\n }\r\n };\r\n WPASSComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n WPASSComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'wpass-details',\r\n template: __webpack_require__(1287)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_7__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"h\" /* FormBuilder */]])\r\n ], WPASSComponent);\r\n return WPASSComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 320:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return TranslationEmailComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_forms__ = __webpack_require__(14);\n\r\n// Imports\r\n\r\n\r\n\r\n\r\n\r\n//import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';\r\n//import { ChangeEvent } from '@ckeditor/ckeditor5-angular/ckeditor.component';\r\n// Component Decorator\r\nvar TranslationEmailComponent = (function () {\r\n function TranslationEmailComponent(httpService, formBuilder, sessionHandler) {\r\n this.httpService = httpService;\r\n this.formBuilder = formBuilder;\r\n this.sessionHandler = sessionHandler;\r\n //public Editor = ClassicEditor;\r\n this.emailBody = \"\";\r\n this.isSystemAdmin = false;\r\n this.isApplicationManager = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.updatedSubject = {};\r\n __WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].navCollapsed = true;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n this.isApplicationManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n if (this.isSystemAdmin) {\r\n this.getlanguages();\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n this.profileData = this.userDetails;\r\n if (this.profileData.languageId) {\r\n this.setLanguage(this.profileData.languageId);\r\n }\r\n this.getSubjectList();\r\n }\r\n }\r\n TranslationEmailComponent.prototype.setLanguage = function (languageId) {\r\n this.responseLanguageId = languageId;\r\n this.buildForm();\r\n };\r\n TranslationEmailComponent.prototype.buildForm = function () {\r\n this.ProfileForm = this.formBuilder.group({\r\n languageId: this.formBuilder.control(this.responseLanguageId, [__WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"g\" /* Validators */].required])\r\n });\r\n };\r\n TranslationEmailComponent.prototype.getlanguages = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(function (res) { _this.savelanguageResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n //Save languages Response\r\n TranslationEmailComponent.prototype.savelanguageResponse = function (res) {\r\n if (res && res.items) {\r\n this.LanguageData = res.items;\r\n }\r\n };\r\n TranslationEmailComponent.prototype.onLanguageChange = function (languageId) {\r\n this.j = undefined;\r\n this.responseLanguageId = languageId;\r\n this.getSubjectList();\r\n this.j = undefined;\r\n };\r\n TranslationEmailComponent.prototype.selectEmail = function (data, i) {\r\n console.log(i);\r\n console.log(data);\r\n if (this.j != i) {\r\n if (this.j != undefined) {\r\n document.getElementById(this.j).setAttribute(\"class\", \"style2, mdl-tabs__tab\");\r\n }\r\n document.getElementById(i).setAttribute(\"class\", \"style1\");\r\n }\r\n this.j = i;\r\n this.emailSubject = data.text;\r\n this.getEmailBodyList(data);\r\n };\r\n TranslationEmailComponent.prototype.getSubjectList = function () {\r\n var _this = this;\r\n var st = this.j;\r\n this.httpService.getRequest(\"superUserOperationsApi/v1/multilingualEmailSubject/list/\" + this.responseLanguageId).subscribe(function (res) {\r\n console.log(res);\r\n _this.SubjectData = res;\r\n _this.SubjectItems = _this.SubjectData.items;\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n if (st) {\r\n setTimeout(function () {\r\n for (var i in _this.SubjectItems) {\r\n if (st == _this.SubjectItems[i].id) {\r\n document.getElementById(_this.SubjectItems[i].id).setAttribute(\"class\", \"style1\");\r\n }\r\n }\r\n _this.httpService.onEnd();\r\n }, 3000);\r\n }\r\n else {\r\n setTimeout(function () {\r\n if (_this.SubjectItems) {\r\n _this.selectEmail(_this.SubjectItems[0], _this.SubjectItems[0].id);\r\n }\r\n }, 3000);\r\n }\r\n /* if(st){\r\n for(let i in this.SubjectItems){\r\n if(st == this.SubjectItems[i].id){\r\n document.getElementById(this.SubjectItems[i].id).setAttribute(\"class\", \"style1\");\r\n }\r\n }\r\n } */\r\n };\r\n TranslationEmailComponent.prototype.getEmailBodyList = function (key) {\r\n var _this = this;\r\n this.emailSubjectid = key.id;\r\n this.httpService.getRequest(\"superUserOperationsApi/v1/multilingualEmail/\" + this.responseLanguageId + \"?key=\" + key.key).subscribe(function (res) {\r\n console.log(res);\r\n _this.emailBodyData = res;\r\n _this.emailBody = _this.emailBodyData.html;\r\n _this.emailBodyid = _this.emailBodyData.id;\r\n _this.httpService.onEnd();\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n TranslationEmailComponent.prototype.updateSubject = function () {\r\n var _this = this;\r\n console.log(this.emailSubject);\r\n var body = {\r\n id: this.emailSubjectid,\r\n text: this.emailSubject\r\n };\r\n this.httpService.postRequest(body, 'superUserOperationsApi/v1/multilingualEmailSubject').subscribe(function (res) {\r\n console.log(res);\r\n _this.getSubjectList();\r\n _this.updatedSubject = res;\r\n }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n TranslationEmailComponent.prototype.updateBody = function () {\r\n var _this = this;\r\n console.log(this.emailBody);\r\n var body = {\r\n id: this.emailBodyid,\r\n html: this.emailBody\r\n };\r\n this.httpService.postRequest(body, 'superUserOperationsApi/v1/multilingualEmail').subscribe(function (res) {\r\n console.log(res);\r\n _this.httpService.onEnd();\r\n }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n TranslationEmailComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1288),\r\n styles: [__webpack_require__(132)],\r\n })\r\n // Component Class\r\n ,\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */]])\r\n ], TranslationEmailComponent);\r\n return TranslationEmailComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 321:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return TranslationMessagesComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__translation_messages_translation_messages_page__ = __webpack_require__(322);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__translation_messages_translationResultService__ = __webpack_require__(791);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__config__ = __webpack_require__(12);\n\r\n// Imports\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Component Decorator\r\nvar TranslationMessagesComponent = (function () {\r\n function TranslationMessagesComponent(httpService, formBuilder, sessionHandler, serverResultsService) {\r\n this.httpService = httpService;\r\n this.formBuilder = formBuilder;\r\n this.sessionHandler = sessionHandler;\r\n this.serverResultsService = serverResultsService;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_5__translation_messages_translation_messages_page__[\"a\" /* TranslationMessagePage */]();\r\n this.tableRows = [];\r\n this.filters = {};\r\n this.selected = [];\r\n this.selectedStatusId = '';\r\n this.language2 = [];\r\n this.isSystemAdmin = false;\r\n this.isApplicationManager = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.saveTranslationList = function (res, filter) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_3__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.translationData = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n this.count = res.count;\r\n this.totalCount = res.totalCount;\r\n if (this.translationData.list) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.translationData.list) {\r\n this.rows[data] = {};\r\n this.rows[data]['id'] = this.translationData.list[data]['id'];\r\n this.rows[data]['key'] = this.translationData.list[data]['key'];\r\n this.rows[data]['english'] = this.translationData.list[data]['englishText'];\r\n this.rows[data]['selectLanguage'] = this.translationData.list[data]['text'];\r\n this.rows[data]['actionFlag'] = true;\r\n this.language2[data] = this.translationData.list[data]['text'];\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n __WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].navCollapsed = true;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n this.isApplicationManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.getlanguages();\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n if (this.isSystemAdmin) {\r\n this.profileData = this.userDetails;\r\n if (this.profileData.languageId) {\r\n this.setLanguage(this.profileData.languageId);\r\n }\r\n }\r\n }\r\n TranslationMessagesComponent.prototype.setLanguage = function (languageId) {\r\n this.responseLanguageId = languageId;\r\n this.buildForm();\r\n this.getTranslationData(this.filters);\r\n };\r\n TranslationMessagesComponent.prototype.buildForm = function () {\r\n this.ProfileForm = this.formBuilder.group({\r\n languageId: this.formBuilder.control(this.responseLanguageId, [__WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"g\" /* Validators */].required])\r\n });\r\n };\r\n TranslationMessagesComponent.prototype.search = function () {\r\n this.selected = [];\r\n this.filters['offSet'] = 0;\r\n this.getTranslationData(this.filters);\r\n };\r\n TranslationMessagesComponent.prototype.resetSearch = function () {\r\n this.searchText = \"\";\r\n this.resetDateFlag = true;\r\n if (this.profileData.languageId) {\r\n this.setLanguage(this.profileData.languageId);\r\n }\r\n this.search();\r\n };\r\n TranslationMessagesComponent.prototype.updateBtn = function (rowdata, editedText) {\r\n var _this = this;\r\n console.log(rowdata);\r\n console.log(editedText);\r\n var data = {};\r\n data['id'] = rowdata['id'];\r\n data['text'] = editedText;\r\n this.httpService.postRequest(data, 'superUserOperationsApi/v1/multilingualText').subscribe(function (res) {\r\n console.log(res);\r\n _this.getTranslationData(_this.filters);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n TranslationMessagesComponent.prototype.getlanguages = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(function (res) { _this.savelanguageResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n //Save languages Response\r\n TranslationMessagesComponent.prototype.savelanguageResponse = function (res) {\r\n if (res && res.items) {\r\n this.LanguageData = res.items;\r\n }\r\n this.httpService.onEnd();\r\n };\r\n TranslationMessagesComponent.prototype.onLanguageChange = function (languageId) {\r\n console.log(languageId);\r\n this.responseLanguageId = languageId;\r\n this.getTranslationData(this.filters);\r\n };\r\n TranslationMessagesComponent.prototype.getTranslationData = function (filter) {\r\n var _this = this;\r\n if (this.searchText == undefined) {\r\n this.searchText = \"\";\r\n }\r\n this.httpService.getRequest(\"superUserOperationsApi/v1/multilingualText/list/\" + this.responseLanguageId + \"?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&search=\" + this.searchText).subscribe(function (res) {\r\n console.log(res);\r\n _this.saveTranslationList(res, filter);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n TranslationMessagesComponent.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n _this.getTranslationData(_this.filters);\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n TranslationMessagesComponent.prototype.onSelect = function (_a) {\r\n var selected = _a.selected;\r\n this.selected.splice(0, this.selected.length);\r\n (_b = this.selected).push.apply(_b, selected);\r\n this.selectedCount = this.selected.length;\r\n var _b;\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], TranslationMessagesComponent.prototype, \"table\", void 0);\r\n TranslationMessagesComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1289),\r\n styles: [__webpack_require__(132)],\r\n providers: [__WEBPACK_IMPORTED_MODULE_6__translation_messages_translationResultService__[\"a\" /* TranslationMessagesResultService */]]\r\n })\r\n // Component Class\r\n ,\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_7__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_6__translation_messages_translationResultService__[\"a\" /* TranslationMessagesResultService */]])\r\n ], TranslationMessagesComponent);\r\n return TranslationMessagesComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 322:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return TranslationMessagePage; });\nvar TranslationMessagePage = (function () {\r\n function TranslationMessagePage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return TranslationMessagePage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 323:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return UnlockAccountComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 15/02/19.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar UnlockAccountComponent = (function () {\r\n function UnlockAccountComponent(router, route, httpService, sessionHandler, dialog, translate, formBuilder, commonService) {\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.formBuilder = formBuilder;\r\n this.commonService = commonService;\r\n this.data = [];\r\n }\r\n UnlockAccountComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.UnlockAccountForm = this.formBuilder.group({\r\n userId_WPASS: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required]),\r\n });\r\n this.UnlockAccountForm.valueChanges.subscribe(function (data) {\r\n _this.UnlockAccountFormDetails = _this.UnlockAccountForm.getRawValue();\r\n });\r\n };\r\n UnlockAccountComponent.prototype.unlockAccount = function () {\r\n var _this = this;\r\n this.httpService.postRequest(this.UnlockAccountFormDetails, 'userOperationsApi/v1/unlockWpassUser').subscribe(function (res) { _this.saveResponse(res); }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n UnlockAccountComponent.prototype.saveResponse = function (res) {\r\n var _this = this;\r\n if (res) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'account_unlock_succesfully';\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n _this.router.navigateByUrl('/login');\r\n });\r\n }\r\n this.httpService.onEnd();\r\n };\r\n UnlockAccountComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n UnlockAccountComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1290)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_9_ng2_translate__[\"d\" /* TranslateService */], __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], UnlockAccountComponent);\r\n return UnlockAccountComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 324:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return UserActivityPage; });\nvar UserActivityPage = (function () {\r\n function UserActivityPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return UserActivityPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 325:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return UserActivityResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__user_activity_page_data__ = __webpack_require__(794);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__user_activity_dashboardList__ = __webpack_require__(793);\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar UserActivityResultService = (function () {\r\n function UserActivityResultService() {\r\n this.rows = {};\r\n this.applicationsDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n UserActivityResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n UserActivityResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__user_activity_page_data__[\"a\" /* UserActivityPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__user_activity_dashboardList__[\"a\" /* UserActivityDashboardList */](jsonObj['username'], jsonObj['createdAt'], jsonObj['description'], jsonObj['email'], jsonObj['wpassId']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n UserActivityResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], UserActivityResultService);\r\n return UserActivityResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 326:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return userActivityLogs; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__user_activity_datatable_user_activity_page__ = __webpack_require__(324);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__user_activity_datatable_userActivityResultService__ = __webpack_require__(325);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__angular_common__ = __webpack_require__(32);\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar userActivityLogs = (function () {\r\n function userActivityLogs(serverResultsService, sessionHandler, httpService, datePipe, commonService) {\r\n var _this = this;\r\n this.serverResultsService = serverResultsService;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.datePipe = datePipe;\r\n this.commonService = commonService;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_3__user_activity_datatable_user_activity_page__[\"a\" /* UserActivityPage */]();\r\n this.filters = {};\r\n this.tableRows = [];\r\n this.isSystemAdmin = false;\r\n this.isApplicationManager = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.showTable = true;\r\n this.todaySelected = new Date;\r\n this.Wpass = [];\r\n this.autocompleteLoader = \"\";\r\n this.searchWpass = \"\";\r\n this.today = new Date();\r\n this.model = { date: { year: this.today.getFullYear(), month: this.today.getMonth() + 1, day: this.today.getDate() } };\r\n this.response = {};\r\n this.selected = [];\r\n this.selectedStatusId = '';\r\n this.myDatePickerOptions = {\r\n // other options...\r\n dateFormat: 'yyyy-mm-dd',\r\n };\r\n this.saveApplicationsList = function (res, filter) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_2__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.applicationsDashboardData = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n this.count = res.count;\r\n this.totalCount = res.totalCount;\r\n if (this.applicationsDashboardData.list) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.applicationsDashboardData.list) {\r\n this.rows[data] = {};\r\n this.rows[data]['name'] = this.applicationsDashboardData.list[data]['name'];\r\n this.rows[data]['username'] = this.applicationsDashboardData.list[data]['username'];\r\n this.rows[data]['description'] = this.applicationsDashboardData.list[data]['description'];\r\n this.rows[data]['email'] = this.applicationsDashboardData.list[data]['email'];\r\n this.rows[data]['wpassId'] = this.applicationsDashboardData.list[data]['wpassId'];\r\n this.rows[data]['createdAt'] = this.applicationsDashboardData.list[data]['createdAt'];\r\n /* this.rows[data]['createdAt'] = this.datePipe.transform(this.applicationsDashboardData.list[data]['createdAt'], 'dd-MM-yyyy hh:mm:ss a'); */\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n this.selectedDate = this.datePipe.transform(this.todaySelected, 'yyyy-MM-dd');\r\n //Close Sidebar Initially\r\n __WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].navCollapsed = true;\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n this.isApplicationManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n if (this.isSystemAdmin) {\r\n this.getApplicationsList(this.filters);\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\r\n this.commonService.applicationDashboard.subscribe(function (value) {\r\n _this.getApplicationsList(_this.filters);\r\n });\r\n }\r\n userActivityLogs.prototype.autocompleteSearch = function (term, filter) {\r\n var _this = this;\r\n if (filter == \"wpass\") {\r\n this.Wpass = [];\r\n this.searchWpass = term;\r\n }\r\n if (term == \"\")\r\n return;\r\n var url = \"/lookupDataOperationsApi/v1/partialSearch?type=\" + filter + \"&searchStr=\" + term;\r\n this.autocompleteLoader = filter;\r\n this.httpService.getRequestForAutocomplete(url).subscribe(function (res) {\r\n if (res && res['items']) {\r\n var name_1 = res['items'];\r\n var filterArray = [];\r\n for (var index in name_1) {\r\n filterArray.push(name_1[index]['name']);\r\n }\r\n if (filter == \"wpass\") {\r\n _this.Wpass = filterArray;\r\n }\r\n }\r\n _this.autocompleteLoader = \"\";\r\n _this.httpService.onEnd();\r\n }, function (err) {\r\n _this.autocompleteLoader = \"\";\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n userActivityLogs.prototype.onSelectAutocomplete = function (value, textFlag) {\r\n if (textFlag == \"wpass\") {\r\n this.searchWpass = value;\r\n }\r\n };\r\n userActivityLogs.prototype.search = function () {\r\n this.selected = [];\r\n this.selectedDate = \"\";\r\n this.filters['offSet'] = 0;\r\n if (this.model) {\r\n if (this.model.formatted) {\r\n this.selectedDate = this.model.formatted;\r\n }\r\n else {\r\n var date1 = this.model.date.year + \"-\" + this.model.date.month + \"-\" + this.model.date.day;\r\n this.selectedDate = this.datePipe.transform(date1, 'yyyy-MM-dd');\r\n }\r\n }\r\n if (this.searchWpass == undefined) {\r\n this.searchWpass = \"\";\r\n }\r\n else if (this.searchWpass != \"\" && this.Wpass.length > 0) {\r\n if (this.checkAutocompleteWord(this.Wpass, this.searchWpass)) {\r\n this.searchWpass = \"\";\r\n }\r\n }\r\n this.getApplicationsList(this.filters);\r\n };\r\n userActivityLogs.prototype.checkAutocompleteWord = function (objArray, searchValue) {\r\n if (objArray.includes(searchValue)) {\r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n };\r\n userActivityLogs.prototype.resetSearch = function () {\r\n this.searchWpass = '';\r\n this.Wpass = [];\r\n this.searchValue = \"\";\r\n this.selectedDate = \"\";\r\n this.model = { date: { year: this.today.getFullYear(), month: this.today.getMonth() + 1, day: this.today.getDate() } };\r\n this.search();\r\n };\r\n userActivityLogs.prototype.onSelect = function (_a) {\r\n var selected = _a.selected;\r\n this.selected.splice(0, this.selected.length);\r\n (_b = this.selected).push.apply(_b, selected);\r\n this.selectedCount = this.selected.length;\r\n var _b;\r\n };\r\n userActivityLogs.prototype.getApplicationsList = function (filter) {\r\n var _this = this;\r\n this.showCheckbox = true;\r\n this.httpService.getRequest(\"/userActivityLogsOperationApi/v1/userActivityLogList?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&wpassId=\" + this.searchWpass + \"&date=\" + this.selectedDate).subscribe(function (res) {\r\n _this.saveApplicationsList(res, filter);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n };\r\n userActivityLogs.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n _this.getApplicationsList(_this.filters);\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n userActivityLogs.prototype.ngOnInit = function () { };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_4__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], userActivityLogs.prototype, \"table\", void 0);\r\n userActivityLogs = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1291),\r\n styles: [__webpack_require__(1239), __webpack_require__(132)],\r\n providers: [__WEBPACK_IMPORTED_MODULE_10__angular_common__[\"DatePipe\"]]\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_5__user_activity_datatable_userActivityResultService__[\"a\" /* UserActivityResultService */], __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_10__angular_common__[\"DatePipe\"], __WEBPACK_IMPORTED_MODULE_9__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], userActivityLogs);\r\n return userActivityLogs;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 327:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AddBusinessUnitForUserComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/**\r\n * Created by shubham on 20/11/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AddBusinessUnitForUserComponent = (function () {\r\n function AddBusinessUnitForUserComponent(sessionHandler, httpService, dialog, formBuilder) {\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.settings = {};\r\n this.country = [];\r\n this.businessUnits = [];\r\n this.applications = [];\r\n this.isDisabled = true;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n if (this.isServiceOwner) {\r\n this.getBusinessUnitAndCountry();\r\n }\r\n }\r\n AddBusinessUnitForUserComponent.prototype.getBusinessUnitAndCountry = function () {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/initNewApplicationRequest').subscribe(function (res) { _this.saveBusinessUnitAndCountry(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddBusinessUnitForUserComponent.prototype.saveBusinessUnitAndCountry = function (res) {\r\n if (res) {\r\n this.country['id'] = res.countryId;\r\n this.country['name'] = res.countryName;\r\n if (res.availableBusinessUnits) {\r\n this.businessUnits = res.availableBusinessUnits;\r\n }\r\n if (res.defaultBusinessUnit) {\r\n this.selectedBusinessUnit = res.defaultBusinessUnit.id;\r\n }\r\n }\r\n this.buildForm();\r\n this.httpService.onEnd();\r\n };\r\n AddBusinessUnitForUserComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.AddBusinessUnitForm = this.formBuilder.group({\r\n country: this.formBuilder.control({ value: this.country['name'], disabled: true }),\r\n businessUnitId: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n applicationData: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required]),\r\n customerNumber: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required])\r\n });\r\n this.AddBusinessUnitForm.valueChanges.subscribe(function (data) {\r\n _this.AddBusinessUnitFormDetails = _this.AddBusinessUnitForm.getRawValue();\r\n _this.AddBusinessUnitFormDetails['applicationId'] = [];\r\n for (var d in _this.AddBusinessUnitFormDetails.applicationData) {\r\n _this.AddBusinessUnitFormDetails['applicationId'].push(_this.AddBusinessUnitFormDetails.applicationData[d]['id']);\r\n }\r\n _this.AddBusinessUnitFormDetails.validate = _this.AddBusinessUnitForm.valid;\r\n });\r\n this.AddBusinessUnitForm.get('businessUnitId').valueChanges.subscribe(function (data) {\r\n var arrayControl = _this.AddBusinessUnitForm.controls['applicationData'];\r\n arrayControl.controls = [];\r\n _this.applications = [];\r\n if (data != null) {\r\n _this.getApplicationsByBusinessUnit(data);\r\n }\r\n });\r\n this.AddBusinessUnitForm.get('applicationData').valueChanges.subscribe(function (data) {\r\n if (data != null) {\r\n for (var _i = 0, data_1 = data; _i < data_1.length; _i++) {\r\n var app = data_1[_i];\r\n if (app.customerNumberRequired && app.customerNumberRequired != null) {\r\n _this.AddBusinessUnitForm.get('customerNumber').setValidators(null);\r\n _this.AddBusinessUnitForm.get('customerNumber').updateValueAndValidity();\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n };\r\n AddBusinessUnitForUserComponent.prototype.getApplicationsByBusinessUnit = function (businessUnitId) {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/getUnsubscribedApplicationsForPartner/' + businessUnitId).subscribe(function (res) { _this.saveApplicationsByBusinessUnit(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddBusinessUnitForUserComponent.prototype.saveApplicationsByBusinessUnit = function (res) {\r\n if (res && res.availableApplications) {\r\n if (res.availableApplications) {\r\n this.applications = res.availableApplications;\r\n }\r\n if (res.customerNumber) {\r\n this.AddBusinessUnitForm.get('customerNumber').setValue(res.customerNumber);\r\n }\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddBusinessUnitForUserComponent.prototype.saveBusinessUnitData = function () {\r\n var _this = this;\r\n this.httpService.postRequest(this.AddBusinessUnitFormDetails, 'applicationOperationApi/v1/subscribeApplications').subscribe(function (res) { _this.saveBusinessUnitDataResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddBusinessUnitForUserComponent.prototype.saveBusinessUnitDataResponse = function (res) {\r\n if (res) {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"app_add_success\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n window.location.href = '#/app/request-application/list';\r\n });\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'save_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n AddBusinessUnitForUserComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n this.settings = {\r\n singleSelection: false,\r\n text: \"Select Applications\",\r\n labelKey: \"name\",\r\n selectAllText: 'Select All',\r\n unSelectAllText: 'UnSelect All',\r\n classes: \"myclass custom-class\"\r\n };\r\n };\r\n AddBusinessUnitForUserComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'add-business-user',\r\n template: __webpack_require__(1292)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_5__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"h\" /* FormBuilder */]])\r\n ], AddBusinessUnitForUserComponent);\r\n return AddBusinessUnitForUserComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 328:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BusinessUnitListForUserComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__businessUnitList_datatable_businessUnitList_page__ = __webpack_require__(330);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__businessUnitForUserDashboardResultService__ = __webpack_require__(329);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 24/11/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar BusinessUnitListForUserComponent = (function () {\r\n function BusinessUnitListForUserComponent(router, httpService, sessionHandler, dialog, formBuilder, serverResultsService, commonService, translate) {\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.serverResultsService = serverResultsService;\r\n this.commonService = commonService;\r\n this.translate = translate;\r\n this.page = new __WEBPACK_IMPORTED_MODULE_10__businessUnitList_datatable_businessUnitList_page__[\"a\" /* BusinessUnitListPage */]();\r\n this.tableRows = [];\r\n this.filters = {};\r\n this.businessUnitListData = [];\r\n this.temp = [];\r\n this.showTable = true;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.selected = [];\r\n this.ApplicationData = [];\r\n this.selectedApplicationId = '';\r\n this.businessUnitWithApplicationAndRoles = [];\r\n this.businessUnitWithAppRolesProfile = [];\r\n this.getUserList = function () {\r\n this.showTable = false;\r\n };\r\n this.saveUserList = function (res, filter) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\r\n }\r\n else {\r\n if (res && Object.keys(res).length > 0) {\r\n this.businessUnitListData = res;\r\n this.rows = [];\r\n this.rows['offset'] = res.offset;\r\n if (this.businessUnitListData.list) {\r\n var totalCount = 0;\r\n if (parseInt(res.offset) == 0) {\r\n localStorage.setItem('totalCount', res.totalCount);\r\n totalCount = parseInt(res.totalCount);\r\n }\r\n else {\r\n totalCount = parseInt(localStorage.getItem('totalCount'));\r\n }\r\n this.rows['totalCount'] = totalCount;\r\n for (var data in this.businessUnitListData.list) {\r\n if (this.isServiceOwner) {\r\n this.rows[data] = {};\r\n this.rows[data]['countryId'] = this.businessUnitListData.list[data]['countryId'];\r\n this.rows[data]['countryName'] = this.businessUnitListData.list[data]['countryName'];\r\n this.rows[data]['businessUnitId'] = this.businessUnitListData.list[data]['businessUnitId'];\r\n this.rows[data]['businessUnitName'] = this.businessUnitListData.list[data]['businessUnitName'];\r\n this.rows[data]['emailVerified'] = this.businessUnitListData.list[data]['emailVerified'];\r\n this.rows[data]['customerNumber'] = this.businessUnitListData.list[data]['customerNumber'];\r\n if (this.businessUnitListData.list[data]['selectedApplicationNames']) {\r\n this.rows[data]['selectedApplicationNames'] = this.businessUnitListData.list[data]['selectedApplicationNames'];\r\n }\r\n this.rows[data]['status'] = this.businessUnitListData.list[data]['status'];\r\n this.rows[data]['active'] = this.businessUnitListData.list[data]['active'];\r\n }\r\n else {\r\n //For Other Service Partner's\r\n this.rows[data] = {};\r\n }\r\n }\r\n this.showTable = true;\r\n this.temp = this.rows;\r\n }\r\n else {\r\n this.showTable = false;\r\n }\r\n var finalRows = [];\r\n for (var f in this.rows) {\r\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\r\n finalRows.push(this.rows[f]);\r\n }\r\n if (f == 'offset') {\r\n finalRows['offset'] = this.rows['offset'];\r\n }\r\n if (f == 'totalCount') {\r\n finalRows['totalCount'] = this.rows['totalCount'];\r\n }\r\n }\r\n this.rows = finalRows;\r\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\r\n this.httpService.onEnd();\r\n }\r\n }\r\n };\r\n this.businessUnitForUserListText = 'businessUnitForUserList';\r\n this.page.pageNumber = 0;\r\n this.page.size = 20;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\r\n this.filters['limit'] = this.page.size;\r\n if (this.isServiceOwner) {\r\n //this.getApplications();\r\n //this.getUsersList(this.filters, this.selectedApplicationId);\r\n this.getPartnersProfileData();\r\n }\r\n else {\r\n //this.getUserList();\r\n }\r\n }\r\n BusinessUnitListForUserComponent.prototype.getPartnersProfileData = function () {\r\n var _this = this;\r\n this.httpService.getRequest('partnerOperationsApi/v1/partnerDetails').subscribe(function (res) { _this.savePartnersProfileData(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n BusinessUnitListForUserComponent.prototype.savePartnersProfileData = function (res) {\r\n if (res) {\r\n this.profileData = res;\r\n if (this.profileData) {\r\n if (this.profileData.businessUnitWithApplicationAndRoles) {\r\n this.businessUnitWithApplicationAndRoles = this.profileData.businessUnitWithApplicationAndRoles;\r\n for (var businessUnit in this.businessUnitWithApplicationAndRoles) {\r\n for (var appAndRoles in this.businessUnitWithApplicationAndRoles[businessUnit]['applications']) {\r\n var temp = [];\r\n temp['businessUnitName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitName'];\r\n temp['customerNumber'] = this.businessUnitWithApplicationAndRoles[businessUnit]['customerNumber'];\r\n temp['applicationName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationName'];\r\n temp['selectedRoleNames'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['selectedRoleNames'];\r\n temp['url'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['url'];\r\n var actionObject = {};\r\n if (this.businessUnitWithApplicationAndRoles[businessUnit]['statusCode'] != 'APPROVED') {\r\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit];\r\n }\r\n else {\r\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles];\r\n }\r\n temp['statusCode'] = actionObject['statusCode'];\r\n temp['status'] = actionObject['status'];\r\n temp['message'] = actionObject['message'];\r\n this.businessUnitWithAppRolesProfile.push(temp);\r\n }\r\n }\r\n }\r\n }\r\n this.httpService.onEnd();\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_load_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n BusinessUnitListForUserComponent.prototype.getApplications = function () {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/applicationsForPartner').subscribe(function (res) { _this.saveApplications(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n BusinessUnitListForUserComponent.prototype.saveApplications = function (res) {\r\n if (res && res.items) {\r\n for (var s in res.items) {\r\n this.ApplicationData.push(res.items[s]);\r\n }\r\n }\r\n };\r\n BusinessUnitListForUserComponent.prototype.search = function () {\r\n this.filters['offSet'] = 0;\r\n this.getUsersList(this.filters, this.selectedApplicationId);\r\n };\r\n BusinessUnitListForUserComponent.prototype.resetSearch = function () {\r\n this.selectedApplicationId = \"\";\r\n this.search();\r\n };\r\n BusinessUnitListForUserComponent.prototype.getUsersList = function (filter, applicationId) {\r\n var _this = this;\r\n this.httpService.getRequest(\"partnerOperationsApi/v1/businessUnitListForPartner?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&applicationId=\" + applicationId).subscribe(function (res) { _this.saveUserList(res, filter); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n /**\r\n * Populate the table with new data based on the page number\r\n * @param page The page to select\r\n */\r\n BusinessUnitListForUserComponent.prototype.setPage = function (pageInfo, rows, filter) {\r\n var _this = this;\r\n this.page.pageNumber = pageInfo.offset;\r\n if (rows.length != 0) {\r\n this.serverResultsService.getResults(this.page, rows).subscribe(function (pageData) {\r\n _this.page = pageData.page;\r\n _this.tableRows = pageData.data;\r\n if (!filter) {\r\n if (Object.keys(_this.tableRows).length == 0 || !_this.tableRows[0]['status']) {\r\n _this.filters['offSet'] = _this.page.pageNumber * _this.page.size;\r\n _this.getUsersList(_this.filters, _this.selectedApplicationId);\r\n }\r\n }\r\n });\r\n }\r\n else {\r\n this.tableRows = [];\r\n this.page.totalElements = rows.length;\r\n }\r\n };\r\n BusinessUnitListForUserComponent.prototype.onSelect = function (_a) {\r\n var selected = _a.selected;\r\n this.selected.splice(0, this.selected.length);\r\n (_b = this.selected).push.apply(_b, selected);\r\n var _b;\r\n };\r\n BusinessUnitListForUserComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n var temp = [{ id: \"\", code: \"\", name: \"All\" }];\r\n this.translate.get('all').subscribe(function (res) {\r\n temp[0].name = res;\r\n _this.ApplicationData = temp;\r\n });\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ViewChild\"])(__WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", __WEBPACK_IMPORTED_MODULE_5__swimlane_ngx_datatable__[\"DatatableComponent\"])\r\n ], BusinessUnitListForUserComponent.prototype, \"table\", void 0);\r\n BusinessUnitListForUserComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'businessUnitList',\r\n template: __webpack_require__(1293)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_9__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_12__businessUnitForUserDashboardResultService__[\"a\" /* BusinessUnitListForUserDashboardResultService */],\r\n __WEBPACK_IMPORTED_MODULE_8__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], BusinessUnitListForUserComponent);\r\n return BusinessUnitListForUserComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 329:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BusinessUnitListForUserDashboardResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__businessUnitList_datatable_businessUnitList_page_data__ = __webpack_require__(796);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__businessUnitList_datatable_businessUnitList_dashboard__ = __webpack_require__(795);\n/**\r\n * Created by shubham on 20/11/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar BusinessUnitListForUserDashboardResultService = (function () {\r\n function BusinessUnitListForUserDashboardResultService() {\r\n this.rows = {};\r\n this.adminDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n BusinessUnitListForUserDashboardResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n BusinessUnitListForUserDashboardResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__businessUnitList_datatable_businessUnitList_page_data__[\"a\" /* BusinessUnitListPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__businessUnitList_datatable_businessUnitList_dashboard__[\"a\" /* BusinessUnitListDashboard */](jsonObj['countryId'], jsonObj['countryName'], jsonObj['businessUnitId'], jsonObj['businessUnitName'], jsonObj['emailVerified'], jsonObj['customerNumber'], jsonObj['selectedApplicationNames'], jsonObj['status'], jsonObj['active']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n BusinessUnitListForUserDashboardResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], BusinessUnitListForUserDashboardResultService);\r\n return BusinessUnitListForUserDashboardResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 330:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BusinessUnitListPage; });\n/**\r\n * Created by shubham on 20/11/18.\r\n */\r\n/**\r\n * An object used to get page information from the server\r\n */\r\nvar BusinessUnitListPage = (function () {\r\n function BusinessUnitListPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return BusinessUnitListPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 331:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return RequestBusinessUnitComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 19/11/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar RequestBusinessUnitComponent = (function () {\r\n function RequestBusinessUnitComponent(router, route, httpService, sessionHandler, dialog, translate, commonService) {\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.commonService = commonService;\r\n this.data = [];\r\n this.languageId = this.sessionHandler.getItem('languageId');\r\n if (!this.languageId) {\r\n this.languageId = \"EN\";\r\n }\r\n this.translate.use(this.languageId);\r\n }\r\n RequestBusinessUnitComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1294)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"d\" /* TranslateService */], __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], RequestBusinessUnitComponent);\r\n return RequestBusinessUnitComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 332:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RequestBusinessUnitModule\", function() { return RequestBusinessUnitModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_angular2_multiselect_dropdown_angular2_multiselect_dropdown__ = __webpack_require__(91);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__request_business_unit_routing_module__ = __webpack_require__(797);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__request_business_unit_component__ = __webpack_require__(331);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__add_business_unit_add_business_unit_component__ = __webpack_require__(327);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__business_unit_list_business_unit_list_component__ = __webpack_require__(328);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__view_business_unit_view_business_unit_component__ = __webpack_require__(333);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 20/11/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar RequestBusinessUnitModule = (function () {\r\n function RequestBusinessUnitModule() {\r\n }\r\n RequestBusinessUnitModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_6__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_7__swimlane_ngx_datatable__[\"NgxDatatableModule\"],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_4_angular2_multiselect_dropdown_angular2_multiselect_dropdown__[\"a\" /* AngularMultiSelectModule */],\r\n __WEBPACK_IMPORTED_MODULE_8__request_business_unit_routing_module__[\"a\" /* RequestBusinessUnitRoutingModule */],\r\n __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_14__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_2__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_9__request_business_unit_component__[\"a\" /* RequestBusinessUnitComponent */],\r\n __WEBPACK_IMPORTED_MODULE_10__add_business_unit_add_business_unit_component__[\"a\" /* AddBusinessUnitForUserComponent */],\r\n __WEBPACK_IMPORTED_MODULE_11__business_unit_list_business_unit_list_component__[\"a\" /* BusinessUnitListForUserComponent */],\r\n __WEBPACK_IMPORTED_MODULE_12__view_business_unit_view_business_unit_component__[\"a\" /* ViewBusinessUnitForUserComponent */]\r\n ],\r\n exports: []\r\n })\r\n ], RequestBusinessUnitModule);\r\n return RequestBusinessUnitModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 333:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ViewBusinessUnitForUserComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__ = __webpack_require__(11);\n/**\r\n * Created by shubham on 25/11/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ViewBusinessUnitForUserComponent = (function () {\r\n function ViewBusinessUnitForUserComponent(router, route, sessionHandler, httpService, dialog, formBuilder) {\r\n var _this = this;\r\n this.router = router;\r\n this.route = route;\r\n this.sessionHandler = sessionHandler;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.formBuilder = formBuilder;\r\n this.businessUnitDetails = [];\r\n this.applications = [];\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.isDisabled = true;\r\n this.admins = [];\r\n this.settings = {};\r\n this.selectedItems = [];\r\n this.applicationData = [];\r\n this.route.params.subscribe(function (params) {\r\n _this.id = params['id'];\r\n });\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n else if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n if (this.isServiceOwner) {\r\n this.getBusinessUnitDetailsById(this.id);\r\n }\r\n }\r\n ViewBusinessUnitForUserComponent.prototype.getBusinessUnitDetailsById = function (id) {\r\n var _this = this;\r\n this.httpService.getRequest('partnerOperationsApi/v1/businessUnitDetailsForPartner/' + id).subscribe(function (res) { _this.saveBusinessUnitDetails(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewBusinessUnitForUserComponent.prototype.saveBusinessUnitDetails = function (res) {\r\n if (res) {\r\n this.businessUnitDetails = res;\r\n if (this.businessUnitDetails['applications']) {\r\n this.applications = this.businessUnitDetails['applications'];\r\n for (var appIndex in this.applications) {\r\n if (!this.applications[appIndex]['message']) {\r\n this.applications[appIndex]['message'] = \"\";\r\n }\r\n }\r\n }\r\n this.httpService.onEnd();\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_load_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ViewBusinessUnitForUserComponent.prototype.requestNewApplication = function (businessUnitId) {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/getUnsubscribedApplicationsForPartner/' + businessUnitId).subscribe(function (res) { _this.requestNewApplicationResponse(res, businessUnitId); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewBusinessUnitForUserComponent.prototype.requestNewApplicationResponse = function (res, businessUnitId) {\r\n var _this = this;\r\n if (res && res.items) {\r\n this.applicationData = res.items;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"b\" /* SelectApplicationsDialogComponent */]);\r\n this.dialogRef.componentInstance.applications = this.applicationData;\r\n this.dialogRef.componentInstance.businessUnitId = businessUnitId;\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n _this.saveApplications(result);\r\n }\r\n });\r\n }\r\n this.httpService.onEnd();\r\n };\r\n ViewBusinessUnitForUserComponent.prototype.saveApplications = function (result) {\r\n var _this = this;\r\n this.httpService.postRequest(result, 'applicationOperationApi/v1/subscribeApplications').subscribe(function (res) { _this.saveBusinessUnitDetails(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewBusinessUnitForUserComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'view-business-unit-for-user',\r\n template: __webpack_require__(1295)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_7__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"h\" /* FormBuilder */]])\r\n ], ViewBusinessUnitForUserComponent);\r\n return ViewBusinessUnitForUserComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 334:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AddEditUserComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__ = __webpack_require__(16);\n/**\r\n * Created by shubham on 24/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AddEditUserComponent = (function () {\r\n function AddEditUserComponent(router, sessionHandler, route, httpService, formBuilder, dialog) {\r\n this.router = router;\r\n this.sessionHandler = sessionHandler;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.formBuilder = formBuilder;\r\n this.dialog = dialog;\r\n this.data = [];\r\n this.emailPattern = __WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].emailPattern;\r\n //passwordPattern = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$/;\r\n this.passwordPattern = /^(?=.*?[A-Za-z])(?=.*?[0-9]).{5,}$/;\r\n this.settings = {};\r\n this.LanguageDetails = [];\r\n this.passwordErrorMsg = '';\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n this.getLanguages();\r\n }\r\n AddEditUserComponent.prototype.getLanguages = function () {\r\n var _this = this;\r\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(function (res) { _this.saveLanguageResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddEditUserComponent.prototype.validateName = function (event) {\r\n return __WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */].validNameRegex.test(event.key);\r\n };\r\n AddEditUserComponent.prototype.saveLanguageResponse = function (res) {\r\n if (res) {\r\n if (res.items) {\r\n this.LanguageDetails = res.items;\r\n }\r\n }\r\n this.httpService.onEnd();\r\n };\r\n AddEditUserComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.UserForm = this.formBuilder.group({\r\n firstName: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required]),\r\n lastName: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required]),\r\n password: this.formBuilder.control('', [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].minLength(8), __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].maxLength(8), __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.passwordPattern)]),\r\n confirmPassword: this.formBuilder.control('', [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required]),\r\n email: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required, __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].pattern(this.emailPattern)]),\r\n languageId: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"g\" /* Validators */].required]),\r\n }, { validator: this.checkPasswords });\r\n this.UserForm.valueChanges.subscribe(function (data) {\r\n _this.UserFormDetails = _this.UserForm.getRawValue();\r\n _this.UserFormDetails.validate = _this.UserForm.valid;\r\n });\r\n this.UserForm.get('password').valueChanges.subscribe(function (data) {\r\n if (data != null) {\r\n _this.UserForm.get('password').setErrors({ 'incorrect': true });\r\n if (!/.*[A-Z]/.test(data) || !/.*[a-z]/.test(data)) {\r\n _this.passwordErrorMsg = \"pass_one_upper_lower_char\";\r\n }\r\n else if (!/.*[0-9]/.test(data)) {\r\n _this.passwordErrorMsg = \"pass_one_number\";\r\n }\r\n else if (data.length != 8) {\r\n _this.passwordErrorMsg = \"pass_8_chars\";\r\n }\r\n else if (data.toLowerCase().includes(_this.userDetails.userId_WPASS.toLowerCase())) {\r\n _this.passwordErrorMsg = \"pass_no_userId\";\r\n }\r\n else {\r\n _this.passwordErrorMsg = \"\";\r\n _this.UserForm.get('password').setErrors(null);\r\n }\r\n }\r\n });\r\n };\r\n AddEditUserComponent.prototype.showPassword = function (input) {\r\n input.type = input.type === 'password' ? 'text' : 'password';\r\n };\r\n AddEditUserComponent.prototype.checkPasswords = function (group) {\r\n if (group.get('password').value === group.get('confirmPassword').value) {\r\n group.get('confirmPassword').setErrors(null);\r\n return null;\r\n }\r\n else {\r\n group.get('confirmPassword').setErrors({ 'incorrect': true });\r\n return { 'mismatch': true };\r\n }\r\n };\r\n AddEditUserComponent.prototype.saveUserData = function () {\r\n var _this = this;\r\n this.httpService.postRequest(this.UserFormDetails, 'partnerOperationsApi/v1/createCompanyUser').subscribe(function (res) { _this.saveResponse(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n AddEditUserComponent.prototype.saveResponse = function (res) {\r\n var _this = this;\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'user_creation_failed';\r\n }\r\n else {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_7__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"registration_rqst_notify\";\r\n //this.dialogRef.componentInstance.msg = \"User Created Successfully\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n _this.router.navigateByUrl('/app/partners-dashboard');\r\n });\r\n }\r\n };\r\n AddEditUserComponent.prototype.ngOnInit = function () {\r\n this.buildForm();\r\n };\r\n AddEditUserComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1296)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_3__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_6__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_5__angular_material__[\"c\" /* MdDialog */]])\r\n ], AddEditUserComponent);\r\n return AddEditUserComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 335:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return UserComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 24/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar UserComponent = (function () {\r\n function UserComponent(router, route, httpService, sessionHandler, dialog, translate, commonService) {\r\n var _this = this;\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.commonService = commonService;\r\n this.data = [];\r\n this.languageId = this.sessionHandler.getItem('languageId');\r\n if (!this.languageId) {\r\n this.languageId = \"EN\";\r\n }\r\n this.translate.use(this.languageId);\r\n this.commonService.userData.subscribe(function (value) {\r\n _this.data = value;\r\n });\r\n }\r\n UserComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n template: __webpack_require__(1297)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_6__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"d\" /* TranslateService */], __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], UserComponent);\r\n return UserComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 336:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UserModule\", function() { return UserModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_angular2_multiselect_dropdown_angular2_multiselect_dropdown__ = __webpack_require__(91);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__user_routing_module__ = __webpack_require__(798);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__user_component__ = __webpack_require__(335);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__add_edit_user_add_edit_user_component__ = __webpack_require__(334);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 16/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar UserModule = (function () {\r\n function UserModule() {\r\n }\r\n UserModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_6__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_4_angular2_multiselect_dropdown_angular2_multiselect_dropdown__[\"a\" /* AngularMultiSelectModule */],\r\n __WEBPACK_IMPORTED_MODULE_7__user_routing_module__[\"a\" /* UserRoutingModule */],\r\n __WEBPACK_IMPORTED_MODULE_10_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_10_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_10_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_11__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_2__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_8__user_component__[\"a\" /* UserComponent */],\r\n __WEBPACK_IMPORTED_MODULE_9__add_edit_user_add_edit_user_component__[\"a\" /* AddEditUserComponent */]\r\n ],\r\n exports: []\r\n })\r\n ], UserModule);\r\n return UserModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 337:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ViewRequestModule\", function() { return ViewRequestModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__view_request_routing_module__ = __webpack_require__(799);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__approve_reject_request_approve_reject_request_module__ = __webpack_require__(285);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__view_request_component__ = __webpack_require__(198);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__viewPartners_viewPartners_component__ = __webpack_require__(339);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__viewSubUsers_viewSubUsers_component__ = __webpack_require__(340);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__viewApplicationRequest_viewApplicationRequest_component__ = __webpack_require__(338);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_angular2_multiselect_dropdown_angular2_multiselect_dropdown__ = __webpack_require__(91);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 16/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ViewRequestModule = (function () {\r\n function ViewRequestModule() {\r\n }\r\n ViewRequestModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_2__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_2__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_6__view_request_routing_module__[\"a\" /* RequestRoutingModule */],\r\n __WEBPACK_IMPORTED_MODULE_12_angular2_multiselect_dropdown_angular2_multiselect_dropdown__[\"a\" /* AngularMultiSelectModule */],\r\n __WEBPACK_IMPORTED_MODULE_7__approve_reject_request_approve_reject_request_module__[\"a\" /* ApproveRejectRequestModule */],\r\n __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_13_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_14__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_3__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_8__view_request_component__[\"b\" /* ViewRequestComponent */],\r\n __WEBPACK_IMPORTED_MODULE_9__viewPartners_viewPartners_component__[\"a\" /* ViewPartnersRequestComponent */],\r\n __WEBPACK_IMPORTED_MODULE_10__viewSubUsers_viewSubUsers_component__[\"a\" /* ViewSubUsersRequestComponent */],\r\n __WEBPACK_IMPORTED_MODULE_11__viewApplicationRequest_viewApplicationRequest_component__[\"a\" /* ViewApplicationRequestComponent */]\r\n ],\r\n exports: []\r\n })\r\n ], ViewRequestModule);\r\n return ViewRequestModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 338:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ViewApplicationRequestComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_ng2_translate__ = __webpack_require__(17);\n/**\r\n * Created by shubham on 11/10/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ViewApplicationRequestComponent = (function () {\r\n function ViewApplicationRequestComponent(route, httpService, formBuilder, dialog, commonService, sessionHandler, translate) {\r\n var _this = this;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.formBuilder = formBuilder;\r\n this.dialog = dialog;\r\n this.commonService = commonService;\r\n this.sessionHandler = sessionHandler;\r\n this.translate = translate;\r\n this.isApproved = false;\r\n this.isReject = false;\r\n this.roles = [];\r\n this.settings = {};\r\n this.selectedItems = [];\r\n this.showApproveButton = false;\r\n this.settingSingleField = {\r\n singleSelection: true,\r\n text: \"Select Role\",\r\n labelKey: \"name\",\r\n selectAllText: 'Select All',\r\n unSelectAllText: 'UnSelect All',\r\n classes: \"myclass custom-class\",\r\n disabled: false\r\n };\r\n this.settingMultipleField = {\r\n singleSelection: false,\r\n text: \"Select Role\",\r\n labelKey: \"name\",\r\n selectAllText: 'Select All',\r\n unSelectAllText: 'UnSelect All',\r\n classes: \"myclass custom-class\",\r\n disabled: false\r\n };\r\n this.applicationText = 'applicationManagerView';\r\n //Get URL param value\r\n this.route.params.subscribe(function (params) {\r\n _this.urlId = params['id'];\r\n if (_this.urlId != undefined || _this.urlId != null) {\r\n _this.getApplicationRequestDataById(_this.urlId);\r\n }\r\n });\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n this.isApplicationManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_9__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n }\r\n ViewApplicationRequestComponent.prototype.getApplicationRequestDataById = function (urlId) {\r\n var _this = this;\r\n this.httpService.getRequest(\"applicationOperationApi/v1/applicationRequestsById/\" + this.urlId).subscribe(function (res) { _this.saveApplicationRequestDataById(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewApplicationRequestComponent.prototype.saveApplicationRequestDataById = function (res) {\r\n if (res) {\r\n this.ApplicationsRequestData = res;\r\n this.commonService.changeViewData(this.ApplicationsRequestData, 'appView');\r\n if (this.ApplicationsRequestData) {\r\n if (this.ApplicationsRequestData.multipleRole) {\r\n this.settings = this.settingMultipleField;\r\n }\r\n else {\r\n this.settings = this.settingSingleField;\r\n }\r\n if (this.ApplicationsRequestData.applicationRoles) {\r\n this.roles = this.ApplicationsRequestData.applicationRoles;\r\n }\r\n if (this.ApplicationsRequestData.selectedRoles) {\r\n for (var l in this.ApplicationsRequestData.selectedRoles) {\r\n this.selectedItems.push({ id: this.ApplicationsRequestData.selectedRoles[l]['id'], name: this.ApplicationsRequestData.selectedRoles[l]['name'] });\r\n }\r\n }\r\n }\r\n }\r\n this.httpService.onEnd();\r\n };\r\n ViewApplicationRequestComponent.prototype.buildForm = function () {\r\n var _this = this;\r\n this.ApplicationsRequestForm = this.formBuilder.group({\r\n selectedRoles: this.formBuilder.control(null, [__WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"g\" /* Validators */].required])\r\n });\r\n this.ApplicationsRequestForm.valueChanges.subscribe(function (data) {\r\n _this.ApplicationsRequestFormDetails = _this.ApplicationsRequestForm.getRawValue();\r\n if (_this.urlId) {\r\n _this.ApplicationsRequestFormDetails['id'] = _this.urlId;\r\n }\r\n if (_this.ApplicationsRequestFormDetails['selectedRoles'].length > 0) {\r\n _this.showApproveButton = false;\r\n }\r\n else {\r\n _this.showApproveButton = true;\r\n }\r\n _this.ApplicationsRequestFormDetails.validate = _this.ApplicationsRequestForm.valid;\r\n });\r\n };\r\n ViewApplicationRequestComponent.prototype.saveApplicationData = function () {\r\n var _this = this;\r\n if (this.ApplicationsRequestFormDetails['selectedRoles'].length <= 0) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.isConfirm = true;\r\n this.dialogRef.componentInstance.msg = \"app_revoke_confirm\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n _this.saveApplicationDataApi();\r\n }\r\n });\r\n }\r\n else {\r\n this.saveApplicationDataApi();\r\n }\r\n };\r\n ViewApplicationRequestComponent.prototype.saveApplicationDataApi = function () {\r\n var _this = this;\r\n this.httpService.postRequest(this.ApplicationsRequestFormDetails, 'applicationOperationApi/v1/updateUserApplicationRoles').subscribe(function (res) {\r\n _this.saveApplicationResponse(res);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewApplicationRequestComponent.prototype.saveApplicationResponse = function (res) {\r\n if (res) {\r\n this.httpService.onEnd();\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = \"Request submitted successfully.\";\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n window.location.href = '#/app/application-manager-dashboard';\r\n });\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'save_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ViewApplicationRequestComponent.prototype.appAction = function (status) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__[\"h\" /* ApplicationRejectActionDialogComponent */]);\r\n var actionStatus = \"\";\r\n if (status == 'APPROVED') {\r\n actionStatus = 'APPROVE';\r\n this.dialogRef.componentInstance.msg = 'rqst_approve_confirm';\r\n this.dialogRef.componentInstance.isApproved = true;\r\n }\r\n else if (status == 'REJECTED') {\r\n actionStatus = 'REJECT';\r\n this.dialogRef.componentInstance.msg = 'rqst_rjct_confirm';\r\n this.dialogRef.componentInstance.isRejected = true;\r\n }\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n var data = {};\r\n data['id'] = _this.urlId;\r\n data['status'] = status;\r\n if (status == \"REJECTED\") {\r\n data['message'] = result;\r\n }\r\n else {\r\n data['selectedRoles'] = _this.ApplicationsRequestFormDetails['selectedRoles'];\r\n }\r\n var today = new Date();\r\n var dd = ('0' + today.getDate()).slice(-2);\r\n var mm = ('0' + (today.getMonth() + 1)).slice(-2);\r\n var yyyy = today.getFullYear();\r\n data['approvalDate'] = yyyy + '' + mm + '' + dd;\r\n _this.httpService.postRequest(data, 'applicationOperationApi/v1/approveApplicationRequest').subscribe(function (res) {\r\n _this.saveResponse(res, status);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n });\r\n };\r\n ViewApplicationRequestComponent.prototype.saveResponse = function (res, status) {\r\n this.httpService.onEnd();\r\n var statusTxt;\r\n if (res) {\r\n if (status == 'APPROVED') {\r\n statusTxt = 'Approval process initiated. It will take time. User will be notified on mail.';\r\n }\r\n else {\r\n statusTxt = 'Rejected Successfully';\r\n }\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_5__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = statusTxt;\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n window.location.href = '#/app/application-manager-dashboard';\r\n });\r\n }\r\n };\r\n ViewApplicationRequestComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.buildForm();\r\n this.translate.get('Select Role').subscribe(function (res) {\r\n _this.settingSingleField.text = res;\r\n _this.settingMultipleField.text = res;\r\n });\r\n this.translate.get('select_all').subscribe(function (res) {\r\n _this.settingSingleField.selectAllText = res;\r\n _this.settingMultipleField.selectAllText = res;\r\n });\r\n this.translate.get('unselect_all').subscribe(function (res) {\r\n _this.settingSingleField.unSelectAllText = res;\r\n _this.settingMultipleField.unSelectAllText = res;\r\n });\r\n };\r\n ViewApplicationRequestComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'application-request',\r\n template: __webpack_require__(1300),\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"h\" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_6__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_10_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], ViewApplicationRequestComponent);\r\n return ViewApplicationRequestComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 339:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ViewPartnersRequestComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_error_handler_service__ = __webpack_require__(92);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__ = __webpack_require__(11);\n/**\r\n * Created by shubham on 16/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ViewPartnersRequestComponent = (function () {\r\n function ViewPartnersRequestComponent(router, route, httpService, dialog, commonService, sessionHandler) {\r\n var _this = this;\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.commonService = commonService;\r\n this.sessionHandler = sessionHandler;\r\n this.businessUnitsFlag = false;\r\n this.wPassIdFlag = false;\r\n this.companyPhoneFlag = false;\r\n this.businessUnitWithApplicationAndRoles = [];\r\n this.businessUnitWithAppRoles = [];\r\n this.updatingBuAppId = '';\r\n this.emailUpdating = false;\r\n this.allCustomerNumberChecked = false;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n this.route.params.subscribe(function (params) {\r\n _this.id = +params['id'];\r\n });\r\n if (this.userDetails) {\r\n this.getRequestDataWithId();\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.commonService.partnersView.subscribe(function (value) {\r\n _this.getRequestDataWithId();\r\n });\r\n }\r\n ViewPartnersRequestComponent.prototype.getRequestDataWithId = function () {\r\n var _this = this;\r\n this.httpService.getRequest('userRegistrationsApi/v1/user?userId=' + this.id + \"&allRoles=false&applicationStatus=approve\").subscribe(function (res) { _this.saveRequestData(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewPartnersRequestComponent.prototype.saveRequestData = function (res) {\r\n if (res) {\r\n this.formData = res;\r\n this.commonService.changeViewData(this.formData, 'partnersView');\r\n if (this.formData) {\r\n if (this.formData.businessUnits) {\r\n this.businessUnitsFlag = true;\r\n }\r\n if (this.formData.userId_WPASS) {\r\n this.wPassIdFlag = true;\r\n }\r\n if (this.formData.companyPhone) {\r\n this.companyPhoneFlag = true;\r\n }\r\n if (this.formData.businessUnitWithApplicationAndRoles) {\r\n this.businessUnitWithAppRoles = [];\r\n this.businessUnitWithApplicationAndRoles = this.formData.businessUnitWithApplicationAndRoles;\r\n for (var businessUnit in this.businessUnitWithApplicationAndRoles) {\r\n for (var appAndRoles in this.businessUnitWithApplicationAndRoles[businessUnit]['applications']) {\r\n var temp = [];\r\n temp['buAppId'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitId'] + '-' + this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationId'];\r\n temp['businessUnitName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitName'];\r\n temp['customerNumber'] = this.businessUnitWithApplicationAndRoles[businessUnit]['customerNumber'];\r\n temp['applicationName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationName'];\r\n temp['selectedRoleNames'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['selectedRoleNames'];\r\n temp['url'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['url'];\r\n var actionObject = {};\r\n if (this.businessUnitWithApplicationAndRoles[businessUnit]['statusCode'] != 'APPROVED') {\r\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit];\r\n }\r\n else {\r\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles];\r\n }\r\n temp['statusCode'] = actionObject['statusCode'];\r\n temp['status'] = actionObject['status'];\r\n temp['message'] = actionObject['message'];\r\n this.businessUnitWithAppRoles.push(temp);\r\n }\r\n }\r\n }\r\n }\r\n this.httpService.onEnd();\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_load_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ViewPartnersRequestComponent.prototype.showApplicationsWithRoles = function (apps) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"k\" /* ShowApplicationsDialogComponent */]);\r\n for (var appIndex in apps) {\r\n if (!apps[appIndex]['message']) {\r\n apps[appIndex]['message'] = \"\";\r\n }\r\n }\r\n this.dialogRef.componentInstance.apps = apps;\r\n this.dialogRef.componentInstance.profileFlag = true;\r\n };\r\n ViewPartnersRequestComponent.prototype.initUpdateCustomerNumber = function (buAppId) {\r\n this.updatingBuAppId = buAppId;\r\n };\r\n ViewPartnersRequestComponent.prototype.updateCustomerNumber = function (buAppId) {\r\n var _this = this;\r\n var newCustomerNumber = $('#cn-' + buAppId).val();\r\n buAppId = buAppId.split('-')[0];\r\n console.log('newCustomerNumber:' + newCustomerNumber + ', buAppId:' + buAppId);\r\n if (!newCustomerNumber) {\r\n this.updatingBuAppId = '';\r\n return;\r\n }\r\n this.httpService.postRequest({ customerNumber: newCustomerNumber, businessUnitId: buAppId, customerNumberMandatory: this.allCustomerNumberChecked, id: this.id }, 'userRegistrationsApi/v1/updateCustomerNumber').subscribe(function (res) {\r\n _this.httpService.onEnd();\r\n window.location.reload();\r\n }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewPartnersRequestComponent.prototype.cancelUpdateCustomerNumber = function (buAppId) {\r\n this.updatingBuAppId = '';\r\n };\r\n ViewPartnersRequestComponent.prototype.customerNumberUpdating = function (buAppId) {\r\n return this.updatingBuAppId == buAppId;\r\n };\r\n ViewPartnersRequestComponent.prototype.updateEmail = function () {\r\n var _this = this;\r\n var newEmail = $('#newEmail').val();\r\n console.log('newEmail:' + newEmail);\r\n if (!newEmail) {\r\n this.emailUpdating = false;\r\n return;\r\n }\r\n this.httpService.postRequest({ email: newEmail, id: this.id }, 'userRegistrationsApi/v1/updateEmail').subscribe(function (res) {\r\n _this.httpService.onEnd();\r\n window.location.reload();\r\n }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewPartnersRequestComponent.prototype.initUpdateEmail = function () {\r\n this.emailUpdating = true;\r\n };\r\n ViewPartnersRequestComponent.prototype.cancelUpdateEmail = function () {\r\n this.emailUpdating = false;\r\n };\r\n ViewPartnersRequestComponent.prototype.isEmailUpdating = function () {\r\n return this.emailUpdating;\r\n };\r\n ViewPartnersRequestComponent.prototype.toggleAllCustomerNumberCheck = function () {\r\n this.allCustomerNumberChecked = !this.allCustomerNumberChecked;\r\n };\r\n ViewPartnersRequestComponent.prototype.ngOnInit = function () { };\r\n ViewPartnersRequestComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'partners-request-view',\r\n template: __webpack_require__(1301),\r\n providers: [__WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_3__shared_services_error_handler_service__[\"a\" /* ErrorHandler */]]\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_7__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_6__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__[\"a\" /* SessionHandler */]])\r\n ], ViewPartnersRequestComponent);\r\n return ViewPartnersRequestComponent;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 340:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ViewSubUsersRequestComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_error_handler_service__ = __webpack_require__(92);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__ = __webpack_require__(11);\n/**\r\n * Created by shubham on 26/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ViewSubUsersRequestComponent = (function () {\r\n function ViewSubUsersRequestComponent(router, route, httpService, dialog, commonService, sessionHandler) {\r\n var _this = this;\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.commonService = commonService;\r\n this.sessionHandler = sessionHandler;\r\n this.businessUnitsFlag = false;\r\n this.wPassIdFlag = false;\r\n this.businessUnitWithApplicationAndRoles = [];\r\n this.businessUnitWithAppRolesSubPartner = [];\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n this.route.params.subscribe(function (params) {\r\n _this.id = +params['id'];\r\n });\r\n if (this.userDetails) {\r\n this.getRequestDataWithId();\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n this.commonService.subUsersView.subscribe(function (value) {\r\n _this.getRequestDataWithId();\r\n });\r\n }\r\n ViewSubUsersRequestComponent.prototype.getRequestDataWithId = function () {\r\n var _this = this;\r\n this.httpService.getRequest('partnerOperationsApi/v1/companyUser/' + this.id).subscribe(function (res) { _this.saveRequestData(res); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n ViewSubUsersRequestComponent.prototype.saveRequestData = function (res) {\r\n if (res) {\r\n this.formData = res;\r\n this.commonService.changeViewData(this.formData, 'subUsersView');\r\n if (this.formData) {\r\n if (this.formData.userId_WPASS) {\r\n this.wPassIdFlag = true;\r\n }\r\n /*if(this.formData.businessUnitWithApplicationAndRoles){\r\n this.businessUnitWithApplicationAndRoles = this.formData.businessUnitWithApplicationAndRoles;\r\n\n for(let appIndex in this.businessUnitWithApplicationAndRoles){\r\n if(!this.businessUnitWithApplicationAndRoles[appIndex]['message']){\r\n this.businessUnitWithApplicationAndRoles[appIndex]['message'] = \"\";\r\n }\r\n }\r\n }*/\r\n if (this.formData.businessUnitWithApplicationAndRoles) {\r\n this.businessUnitWithApplicationAndRoles = this.formData.businessUnitWithApplicationAndRoles;\r\n for (var businessUnit in this.businessUnitWithApplicationAndRoles) {\r\n for (var appAndRoles in this.businessUnitWithApplicationAndRoles[businessUnit]['applications']) {\r\n var temp = [];\r\n temp['businessUnitName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitName'];\r\n temp['customerNumber'] = this.businessUnitWithApplicationAndRoles[businessUnit]['customerNumber'];\r\n temp['applicationName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationName'];\r\n temp['selectedRoleNames'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['selectedRoleNames'];\r\n temp['url'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['url'];\r\n var actionObject = {};\r\n if (this.businessUnitWithApplicationAndRoles[businessUnit]['statusCode'] != 'APPROVED') {\r\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit];\r\n }\r\n else {\r\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles];\r\n }\r\n temp['statusCode'] = actionObject['statusCode'];\r\n temp['status'] = actionObject['status'];\r\n temp['message'] = actionObject['message'];\r\n this.businessUnitWithAppRolesSubPartner.push(temp);\r\n }\r\n }\r\n }\r\n }\r\n this.httpService.onEnd();\r\n }\r\n else if (res.errorStatus == 'Fail') {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = 'data_load_failed';\r\n this.httpService.onEnd();\r\n }\r\n };\r\n ViewSubUsersRequestComponent.prototype.showApplicationsWithRoles = function (apps) {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_8__dialog_dialog_component__[\"k\" /* ShowApplicationsDialogComponent */]);\r\n for (var appIndex in apps) {\r\n if (!apps[appIndex]['message']) {\r\n apps[appIndex]['message'] = \"\";\r\n }\r\n }\r\n this.dialogRef.componentInstance.apps = apps;\r\n this.dialogRef.componentInstance.profileFlag = true;\r\n };\r\n ViewSubUsersRequestComponent.prototype.ngOnInit = function () { };\r\n ViewSubUsersRequestComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'subusers-request-view',\r\n template: __webpack_require__(1302),\r\n providers: [__WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_3__shared_services_error_handler_service__[\"a\" /* ErrorHandler */]]\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_4__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_7__angular_material__[\"c\" /* MdDialog */],\r\n __WEBPACK_IMPORTED_MODULE_6__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__[\"a\" /* SessionHandler */]])\r\n ], ViewSubUsersRequestComponent);\r\n return ViewSubUsersRequestComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 718:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export createTranslateLoader */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__ = __webpack_require__(73);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_platform_browser_animations__ = __webpack_require__(742);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_hammerjs__ = __webpack_require__(1211);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_hammerjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_hammerjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__app_routing_module__ = __webpack_require__(746);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__app_component__ = __webpack_require__(747);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__layout_layout_component__ = __webpack_require__(195);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__layout_preloader_directive__ = __webpack_require__(760);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__layout_header_header_component__ = __webpack_require__(757);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__layout_sidenav_sidenav_component__ = __webpack_require__(769);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__layout_sidenav_toggle_offcanvas_nav_directive__ = __webpack_require__(770);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__layout_sidenav_auto_close_mobile_nav_directive__ = __webpack_require__(764);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__layout_sidenav_sidenav_menu_sidenav_menu_component__ = __webpack_require__(768);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__layout_sidenav_sidenav_menu_accordion_nav_directive__ = __webpack_require__(765);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__layout_sidenav_sidenav_menu_append_submenu_icon_directive__ = __webpack_require__(766);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__layout_sidenav_sidenav_menu_highlight_active_items_directive__ = __webpack_require__(767);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__layout_customizer_customizer_component__ = __webpack_require__(754);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__layout_customizer_toggle_quickview_directive__ = __webpack_require__(755);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22_ng2_daterangepicker__ = __webpack_require__(566);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22_ng2_daterangepicker___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_22_ng2_daterangepicker__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__layout_footer_footer_component__ = __webpack_require__(756);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__layout_search_overlay_search_overlay_component__ = __webpack_require__(762);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__layout_search_overlay_search_overlay_directive__ = __webpack_require__(763);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__layout_search_overlay_open_search_overlay_directive__ = __webpack_require__(761);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__loader_loader_component__ = __webpack_require__(771);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__loader_loader_service__ = __webpack_require__(196);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__login_login_component__ = __webpack_require__(293);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__registration_registration_component__ = __webpack_require__(298);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__forgot_password_forgotPassword_component__ = __webpack_require__(292);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__unlock_account_UnlockAccountComponent__ = __webpack_require__(323);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__system_level_setting_wpass_wpass_component__ = __webpack_require__(319);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__admin_dashboard_admin_dashboard_component__ = __webpack_require__(279);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__partners_dashboard_partners_dashboard_component__ = __webpack_require__(295);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__applications_manager_dashboard_applications_manager_dashboard_component__ = __webpack_require__(283);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__profile_profile_component__ = __webpack_require__(197);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__page_layouts_fullscreen_fullscreen_component__ = __webpack_require__(294);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__viewRequest_view_request_component__ = __webpack_require__(198);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__swimlane_ngx_datatable__ = __webpack_require__(47);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__swimlane_ngx_datatable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_42__swimlane_ngx_datatable__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_43__approve_reject_request_approve_reject_request_module__ = __webpack_require__(285);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_44__multi_approve_reject_multi_approve_reject_request_module__ = __webpack_require__(772);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_45__activate_deactivate_request_activate_deactivate_request_module__ = __webpack_require__(148);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_46__layout_layout_module__ = __webpack_require__(759);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_47__shared_shared_module__ = __webpack_require__(276);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_48_angular2_toaster__ = __webpack_require__(345);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_49_angular2_multiselect_dropdown_angular2_multiselect_dropdown__ = __webpack_require__(91);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_50__viewRequest_view_request_module__ = __webpack_require__(337);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_51__system_level_setting_adminManagement_adminManagement_module__ = __webpack_require__(304);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_52__system_level_setting_managerAssignment_managerAssignment_module__ = __webpack_require__(314);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_53__user_user_module__ = __webpack_require__(336);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_54__user_operations_request_business_unit_request_business_unit_module__ = __webpack_require__(332);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_55__file_upload_fileUpload_module__ = __webpack_require__(288);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_56_mydatepicker__ = __webpack_require__(1232);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_57__angularclass_hmr__ = __webpack_require__(803);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_57__angularclass_hmr___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_57__angularclass_hmr__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_58__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_59__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_60__shared_services_error_handler_service__ = __webpack_require__(92);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_61__adminDashboardResultService__ = __webpack_require__(281);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_62__partnersDashboardResultService__ = __webpack_require__(297);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_63__applicationsManagerDashboardResultService__ = __webpack_require__(284);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_64__system_level_setting_adminManagement_adminListDashboardResultService__ = __webpack_require__(302);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_65__system_level_setting_applicationManagement_applicationListDashboardResultService__ = __webpack_require__(309);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_66__system_level_setting_businessUnitManagement_businessUnitDashboardResultService__ = __webpack_require__(738);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_67__system_level_setting_managerAssignment_managerListDashboardResultService__ = __webpack_require__(317);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_68__file_upload_fileUploadListDashboardResultService__ = __webpack_require__(291);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_69__user_operations_request_business_unit_businessUnitForUserDashboardResultService__ = __webpack_require__(329);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_70__shared_directive_blockCutCopyPaste_directive__ = __webpack_require__(776);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_71_ng2_input_autocomplete__ = __webpack_require__(1237);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_72_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_73__system_level_setting_applicationManagement_applicationManagement_module__ = __webpack_require__(311);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_74__app_user_activity_logs_user_activity_logs_component__ = __webpack_require__(326);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_75__app_translation_messages_translation_messages_component__ = __webpack_require__(321);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_76__app_user_activity_logs_user_activity_datatable_userActivityResultService__ = __webpack_require__(325);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_77__app_translation_email_translation_email_component__ = __webpack_require__(320);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_78__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_79_ng2_ckeditor__ = __webpack_require__(1233);\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Layout\r\n\r\n\r\n// Header\r\n\r\n// Sidenav\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Customizer\r\n\r\n\r\n//date range picker\r\n\r\n// Footer\r\n\r\n// Search Overaly\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Pages\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Sub modules\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// hmr\r\n\r\n//Services\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n//Directive\r\n\r\n// multilingual\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n//import { CKEditorModule } from 'ckeditor4-angular';\r\n\r\nfunction createTranslateLoader(http) {\r\n //return new TranslateStaticLoader(http, './assets/i18n', '.json');\r\n return new __WEBPACK_IMPORTED_MODULE_72_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_78__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', '');\r\n}\r\nvar AppModule = (function () {\r\n function AppModule(appRef) {\r\n this.appRef = appRef;\r\n // console.log = function(){};\r\n // console.error = function(){};\r\n // window.alert = function(){}\r\n }\r\n AppModule.prototype.hmrOnInit = function (store) {\r\n console.log('HMR store', store);\r\n };\r\n AppModule.prototype.hmrOnDestroy = function (store) {\r\n var cmpLocation = this.appRef.components.map(function (cmp) { return cmp.location.nativeElement; });\r\n // recreate elements\r\n store.disposeOldHosts = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_57__angularclass_hmr__[\"createNewHosts\"])(cmpLocation);\r\n // remove styles\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_57__angularclass_hmr__[\"removeNgStyles\"])();\r\n };\r\n AppModule.prototype.hmrAfterDestroy = function (store) {\r\n // display new elements\r\n store.disposeOldHosts();\r\n delete store.disposeOldHosts;\r\n };\r\n AppModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_48_angular2_toaster__[\"a\" /* ToasterModule */],\r\n __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__[\"BrowserModule\"],\r\n __WEBPACK_IMPORTED_MODULE_3__angular_http__[\"a\" /* HttpModule */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_6__angular_platform_browser_animations__[\"a\" /* BrowserAnimationsModule */],\r\n __WEBPACK_IMPORTED_MODULE_8__app_routing_module__[\"a\" /* AppRoutingModule */],\r\n __WEBPACK_IMPORTED_MODULE_43__approve_reject_request_approve_reject_request_module__[\"a\" /* ApproveRejectRequestModule */],\r\n __WEBPACK_IMPORTED_MODULE_44__multi_approve_reject_multi_approve_reject_request_module__[\"a\" /* MultiApproveRejectRequestModule */],\r\n __WEBPACK_IMPORTED_MODULE_45__activate_deactivate_request_activate_deactivate_request_module__[\"a\" /* ActivateDeactivateModule */],\r\n __WEBPACK_IMPORTED_MODULE_49_angular2_multiselect_dropdown_angular2_multiselect_dropdown__[\"a\" /* AngularMultiSelectModule */],\r\n __WEBPACK_IMPORTED_MODULE_71_ng2_input_autocomplete__[\"a\" /* AutocompleteModule */].forRoot(),\r\n __WEBPACK_IMPORTED_MODULE_5__angular_material__[\"b\" /* MdInputModule */],\r\n // Sub modules\r\n __WEBPACK_IMPORTED_MODULE_46__layout_layout_module__[\"a\" /* LayoutModule */],\r\n __WEBPACK_IMPORTED_MODULE_47__shared_shared_module__[\"a\" /* SharedModule */],\r\n __WEBPACK_IMPORTED_MODULE_42__swimlane_ngx_datatable__[\"NgxDatatableModule\"],\r\n __WEBPACK_IMPORTED_MODULE_22_ng2_daterangepicker__[\"Daterangepicker\"],\r\n __WEBPACK_IMPORTED_MODULE_50__viewRequest_view_request_module__[\"ViewRequestModule\"],\r\n __WEBPACK_IMPORTED_MODULE_51__system_level_setting_adminManagement_adminManagement_module__[\"AdminManagementModule\"],\r\n __WEBPACK_IMPORTED_MODULE_52__system_level_setting_managerAssignment_managerAssignment_module__[\"ManagerAssignmentModule\"],\r\n __WEBPACK_IMPORTED_MODULE_73__system_level_setting_applicationManagement_applicationManagement_module__[\"ApplicationManagementModule\"],\r\n __WEBPACK_IMPORTED_MODULE_53__user_user_module__[\"UserModule\"],\r\n __WEBPACK_IMPORTED_MODULE_54__user_operations_request_business_unit_request_business_unit_module__[\"RequestBusinessUnitModule\"],\r\n __WEBPACK_IMPORTED_MODULE_56_mydatepicker__[\"MyDatePickerModule\"],\r\n __WEBPACK_IMPORTED_MODULE_55__file_upload_fileUpload_module__[\"CSVUploadModule\"],\r\n __WEBPACK_IMPORTED_MODULE_79_ng2_ckeditor__[\"a\" /* CKEditorModule */],\r\n __WEBPACK_IMPORTED_MODULE_72_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_72_ng2_translate__[\"c\" /* TranslateLoader */],\r\n useFactory: (createTranslateLoader),\r\n deps: [__WEBPACK_IMPORTED_MODULE_3__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_9__app_component__[\"a\" /* AppComponent */],\r\n // Layout\r\n __WEBPACK_IMPORTED_MODULE_10__layout_layout_component__[\"a\" /* LayoutComponent */],\r\n __WEBPACK_IMPORTED_MODULE_11__layout_preloader_directive__[\"a\" /* PreloaderDirective */],\r\n // Header\r\n __WEBPACK_IMPORTED_MODULE_12__layout_header_header_component__[\"a\" /* AppHeaderComponent */],\r\n // Sidenav\r\n __WEBPACK_IMPORTED_MODULE_13__layout_sidenav_sidenav_component__[\"a\" /* AppSidenavComponent */],\r\n __WEBPACK_IMPORTED_MODULE_14__layout_sidenav_toggle_offcanvas_nav_directive__[\"a\" /* ToggleOffcanvasNavDirective */],\r\n __WEBPACK_IMPORTED_MODULE_15__layout_sidenav_auto_close_mobile_nav_directive__[\"a\" /* AutoCloseMobileNavDirective */],\r\n __WEBPACK_IMPORTED_MODULE_16__layout_sidenav_sidenav_menu_sidenav_menu_component__[\"a\" /* AppSidenavMenuComponent */],\r\n __WEBPACK_IMPORTED_MODULE_17__layout_sidenav_sidenav_menu_accordion_nav_directive__[\"a\" /* AccordionNavDirective */],\r\n __WEBPACK_IMPORTED_MODULE_18__layout_sidenav_sidenav_menu_append_submenu_icon_directive__[\"a\" /* AppendSubmenuIconDirective */],\r\n __WEBPACK_IMPORTED_MODULE_19__layout_sidenav_sidenav_menu_highlight_active_items_directive__[\"a\" /* HighlightActiveItemsDirective */],\r\n // Customizer\r\n __WEBPACK_IMPORTED_MODULE_20__layout_customizer_customizer_component__[\"a\" /* AppCustomizerComponent */],\r\n __WEBPACK_IMPORTED_MODULE_21__layout_customizer_toggle_quickview_directive__[\"a\" /* ToggleQuickviewDirective */],\r\n // Footer\r\n __WEBPACK_IMPORTED_MODULE_23__layout_footer_footer_component__[\"a\" /* AppFooterComponent */],\r\n // Search overlay\r\n __WEBPACK_IMPORTED_MODULE_24__layout_search_overlay_search_overlay_component__[\"a\" /* AppSearchOverlayComponent */],\r\n __WEBPACK_IMPORTED_MODULE_25__layout_search_overlay_search_overlay_directive__[\"a\" /* SearchOverlayDirective */],\r\n __WEBPACK_IMPORTED_MODULE_26__layout_search_overlay_open_search_overlay_directive__[\"a\" /* OpenSearchOverlaylDirective */],\r\n // Dashboard\r\n __WEBPACK_IMPORTED_MODULE_35__admin_dashboard_admin_dashboard_component__[\"a\" /* AdminDashboardComponent */],\r\n __WEBPACK_IMPORTED_MODULE_74__app_user_activity_logs_user_activity_logs_component__[\"a\" /* userActivityLogs */],\r\n __WEBPACK_IMPORTED_MODULE_75__app_translation_messages_translation_messages_component__[\"a\" /* TranslationMessagesComponent */],\r\n __WEBPACK_IMPORTED_MODULE_77__app_translation_email_translation_email_component__[\"a\" /* TranslationEmailComponent */],\r\n __WEBPACK_IMPORTED_MODULE_36__partners_dashboard_partners_dashboard_component__[\"a\" /* PartnersDashboardComponent */],\r\n __WEBPACK_IMPORTED_MODULE_37__applications_manager_dashboard_applications_manager_dashboard_component__[\"a\" /* ApplicationsManagerDashboardComponent */],\r\n // Profile\r\n __WEBPACK_IMPORTED_MODULE_38__profile_profile_component__[\"a\" /* ProfileComponent */],\r\n // Pages\r\n __WEBPACK_IMPORTED_MODULE_30__login_login_component__[\"a\" /* LoginComponent */],\r\n __WEBPACK_IMPORTED_MODULE_31__registration_registration_component__[\"a\" /* RegistrationComponent */],\r\n __WEBPACK_IMPORTED_MODULE_32__forgot_password_forgotPassword_component__[\"a\" /* ForgotPasswordComponent */],\r\n __WEBPACK_IMPORTED_MODULE_33__unlock_account_UnlockAccountComponent__[\"a\" /* UnlockAccountComponent */],\r\n __WEBPACK_IMPORTED_MODULE_34__system_level_setting_wpass_wpass_component__[\"a\" /* WPASSComponent */],\r\n __WEBPACK_IMPORTED_MODULE_39__page_layouts_fullscreen_fullscreen_component__[\"a\" /* PageLayoutFullscreenComponent */],\r\n __WEBPACK_IMPORTED_MODULE_27__loader_loader_component__[\"a\" /* LoaderComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"a\" /* DialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"b\" /* SelectApplicationsDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"c\" /* WelcomeDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"d\" /* BuAssignmentDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"e\" /* RegistrationDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"f\" /* DashboardActionDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"g\" /* ApplicationDashboardActionDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"h\" /* ApplicationRejectActionDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"i\" /* ActiveInactiveDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_38__profile_profile_component__[\"b\" /* EmailPasswordActionDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_41__viewRequest_view_request_component__[\"a\" /* EmailActionDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"j\" /* CSVErrorDialogComponent */],\r\n __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"k\" /* ShowApplicationsDialogComponent */],\r\n //Directives\r\n __WEBPACK_IMPORTED_MODULE_70__shared_directive_blockCutCopyPaste_directive__[\"a\" /* BlockCutCopyPasteDirective */],\r\n ],\r\n providers: [__WEBPACK_IMPORTED_MODULE_28__loader_loader_service__[\"a\" /* LoaderService */], __WEBPACK_IMPORTED_MODULE_58__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_59__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_60__shared_services_error_handler_service__[\"a\" /* ErrorHandler */], __WEBPACK_IMPORTED_MODULE_29__shared_services_common_service__[\"a\" /* CommonService */], __WEBPACK_IMPORTED_MODULE_61__adminDashboardResultService__[\"a\" /* AdminDashboardResultService */], __WEBPACK_IMPORTED_MODULE_62__partnersDashboardResultService__[\"a\" /* PartnersDashboardResultService */], __WEBPACK_IMPORTED_MODULE_63__applicationsManagerDashboardResultService__[\"a\" /* ApplicationsManagerDashboardResultService */],\r\n __WEBPACK_IMPORTED_MODULE_76__app_user_activity_logs_user_activity_datatable_userActivityResultService__[\"a\" /* UserActivityResultService */], __WEBPACK_IMPORTED_MODULE_64__system_level_setting_adminManagement_adminListDashboardResultService__[\"a\" /* AdminListDashboardResultService */], __WEBPACK_IMPORTED_MODULE_65__system_level_setting_applicationManagement_applicationListDashboardResultService__[\"a\" /* ApplicationListDashboardResultService */], __WEBPACK_IMPORTED_MODULE_66__system_level_setting_businessUnitManagement_businessUnitDashboardResultService__[\"a\" /* BusinessUnitListDashboardResultService */], __WEBPACK_IMPORTED_MODULE_67__system_level_setting_managerAssignment_managerListDashboardResultService__[\"a\" /* ManagerListDashboardResultService */], __WEBPACK_IMPORTED_MODULE_68__file_upload_fileUploadListDashboardResultService__[\"a\" /* FileUploadListDashboardResultService */], __WEBPACK_IMPORTED_MODULE_69__user_operations_request_business_unit_businessUnitForUserDashboardResultService__[\"a\" /* BusinessUnitListForUserDashboardResultService */]],\r\n entryComponents: [__WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"a\" /* DialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"b\" /* SelectApplicationsDialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"k\" /* ShowApplicationsDialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"c\" /* WelcomeDialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"d\" /* BuAssignmentDialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"f\" /* DashboardActionDialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"g\" /* ApplicationDashboardActionDialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"h\" /* ApplicationRejectActionDialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"e\" /* RegistrationDialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"i\" /* ActiveInactiveDialogComponent */], __WEBPACK_IMPORTED_MODULE_38__profile_profile_component__[\"b\" /* EmailPasswordActionDialogComponent */], __WEBPACK_IMPORTED_MODULE_41__viewRequest_view_request_component__[\"a\" /* EmailActionDialogComponent */], __WEBPACK_IMPORTED_MODULE_40__dialog_dialog_component__[\"j\" /* CSVErrorDialogComponent */]],\r\n bootstrap: [__WEBPACK_IMPORTED_MODULE_9__app_component__[\"a\" /* AppComponent */]]\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ApplicationRef\"]])\r\n ], AppModule);\r\n return AppModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 72:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return LayoutService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__ = __webpack_require__(31);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_angular2_toaster__ = __webpack_require__(345);\n\r\n\r\n\r\n\r\n\r\nvar LayoutService = (function () {\r\n function LayoutService(toasterService) {\r\n this.toasterService = toasterService;\r\n this.toasterConfig = new __WEBPACK_IMPORTED_MODULE_4_angular2_toaster__[\"b\" /* ToasterConfig */]({\r\n timeout: __WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].toasterDefaultTimeOut,\r\n positionClass: __WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].toasterDefaultPositionClass\r\n });\r\n this.preloaderStateSource = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.preloaderState$ = this.preloaderStateSource.asObservable();\r\n this.searchOverlaySource = new __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__[\"Subject\"]();\r\n this.searchOverlayState$ = this.searchOverlaySource.asObservable();\r\n }\r\n LayoutService.prototype.popToastWithTimeOut = function (title, type, timeout) {\r\n var toast = { type: type, body: title, timeout: timeout };\r\n this.toasterService.pop(toast);\r\n };\r\n LayoutService.prototype.popToast = function (title, type) {\r\n var toast = { type: type, body: title };\r\n this.toasterService.pop(toast);\r\n };\r\n LayoutService.prototype.updatePreloaderState = function (state) {\r\n // console.log('preloader state: ' + state)\r\n this.preloaderStateSource.next(state);\r\n };\r\n LayoutService.prototype.updateSearchOverlayState = function (state) {\r\n // console.log('overlay state: ' + state)\r\n this.searchOverlaySource.next(state);\r\n };\r\n LayoutService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_4_angular2_toaster__[\"c\" /* ToasterService */]])\r\n ], LayoutService);\r\n return LayoutService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 738:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BusinessUnitListDashboardResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__businessUnitList_datatable_businessUnitList_page_data__ = __webpack_require__(786);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__businessUnitList_datatable_businessUnitList_dashboard__ = __webpack_require__(785);\n/**\r\n * Created by shubham on 23/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar BusinessUnitListDashboardResultService = (function () {\r\n function BusinessUnitListDashboardResultService() {\r\n this.rows = {};\r\n this.adminDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n BusinessUnitListDashboardResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n BusinessUnitListDashboardResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__businessUnitList_datatable_businessUnitList_page_data__[\"a\" /* BusinessUnitListPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__businessUnitList_datatable_businessUnitList_dashboard__[\"a\" /* BusinessUnitListDashboard */](jsonObj['id'], jsonObj['Name'], jsonObj['code'], jsonObj['active'], jsonObj['status'], jsonObj['createdAt']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n BusinessUnitListDashboardResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], BusinessUnitListDashboardResultService);\r\n return BusinessUnitListDashboardResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 739:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BusinessUnitListPage; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * An object used to get page information from the server\r\n */\r\nvar BusinessUnitListPage = (function () {\r\n function BusinessUnitListPage() {\r\n //The number of elements in the page\r\n this.size = 0;\r\n //The total number of elements\r\n this.totalElements = 0;\r\n //The total number of pages\r\n this.totalPages = 0;\r\n //The current page number\r\n this.pageNumber = 0;\r\n }\r\n return BusinessUnitListPage;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 743:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ActivateDeactivateComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__ = __webpack_require__(11);\n/**\r\n * Created by shubham on 22/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ActivateDeactivateComponent = (function () {\r\n function ActivateDeactivateComponent(router, route, httpService, dialog, commonService) {\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.commonService = commonService;\r\n }\r\n ActivateDeactivateComponent.prototype.performAction = function (status) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__[\"i\" /* ActiveInactiveDialogComponent */]);\r\n var actionStatus;\r\n if (status == 'delete') {\r\n actionStatus = 'DELETE';\r\n this.dialogRef.componentInstance.msg = 'user_deactivate_confirm';\r\n }\r\n else if (status == 'active') {\r\n actionStatus = 'Activate';\r\n this.dialogRef.componentInstance.msg = 'user_activate_confirm';\r\n }\r\n else {\r\n actionStatus = 'Deactivate';\r\n this.dialogRef.componentInstance.msg = 'user_deactivate_confirm';\r\n }\r\n this.dialogRef.componentInstance.activeDeactive = true;\r\n this.dialogRef.componentInstance.dashboard = this.dashboard;\r\n this.dialogRef.componentInstance.isConfirm = true;\r\n if (this.dashboard == 'admin') {\r\n this.dialogRef.componentInstance.note = 'sub_user_del_info';\r\n }\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n var data = {};\r\n if (_this.dashboard == 'managerList') {\r\n data['buAssociationId'] = _this.childData.buAssociationId;\r\n }\r\n else {\r\n data['id'] = _this.childData.id;\r\n }\r\n if (_this.childData) {\r\n if (_this.childData.applicationName) {\r\n data['Name'] = _this.childData.applicationName;\r\n }\r\n if (_this.childData.Name) {\r\n data['Name'] = _this.childData.Name;\r\n }\r\n else if (_this.childData.firstName && _this.childData.lastName) {\r\n data['Name'] = _this.childData.firstName + ' ' + _this.childData.lastName;\r\n }\r\n if (_this.childData.email) {\r\n data['email'] = _this.childData.email;\r\n }\r\n }\r\n if (status == 'delete') {\r\n data['status'] = 'DELETE';\r\n }\r\n else if (status == 'active') {\r\n data['active'] = true;\r\n }\r\n else {\r\n data['active'] = false;\r\n }\r\n var today = new Date();\r\n var dd = ('0' + today.getDate()).slice(-2);\r\n var mm = ('0' + (today.getMonth() + 1)).slice(-2);\r\n var yyyy = today.getFullYear();\r\n data['deletionDate'] = yyyy + '' + mm + '' + dd;\r\n if (_this.dashboard == 'admin') {\r\n _this.httpService.postRequest(data, 'userRegistrationsApi/v1/deletePartner/' + _this.childData.id).subscribe(function (res) {\r\n _this.saveResponse(res, status);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n else if (_this.dashboard == 'partners') {\r\n _this.httpService.postRequest(data, 'partnerOperationsApi/v1/deleteCompanyUser/' + data['id']).subscribe(function (res) {\r\n _this.saveResponse(res, status);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n else if (_this.dashboard == 'adminList') {\r\n _this.httpService.postRequest(data, 'superUserOperationsApi/v1/adminActiveState').subscribe(function (res) {\r\n _this.saveResponse(res, status);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n else if (_this.dashboard == 'managerList') {\r\n _this.httpService.postRequest(data, 'superUserOperationsApi/v1/countryBusinessUnitManagerActiveState?active=' + data['active']).subscribe(function (res) {\r\n _this.saveResponse(res, status);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n else if (_this.dashboard == 'applicationList') {\r\n _this.httpService.getRequest('applicationOperationApi/v1/deleteApplication/' + data['id']).subscribe(function (res) {\r\n _this.saveResponse(res, status);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n }\r\n _this.dialogRef = null;\r\n });\r\n };\r\n ActivateDeactivateComponent.prototype.saveResponse = function (res, status) {\r\n this.httpService.onEnd();\r\n var statusTxt;\r\n if (res) {\r\n if (status == 'delete') {\r\n statusTxt = 'del_rqst_submission_notify';\r\n }\r\n else {\r\n statusTxt = 'Updated Successfully';\r\n }\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = statusTxt;\r\n if (this.dashboard == 'admin') {\r\n this.commonService.changeAdminDashboardData();\r\n }\r\n else if (this.dashboard == 'partners') {\r\n this.commonService.changePartnersDashboardData();\r\n }\r\n else if (this.dashboard == 'adminList') {\r\n this.commonService.changeAdminListDashboardData();\r\n }\r\n else if (this.dashboard == 'managerList') {\r\n this.commonService.changeManagerListDashboardData();\r\n }\r\n else if (this.dashboard == 'applicationList') {\r\n this.commonService.changeApplicationListDashboardData();\r\n }\r\n }\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], ActivateDeactivateComponent.prototype, \"childData\", void 0);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], ActivateDeactivateComponent.prototype, \"dashboard\", void 0);\r\n ActivateDeactivateComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'activate-deactivate',\r\n template: __webpack_require__(1241)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], ActivateDeactivateComponent);\r\n return ActivateDeactivateComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 744:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminDashboardList; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * A model for an individual corporate employee\r\n */\r\nvar AdminDashboardList = (function () {\r\n function AdminDashboardList(id, Name, roleName, email, emailVerified, businessUnits, userId_WPASS, pendingSubUserCount, languageId, languageName, countryId, countryName, companyName, companyAddress, companyPhone, personalArea, costCenter, location, actionFlag, contractorType, status, appStatus, createdAt) {\r\n this.id = id;\r\n this.Name = Name;\r\n this.roleName = roleName;\r\n this.email = email;\r\n this.emailVerified = emailVerified;\r\n this.businessUnits = businessUnits;\r\n this.userId_WPASS = userId_WPASS;\r\n this.pendingSubUserCount = pendingSubUserCount;\r\n this.languageId = languageId;\r\n this.languageName = languageName;\r\n this.countryId = countryId;\r\n this.countryName = countryName;\r\n this.companyName = companyName;\r\n this.companyAddress = companyAddress;\r\n this.companyPhone = companyPhone;\r\n this.personalArea = personalArea;\r\n this.costCenter = costCenter;\r\n this.location = location;\r\n this.contractorType = contractorType;\r\n this.actionFlag = actionFlag;\r\n this.status = status;\r\n this.appStatus = appStatus;\r\n this.createdAt = createdAt;\r\n }\r\n return AdminDashboardList;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 745:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__admin_page__ = __webpack_require__(280);\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar AdminPageData = (function () {\r\n function AdminPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__admin_page__[\"a\" /* AdminPage */]();\r\n }\r\n return AdminPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 746:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppRoutingModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__layout_layout_component__ = __webpack_require__(195);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__login_login_component__ = __webpack_require__(293);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__registration_registration_component__ = __webpack_require__(298);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__forgot_password_forgotPassword_component__ = __webpack_require__(292);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__unlock_account_UnlockAccountComponent__ = __webpack_require__(323);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__page_layouts_fullscreen_fullscreen_component__ = __webpack_require__(294);\n\n\n\n\n\n\n// Page Layouts\n\nvar AppRoutes = [\n { path: '', redirectTo: '/login', pathMatch: 'full' },\n { path: 'login', component: __WEBPACK_IMPORTED_MODULE_2__login_login_component__[\"a\" /* LoginComponent */] },\n { path: 'login/:id', component: __WEBPACK_IMPORTED_MODULE_2__login_login_component__[\"a\" /* LoginComponent */] },\n { path: 'registration', component: __WEBPACK_IMPORTED_MODULE_3__registration_registration_component__[\"a\" /* RegistrationComponent */] },\n { path: 'registration/:id', component: __WEBPACK_IMPORTED_MODULE_3__registration_registration_component__[\"a\" /* RegistrationComponent */] },\n { path: 'registration/apps/:id', component: __WEBPACK_IMPORTED_MODULE_3__registration_registration_component__[\"a\" /* RegistrationComponent */] },\n { path: 'forgot-password', component: __WEBPACK_IMPORTED_MODULE_4__forgot_password_forgotPassword_component__[\"a\" /* ForgotPasswordComponent */] },\n { path: 'unlock-account', component: __WEBPACK_IMPORTED_MODULE_5__unlock_account_UnlockAccountComponent__[\"a\" /* UnlockAccountComponent */] },\n { path: 'app', component: __WEBPACK_IMPORTED_MODULE_1__layout_layout_component__[\"a\" /* LayoutComponent */] },\n { path: 'extra', loadChildren: function() { return __webpack_require__.e/* import() */(4).then(__webpack_require__.bind(null, 1606)) .then( function(module) { return module['ExtraPagesModule']; } ); } },\n { path: 'fullscreen', component: __WEBPACK_IMPORTED_MODULE_6__page_layouts_fullscreen_fullscreen_component__[\"a\" /* PageLayoutFullscreenComponent */] },\n { path: '**', redirectTo: 'login', pathMatch: 'full' },\n];\nvar AppRoutingModule = __WEBPACK_IMPORTED_MODULE_0__angular_router__[\"g\" /* RouterModule */].forRoot(AppRoutes, { useHash: true });\n\n\n/***/ }),\n\n/***/ 747:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__layout_layout_service__ = __webpack_require__(72);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_error_handler_service__ = __webpack_require__(92);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_styles_font_awesome_scss__ = __webpack_require__(1206);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_styles_font_awesome_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_styles_font_awesome_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_styles_material2_theme_scss__ = __webpack_require__(1208);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_styles_material2_theme_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_styles_material2_theme_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_styles_bootstrap_scss__ = __webpack_require__(1205);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_styles_bootstrap_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_styles_bootstrap_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_styles_layout_scss__ = __webpack_require__(1207);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_styles_layout_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_styles_layout_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_styles_theme_scss__ = __webpack_require__(1209);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_styles_theme_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_styles_theme_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_styles_ui_scss__ = __webpack_require__(1210);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_styles_ui_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_styles_ui_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_styles_app_scss__ = __webpack_require__(1204);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_styles_app_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16_styles_app_scss__);\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// 3rd\r\n\r\n\r\n\r\n// custom\r\n\r\n\r\n\r\n\r\nvar AppComponent = (function () {\r\n function AppComponent(router, layoutService, sessionHandler, dialog, translate) {\r\n this.router = router;\r\n this.layoutService = layoutService;\r\n this.sessionHandler = sessionHandler;\r\n this.dialog = dialog;\r\n this.translate = translate;\r\n this.languageId = this.sessionHandler.getItem('languageId');\r\n if (!this.languageId) {\r\n this.languageId = \"EN\";\r\n }\r\n this.translate.use(this.languageId);\r\n }\r\n AppComponent.prototype.ngOnInit = function () {\r\n this.AppConfig = __WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */];\r\n // Scroll to top on route change\r\n this.router.events.subscribe(function (evt) {\r\n if (!(evt instanceof __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"c\" /* NavigationEnd */])) {\r\n return;\r\n }\r\n document.body.scrollTop = 0;\r\n });\r\n };\r\n AppComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'app-root',\r\n template: __webpack_require__(1243),\r\n providers: [__WEBPACK_IMPORTED_MODULE_4__layout_layout_service__[\"a\" /* LayoutService */], __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_7__shared_services_error_handler_service__[\"a\" /* ErrorHandler */], __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__[\"a\" /* SessionHandler */]],\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_4__layout_layout_service__[\"a\" /* LayoutService */], __WEBPACK_IMPORTED_MODULE_8__shared_services_session_handler_service__[\"a\" /* SessionHandler */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_9_ng2_translate__[\"d\" /* TranslateService */]])\r\n ], AppComponent);\r\n return AppComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 748:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationsDashboardList; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * A model for an individual corporate employee\r\n */\r\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * A model for an individual corporate employee\r\n */\r\nvar ApplicationsDashboardList = (function () {\r\n function ApplicationsDashboardList(id, applicationId, applicationName, userId_WPASS, businessUnitId, businessUnitName, countryId, countryName, approverId, approverName, multipleRole, reason, status, statusCode, updatedAt) {\r\n this.id = id;\r\n this.applicationId = applicationId;\r\n this.applicationName = applicationName;\r\n this.userId_WPASS = userId_WPASS;\r\n this.businessUnitId = businessUnitId;\r\n this.businessUnitName = businessUnitName;\r\n this.countryId = countryId;\r\n this.countryName = countryName;\r\n this.approverId = approverId;\r\n this.approverName = approverName;\r\n this.multipleRole = multipleRole;\r\n this.reason = reason;\r\n this.status = status;\r\n this.statusCode = statusCode;\r\n this.updatedAt = updatedAt;\r\n }\r\n return ApplicationsDashboardList;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 749:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationsPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__applications_page__ = __webpack_require__(282);\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar ApplicationsPageData = (function () {\r\n function ApplicationsPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__applications_page__[\"a\" /* ApplicationsPage */]();\r\n }\r\n return ApplicationsPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 750:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApproveRejectComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__ = __webpack_require__(11);\n/**\r\n * Created by shubham on 27/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar ApproveRejectComponent = (function () {\r\n function ApproveRejectComponent(router, route, httpService, dialog, commonService) {\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.commonService = commonService;\r\n }\r\n ApproveRejectComponent.prototype.performAction = function (status) {\r\n var _this = this;\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__[\"f\" /* DashboardActionDialogComponent */]);\r\n var actionStatus;\r\n if (status == 'approved') {\r\n actionStatus = 'APPROVE';\r\n this.dialogRef.componentInstance.msg = 'rqst_approve_confirm';\r\n this.dialogRef.componentInstance.isApproved = true;\r\n }\r\n else if (status == 'rejected') {\r\n actionStatus = 'REJECT';\r\n this.dialogRef.componentInstance.isReject = true;\r\n this.dialogRef.componentInstance.msg = 'rqst_rjct_confirm';\r\n }\r\n this.dialogRef.componentInstance.multiApproveRejectFlag = false;\r\n this.dialogRef.componentInstance.dashboard = this.dashboard;\r\n this.dialogRef.componentInstance.row = this.childData;\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n var data = {};\r\n data['id'] = _this.childData.id;\r\n if (_this.childData.Name) {\r\n data['Name'] = _this.childData.Name;\r\n }\r\n else {\r\n data['Name'] = _this.childData.firstName + ' ' + _this.childData.lastName;\r\n }\r\n if (_this.childData.email) {\r\n data['email'] = _this.childData.email;\r\n }\r\n if (_this.childData.userId_WPASS) {\r\n data['userId_WPASS'] = _this.childData.userId_WPASS;\r\n }\r\n if (_this.childData && _this.childData.businessUnitId) {\r\n data['businessUnitId'] = _this.childData.businessUnitId;\r\n }\r\n if (status == 'approved') {\r\n data['status'] = 'BU_APPROVE';\r\n if (_this.dashboard == 'admin' || _this.dashboard == 'partnersView') {\r\n //data['roleId'] = result.roleId;\r\n data['customerNumber'] = result.customerNumber;\r\n data['partnerType'] = result.selectedPartnerType;\r\n }\r\n }\r\n else if (status == 'rejected') {\r\n data['message'] = result;\r\n data['status'] = 'BU_REJECT';\r\n }\r\n var today = new Date();\r\n var dd = ('0' + today.getDate()).slice(-2);\r\n var mm = ('0' + (today.getMonth() + 1)).slice(-2);\r\n var yyyy = today.getFullYear();\r\n data['approvalDate'] = yyyy + '' + mm + '' + dd;\r\n console.log(data);\r\n if (_this.dashboard == 'admin' || _this.dashboard == 'partnersView') {\r\n if (data['userId_WPASS'] && data['userId_WPASS'] != \"\") {\r\n _this.httpService.postRequest(data, 'partnerOperationsApi/v1/approveRejectNewBusinessUnitForPartner').subscribe(function (res) {\r\n _this.saveResponse(res, status, true);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n else {\r\n _this.httpService.postRequest(data, 'userRegistrationsApi/v1/approveBusinessUnit').subscribe(function (res) {\r\n _this.saveResponse(res, status, false);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n }\r\n else if (_this.dashboard == 'partners' || _this.dashboard == 'subUsersView') {\r\n _this.httpService.postRequest(data, 'partnerOperationsApi/v1/approveCompanyUserCreationRequest').subscribe(function (res) {\r\n _this.saveResponse(res, status, false);\r\n }, function (err) {\r\n _this.httpService.onEnd();\r\n });\r\n }\r\n }\r\n _this.dialogRef = null;\r\n });\r\n };\r\n ApproveRejectComponent.prototype.saveResponse = function (res, status, wpassIdCreated) {\r\n this.httpService.onEnd();\r\n var statusTxt;\r\n console.log(wpassIdCreated);\r\n if (res) {\r\n if (status == 'approved') {\r\n if (wpassIdCreated) {\r\n statusTxt = 'after_new_bu_approval_notify';\r\n }\r\n else {\r\n statusTxt = 'after_user_creation_approval_notify';\r\n }\r\n }\r\n else {\r\n statusTxt = 'Rejected Successfully';\r\n }\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = statusTxt;\r\n if (this.dashboard == 'admin') {\r\n this.commonService.changeAdminDashboardData();\r\n }\r\n else if (this.dashboard == 'partnersView') {\r\n this.commonService.changePartnerViewData();\r\n }\r\n else if (this.dashboard == 'partners') {\r\n this.commonService.changePartnersDashboardData();\r\n }\r\n else if (this.dashboard == 'subUsersView') {\r\n this.commonService.changeSubUserViewData();\r\n }\r\n }\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], ApproveRejectComponent.prototype, \"childData\", void 0);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], ApproveRejectComponent.prototype, \"dashboard\", void 0);\r\n ApproveRejectComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'approve-reject',\r\n template: __webpack_require__(1245)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], ApproveRejectComponent);\r\n return ApproveRejectComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 751:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export FileUploadRoutes */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return FileUploadRoutingModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__fileUpload_component__ = __webpack_require__(287);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__fileUploadList_fileUploadList_component__ = __webpack_require__(290);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__add_file_addFile_component__ = __webpack_require__(286);\n/**\r\n * Created by shubham on 13/6/18.\r\n */\r\n\r\n\r\n\r\n\r\nvar FileUploadRoutes = [\r\n {\r\n path: '',\r\n component: __WEBPACK_IMPORTED_MODULE_1__fileUpload_component__[\"a\" /* FileUploadComponent */],\r\n children: [\r\n { path: '', redirectTo: '/app/profile', pathMatch: 'full' },\r\n { path: 'list', component: __WEBPACK_IMPORTED_MODULE_2__fileUploadList_fileUploadList_component__[\"a\" /* FileUploadListComponent */] },\r\n { path: 'add', component: __WEBPACK_IMPORTED_MODULE_3__add_file_addFile_component__[\"a\" /* AddFileComponent */] },\r\n ]\r\n }\r\n];\r\nvar FileUploadRoutingModule = __WEBPACK_IMPORTED_MODULE_0__angular_router__[\"g\" /* RouterModule */].forChild(FileUploadRoutes);\r\n\n\n/***/ }),\n\n/***/ 752:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return FileUploadListDashboard; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * A model for an individual corporate employee\r\n */\r\nvar FileUploadListDashboard = (function () {\r\n function FileUploadListDashboard(id, type, countryName, businessUnitName, includesHeader, csvName, csvUrl, status, error, message, uploadBy, uploadedAt) {\r\n this.id = id;\r\n this.type = type;\r\n this.countryName = countryName;\r\n this.businessUnitName = businessUnitName;\r\n this.includesHeader = includesHeader;\r\n this.csvName = csvName;\r\n this.csvUrl = csvUrl;\r\n this.status = status;\r\n this.error = error;\r\n this.message = message;\r\n this.uploadBy = uploadBy;\r\n this.uploadedAt = uploadedAt;\r\n }\r\n return FileUploadListDashboard;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 753:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return FileUploadListPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__fileUploadList_page__ = __webpack_require__(289);\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar FileUploadListPageData = (function () {\r\n function FileUploadListPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__fileUploadList_page__[\"a\" /* FileUploadListPage */]();\r\n }\r\n return FileUploadListPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 754:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppCustomizerComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(12);\n\r\n\r\n\r\nvar AppCustomizerComponent = (function () {\r\n function AppCustomizerComponent() {\r\n }\r\n AppCustomizerComponent.prototype.ngOnInit = function () {\r\n this.AppConfig = __WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */];\r\n };\r\n AppCustomizerComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'my-app-customizer',\r\n styles: [],\r\n template: __webpack_require__(1261),\r\n })\r\n ], AppCustomizerComponent);\r\n return AppCustomizerComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 755:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ToggleQuickviewDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n\r\n\r\nvar ToggleQuickviewDirective = (function () {\r\n function ToggleQuickviewDirective(el) {\r\n this.el = el;\r\n }\r\n ToggleQuickviewDirective.prototype.ngAfterViewInit = function () {\r\n var $el = $(this.el.nativeElement);\r\n var $body = $('#body');\r\n var target = this.myToggleQuickview;\r\n var qvClass = 'quickview-open';\r\n if (target) {\r\n qvClass = qvClass + '-' + target;\r\n }\r\n $el.on('click', function (e) {\r\n $body.toggleClass(qvClass);\r\n e.preventDefault();\r\n });\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", String)\r\n ], ToggleQuickviewDirective.prototype, \"myToggleQuickview\", void 0);\r\n ToggleQuickviewDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[myToggleQuickview]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"]])\r\n ], ToggleQuickviewDirective);\r\n return ToggleQuickviewDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 756:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppFooterComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(12);\n\r\n\r\n\r\nvar AppFooterComponent = (function () {\r\n function AppFooterComponent() {\r\n }\r\n AppFooterComponent.prototype.ngOnInit = function () {\r\n this.AppConfig = __WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */];\r\n };\r\n AppFooterComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'my-app-footer',\r\n styles: [],\r\n template: __webpack_require__(1262)\r\n })\r\n ], AppFooterComponent);\r\n return AppFooterComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 757:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppHeaderComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_error_handler_service__ = __webpack_require__(92);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__layout_layout_service__ = __webpack_require__(72);\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AppHeaderComponent = (function () {\r\n function AppHeaderComponent(router, httpService, errorHandler, layoutService, sessionHandler, commonService) {\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.errorHandler = errorHandler;\r\n this.layoutService = layoutService;\r\n this.sessionHandler = sessionHandler;\r\n this.commonService = commonService;\r\n this.userDetails = { image: '' };\r\n try {\r\n if (this.sessionHandler.getItem(\"userDetails\") != null) {\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem(\"userDetails\"));\r\n if (!this.userDetails)\r\n throw \"Invalid user details.\";\r\n }\r\n else {\r\n this.router.navigate(['/login']);\r\n }\r\n }\r\n catch (err) {\r\n this.router.navigate(['/login']);\r\n }\r\n }\r\n AppHeaderComponent.prototype.logout = function () {\r\n //this.commonService.setLoginRedirectUrl(window.location.hash);\r\n this.sessionHandler.removeItem('loginData');\r\n this.sessionHandler.removeItem('timestamp');\r\n this.sessionHandler.removeItem('userDetails');\r\n this.router.navigate(['/login']);\r\n };\r\n AppHeaderComponent.prototype.saveResponse = function (res) {\r\n if (res.errorStatus == 'Fail') {\r\n this.httpService.onEnd();\r\n alert('Not able to Logout Please Try Again');\r\n }\r\n else {\r\n this.httpService.onEnd();\r\n //this.commonService.setLoginRedirectUrl('');\r\n this.sessionHandler.clearAllItems();\r\n this.router.navigate(['/login']);\r\n }\r\n };\r\n AppHeaderComponent.prototype.toggleCollapsedNav = function () {\r\n this.AppConfig.navCollapsed = !this.AppConfig.navCollapsed;\r\n };\r\n AppHeaderComponent.prototype.ngOnInit = function () {\r\n this.AppConfig = __WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */];\r\n };\r\n AppHeaderComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'my-app-header',\r\n styles: [],\r\n template: __webpack_require__(1263)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_error_handler_service__[\"a\" /* ErrorHandler */],\r\n __WEBPACK_IMPORTED_MODULE_8__layout_layout_service__[\"a\" /* LayoutService */], __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], AppHeaderComponent);\r\n return AppHeaderComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 758:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return LayoutRoutingModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__layout_component__ = __webpack_require__(195);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__system_level_setting_wpass_wpass_component__ = __webpack_require__(319);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__admin_dashboard_admin_dashboard_component__ = __webpack_require__(279);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__partners_dashboard_partners_dashboard_component__ = __webpack_require__(295);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__applications_manager_dashboard_applications_manager_dashboard_component__ = __webpack_require__(283);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__profile_profile_component__ = __webpack_require__(197);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__user_activity_logs_user_activity_logs_component__ = __webpack_require__(326);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__translation_messages_translation_messages_component__ = __webpack_require__(321);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__translation_email_translation_email_component__ = __webpack_require__(320);\n\n\n\n\n\n\n\n\n\n\nvar routes = [\n {\n path: 'app',\n component: __WEBPACK_IMPORTED_MODULE_1__layout_component__[\"a\" /* LayoutComponent */],\n children: [\n { path: '', redirectTo: '/app/admin-dashboard', pathMatch: 'full' },\n { path: 'wpass', component: __WEBPACK_IMPORTED_MODULE_2__system_level_setting_wpass_wpass_component__[\"a\" /* WPASSComponent */] },\n { path: 'admin-dashboard', component: __WEBPACK_IMPORTED_MODULE_3__admin_dashboard_admin_dashboard_component__[\"a\" /* AdminDashboardComponent */] },\n { path: 'translation-messages', component: __WEBPACK_IMPORTED_MODULE_8__translation_messages_translation_messages_component__[\"a\" /* TranslationMessagesComponent */] },\n { path: 'translation-email', component: __WEBPACK_IMPORTED_MODULE_9__translation_email_translation_email_component__[\"a\" /* TranslationEmailComponent */] },\n { path: 'user-activity-logs', component: __WEBPACK_IMPORTED_MODULE_7__user_activity_logs_user_activity_logs_component__[\"a\" /* userActivityLogs */] },\n { path: 'partners-dashboard', component: __WEBPACK_IMPORTED_MODULE_4__partners_dashboard_partners_dashboard_component__[\"a\" /* PartnersDashboardComponent */] },\n { path: 'partners-dashboard/:id', component: __WEBPACK_IMPORTED_MODULE_4__partners_dashboard_partners_dashboard_component__[\"a\" /* PartnersDashboardComponent */] },\n { path: 'application-manager-dashboard', component: __WEBPACK_IMPORTED_MODULE_5__applications_manager_dashboard_applications_manager_dashboard_component__[\"a\" /* ApplicationsManagerDashboardComponent */] },\n { path: 'profile', component: __WEBPACK_IMPORTED_MODULE_6__profile_profile_component__[\"a\" /* ProfileComponent */] },\n { path: 'user', loadChildren: function() { return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 336)) .then( function(module) { return module['UserModule']; } ); } },\n { path: 'request-application', loadChildren: function() { return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 332)) .then( function(module) { return module['RequestBusinessUnitModule']; } ); } },\n { path: 'chart', loadChildren: function() { return __webpack_require__.e/* import() */(3).then(__webpack_require__.bind(null, 1604)) .then( function(module) { return module['ChartsModule']; } ); } },\n { path: 'ecommerce', loadChildren: function() { return __webpack_require__.e/* import() */(6).then(__webpack_require__.bind(null, 1605)) .then( function(module) { return module['ECommerceModule']; } ); } },\n { path: 'form', loadChildren: function() { return __webpack_require__.e/* import() */(1).then(__webpack_require__.bind(null, 1607)) .then( function(module) { return module['MyFormsModule']; } ); } },\n { path: 'page', loadChildren: function() { return __webpack_require__.e/* import() */(2).then(__webpack_require__.bind(null, 1609)) .then( function(module) { return module['PagesModule']; } ); } },\n { path: 'pglayout', loadChildren: function() { return __webpack_require__.e/* import() */(7).then(__webpack_require__.bind(null, 1608)) .then( function(module) { return module['PageLayoutsModule']; } ); } },\n { path: 'table', loadChildren: function() { return __webpack_require__.e/* import() */(8).then(__webpack_require__.bind(null, 1611)) .then( function(module) { return module['MyTablesModule']; } ); } },\n { path: 'ui', loadChildren: function() { return __webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, 1612)) .then( function(module) { return module['UIModule']; } ); } },\n { path: 'file-upload', loadChildren: function() { return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 288)) .then( function(module) { return module['CSVUploadModule']; } ); } },\n { path: 'manage-admin', loadChildren: function() { return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 304)) .then( function(module) { return module['AdminManagementModule']; } ); } },\n { path: 'manage-business-unit', loadChildren: function() { return __webpack_require__.e/* import() */(5).then(__webpack_require__.bind(null, 1610)) .then( function(module) { return module['BusinessUnitManagementModule']; } ); } },\n { path: 'manager-assignment', loadChildren: function() { return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 314)) .then( function(module) { return module['ManagerAssignmentModule']; } ); } },\n { path: 'application-management', loadChildren: function() { return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 311)) .then( function(module) { return module['ApplicationManagementModule']; } ); } },\n { path: 'view-request', loadChildren: function() { return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 337)) .then( function(module) { return module['ViewRequestModule']; } ); } },\n ]\n }\n];\nvar LayoutRoutingModule = __WEBPACK_IMPORTED_MODULE_0__angular_router__[\"g\" /* RouterModule */].forChild(routes);\n\n\n/***/ }),\n\n/***/ 759:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return LayoutModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__layout_routing_module__ = __webpack_require__(758);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_shared_module__ = __webpack_require__(276);\n\r\n\r\n\r\n\r\nvar LayoutModule = (function () {\r\n function LayoutModule() {\r\n }\r\n LayoutModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_2__layout_routing_module__[\"a\" /* LayoutRoutingModule */],\r\n __WEBPACK_IMPORTED_MODULE_3__shared_shared_module__[\"a\" /* SharedModule */],\r\n ],\r\n declarations: []\r\n })\r\n ], LayoutModule);\r\n return LayoutModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 760:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return PreloaderDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__layout_service__ = __webpack_require__(72);\n\r\n\r\n\r\n\r\nvar PreloaderDirective = (function () {\r\n function PreloaderDirective(el, router, layoutService) {\r\n var _this = this;\r\n this.el = el;\r\n this.router = router;\r\n this.layoutService = layoutService;\r\n router.events.subscribe(function (event) {\r\n _this.navigationInterceptor(event);\r\n });\r\n this.subscription = layoutService.preloaderState$.subscribe(function (state) {\r\n _this.updatePreloader(state);\r\n });\r\n }\r\n PreloaderDirective.prototype.ngAfterViewInit = function () {\r\n this.$el = $(this.el.nativeElement);\r\n };\r\n PreloaderDirective.prototype.active = function () {\r\n if (this.$el) {\r\n this.$el.removeClass('hide').addClass('active');\r\n }\r\n };\r\n PreloaderDirective.prototype.hide = function () {\r\n if (this.$el) {\r\n this.$el.addClass('hide').removeClass('active');\r\n }\r\n };\r\n // Shows and hides the loading spinner during RouterEvent changes\r\n PreloaderDirective.prototype.navigationInterceptor = function (event) {\r\n if (event instanceof __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"d\" /* NavigationStart */]) {\r\n this.active();\r\n }\r\n if (event instanceof __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"c\" /* NavigationEnd */]) {\r\n this.hide();\r\n }\r\n // Set loading state to false in both of the below events to hide the spinner in case a request fails\r\n if (event instanceof __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"e\" /* NavigationCancel */]) {\r\n this.hide();\r\n }\r\n if (event instanceof __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"f\" /* NavigationError */]) {\r\n this.hide();\r\n }\r\n };\r\n // \r\n PreloaderDirective.prototype.updatePreloader = function (state) {\r\n // console.log('change state')\r\n if (state == 'active') {\r\n this.active();\r\n }\r\n if (state == 'hide') {\r\n this.hide();\r\n }\r\n };\r\n PreloaderDirective.prototype.ngOnDestroy = function () {\r\n // prevent memory leak when component destroyed\r\n this.subscription.unsubscribe();\r\n };\r\n PreloaderDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({\r\n selector: '[myPreloader]',\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__layout_service__[\"a\" /* LayoutService */]])\r\n ], PreloaderDirective);\r\n return PreloaderDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 761:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return OpenSearchOverlaylDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__layout_service__ = __webpack_require__(72);\n\r\n\r\n\r\nvar OpenSearchOverlaylDirective = (function () {\r\n function OpenSearchOverlaylDirective(el, layoutService) {\r\n this.el = el;\r\n this.layoutService = layoutService;\r\n }\r\n OpenSearchOverlaylDirective.prototype.ngAfterViewInit = function () {\r\n var _this = this;\r\n var $el = $(this.el.nativeElement);\r\n var $body = $('#body');\r\n $el.on('click', function (e) {\r\n _this.openOverlay();\r\n });\r\n };\r\n OpenSearchOverlaylDirective.prototype.openOverlay = function () {\r\n this.layoutService.updateSearchOverlayState('open');\r\n };\r\n OpenSearchOverlaylDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[myOpenSearchOverlay]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"], __WEBPACK_IMPORTED_MODULE_2__layout_service__[\"a\" /* LayoutService */]])\r\n ], OpenSearchOverlaylDirective);\r\n return OpenSearchOverlaylDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 762:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppSearchOverlayComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n\r\n\r\nvar AppSearchOverlayComponent = (function () {\r\n function AppSearchOverlayComponent() {\r\n }\r\n AppSearchOverlayComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'my-app-search-overlay',\r\n styles: [],\r\n template: __webpack_require__(1265)\r\n })\r\n ], AppSearchOverlayComponent);\r\n return AppSearchOverlayComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 763:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return SearchOverlayDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__layout_service__ = __webpack_require__(72);\n\r\n\r\n\r\nvar SearchOverlayDirective = (function () {\r\n function SearchOverlayDirective(el, layoutService) {\r\n var _this = this;\r\n this.el = el;\r\n this.layoutService = layoutService;\r\n this.subscription = layoutService.searchOverlayState$.subscribe(function (state) {\r\n _this.updateSearchOverlay(state);\r\n });\r\n }\r\n SearchOverlayDirective.prototype.ngAfterViewInit = function () {\r\n var _this = this;\r\n this.$el = $(this.el.nativeElement);\r\n this.$body = $('#body');\r\n this.$searchInput = this.$el.find('#overlay-search-input');\r\n this.$closeOverlayBtn = this.$el.find('#overlay-close');\r\n this.$el.on('keyup', function (e) {\r\n if (e.keyCode == 27) {\r\n _this.closeOverlay();\r\n }\r\n });\r\n this.$closeOverlayBtn.on('click', function (e) {\r\n _this.closeOverlay();\r\n e.preventDefault();\r\n });\r\n };\r\n SearchOverlayDirective.prototype.openOverlay = function () {\r\n var _this = this;\r\n this.$body.addClass('overlay-active');\r\n // [delay] should >= `visibility` transition duration in CSS, see _overlay.scss\r\n // otherwise auto-focus won't work since element is not there yet\r\n if (this.$searchInput) {\r\n setTimeout(function () {\r\n _this.$searchInput.focus();\r\n }, 301);\r\n }\r\n };\r\n SearchOverlayDirective.prototype.closeOverlay = function () {\r\n this.$body.removeClass('overlay-active');\r\n if (this.$searchInput) {\r\n this.$searchInput.val(function () {\r\n return this.defaultValue;\r\n });\r\n }\r\n };\r\n SearchOverlayDirective.prototype.updateSearchOverlay = function (state) {\r\n if (state == 'open') {\r\n this.openOverlay();\r\n }\r\n };\r\n SearchOverlayDirective.prototype.ngOnDestroy = function () {\r\n this.subscription.unsubscribe();\r\n };\r\n SearchOverlayDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[mySearchOverlay]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"], __WEBPACK_IMPORTED_MODULE_2__layout_service__[\"a\" /* LayoutService */]])\r\n ], SearchOverlayDirective);\r\n return SearchOverlayDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 764:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AutoCloseMobileNavDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(12);\n\r\n\r\n\r\n\r\n// Mobile only: automatically close sidebar on route change.\r\nvar AutoCloseMobileNavDirective = (function () {\r\n function AutoCloseMobileNavDirective(el, router) {\r\n this.el = el;\r\n this.router = router;\r\n }\r\n AutoCloseMobileNavDirective.prototype.ngOnInit = function () {\r\n var $body = $('#body');\r\n if (__WEBPACK_IMPORTED_MODULE_3__config__[\"a\" /* APPCONFIG */].AutoCloseMobileNav) {\r\n this.router.events.subscribe(function (event) {\r\n if (event instanceof __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"c\" /* NavigationEnd */]) {\r\n setTimeout(function () {\r\n // console.log('NavigationEnd:', event);\r\n $body.removeClass('sidebar-mobile-open');\r\n }, 0);\r\n }\r\n });\r\n }\r\n };\r\n AutoCloseMobileNavDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[myAutoCloseMobileNav]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */]])\r\n ], AutoCloseMobileNavDirective);\r\n return AutoCloseMobileNavDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 765:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AccordionNavDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n\r\n\r\nvar AccordionNavDirective = (function () {\r\n function AccordionNavDirective(el) {\r\n this.el = el;\r\n }\r\n AccordionNavDirective.prototype.ngAfterViewInit = function () {\r\n // on click, open it's own ul, close sibling li opened ul & sub ul\r\n // on click, close it's own ul & sub ul\r\n var $nav = $(this.el.nativeElement);\r\n var slideTime = 250;\r\n var $lists = $nav.find('ul').parent('li');\r\n $lists.append('arrow_drop_down');\r\n var $As = $lists.children('a');\r\n // Disable a link that has ul\r\n $As.on('click', function (event) {\r\n event.preventDefault();\r\n });\r\n // Accordion nav\r\n $nav.on('click', function (e) {\r\n var target = e.target;\r\n var $parentLi = $(target).closest('li'); // closest, insead of parent, so it still works when click on i icons\r\n if (!$parentLi.length)\r\n return; // return if doesn't click on li\r\n var $subUl = $parentLi.children('ul');\r\n // let depth = $subUl.parents().length; // but some li has no sub ul, so...\r\n var depth = $parentLi.parents().length + 1;\r\n // filter out all elements (except target) at current depth or greater\r\n var allAtDepth = $nav.find('ul').filter(function () {\r\n if ($(this).parents().length >= depth && this !== $subUl.get(0)) {\r\n return true;\r\n }\r\n });\r\n allAtDepth.slideUp(slideTime).closest('li').removeClass('open');\r\n // Toggle target \r\n if ($parentLi.has('ul').length) {\r\n $parentLi.toggleClass('open');\r\n }\r\n $subUl.stop().slideToggle(slideTime);\r\n });\r\n };\r\n AccordionNavDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[myAccordionNav]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"]])\r\n ], AccordionNavDirective);\r\n return AccordionNavDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 766:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppendSubmenuIconDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n\r\n\r\nvar AppendSubmenuIconDirective = (function () {\r\n function AppendSubmenuIconDirective(el) {\r\n this.el = el;\r\n }\r\n AppendSubmenuIconDirective.prototype.ngAfterViewInit = function () {\r\n var $el = $(this.el.nativeElement);\r\n $el.find('.prepend-icon').prepend('keyboard_arrow_right');\r\n };\r\n AppendSubmenuIconDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[myAppendSubmenuIcon]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"]])\r\n ], AppendSubmenuIconDirective);\r\n return AppendSubmenuIconDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 767:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return HighlightActiveItemsDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(9);\n\r\n\r\n\r\n\r\nvar HighlightActiveItemsDirective = (function () {\r\n function HighlightActiveItemsDirective(el, location, router) {\r\n this.el = el;\r\n this.location = location;\r\n this.router = router;\r\n }\r\n HighlightActiveItemsDirective.prototype.ngAfterViewInit = function () {\r\n var $el = $(this.el.nativeElement);\r\n var $links = $el.find('a');\r\n function highlightActive(links) {\r\n var path = location.hash;\r\n // console.log(path);\r\n links.each(function (i, link) {\r\n var $link = $(link);\r\n var $li = $link.parent('li');\r\n var href = $link.attr('href');\r\n // console.log(href);\r\n if ($li.hasClass('active')) {\r\n $li.removeClass('active');\r\n }\r\n if (path.indexOf(href) === 0) {\r\n $li.addClass('active');\r\n }\r\n });\r\n }\r\n highlightActive($links);\r\n this.router.events.subscribe(function (evt) {\r\n if (!(evt instanceof __WEBPACK_IMPORTED_MODULE_3__angular_router__[\"c\" /* NavigationEnd */])) {\r\n return;\r\n }\r\n highlightActive($links);\r\n });\r\n };\r\n HighlightActiveItemsDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[myHighlightActiveItems]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"], __WEBPACK_IMPORTED_MODULE_2__angular_common__[\"Location\"], __WEBPACK_IMPORTED_MODULE_3__angular_router__[\"a\" /* Router */]])\r\n ], HighlightActiveItemsDirective);\r\n return HighlightActiveItemsDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 768:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppSidenavMenuComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__layout_layout_service__ = __webpack_require__(72);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__config__ = __webpack_require__(12);\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AppSidenavMenuComponent = (function () {\r\n function AppSidenavMenuComponent(router, layoutService, httpService, sessionHandler, commonService) {\r\n this.router = router;\r\n this.layoutService = layoutService;\r\n this.httpService = httpService;\r\n this.sessionHandler = sessionHandler;\r\n this.commonService = commonService;\r\n this.isSystemAdmin = false;\r\n this.isBUManager = false;\r\n this.isApplicationManager = false;\r\n this.isRegionalAdmin = false;\r\n this.isServiceOwner = false;\r\n this.isTradePartner = false;\r\n this.isSubUser = false;\r\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\r\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].systemAdmin)) {\r\n this.isSystemAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].BUManager)) {\r\n this.isBUManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].applicationManager)) {\r\n this.isApplicationManager = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].regionalAdmin)) {\r\n this.isRegionalAdmin = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].serviceOwner)) {\r\n this.isServiceOwner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].tradePartner)) {\r\n this.isTradePartner = true;\r\n }\r\n if (this.userDetails.roleCode.includes(__WEBPACK_IMPORTED_MODULE_7__config__[\"a\" /* APPCONFIG */].subuser)) {\r\n this.isSubUser = true;\r\n }\r\n }\r\n else {\r\n this.httpService.noUserError();\r\n }\r\n }\r\n AppSidenavMenuComponent.prototype.logout = function () {\r\n //this.commonService.setLoginRedirectUrl(window.location.hash);\r\n this.sessionHandler.removeItem('loginData');\r\n this.sessionHandler.removeItem('timestamp');\r\n this.sessionHandler.removeItem('userDetails');\r\n this.router.navigate(['/login']);\r\n };\r\n AppSidenavMenuComponent.prototype.saveResponse = function (res) {\r\n this.httpService.onEnd();\r\n //this.commonService.setLoginRedirectUrl('');\r\n this.sessionHandler.clearAllItems();\r\n this.router.navigate(['/login']);\r\n };\r\n AppSidenavMenuComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'my-app-sidenav-menu',\r\n styles: [],\r\n template: __webpack_require__(1266)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_5__layout_layout_service__[\"a\" /* LayoutService */], __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_3__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_4__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], AppSidenavMenuComponent);\r\n return AppSidenavMenuComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 769:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AppSidenavComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_error_handler_service__ = __webpack_require__(92);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__layout_layout_service__ = __webpack_require__(72);\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar AppSidenavComponent = (function () {\r\n function AppSidenavComponent(router, httpService, errorHandler, layoutService, sessionHandler, commonService) {\r\n this.router = router;\r\n this.httpService = httpService;\r\n this.errorHandler = errorHandler;\r\n this.layoutService = layoutService;\r\n this.sessionHandler = sessionHandler;\r\n this.commonService = commonService;\r\n }\r\n AppSidenavComponent.prototype.ngOnInit = function () {\r\n this.AppConfig = __WEBPACK_IMPORTED_MODULE_2__config__[\"a\" /* APPCONFIG */];\r\n };\r\n AppSidenavComponent.prototype.toggleCollapsedNav = function () {\r\n this.AppConfig.navCollapsed = !this.AppConfig.navCollapsed;\r\n };\r\n AppSidenavComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'my-app-sidenav',\r\n styles: [],\r\n template: __webpack_require__(1267)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_6__shared_services_http_service__[\"a\" /* HttpService */], __WEBPACK_IMPORTED_MODULE_4__shared_services_error_handler_service__[\"a\" /* ErrorHandler */],\r\n __WEBPACK_IMPORTED_MODULE_8__layout_layout_service__[\"a\" /* LayoutService */], __WEBPACK_IMPORTED_MODULE_5__shared_services_session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_7__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], AppSidenavComponent);\r\n return AppSidenavComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 770:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ToggleOffcanvasNavDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n\r\n\r\n// off-canvas sidebar for mobile, and this is the trigger\r\nvar ToggleOffcanvasNavDirective = (function () {\r\n function ToggleOffcanvasNavDirective(el) {\r\n this.el = el;\r\n }\r\n ToggleOffcanvasNavDirective.prototype.ngAfterViewInit = function () {\r\n var $navToggler = $(this.el.nativeElement);\r\n var $body = $('#body');\r\n $navToggler.on('click', function (e) {\r\n // _sidebar.scss, _page-container.scss\r\n $body.toggleClass('sidebar-mobile-open');\r\n e.preventDefault();\r\n });\r\n };\r\n ToggleOffcanvasNavDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[myToggleOffcanvasNav]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"]])\r\n ], ToggleOffcanvasNavDirective);\r\n return ToggleOffcanvasNavDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 771:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return LoaderComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__loader_service__ = __webpack_require__(196);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__(9);\n/**\r\n * Created by shubham on 27/2/18.\r\n */\r\n\r\n\r\n\r\n\r\nvar LoaderComponent = (function () {\r\n function LoaderComponent(router, loaderService, chRef) {\r\n this.router = router;\r\n this.loaderService = loaderService;\r\n this.chRef = chRef;\r\n this.show = false;\r\n this.isLogin = false;\r\n }\r\n LoaderComponent.prototype.ngOnInit = function () {\r\n var _this = this;\r\n this.router.events.subscribe(function (evt) {\r\n if ((evt instanceof __WEBPACK_IMPORTED_MODULE_3__angular_router__[\"c\" /* NavigationEnd */])) {\r\n if (evt['url'] == '/login') {\r\n _this.isLogin = true;\r\n }\r\n else {\r\n _this.isLogin = false;\r\n }\r\n }\r\n });\r\n this.subscription = this.loaderService.loaderState\r\n .subscribe(function (state) {\r\n _this.show = state.show;\r\n if (_this.isLogin) {\r\n _this.chRef.detectChanges();\r\n }\r\n });\r\n };\r\n LoaderComponent.prototype.ngOnDestroy = function () {\r\n this.subscription.unsubscribe();\r\n };\r\n LoaderComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'angular-loader',\r\n template: __webpack_require__(1268),\r\n styles: [__webpack_require__(1240)]\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_3__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__loader_service__[\"a\" /* LoaderService */], __WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ChangeDetectorRef\"]])\r\n ], LoaderComponent);\r\n return LoaderComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 772:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return MultiApproveRejectRequestModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(50);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common__ = __webpack_require__(32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__multi_approve_reject_multi_approve_reject_component__ = __webpack_require__(773);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ng2_translate__ = __webpack_require__(17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__config__ = __webpack_require__(12);\n/**\r\n * Created by shubham on 29/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar MultiApproveRejectRequestModule = (function () {\r\n function MultiApproveRejectRequestModule() {\r\n }\r\n MultiApproveRejectRequestModule = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"NgModule\"])({\r\n imports: [\r\n __WEBPACK_IMPORTED_MODULE_2__angular_material__[\"a\" /* MaterialModule */],\r\n __WEBPACK_IMPORTED_MODULE_2__angular_material__[\"e\" /* MdTabsModule */],\r\n __WEBPACK_IMPORTED_MODULE_5__angular_common__[\"CommonModule\"],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"a\" /* FormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_forms__[\"b\" /* ReactiveFormsModule */],\r\n __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"b\" /* TranslateModule */].forRoot({\r\n provide: __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"c\" /* TranslateLoader */],\r\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\r\n useFactory: function (http) { return new __WEBPACK_IMPORTED_MODULE_7_ng2_translate__[\"a\" /* TranslateStaticLoader */](http, __WEBPACK_IMPORTED_MODULE_8__config__[\"a\" /* APPCONFIG */].URL + '/_ah/api/noAuthApi/v1/i18nJson', ''); },\r\n deps: [__WEBPACK_IMPORTED_MODULE_3__angular_http__[\"b\" /* Http */]]\r\n })\r\n ],\r\n declarations: [\r\n __WEBPACK_IMPORTED_MODULE_6__multi_approve_reject_multi_approve_reject_component__[\"a\" /* MultiApproveRejectComponent */]\r\n ],\r\n exports: [\r\n __WEBPACK_IMPORTED_MODULE_6__multi_approve_reject_multi_approve_reject_component__[\"a\" /* MultiApproveRejectComponent */],\r\n ]\r\n })\r\n ], MultiApproveRejectRequestModule);\r\n return MultiApproveRejectRequestModule;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 773:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return MultiApproveRejectComponent; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__ = __webpack_require__(15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__ = __webpack_require__(24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__ = __webpack_require__(11);\n/**\r\n * Created by shubham on 27/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvar MultiApproveRejectComponent = (function () {\r\n function MultiApproveRejectComponent(router, route, httpService, dialog, commonService) {\r\n this.router = router;\r\n this.route = route;\r\n this.httpService = httpService;\r\n this.dialog = dialog;\r\n this.commonService = commonService;\r\n this.settingSingleField = {\r\n singleSelection: true,\r\n text: \"Select Role\",\r\n labelKey: \"name\",\r\n selectAllText: 'Select All',\r\n unSelectAllText: 'UnSelect All',\r\n classes: \"myclass custom-class\",\r\n disabled: false\r\n };\r\n this.settingMultipleField = {\r\n singleSelection: false,\r\n text: \"Select Role\",\r\n labelKey: \"name\",\r\n selectAllText: 'Select All',\r\n unSelectAllText: 'UnSelect All',\r\n classes: \"myclass custom-class\",\r\n disabled: false\r\n };\r\n }\r\n MultiApproveRejectComponent.prototype.checkStatus = function (status) {\r\n if (this.dashboard == \"applicationManagerView\") {\r\n var applicationId = 0;\r\n for (var data in this.childData) {\r\n if (this.childData[data]['applicationId']) {\r\n applicationId = this.childData[data]['applicationId'];\r\n break;\r\n }\r\n }\r\n if (status == 'approved') {\r\n this.getApplicationRoles(applicationId, status);\r\n }\r\n else {\r\n this.performAction(status, applicationId, '');\r\n }\r\n }\r\n else {\r\n this.performAction(status, '', '');\r\n }\r\n };\r\n MultiApproveRejectComponent.prototype.getApplicationRoles = function (applicationId, status) {\r\n var _this = this;\r\n this.httpService.getRequest('applicationOperationApi/v1/applicationRoles/' + applicationId).subscribe(function (res) { _this.saveApplicationRoles(res, applicationId, status); }, function (err) { _this.httpService.onEnd(); });\r\n };\r\n MultiApproveRejectComponent.prototype.saveApplicationRoles = function (res, applicationId, status) {\r\n this.httpService.onEnd();\r\n if (res && res.applicationRoles) {\r\n this.performAction(status, applicationId, res);\r\n }\r\n };\r\n MultiApproveRejectComponent.prototype.performAction = function (status, applicationId, res) {\r\n var _this = this;\r\n if (this.dashboard == \"applicationManagerView\") {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__[\"g\" /* ApplicationDashboardActionDialogComponent */]);\r\n this.dialogRef.componentInstance.row = this.childData;\r\n this.dialogRef.componentInstance.roles = res.applicationRoles;\r\n if (res.multipleRole) {\r\n this.dialogRef.componentInstance.settings = this.settingMultipleField;\r\n }\r\n else {\r\n this.dialogRef.componentInstance.settings = this.settingSingleField;\r\n }\r\n }\r\n else {\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__[\"f\" /* DashboardActionDialogComponent */]);\r\n this.dialogRef.componentInstance.row = '';\r\n }\r\n var actionStatus;\r\n if (status == 'approved') {\r\n actionStatus = 'APPROVE';\r\n this.dialogRef.componentInstance.isApproved = true;\r\n }\r\n else if (status == 'rejected') {\r\n actionStatus = 'REJECT';\r\n this.dialogRef.componentInstance.isReject = true;\r\n }\r\n this.dialogRef.componentInstance.multiApproveRejectFlag = true;\r\n this.dialogRef.componentInstance.actionStatus = actionStatus;\r\n this.dialogRef.componentInstance.dashboard = this.dashboard;\r\n if (this.selectedCount < this.count) {\r\n this.dialogRef.componentInstance.condition1Flag = true;\r\n }\r\n else if (this.selectedCount >= this.count && this.selectedCount < this.totalCount) {\r\n this.dialogRef.componentInstance.condition2Flag = true;\r\n }\r\n else if (this.selectedCount == this.totalCount) {\r\n this.dialogRef.componentInstance.condition3Flag = true;\r\n }\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (result) {\r\n var data_1 = {};\r\n if (_this.childData) {\r\n if (_this.dashboard == \"applicationManagerView\") {\r\n data_1['applicationId'] = applicationId;\r\n data_1['userApplicationIds'] = [];\r\n }\r\n else {\r\n data_1['userIds'] = [];\r\n }\r\n if (result.selectedRadioValue == \"Approve All\") {\r\n data_1['allSelected'] = true;\r\n }\r\n else {\r\n data_1['allSelected'] = false;\r\n for (var c in _this.childData) {\r\n if (_this.childData[c]['id']) {\r\n if (_this.dashboard == \"applicationManagerView\") {\r\n data_1['userApplicationIds'].push(_this.childData[c]['id']);\r\n }\r\n else {\r\n data_1['userIds'].push(_this.childData[c]['id']);\r\n }\r\n }\r\n }\r\n }\r\n if (status == 'approved') {\r\n if (_this.dashboard == 'admin' || _this.dashboard == 'partners') {\r\n data_1['status'] = 'BU_APPROVE';\r\n // data['roleIds'] = result.roleId;\r\n }\r\n else {\r\n data_1['status'] = 'APPROVED';\r\n data_1['selectedRoles'] = result.selectedRoles;\r\n }\r\n }\r\n else if (status == 'rejected') {\r\n if (_this.dashboard == 'admin' || _this.dashboard == 'partners') {\r\n data_1['status'] = 'BU_REJECT';\r\n }\r\n else {\r\n data_1['status'] = 'REJECTED';\r\n }\r\n data_1['message'] = result.reason;\r\n }\r\n data_1['email'] = _this.searchedFilters.email ? _this.searchedFilters.email : '';\r\n data_1['firstName'] = _this.searchedFilters.firstName ? _this.searchedFilters.firstName : '';\r\n data_1['wpassId'] = _this.searchedFilters.wpassId;\r\n }\r\n if (_this.dashboard == 'admin' || _this.dashboard == 'partners') {\r\n _this.httpService.postRequest(data_1, 'userRegistrationsApi/v1/bulkApproveBusinessUnit').subscribe(function (res) {\r\n _this.checkResponse(res, status, data_1['allSelected']);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n else {\r\n _this.httpService.postRequest(data_1, 'applicationOperationApi/v1/bulkActionUserApplication').subscribe(function (res) {\r\n _this.checkResponse(res, status, data_1['allSelected']);\r\n }, function (err) { _this.httpService.onEnd(); });\r\n }\r\n }\r\n _this.dialogRef = null;\r\n });\r\n };\r\n MultiApproveRejectComponent.prototype.checkResponse = function (res, status, allSelected) {\r\n var _this = this;\r\n if (allSelected) {\r\n setTimeout(function () {\r\n _this.httpService.onEnd();\r\n _this.saveResponse(res, status);\r\n }, 15000);\r\n }\r\n else {\r\n this.httpService.onEnd();\r\n this.saveResponse(res, status);\r\n }\r\n };\r\n MultiApproveRejectComponent.prototype.saveResponse = function (res, status) {\r\n var _this = this;\r\n var statusTxt;\r\n if (res) {\r\n if (status == 'approved') {\r\n statusTxt = 'after_user_creation_approval_notify';\r\n }\r\n else {\r\n statusTxt = 'Rejected Successfully';\r\n }\r\n this.dialogRef = this.dialog.open(__WEBPACK_IMPORTED_MODULE_6__dialog_dialog_component__[\"a\" /* DialogComponent */]);\r\n this.dialogRef.componentInstance.msg = statusTxt;\r\n this.dialogRef.afterClosed().subscribe(function (result) {\r\n if (_this.dashboard == 'admin') {\r\n _this.commonService.changeAdminDashboardData();\r\n }\r\n else if (_this.dashboard == 'partners') {\r\n _this.commonService.changePartnersDashboardData();\r\n }\r\n else if (_this.dashboard == 'applicationManagerView') {\r\n _this.commonService.changeApplicationDashboardData();\r\n }\r\n });\r\n }\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], MultiApproveRejectComponent.prototype, \"childData\", void 0);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], MultiApproveRejectComponent.prototype, \"searchedFilters\", void 0);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], MultiApproveRejectComponent.prototype, \"dashboard\", void 0);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], MultiApproveRejectComponent.prototype, \"selectedCount\", void 0);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], MultiApproveRejectComponent.prototype, \"count\", void 0);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], MultiApproveRejectComponent.prototype, \"totalCount\", void 0);\r\n MultiApproveRejectComponent = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Component\"])({\r\n selector: 'multi-approve-reject',\r\n template: __webpack_require__(1270)\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_2__angular_router__[\"b\" /* ActivatedRoute */], __WEBPACK_IMPORTED_MODULE_3__shared_services_http_service__[\"a\" /* HttpService */],\r\n __WEBPACK_IMPORTED_MODULE_4__angular_material__[\"c\" /* MdDialog */], __WEBPACK_IMPORTED_MODULE_5__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], MultiApproveRejectComponent);\r\n return MultiApproveRejectComponent;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 774:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return PartnersPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__partners_page__ = __webpack_require__(296);\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar PartnersPageData = (function () {\r\n function PartnersPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__partners_page__[\"a\" /* PartnersPage */]();\r\n }\r\n return PartnersPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 775:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return PartnersDashboardList; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * A model for an individual corporate employee\r\n */\r\nvar PartnersDashboardList = (function () {\r\n function PartnersDashboardList(id, Name, roleName, email, emailVerified, userId_WPASS, languageId, languageName, ownerId, sessionUserManager, status, createdAt) {\r\n this.id = id;\r\n this.Name = Name;\r\n this.roleName = roleName;\r\n this.email = email;\r\n this.emailVerified = emailVerified;\r\n this.userId_WPASS = userId_WPASS;\r\n this.languageId = languageId;\r\n this.languageName = languageName;\r\n this.ownerId = ownerId;\r\n this.sessionUserManager = sessionUserManager;\r\n this.status = status;\r\n this.createdAt = createdAt;\r\n }\r\n return PartnersDashboardList;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 776:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BlockCutCopyPasteDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/**\r\n * Created by shubham on 23/4/18.\r\n */\r\n\r\n\r\nvar BlockCutCopyPasteDirective = (function () {\r\n function BlockCutCopyPasteDirective() {\r\n }\r\n BlockCutCopyPasteDirective.prototype.blockPaste = function (e) {\r\n console.log(\"Can not paste here\");\r\n e.preventDefault();\r\n };\r\n BlockCutCopyPasteDirective.prototype.blockCopy = function (e) {\r\n console.log(\"Can not copy here\");\r\n e.preventDefault();\r\n };\r\n BlockCutCopyPasteDirective.prototype.blockCut = function (e) {\r\n console.log(\"Can not cut here\");\r\n e.preventDefault();\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"HostListener\"])('paste', ['$event']),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Function),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [KeyboardEvent]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:returntype\", void 0)\r\n ], BlockCutCopyPasteDirective.prototype, \"blockPaste\", null);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"HostListener\"])('copy', ['$event']),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Function),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [KeyboardEvent]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:returntype\", void 0)\r\n ], BlockCutCopyPasteDirective.prototype, \"blockCopy\", null);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"HostListener\"])('cut', ['$event']),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Function),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [KeyboardEvent]),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:returntype\", void 0)\r\n ], BlockCutCopyPasteDirective.prototype, \"blockCut\", null);\r\n BlockCutCopyPasteDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({\r\n selector: '[appBlockCutCopyPaste]'\r\n }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], BlockCutCopyPasteDirective);\r\n return BlockCutCopyPasteDirective;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 777:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return EChartsDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_echarts__ = __webpack_require__(384);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_echarts___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_echarts__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_echarts_theme_macarons__ = __webpack_require__(1203);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_echarts_theme_macarons___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_echarts_theme_macarons__);\n\r\n\r\n\r\n\r\nvar EChartsDirective = (function () {\r\n function EChartsDirective(el) {\r\n this.el = el;\r\n }\r\n EChartsDirective.prototype.ngAfterViewInit = function () {\r\n this.myChart = __WEBPACK_IMPORTED_MODULE_2_echarts___default.a.init(this.el.nativeElement, 'macarons');\r\n if (!this.EChartsOptions)\r\n return;\r\n this.myChart.setOption(this.EChartsOptions);\r\n };\r\n EChartsDirective.prototype.ngOnChanges = function () { };\r\n EChartsDirective.prototype.ngOnDestroy = function () {\r\n if (this.myChart) {\r\n this.myChart.dispose();\r\n }\r\n };\r\n EChartsDirective.prototype.onResize = function () {\r\n if (this.myChart) {\r\n this.myChart.resize();\r\n }\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Object)\r\n ], EChartsDirective.prototype, \"EChartsOptions\", void 0);\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"HostListener\"])('window:resize'),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", Function),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", []),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:returntype\", void 0)\r\n ], EChartsDirective.prototype, \"onResize\", null);\r\n EChartsDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[myECharts]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"]])\r\n ], EChartsDirective);\r\n return EChartsDirective;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 778:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return SlimScrollDirective; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_jquery_slimscroll_jquery_slimscroll_min_js__ = __webpack_require__(1212);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_jquery_slimscroll_jquery_slimscroll_min_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_jquery_slimscroll_jquery_slimscroll_min_js__);\n\r\n\r\n\r\nvar SlimScrollDirective = (function () {\r\n function SlimScrollDirective(el) {\r\n this.el = el;\r\n }\r\n SlimScrollDirective.prototype.ngAfterViewInit = function () {\r\n var $el = $(this.el.nativeElement);\r\n $el.slimScroll({\r\n height: this.scrollHeight || '100%'\r\n });\r\n };\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Input\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:type\", String)\r\n ], SlimScrollDirective.prototype, \"scrollHeight\", void 0);\r\n SlimScrollDirective = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Directive\"])({ selector: '[mySlimScroll]' }),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"ElementRef\"]])\r\n ], SlimScrollDirective);\r\n return SlimScrollDirective;\r\n}());\r\n\r\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(48)))\n\n/***/ }),\n\n/***/ 779:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminListDashboard; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * A model for an individual corporate employee\r\n */\r\nvar AdminListDashboard = (function () {\r\n function AdminListDashboard(id, Name, roleName, email, emailVerified, userId_WPASS, pendingSubUserCount, languageId, languageName, active, status, createdAt) {\r\n this.id = id;\r\n this.Name = Name;\r\n this.roleName = roleName;\r\n this.email = email;\r\n this.emailVerified = emailVerified;\r\n this.userId_WPASS = userId_WPASS;\r\n this.pendingSubUserCount = pendingSubUserCount;\r\n this.languageId = languageId;\r\n this.languageName = languageName;\r\n this.active = active;\r\n this.status = status;\r\n this.createdAt = createdAt;\r\n }\r\n return AdminListDashboard;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 780:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminListPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__adminList_page__ = __webpack_require__(300);\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar AdminListPageData = (function () {\r\n function AdminListPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__adminList_page__[\"a\" /* AdminListPage */]();\r\n }\r\n return AdminListPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 781:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export AdminManagementRoutes */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return AdminManagementRoutingModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__adminManagement_component__ = __webpack_require__(303);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__adminList_adminList_component__ = __webpack_require__(301);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__addAdmin_addAdmin_component__ = __webpack_require__(299);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__viewAdmin_viewAdmin_component__ = __webpack_require__(305);\n/**\r\n * Created by shubham on 8/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\nvar AdminManagementRoutes = [\r\n {\r\n path: '',\r\n component: __WEBPACK_IMPORTED_MODULE_1__adminManagement_component__[\"a\" /* AdminManagementComponent */],\r\n children: [\r\n { path: '', redirectTo: '/app/profile', pathMatch: 'full' },\r\n { path: 'list', component: __WEBPACK_IMPORTED_MODULE_2__adminList_adminList_component__[\"a\" /* AdminListComponent */] },\r\n { path: 'add', component: __WEBPACK_IMPORTED_MODULE_3__addAdmin_addAdmin_component__[\"a\" /* AddAdminComponent */] },\r\n { path: 'view/:id', component: __WEBPACK_IMPORTED_MODULE_4__viewAdmin_viewAdmin_component__[\"a\" /* ViewAdminComponent */] },\r\n ]\r\n }\r\n];\r\nvar AdminManagementRoutingModule = __WEBPACK_IMPORTED_MODULE_0__angular_router__[\"g\" /* RouterModule */].forChild(AdminManagementRoutes);\r\n\n\n/***/ }),\n\n/***/ 782:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationListDashboard; });\n/**\r\n * Created by prakash on 22/9/18.\r\n */\r\n/**\r\n * A model for an Application listing\r\n */\r\nvar ApplicationListDashboard = (function () {\r\n function ApplicationListDashboard(id, applicationName, ldapApplicationId, managerNames, customerNumberRequired, skipManagerApproval, multipleRole, status, active, createdAt) {\r\n this.id = id;\r\n this.applicationName = applicationName;\r\n this.ldapApplicationId = ldapApplicationId;\r\n this.managerNames = managerNames;\r\n this.customerNumberRequired = customerNumberRequired;\r\n this.skipManagerApproval = skipManagerApproval;\r\n this.multipleRole = multipleRole;\r\n this.status = status;\r\n this.active = active;\r\n this.createdAt = createdAt;\r\n }\r\n return ApplicationListDashboard;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 783:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationListPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__applicationList_page__ = __webpack_require__(307);\n/**\r\n * Created by prakash on 22/9/18.\r\n */\r\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar ApplicationListPageData = (function () {\r\n function ApplicationListPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__applicationList_page__[\"a\" /* ApplicationListPage */]();\r\n }\r\n return ApplicationListPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 784:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export ApplicationManagementRoutes */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ApplicationManagementRoutingModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__addApplication_addApplication_component__ = __webpack_require__(306);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__applicationManagement_component__ = __webpack_require__(310);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__applicationList_applicationList_component__ = __webpack_require__(308);\n/**\r\n * Created by shubham on 19/9/18.\r\n */\r\n\r\n\r\n\r\n\r\nvar ApplicationManagementRoutes = [\r\n {\r\n path: '',\r\n component: __WEBPACK_IMPORTED_MODULE_2__applicationManagement_component__[\"a\" /* ApplicationManagementComponent */],\r\n children: [\r\n { path: '', redirectTo: '/app/profile', pathMatch: 'full' },\r\n { path: 'add', component: __WEBPACK_IMPORTED_MODULE_1__addApplication_addApplication_component__[\"a\" /* AddApplicationComponent */] },\r\n { path: 'list', component: __WEBPACK_IMPORTED_MODULE_3__applicationList_applicationList_component__[\"a\" /* ApplicationListComponent */] },\r\n { path: 'view/:id', component: __WEBPACK_IMPORTED_MODULE_1__addApplication_addApplication_component__[\"a\" /* AddApplicationComponent */] }\r\n ]\r\n }\r\n];\r\nvar ApplicationManagementRoutingModule = __WEBPACK_IMPORTED_MODULE_0__angular_router__[\"g\" /* RouterModule */].forChild(ApplicationManagementRoutes);\r\n\n\n/***/ }),\n\n/***/ 785:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BusinessUnitListDashboard; });\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n/**\r\n * A model for an individual corporate employee\r\n */\r\nvar BusinessUnitListDashboard = (function () {\r\n function BusinessUnitListDashboard(id, Name, code, active, status, createdAt) {\r\n this.id = id;\r\n this.Name = Name;\r\n this.code = code;\r\n this.active = active;\r\n this.status = status;\r\n this.createdAt = createdAt;\r\n }\r\n return BusinessUnitListDashboard;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 786:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BusinessUnitListPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__businessUnitList_page__ = __webpack_require__(739);\n/**\r\n * Created by shubham on 11/4/18.\r\n */\r\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar BusinessUnitListPageData = (function () {\r\n function BusinessUnitListPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__businessUnitList_page__[\"a\" /* BusinessUnitListPage */]();\r\n }\r\n return BusinessUnitListPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 787:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export ManagerAssignmentRoutes */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ManagerAssignmentRoutingModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__managerAssignment_component__ = __webpack_require__(313);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__managerList_managerList_component__ = __webpack_require__(316);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__addManager_addManager_component__ = __webpack_require__(312);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__viewManager_viewManager_component__ = __webpack_require__(318);\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\nvar ManagerAssignmentRoutes = [\r\n {\r\n path: '',\r\n component: __WEBPACK_IMPORTED_MODULE_1__managerAssignment_component__[\"a\" /* ManagerAssignmentComponent */],\r\n children: [\r\n { path: '', redirectTo: '/app/profile', pathMatch: 'full' },\r\n { path: 'list', component: __WEBPACK_IMPORTED_MODULE_2__managerList_managerList_component__[\"a\" /* ManagerListComponent */] },\r\n { path: 'add', component: __WEBPACK_IMPORTED_MODULE_3__addManager_addManager_component__[\"a\" /* AddManagerComponent */] },\r\n { path: 'view/:buAssociationId', component: __WEBPACK_IMPORTED_MODULE_4__viewManager_viewManager_component__[\"a\" /* ViewManagerComponent */] }\r\n ]\r\n }\r\n];\r\nvar ManagerAssignmentRoutingModule = __WEBPACK_IMPORTED_MODULE_0__angular_router__[\"g\" /* RouterModule */].forChild(ManagerAssignmentRoutes);\r\n\n\n/***/ }),\n\n/***/ 788:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ManagerListDashboard; });\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n/**\r\n * A model for an individual corporate employee\r\n */\r\nvar ManagerListDashboard = (function () {\r\n function ManagerListDashboard(buAssociationId, Name, email, emailVerified, userId_WPASS, pendingSubUserCount, applicationName, countryId, countryName, businessUnitId, businessUnitName, active, status, createdAt) {\r\n this.buAssociationId = buAssociationId;\r\n this.Name = Name;\r\n this.email = email;\r\n this.emailVerified = emailVerified;\r\n this.userId_WPASS = userId_WPASS;\r\n this.pendingSubUserCount = pendingSubUserCount;\r\n this.applicationName = applicationName;\r\n this.countryId = countryId;\r\n this.countryName = countryName;\r\n this.businessUnitId = countryId;\r\n this.businessUnitName = countryName;\r\n this.active = active;\r\n this.status = status;\r\n this.createdAt = createdAt;\r\n }\r\n return ManagerListDashboard;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 789:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ManagerListPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__managerList_page__ = __webpack_require__(315);\n/**\r\n * Created by shubham on 10/5/18.\r\n */\r\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar ManagerListPageData = (function () {\r\n function ManagerListPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__managerList_page__[\"a\" /* ManagerListPage */]();\r\n }\r\n return ManagerListPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 790:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return TranslationMessagesPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__translation_messages_page__ = __webpack_require__(322);\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar TranslationMessagesPageData = (function () {\r\n function TranslationMessagesPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__translation_messages_page__[\"a\" /* TranslationMessagePage */]();\r\n }\r\n return TranslationMessagesPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 791:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return TranslationMessagesResultService; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(53);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__translation_messages__ = __webpack_require__(790);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__translations_messages_list__ = __webpack_require__(792);\n\r\n\r\n\r\n\r\n\r\n/**\r\n * A server used to mock a paged data result from a server\r\n */\r\nvar TranslationMessagesResultService = (function () {\r\n function TranslationMessagesResultService() {\r\n this.rows = {};\r\n this.applicationsDashboardData = {};\r\n }\r\n /**\r\n * A method that mocks a paged server response\r\n * @param page The selected page\r\n * @returns {any} An observable containing the employee data\r\n */\r\n TranslationMessagesResultService.prototype.getResults = function (page, listData) {\r\n var _this = this;\r\n this.listData = listData;\r\n return __WEBPACK_IMPORTED_MODULE_2_rxjs__[\"Observable\"].of(listData).map(function (data) { return _this.getPageData(page); });\r\n };\r\n /**\r\n * Package companyData into a PagedData object based on the selected Page\r\n * @param page The page data used to get the selected data from companyData\r\n * @returns {PagedData} An array of the selected data and page\r\n */\r\n TranslationMessagesResultService.prototype.getPageData = function (page) {\r\n var pageData = new __WEBPACK_IMPORTED_MODULE_3__translation_messages__[\"a\" /* TranslationMessagesPageData */]();\r\n var offset = this.listData.offset;\r\n var raw = [];\r\n for (var l in this.listData) {\r\n if (Object.keys(this.listData[l]).length > 0) {\r\n raw[offset + parseInt(l)] = this.listData[l];\r\n }\r\n }\r\n if (this.listData.totalCount) {\r\n page.totalElements = this.listData.totalCount;\r\n }\r\n page.totalPages = page.totalElements / page.size;\r\n var start = page.pageNumber * page.size;\r\n var end = Math.min((start + page.size), page.totalElements);\r\n for (var i = start; i < end; i++) {\r\n if (raw[i]) {\r\n var jsonObj = raw[i];\r\n if (jsonObj) {\r\n var list = new __WEBPACK_IMPORTED_MODULE_4__translations_messages_list__[\"a\" /* TranslationMessagesList */](jsonObj['id'], jsonObj['key'], jsonObj['english'], jsonObj['seletedLanguage'], jsonObj['actionFlag']);\r\n pageData.data.push(list);\r\n }\r\n }\r\n }\r\n pageData.page = page;\r\n return pageData;\r\n };\r\n TranslationMessagesResultService = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [])\r\n ], TranslationMessagesResultService);\r\n return TranslationMessagesResultService;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 792:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return TranslationMessagesList; });\nvar TranslationMessagesList = (function () {\r\n function TranslationMessagesList(id, key, english, seletedLanguage, actionFlag) {\r\n this.key = key;\r\n this.id = id;\r\n this.english = english;\r\n this.seletedLanguage = seletedLanguage;\r\n this.actionFlag = actionFlag;\r\n }\r\n return TranslationMessagesList;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 793:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return UserActivityDashboardList; });\nvar UserActivityDashboardList = (function () {\r\n function UserActivityDashboardList(username, createdAt, description, email, wpassId) {\r\n this.username = username;\r\n this.createdAt = createdAt;\r\n this.description = description;\r\n this.email = email;\r\n this.wpassId = wpassId;\r\n }\r\n return UserActivityDashboardList;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 794:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return UserActivityPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__user_activity_page__ = __webpack_require__(324);\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar UserActivityPageData = (function () {\r\n function UserActivityPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__user_activity_page__[\"a\" /* UserActivityPage */]();\r\n }\r\n return UserActivityPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 795:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BusinessUnitListDashboard; });\n/**\r\n * Created by shubham on 20/11/18.\r\n */\r\n/**\r\n * A model for an individual corporate employee\r\n */\r\nvar BusinessUnitListDashboard = (function () {\r\n function BusinessUnitListDashboard(countryId, countryName, businessUnitId, businessUnitName, emailVerified, customerNumber, selectedApplicationNames, status, active) {\r\n this.countryId = countryId;\r\n this.countryName = countryName;\r\n this.businessUnitId = businessUnitId;\r\n this.businessUnitName = businessUnitName;\r\n this.emailVerified = emailVerified;\r\n this.customerNumber = customerNumber;\r\n this.selectedApplicationNames = selectedApplicationNames;\r\n this.status = status;\r\n this.active = active;\r\n }\r\n return BusinessUnitListDashboard;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 796:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return BusinessUnitListPageData; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__businessUnitList_page__ = __webpack_require__(330);\n/**\r\n * Created by shubham on 20/11/18.\r\n */\r\n\r\n/**\r\n * An array of data with an associated page object used for paging\r\n */\r\nvar BusinessUnitListPageData = (function () {\r\n function BusinessUnitListPageData() {\r\n this.data = new Array();\r\n this.page = new __WEBPACK_IMPORTED_MODULE_0__businessUnitList_page__[\"a\" /* BusinessUnitListPage */]();\r\n }\r\n return BusinessUnitListPageData;\r\n}());\r\n\r\n\n\n/***/ }),\n\n/***/ 797:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export RequestBusinessUnitRoutes */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return RequestBusinessUnitRoutingModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__request_business_unit_component__ = __webpack_require__(331);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__add_business_unit_add_business_unit_component__ = __webpack_require__(327);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__business_unit_list_business_unit_list_component__ = __webpack_require__(328);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__view_business_unit_view_business_unit_component__ = __webpack_require__(333);\n/**\r\n * Created by shubham on 19/11/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\nvar RequestBusinessUnitRoutes = [\r\n {\r\n path: '',\r\n component: __WEBPACK_IMPORTED_MODULE_1__request_business_unit_component__[\"a\" /* RequestBusinessUnitComponent */],\r\n children: [\r\n { path: '', redirectTo: '/app/partners-dashboard', pathMatch: 'full' },\r\n { path: 'list', component: __WEBPACK_IMPORTED_MODULE_3__business_unit_list_business_unit_list_component__[\"a\" /* BusinessUnitListForUserComponent */] },\r\n { path: 'add', component: __WEBPACK_IMPORTED_MODULE_2__add_business_unit_add_business_unit_component__[\"a\" /* AddBusinessUnitForUserComponent */] },\r\n { path: 'view/:id', component: __WEBPACK_IMPORTED_MODULE_4__view_business_unit_view_business_unit_component__[\"a\" /* ViewBusinessUnitForUserComponent */] }\r\n ]\r\n }\r\n];\r\nvar RequestBusinessUnitRoutingModule = __WEBPACK_IMPORTED_MODULE_0__angular_router__[\"g\" /* RouterModule */].forChild(RequestBusinessUnitRoutes);\r\n\n\n/***/ }),\n\n/***/ 798:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export UserRoutes */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return UserRoutingModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__user_component__ = __webpack_require__(335);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__add_edit_user_add_edit_user_component__ = __webpack_require__(334);\n/**\r\n * Created by shubham on 16/4/18.\r\n */\r\n\r\n\r\n\r\nvar UserRoutes = [\r\n {\r\n path: '',\r\n component: __WEBPACK_IMPORTED_MODULE_1__user_component__[\"a\" /* UserComponent */],\r\n children: [\r\n { path: '', redirectTo: '/app/partners-dashboard', pathMatch: 'full' },\r\n { path: 'add', component: __WEBPACK_IMPORTED_MODULE_2__add_edit_user_add_edit_user_component__[\"a\" /* AddEditUserComponent */] },\r\n { path: 'edit/:id', component: __WEBPACK_IMPORTED_MODULE_2__add_edit_user_add_edit_user_component__[\"a\" /* AddEditUserComponent */] }\r\n ]\r\n }\r\n];\r\nvar UserRoutingModule = __WEBPACK_IMPORTED_MODULE_0__angular_router__[\"g\" /* RouterModule */].forChild(UserRoutes);\r\n\n\n/***/ }),\n\n/***/ 799:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export RequestRoutes */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return RequestRoutingModule; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__view_request_component__ = __webpack_require__(198);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__viewPartners_viewPartners_component__ = __webpack_require__(339);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__viewSubUsers_viewSubUsers_component__ = __webpack_require__(340);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__viewApplicationRequest_viewApplicationRequest_component__ = __webpack_require__(338);\n/**\r\n * Created by shubham on 16/4/18.\r\n */\r\n\r\n\r\n\r\n\r\n\r\nvar RequestRoutes = [\r\n {\r\n path: '',\r\n component: __WEBPACK_IMPORTED_MODULE_1__view_request_component__[\"b\" /* ViewRequestComponent */],\r\n children: [\r\n { path: '', redirectTo: '/app/admin-dashboard', pathMatch: 'full' },\r\n { path: 'viewPartners/:id', component: __WEBPACK_IMPORTED_MODULE_2__viewPartners_viewPartners_component__[\"a\" /* ViewPartnersRequestComponent */] },\r\n { path: 'viewSubUsers/:id', component: __WEBPACK_IMPORTED_MODULE_3__viewSubUsers_viewSubUsers_component__[\"a\" /* ViewSubUsersRequestComponent */] },\r\n { path: 'viewApplicationRequest/:id', component: __WEBPACK_IMPORTED_MODULE_4__viewApplicationRequest_viewApplicationRequest_component__[\"a\" /* ViewApplicationRequestComponent */] },\r\n ]\r\n }\r\n];\r\nvar RequestRoutingModule = __WEBPACK_IMPORTED_MODULE_0__angular_router__[\"g\" /* RouterModule */].forChild(RequestRoutes);\r\n\n\n/***/ }),\n\n/***/ 800:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (immutable) */ __webpack_exports__[\"main\"] = main;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__ = __webpack_require__(717);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app_module__ = __webpack_require__(718);\n\r\n\r\n\r\n// depending on the env mode, enable prod mode or add debugging modules\r\nif (true) {\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"enableProdMode\"])();\r\n}\r\nfunction main() {\r\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__[\"a\" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_2__app_app_module__[\"a\" /* AppModule */]);\r\n}\r\nif (document.readyState === 'complete') {\r\n main();\r\n}\r\nelse {\r\n document.addEventListener('DOMContentLoaded', main);\r\n}\r\n\n\n/***/ }),\n\n/***/ 92:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ErrorHandler; });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tslib__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__session_handler_service__ = __webpack_require__(16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__shared_services_common_service__ = __webpack_require__(24);\n\r\n\r\n\r\n\r\n\r\nvar ErrorHandler = (function () {\r\n function ErrorHandler(router, sessionHandler, commonService) {\r\n this.router = router;\r\n this.sessionHandler = sessionHandler;\r\n this.commonService = commonService;\r\n }\r\n ErrorHandler.prototype.handle = function (response) {\r\n if (response.error != undefined) {\r\n console.log(\"handling error\");\r\n if (response.error.code == 401 || response.error.code == 403) {\r\n console.log(\"Error : \" + response.error.message);\r\n if (response.error.message == \"Access token not valid\" || response.error.message == \"Session Expired\") {\r\n this.commonService.setLoginRedirectUrl(window.location.hash);\r\n }\r\n this.sessionHandler.clearAllItems();\r\n //this.sessionHandler.saveItem(\"lastUrl\", window.location.hash);\r\n this.router.navigate(['/login']);\r\n }\r\n else if (response.error.code == 404) {\r\n console.log(\"Forbidden : \" + response);\r\n window.location.href = \"/#/extra/404\";\r\n }\r\n else if (response.error.code == 500) {\r\n console.log(\"Server Exception : \" + response);\r\n window.location.href = \"/#/extra/500\";\r\n }\r\n }\r\n };\r\n ErrorHandler = __WEBPACK_IMPORTED_MODULE_0_tslib__[\"a\" /* __decorate */]([\r\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"Injectable\"])(),\r\n __WEBPACK_IMPORTED_MODULE_0_tslib__[\"b\" /* __metadata */](\"design:paramtypes\", [__WEBPACK_IMPORTED_MODULE_2__angular_router__[\"a\" /* Router */], __WEBPACK_IMPORTED_MODULE_3__session_handler_service__[\"a\" /* SessionHandler */], __WEBPACK_IMPORTED_MODULE_4__shared_services_common_service__[\"a\" /* CommonService */]])\r\n ], ErrorHandler);\r\n return ErrorHandler;\r\n}());\r\n\r\n\n\n/***/ })\n\n},[800]);\n\n\n// WEBPACK FOOTER //\n// js/main.4b19d3b0ec2854c06e4e.js","import { Component,OnInit } from '@angular/core';\nimport { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { HttpService } from '../../app/shared/services/http.service';\n\n@Component({\n template: require('./dialog.component.html')\n})\nexport class DialogComponent implements OnInit {\n public msg:any;\n public isConfirm: boolean = false;\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef) {}\n\n ngOnInit() {\n }\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n@Component({\n template: require('./registrationDialog.component.html')\n})\nexport class RegistrationDialogComponent implements OnInit {\n public msg:any;\n public isConfirm:boolean = false;\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef) {}\n\n ngOnInit() {\n }\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n@Component({\n template: require('./applicationRejectActionDialog.component.html')\n})\nexport class ApplicationRejectActionDialogComponent implements OnInit {\n\n public msg:any;\n RejectActionForm: FormGroup;\n public reasonDeatils: any;\n public isApproved: boolean;\n public isRejected: boolean;\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef,private formBuilder: FormBuilder) {}\n\n buildForm() {\n this.RejectActionForm = this.formBuilder.group({\n reason: this.formBuilder.control(null, [Validators.required])\n });\n this.RejectActionForm.valueChanges.subscribe(data => {\n this.reasonDeatils = this.RejectActionForm.getRawValue();\n });\n }\n\n ngOnInit(): void {\n this.buildForm();\n }\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n@Component({\n template: require('./dashboardActionDialogComponent.html')\n})\nexport class DashboardActionDialogComponent implements OnInit {\n public msg:any;\n ActionForm: FormGroup;\n public approveDetails:any;\n public rejectDetails:any;\n public multiApproveDetails:any;\n public multiRejectDetails:any;\n public isApproved:boolean = false;\n public isReject:boolean = false;\n public multiApproveRejectFlag: boolean;\n public actionStatus: any;\n public condition1Flag: any;\n public condition2Flag: any;\n public condition3Flag: any;\n public dashboard: any;\n public row: any;\n RoleData = [\n {\n \"id\": 1,\n \"name\": \"Service Partner\"\n }, {\n \"id\": 2,\n \"name\": \"Trade Partner\"\n }\n ];\n\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef,private formBuilder: FormBuilder) {}\n\n buildForm() {\n this.ActionForm = this.formBuilder.group({\n approveGroup: this.formBuilder.group({\n /*role: this.formBuilder.control(null, [Validators.required]),*/\n selectedPartnerType: this.formBuilder.control(null, [Validators.required]),\n customerNumber: this.formBuilder.control(this.row['customerNumber'] ? this.row['customerNumber']: null, [Validators.required])\n }),\n rejectGroup: this.formBuilder.group({\n reason: this.formBuilder.control(null, [Validators.required]),\n }),\n multiApproveGroup: this.formBuilder.group({\n /*role: this.formBuilder.control(null, [Validators.required]),*/\n selectedRadioValue: this.formBuilder.control(null, [Validators.required])\n }),\n multiRejectGroup: this.formBuilder.group({\n reason: this.formBuilder.control(null, [Validators.required]),\n selectedRadioValue: this.formBuilder.control(null, [Validators.required])\n })\n });\n this.ActionForm.valueChanges.subscribe(data => {\n let actionFormDetails = this.ActionForm.getRawValue();\n this.approveDetails = actionFormDetails.approveGroup;\n this.approveDetails['roleId'] = [];\n this.approveDetails['roleId'].push(this.approveDetails['role']);\n\n this.rejectDetails = actionFormDetails.rejectGroup;\n this.multiApproveDetails = actionFormDetails.multiApproveGroup;\n this.multiApproveDetails['roleId'] = [];\n this.multiApproveDetails['roleId'].push(this.multiApproveDetails['role']);\n\n this.multiRejectDetails = actionFormDetails.multiRejectGroup;\n\n if(this.condition3Flag){\n this.multiApproveDetails['selectedRadioValue'] = \"Approve All\";\n this.multiRejectDetails['selectedRadioValue'] = \"Approve All\";\n }\n });\n }\n\n ngOnInit(): void {\n this.buildForm();\n\n if(!this.row['customerNumberMandatory']){\n this.ActionForm.get('approveGroup').get('selectedPartnerType').setValidators(null);\n this.ActionForm.get('approveGroup').get('selectedPartnerType').updateValueAndValidity();\n this.ActionForm.get('approveGroup').get('customerNumber').setValidators(null);\n this.ActionForm.get('approveGroup').get('customerNumber').updateValueAndValidity();\n }\n\n if(this.condition2Flag != true){\n this.ActionForm.get('multiApproveGroup').get('selectedRadioValue').setValidators(null);\n this.ActionForm.get('multiApproveGroup').get('selectedRadioValue').updateValueAndValidity();\n this.ActionForm.get('multiRejectGroup').get('selectedRadioValue').setValidators(null);\n this.ActionForm.get('multiRejectGroup').get('selectedRadioValue').updateValueAndValidity();\n }\n }\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n@Component({\n template: require('./applicationDashboardActionDialogComponent.html')\n})\nexport class ApplicationDashboardActionDialogComponent implements OnInit {\n public msg:any;\n ActionForm: FormGroup;\n public multiApproveDetails:any;\n public multiRejectDetails:any;\n public isApproved:boolean = false;\n public isReject:boolean = false;\n public actionStatus: any;\n public condition1Flag: any;\n public condition2Flag: any;\n public condition3Flag: any;\n public dashboard: any;\n public row: any;\n public roles: any;\n public settings: any;\n\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef,private formBuilder: FormBuilder) {}\n\n buildForm() {\n this.ActionForm = this.formBuilder.group({\n multiApproveGroup: this.formBuilder.group({\n role: this.formBuilder.control(null, [Validators.required]),\n selectedRadioValue: this.formBuilder.control(null, [Validators.required]),\n }),\n multiRejectGroup: this.formBuilder.group({\n reason: this.formBuilder.control(null, [Validators.required]),\n selectedRadioValue: this.formBuilder.control(null, [Validators.required]),\n })\n });\n this.ActionForm.valueChanges.subscribe(data => {\n let actionFormDetails = this.ActionForm.getRawValue();\n\n this.multiApproveDetails = actionFormDetails.multiApproveGroup;\n this.multiApproveDetails['selectedRoles'] = [];\n for (let d in this.multiApproveDetails.role){\n this.multiApproveDetails['selectedRoles'].push(this.multiApproveDetails.role[d]['id']);\n }\n\n this.multiRejectDetails = actionFormDetails.multiRejectGroup;\n\n if(this.condition3Flag){\n this.multiApproveDetails['selectedRadioValue'] = \"Approve All\";\n this.multiRejectDetails['selectedRadioValue'] = \"Approve All\";\n }\n });\n }\n\n ngOnInit(): void {\n this.buildForm();\n if(this.condition2Flag != true){\n this.ActionForm.get('multiApproveGroup').get('selectedRadioValue').setValidators(null);\n this.ActionForm.get('multiApproveGroup').get('selectedRadioValue').updateValueAndValidity();\n this.ActionForm.get('multiRejectGroup').get('selectedRadioValue').setValidators(null);\n this.ActionForm.get('multiRejectGroup').get('selectedRadioValue').updateValueAndValidity();\n }\n }\n\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n\n@Component({\n template: require('./activeInactiveDialog.component.html')\n})\nexport class ActiveInactiveDialogComponent implements OnInit {\n public activeDeactive: any;\n public msg:any;\n public note: any;\n public systemSetting: any;\n public isConfirm:boolean = false;\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef) {}\n\n ngOnInit() {\n }\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n@Component({\n template: require('./csvErrorDialog.component.html')\n})\nexport class CSVErrorDialogComponent implements OnInit {\n public msg:any;\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef) {}\n\n ngOnInit() {\n }\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n@Component({\n template: require('./showApplicationDialog.component.html')\n})\nexport class ShowApplicationsDialogComponent implements OnInit {\n public apps:any;\n public profileFlag:any;\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef) {}\n\n ngOnInit() {}\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n@Component({\n template: require('./selectApplicationDialog.component.html')\n})\nexport class SelectApplicationsDialogComponent implements OnInit {\n ApplicationsForm: FormGroup;\n ApplicationsFormDetails: any;\n public settings = {};\n applications: any;\n applicationFlag: boolean;\n businessUnitId: any;\n\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef,private formBuilder: FormBuilder) {\n this.buildForm();\n }\n\n buildForm() {\n this.ApplicationsForm = this.formBuilder.group({\n applicationsData: this.formBuilder.control(null, [Validators.required])\n });\n\n this.ApplicationsForm.valueChanges.subscribe(data => {\n this.ApplicationsFormDetails = this.ApplicationsForm.getRawValue();\n this.ApplicationsFormDetails['businessUnitId'] = this.businessUnitId;\n\n this.ApplicationsFormDetails['applicationId'] = [];\n for (let d in this.ApplicationsFormDetails.applicationsData) {\n this.ApplicationsFormDetails['applicationId'].push(this.ApplicationsFormDetails.applicationsData[d]['id']);\n }\n this.ApplicationsFormDetails.validate = this.ApplicationsForm.valid;\n });\n\n this.ApplicationsForm.get('applicationsData').valueChanges.subscribe(data=> {\n if(data != null && data.length > 0){\n this.applicationFlag = false;\n } else {\n this.applicationFlag = true;\n }\n });\n }\n\n ngOnInit() {\n this.settings = {\n singleSelection: false,\n text:\"Select Application\",\n labelKey: \"name\",\n selectAllText:'Select All',\n unSelectAllText:'UnSelect All',\n classes:\"myclass custom-class\"\n };\n }\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n@Component({\n template: require('./welcomeDialog.component.html')\n})\nexport class WelcomeDialogComponent implements OnInit {\n public msg:any;\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef) {}\n\n ngOnInit() {\n }\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n// Bu Assignment Dialog.\n\n@Component({\n template: require('./buAssignmentDialog.component.html')\n})\nexport class BuAssignmentDialogComponent implements OnInit {\n public admins: any;\n public msg:any;\n public managerName:any;\n public isConfirm: boolean = false;\n public selectedAdmin;\n public selectedAdminData;\n constructor(public dialog: MdDialog,public dialogRef: MdDialogRef) {}\n\n \n ngOnInit() {\n }\n public closeDialog(){\n this.dialog.closeAll();\n }\n onChange(admin){\n this.isConfirm = true;\n this.selectedAdminData = admin;\n }\n closeBtn: boolean = false;\n dialogClose(result){\n this.closeBtn = result;\n }\n ngOnDestroy(): void{\n if(!this.closeBtn){\n this.dialogRef.close(this.selectedAdminData);\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/dialog/dialog.component.ts","\nfunction makeAppConfig() {\n let date = new Date();\n let year = date.getFullYear();\n \n let AppConfig = {\n brand: ' Whirlpool EMEA Partner Registration Portal',\n URL: 'https://backendservice-dot-whr-self-registration-prod.appspot.com',\n apiKey: 'AIzaSyC6hpVLEnGHyCEC-2sLZt4-AgUeil9Xdi0',\n google_client_id: '731139322915-nctt38kpf4dg8hufuo1kdaesod2dq2nd.apps.googleusercontent.com', //using prod client-id for all environments\n validNameRegex: /^[a-zA-Z0-9`$%&*_+-:,. ']+$/,\n toasterDefaultTimeOut: 2000,\n toasterDefaultPositionClass: 'toast-bottom-right', // 'toast-top-full-width', 'toast-bottom-full-width', 'toast-center',\n // 'toast-top-left', 'toast-top-center', 'toast-top-right',\n // 'toast-bottom-left', 'toast-bottom-center', 'toast-bottom-right',\n toastrType: {error:'error', info:'info', wait:'wait', success:'success', warning:'warning'},\n emailPattern: /^.+@.+\\..+$/,\n user: '',\n year: year,\n layoutBoxed: false, // true, false\n navCollapsed: true, // true, false\n navBehind: false, // true, false\n fixedHeader: true, // true, false\n sidebarWidth: 'middle', // small, middle, large \n theme: 'light', // light, gray, dark\n colorOption: '21', // 11,12,13,14,15,16; 21,22,23,24,25,26; 31,32,33,34,35,36\n AutoCloseMobileNav: true, // true, false. Automatically close sidenav on route change (Mobile only)\n productLink: '',\n systemAdmin:'SYSTEM_ADMIN',\n regionalAdmin:'REGIONAL_ADMIN',\n BUManager: 'BU_MANAGER',\n applicationManager: 'APPLICATION_MANAGER',\n serviceOwner:'SERVICE_OWNER',\n tradePartner:'TRADE_PARTNER',\n subuser:'SUBUSER'\n };\n\n return AppConfig;\n}\n\nexport const APPCONFIG = makeAppConfig();\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/config.ts","var map = {\n\t\"./af\": 438,\n\t\"./af.js\": 438,\n\t\"./ar\": 445,\n\t\"./ar-dz\": 439,\n\t\"./ar-dz.js\": 439,\n\t\"./ar-kw\": 440,\n\t\"./ar-kw.js\": 440,\n\t\"./ar-ly\": 441,\n\t\"./ar-ly.js\": 441,\n\t\"./ar-ma\": 442,\n\t\"./ar-ma.js\": 442,\n\t\"./ar-sa\": 443,\n\t\"./ar-sa.js\": 443,\n\t\"./ar-tn\": 444,\n\t\"./ar-tn.js\": 444,\n\t\"./ar.js\": 445,\n\t\"./az\": 446,\n\t\"./az.js\": 446,\n\t\"./be\": 447,\n\t\"./be.js\": 447,\n\t\"./bg\": 448,\n\t\"./bg.js\": 448,\n\t\"./bm\": 449,\n\t\"./bm.js\": 449,\n\t\"./bn\": 450,\n\t\"./bn.js\": 450,\n\t\"./bo\": 451,\n\t\"./bo.js\": 451,\n\t\"./br\": 452,\n\t\"./br.js\": 452,\n\t\"./bs\": 453,\n\t\"./bs.js\": 453,\n\t\"./ca\": 454,\n\t\"./ca.js\": 454,\n\t\"./cs\": 455,\n\t\"./cs.js\": 455,\n\t\"./cv\": 456,\n\t\"./cv.js\": 456,\n\t\"./cy\": 457,\n\t\"./cy.js\": 457,\n\t\"./da\": 458,\n\t\"./da.js\": 458,\n\t\"./de\": 461,\n\t\"./de-at\": 459,\n\t\"./de-at.js\": 459,\n\t\"./de-ch\": 460,\n\t\"./de-ch.js\": 460,\n\t\"./de.js\": 461,\n\t\"./dv\": 462,\n\t\"./dv.js\": 462,\n\t\"./el\": 463,\n\t\"./el.js\": 463,\n\t\"./en-SG\": 464,\n\t\"./en-SG.js\": 464,\n\t\"./en-au\": 465,\n\t\"./en-au.js\": 465,\n\t\"./en-ca\": 466,\n\t\"./en-ca.js\": 466,\n\t\"./en-gb\": 467,\n\t\"./en-gb.js\": 467,\n\t\"./en-ie\": 468,\n\t\"./en-ie.js\": 468,\n\t\"./en-il\": 469,\n\t\"./en-il.js\": 469,\n\t\"./en-nz\": 470,\n\t\"./en-nz.js\": 470,\n\t\"./eo\": 471,\n\t\"./eo.js\": 471,\n\t\"./es\": 474,\n\t\"./es-do\": 472,\n\t\"./es-do.js\": 472,\n\t\"./es-us\": 473,\n\t\"./es-us.js\": 473,\n\t\"./es.js\": 474,\n\t\"./et\": 475,\n\t\"./et.js\": 475,\n\t\"./eu\": 476,\n\t\"./eu.js\": 476,\n\t\"./fa\": 477,\n\t\"./fa.js\": 477,\n\t\"./fi\": 478,\n\t\"./fi.js\": 478,\n\t\"./fo\": 479,\n\t\"./fo.js\": 479,\n\t\"./fr\": 482,\n\t\"./fr-ca\": 480,\n\t\"./fr-ca.js\": 480,\n\t\"./fr-ch\": 481,\n\t\"./fr-ch.js\": 481,\n\t\"./fr.js\": 482,\n\t\"./fy\": 483,\n\t\"./fy.js\": 483,\n\t\"./ga\": 484,\n\t\"./ga.js\": 484,\n\t\"./gd\": 485,\n\t\"./gd.js\": 485,\n\t\"./gl\": 486,\n\t\"./gl.js\": 486,\n\t\"./gom-latn\": 487,\n\t\"./gom-latn.js\": 487,\n\t\"./gu\": 488,\n\t\"./gu.js\": 488,\n\t\"./he\": 489,\n\t\"./he.js\": 489,\n\t\"./hi\": 490,\n\t\"./hi.js\": 490,\n\t\"./hr\": 491,\n\t\"./hr.js\": 491,\n\t\"./hu\": 492,\n\t\"./hu.js\": 492,\n\t\"./hy-am\": 493,\n\t\"./hy-am.js\": 493,\n\t\"./id\": 494,\n\t\"./id.js\": 494,\n\t\"./is\": 495,\n\t\"./is.js\": 495,\n\t\"./it\": 497,\n\t\"./it-ch\": 496,\n\t\"./it-ch.js\": 496,\n\t\"./it.js\": 497,\n\t\"./ja\": 498,\n\t\"./ja.js\": 498,\n\t\"./jv\": 499,\n\t\"./jv.js\": 499,\n\t\"./ka\": 500,\n\t\"./ka.js\": 500,\n\t\"./kk\": 501,\n\t\"./kk.js\": 501,\n\t\"./km\": 502,\n\t\"./km.js\": 502,\n\t\"./kn\": 503,\n\t\"./kn.js\": 503,\n\t\"./ko\": 504,\n\t\"./ko.js\": 504,\n\t\"./ku\": 505,\n\t\"./ku.js\": 505,\n\t\"./ky\": 506,\n\t\"./ky.js\": 506,\n\t\"./lb\": 507,\n\t\"./lb.js\": 507,\n\t\"./lo\": 508,\n\t\"./lo.js\": 508,\n\t\"./lt\": 509,\n\t\"./lt.js\": 509,\n\t\"./lv\": 510,\n\t\"./lv.js\": 510,\n\t\"./me\": 511,\n\t\"./me.js\": 511,\n\t\"./mi\": 512,\n\t\"./mi.js\": 512,\n\t\"./mk\": 513,\n\t\"./mk.js\": 513,\n\t\"./ml\": 514,\n\t\"./ml.js\": 514,\n\t\"./mn\": 515,\n\t\"./mn.js\": 515,\n\t\"./mr\": 516,\n\t\"./mr.js\": 516,\n\t\"./ms\": 518,\n\t\"./ms-my\": 517,\n\t\"./ms-my.js\": 517,\n\t\"./ms.js\": 518,\n\t\"./mt\": 519,\n\t\"./mt.js\": 519,\n\t\"./my\": 520,\n\t\"./my.js\": 520,\n\t\"./nb\": 521,\n\t\"./nb.js\": 521,\n\t\"./ne\": 522,\n\t\"./ne.js\": 522,\n\t\"./nl\": 524,\n\t\"./nl-be\": 523,\n\t\"./nl-be.js\": 523,\n\t\"./nl.js\": 524,\n\t\"./nn\": 525,\n\t\"./nn.js\": 525,\n\t\"./pa-in\": 526,\n\t\"./pa-in.js\": 526,\n\t\"./pl\": 527,\n\t\"./pl.js\": 527,\n\t\"./pt\": 529,\n\t\"./pt-br\": 528,\n\t\"./pt-br.js\": 528,\n\t\"./pt.js\": 529,\n\t\"./ro\": 530,\n\t\"./ro.js\": 530,\n\t\"./ru\": 531,\n\t\"./ru.js\": 531,\n\t\"./sd\": 532,\n\t\"./sd.js\": 532,\n\t\"./se\": 533,\n\t\"./se.js\": 533,\n\t\"./si\": 534,\n\t\"./si.js\": 534,\n\t\"./sk\": 535,\n\t\"./sk.js\": 535,\n\t\"./sl\": 536,\n\t\"./sl.js\": 536,\n\t\"./sq\": 537,\n\t\"./sq.js\": 537,\n\t\"./sr\": 539,\n\t\"./sr-cyrl\": 538,\n\t\"./sr-cyrl.js\": 538,\n\t\"./sr.js\": 539,\n\t\"./ss\": 540,\n\t\"./ss.js\": 540,\n\t\"./sv\": 541,\n\t\"./sv.js\": 541,\n\t\"./sw\": 542,\n\t\"./sw.js\": 542,\n\t\"./ta\": 543,\n\t\"./ta.js\": 543,\n\t\"./te\": 544,\n\t\"./te.js\": 544,\n\t\"./tet\": 545,\n\t\"./tet.js\": 545,\n\t\"./tg\": 546,\n\t\"./tg.js\": 546,\n\t\"./th\": 547,\n\t\"./th.js\": 547,\n\t\"./tl-ph\": 548,\n\t\"./tl-ph.js\": 548,\n\t\"./tlh\": 549,\n\t\"./tlh.js\": 549,\n\t\"./tr\": 550,\n\t\"./tr.js\": 550,\n\t\"./tzl\": 551,\n\t\"./tzl.js\": 551,\n\t\"./tzm\": 553,\n\t\"./tzm-latn\": 552,\n\t\"./tzm-latn.js\": 552,\n\t\"./tzm.js\": 553,\n\t\"./ug-cn\": 554,\n\t\"./ug-cn.js\": 554,\n\t\"./uk\": 555,\n\t\"./uk.js\": 555,\n\t\"./ur\": 556,\n\t\"./ur.js\": 556,\n\t\"./uz\": 558,\n\t\"./uz-latn\": 557,\n\t\"./uz-latn.js\": 557,\n\t\"./uz.js\": 558,\n\t\"./vi\": 559,\n\t\"./vi.js\": 559,\n\t\"./x-pseudo\": 560,\n\t\"./x-pseudo.js\": 560,\n\t\"./yo\": 561,\n\t\"./yo.js\": 561,\n\t\"./zh-cn\": 562,\n\t\"./zh-cn.js\": 562,\n\t\"./zh-hk\": 563,\n\t\"./zh-hk.js\": 563,\n\t\"./zh-tw\": 564,\n\t\"./zh-tw.js\": 564\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 1213;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale ^\\.\\/.*$\n// module id = 1213\n// module chunks = 10","module.exports = \"\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/user-activity-logs/user-activity.logs.component.scss\n// module id = 1239\n// module chunks = 10","module.exports = \".loader-hidden {\\n visibility: hidden;\\n}\\n.loader-overlay {\\n position: absolute;\\n width:100%;\\n top:0;\\n left: 0;\\n opacity: 1;\\n z-index: 500000;\\n}\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/loader/loader.component.css\n// module id = 1240\n// module chunks = 10","module.exports = \"\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/activate-deactivate-request/activate-deactivate.component.html\n// module id = 1241\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n

{{ 'User Dashboard' | translate | uppercase }}

\\n
\\n
\\n
\\n
\\n = 1\\\" [childData]=selected\\n [count]=count [dashboard]=adminText\\n [searchedFilters]=searchedFilters [selectedCount]=selectedCount\\n [totalCount]=totalCount>\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n {{statusData.name | lowercase | translate}}\\n \\n \\n\\n
\\n
\\n \\n \\n {{country.name | translate}}\\n \\n \\n
\\n \\n \\n \\n \\n\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n
\\n \\n\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{row['Name']}}\\n \\n
    {{ 'Request Submission Date' | translate }}\\n
  • {{row['createdAt']}}
  • \\n
\\n
    {{ 'UserId Creation Date' | translate }}\\n
  • {{row['wpassCreatedAt']}}
  • \\n
\\n
\\n
\\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n
\\n

{{'pending' | translate}}

\\n
    \\n
  • \\n {{pending.name}}
  • \\n
\\n
\\n
\\n

{{'approved' | translate}}

\\n
    \\n
  • \\n {{approved.name}}
  • \\n
\\n
\\n
\\n

{{'rejected' | translate}}

\\n
    \\n
  • \\n {{rejected.name}}
  • \\n
\\n
\\n
\\n
\\n
\\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['email']}}\\n \\n \\n\\n \\n \\n {{'WPASS Id' | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n
\\n vpn_key\\n lock_open\\n
\\n
\\n
\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['countryName']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n
\\n mail_outline\\n
\\n
\\n
\\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{'view' | translate}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/admin-dashboard/admin-dashboard.component.html\n// module id = 1242\n// module chunks = 10","module.exports = \"\\n
\\n
\\n \\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/app.component.html\n// module id = 1243\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n
\\n

{{ 'Application Dashboard' | translate | uppercase }}

\\n\\n
\\n
\\n
\\n
\\n
\\n = 1\\\" [childData]=selected\\n [searchedFilters]=searchedFilters [dashboard]=applicationText [selectedCount]=selectedCount\\n [count]=count [totalCount]=totalCount>\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n \\n \\n {{statusData.name | lowercase | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{application.name | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{country.name | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{businessUnit.name | translate}}\\n \\n \\n
\\n \\n\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n \\n
\\n
\\n
\\n \\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n \\n\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{row['applicationName']}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['businessUnitName']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['countryName'] | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n \\n \\n\\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n \\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/applications-manager-dashboard/applications-manager-dashboard.component.html\n// module id = 1244\n// module chunks = 10","module.exports = \"\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/approve-reject-request/approve-reject.component.html\n// module id = 1245\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n

{{ msg | translate }}

\\n
{{ msg | translate }}
\\n

{{ note | translate }}

\\n

{{ systemSetting | translate}}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/activeInactiveDialog.component.html\n// module id = 1246\n// module chunks = 10","module.exports = \"
\\n
\\n\\n
\\n
{{ 'multi_rqst_approve_confirm' | translate }}
\\n
{{ 'multi_rqst_rjct_confirm' | translate }}
\\n \\n
{{ following_pages_request_notify | translate }}
\\n\\n
{{ 'rqst_approve_slctd_or_all_confirm' | translate }}
\\n
{{ 'rqst_rjct_slctd_or_all_confirm' | translate }}
\\n\\n
{{ 'rqst_approve_slctd_confirm' | translate }}
\\n
{{ 'rqst_rjct_slctd_confirm' | translate }}
\\n\\n
\\n
\\n
\\n \\n Reject Selected\\n Reject All\\n \\n\\n \\n \\n {{biography.value.length}} / 150\\n \\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\\n \\n {{ 'Approve Selected' | translate }}\\n {{ 'Approve All' | translate }}\\n \\n\\n
\\n \\n
\\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/applicationDashboardActionDialogComponent.html\n// module id = 1247\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
{{ msg | translate }}
\\n\\n
\\n
\\n
\\n \\n \\n {{biography.value.length}} / 150\\n \\n
\\n\\n \\n \\n
\\n
\\n \\n \\n \\n \\n\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/applicationRejectActionDialog.component.html\n// module id = 1248\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ msg | translate }}

\\n
{{ 'pls_select_a_replace_for' | translate }}\\n {{ managerName}}
\\n
\\n \\n \\n {{admin.name}}\\n \\n \\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/buAssignmentDialog.component.html\n// module id = 1249\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

\\n \\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/csvErrorDialog.component.html\n// module id = 1250\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
{{ msg | translate }}
\\n\\n
\\n
\\n
\\n \\n \\n {{biography.value.length}} / 150\\n \\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\\n\\n \\n
\\n
\\n  Partner Type? \\n \\n Service Partner\\n Trade Partner\\n \\n
\\n
\\n
\\n\\n \\n \\n {{customerNumberLength}} / 10\\n \\n
\\n\\n \\n \\n
\\n
\\n
\\n\\n
\\n
{{ 'multi_rqst_approve_confirm' | translate }}
\\n
{{ 'multi_rqst_rjct_confirm' | translate }}
\\n \\n
{{ following_pages_request_notify | translate }}
\\n\\n
{{ 'rqst_approve_slctd_or_all_confirm' | translate }}
\\n
{{ 'rqst_rjct_slctd_or_all_confirm' | translate }}
\\n\\n
{{ 'rqst_approve_slctd_confirm' | translate }}
\\n
{{ 'rqst_rjct_slctd_confirm' | translate }}
\\n\\n
\\n
\\n
\\n \\n {{'Reject Selected' | translate}}\\n {{'Reject All' | translate}}\\n \\n\\n \\n \\n {{biography.value.length}} / 150\\n \\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\\n \\n {{ 'Approve Selected' | translate }}\\n {{ 'Approve All' | translate }}\\n \\n\\n \\n
\\n\\n \\n \\n
\\n
\\n\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/dashboardActionDialogComponent.html\n// module id = 1251\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ msg | translate }}

\\n \\n \\n \\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/dialog.component.html\n// module id = 1252\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n
\\n

{{ 'Registration Successful' | translate }}

\\n
\\n
\\n check_circle\\n
\\n
\\n
\\n

{{ 'Thank You' | translate }}

\\n

{{ msg | translate }}

\\n \\n \\n \\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/registrationDialog.component.html\n// module id = 1253\n// module chunks = 10","module.exports = \"
\\n\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\\n
\\n\\n
\\n \\n \\n
\\n\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/selectApplicationDialog.component.html\n// module id = 1254\n// module chunks = 10","module.exports = \"
\\n
{{ 'Applications' | translate }}
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{ 'Applications' | translate }}{{ 'Application Name' | translate }}{{ 'Status' | translate }}{{ 'Role' | translate }}{{ 'Reject Reason' | translate }}
{{i + 1}}{{appsList}}{{appsList.applicationName}}{{appsList.status}}\\n {{appsList.status}}\\n {{appsList.status}}\\n {{appsList.status}}\\n {{appsList.status}}\\n {{appsList.selectedRoleNames}}{{appsList.message}}
\\n
\\n\\n
\\n \\n
\\n\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/showApplicationDialog.component.html\n// module id = 1255\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n\\n
{{ \\\"WelcomeLine1\\\" | translate }}
\\n
{{ \\\"WelcomeLine2\\\" | translate }}
\\n

{{ 'WelcomeLine3' | translate }} :

\\n

{{ 'WelcomeLine4' | translate }}

\\n

{{ 'WelcomeLine5' | translate }}

\\n

{{ \\\"WelcomeLine6\\\" | translate }}

\\n

{{ 'WelcomeLine7' | translate }}

\\n

{{ 'WelcomeLine8' | translate }}

\\n\\n \\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/dialog/welcomeDialog.component.html\n// module id = 1256\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'Data Upload' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'Data Information' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n {{ 'Role Maintenance' | translate }}\\n {{ 'User Migration' | translate }}\\n \\n
\\n\\n
\\n \\n \\n {{countryId.name | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{businessUnitId.name}}\\n \\n \\n
\\n
\\n
\\n \\n
\\n
\\n {{ 'Insert CSV file' | translate }}\\n \\n \\n
\\n
\\n {{ 'CSV Name' | translate }} : \\n \\n
\\n
\\n
\\n\\n
\\n
\\n

\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/file-upload/add-file/addFile.component.html\n// module id = 1257\n// module chunks = 10","module.exports = \"\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/file-upload/fileUpload.component.html\n// module id = 1258\n// module chunks = 10","module.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'MIGRATION INFORMATION' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['type'] | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['countryName'] | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['businessUnitName']}}\\n \\n \\n\\n \\n \\n {{'Uploaded By' | translate}}\\n \\n \\n {{row['uploadBy']}}\\n \\n \\n\\n \\n \\n {{'Uploaded At' | translate}} (UTC)\\n \\n \\n {{row['uploadedAt']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}info\\n \\n \\n\\n \\n \\n {{'Uploaded File' | translate}}\\n \\n \\n \\n {{row['csvName']}}\\n \\n \\n \\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/file-upload/fileUploadList/fileUploadList.component.html\n// module id = 1259\n// module chunks = 10","module.exports = \"\\n
\\n
\\n
\\n
\\n
\\n

{{'Reset Password' | translate}}

\\n
\\n
\\n
\\n
\\n \\n perm_identity\\n \\n \\n
\\n

\\n {{'after_reset_password_confirm' | translate}}\\n

\\n\\n
\\n \\n
\\n
\\n\\n \\n
\\n\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/forgot-password/forgotPassword.component.html\n// module id = 1260\n// module chunks = 10","module.exports = \"
\\n close\\n settings\\n\\n
\\n
\\n

Customizer

\\n

Customize and preview in real time.

\\n\\n
\\n

Layout Options

\\n
\\n \\n \\n

Fixed Header

\\n \\n
\\n \\n

Collapsed Sidebar

\\n \\n
\\n \\n

Full Width Header

\\n \\n
\\n \\n

Boxed Layout

\\n \\n
\\n \\n

Sidebar Width

\\n \\n small\\n middle\\n large\\n \\n
\\n
\\n\\n\\n
\\n

Color Options

\\n

Tip: Additionally, you can active \\\"Full Width Header\\\" above

\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n \\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n
\\n
\\n \\n \\n \\n \\n \\n \\n
\\n
\\n\\n\\n\\n
\\n

Theme Options

\\n
\\n\\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n \\n\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/layout/customizer/customizer.component.html\n// module id = 1261\n// module chunks = 10","module.exports = \"\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/layout/footer/footer.component.html\n// module id = 1262\n// module chunks = 10","module.exports = \"
\\n
= 0,\\n 'bg-color-dark': AppConfig.colorOption === '31',\\n 'bg-color-primary': ['22','32'].indexOf(AppConfig.colorOption) >= 0,\\n 'bg-color-success': ['23','33'].indexOf(AppConfig.colorOption) >= 0,\\n 'bg-color-info': ['24','34'].indexOf(AppConfig.colorOption) >= 0,\\n 'bg-color-warning': ['25','35'].indexOf(AppConfig.colorOption) >= 0,\\n 'bg-color-danger': ['26','36'].indexOf(AppConfig.colorOption) >= 0}\\\">\\n\\n
\\n \\n menu\\n \\n \\n
\\n\\n
\\n
    \\n
  • \\n \\n \\n \\n \\n power_settings_new\\n

    {{ 'Logout' | translate }}

    \\n
    \\n
    \\n
    \\n
  • \\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/layout/header/header.component.html\n// module id = 1263\n// module chunks = 10","module.exports = \"\\n\\n
\\n \\n\\n
\\n
\\n
\\n \\n
\\n
\\n\\n \\n
\\n
\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/layout/layout.component.html\n// module id = 1264\n// module chunks = 10","module.exports = \"
\\n
\\n \\n
\\n \\n\\n
\\n Press Esc key to dismiss\\n
\\n
\\n
\\n
\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/layout/search-overlay/search-overlay.component.html\n// module id = 1265\n// module chunks = 10","module.exports = \"\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/layout/sidenav/sidenav-menu/sidenav-menu.component.html\n// module id = 1266\n// module chunks = 10","module.exports = \"\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/layout/sidenav/sidenav.component.html\n// module id = 1267\n// module chunks = 10","module.exports = \"\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/loader/loader.component.html\n// module id = 1268\n// module chunks = 10","module.exports = \"\\n
\\n
\\n
\\n\\n
\\n
\\n \\n

{{ 'WelcomeLine1' | translate }}

\\n
\\n\\n
\\n
{{ 'Login As Whirlpool Partner' | translate}}
\\n
\\n
\\n
\\n
\\n
\\n language\\n
\\n
\\n \\n {{languageId.name}} \\n \\n
\\n
\\n
\\n
\\n \\n perm_identity\\n \\n \\n
\\n
\\n \\n lock_outline\\n \\n \\n

visibility

\\n

visibility_off

\\n
\\n
\\n
\\n \\n \\n
\\n
\\n\\n
\\n\\n
\\n \\n
\\n\\n
\\n
\\n\\n
\\n
\\n\\n
\\n
\\n
\\n

{{'I forgot my password' | translate}}

\\n
\\n
\\n

{{'unlock_account' | translate}}

\\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/login/login.component.html\n// module id = 1269\n// module chunks = 10","module.exports = \"\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/multi-approve-reject/multi-approve-reject.component.html\n// module id = 1270\n// module chunks = 10","module.exports = \"
\\n\\n
Blank
\\n\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/page-layouts/fullscreen/fullscreen.component.html\n// module id = 1271\n// module chunks = 10","module.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'Dashboard' | translate | uppercase }}

\\n

{{ 'Sub Users' | translate | uppercase }}

\\n
\\n
\\n \\n \\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n \\n \\n {{statusData.name | lowercase | translate}}\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n \\n\\n \\n \\n\\n \\n \\n {{'Name' | translate}}\\n \\n \\n \\n {{row['Name']}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['roleName']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['email']}}\\n \\n \\n\\n \\n \\n {{'WPASS Id' | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n {{row['status'] | lowercase | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/partners-dashboard/partners-dashboard.component.html\n// module id = 1272\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n\\n
\\n

{{ 'Change Email Address' | translate }}?

\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n {{ 'Email Id Mismatch' | translate }}\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n\\n
\\n

{{ 'Change Password' | translate }}?

\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n

visibility

\\n

visibility_off

\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n

visibility

\\n

visibility_off

\\n\\n
\\n info\\n
\\n
    \\n
  • {{ 'pass_8_chars' | translate }}
  • \\n
  • {{ 'pass_one_upper_lower_char' | translate }}
  • \\n
  • {{ 'pass_one_number' | translate }}
  • \\n
  • {{ 'pass_no_userId' | translate }}
  • \\n
\\n
\\n
\\n
\\n {{ passwordErrorMsg | translate }}\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n

visibility

\\n

visibility_off

\\n
\\n {{ 'Password Mismatch' | translate }}\\n
\\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/profile/emailPasswordActionDialogComponent.html\n// module id = 1273\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'Profile' | translate | uppercase }}

\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'Profile Information' | translate }}

\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{profileData.firstName}}

\\n
\\n
\\n \\n

{{profileData.lastName}}

\\n
\\n
\\n \\n {{languageData.name}} \\n \\n
\\n
\\n \\n

{{profileData.email}}

\\n
\\n
\\n \\n

{{profileData.countryName | translate}}

\\n
\\n
\\n \\n

{{profileData.status | lowercase | translate}}

\\n
\\n
\\n \\n

{{profileData.userId_WPASS}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n

{{profileData.createdAt}}

\\n
\\n
\\n \\n

{{profileData.wpassCreatedAt}}

\\n
\\n
\\n \\n
\\n
\\n \\n

{{profileData.companyName}}

\\n
\\n
\\n \\n

{{profileData.companyAddress}}

\\n
\\n
\\n \\n

{{profileData.companyPhone}}

\\n
\\n
\\n \\n

{{profileData.roleName}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Business Unit Information' | translate }}

\\n\\n
\\n
\\n 0\\\">\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{'Application Name' | translate }}{{'Business Unit' | translate }}{{'Customer Number' | translate }}{{'Status' | translate }}{{'Role' | translate }}
{{i + 1}}\\n near_me \\n {{appData.applicationName}}\\n {{appData.businessUnitName}}{{appData.customerNumber}}{{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.selectedRoleNames}}
\\n
\\n
\\n\\n \\n
\\n\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/profile/profile.component.html\n// module id = 1274\n// module chunks = 10","module.exports = \"\\n
\\n
\\n\\n
\\n
\\n
{{ 'Register Now' | translate }}
\\n
\\n\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n \\n\\n

visibility

\\n

visibility_off

\\n\\n
\\n info\\n
\\n
    \\n
  • {{ 'pass_8_chars' | translate }}
  • \\n
  • {{ 'pass_one_upper_lower_char' | translate }}
  • \\n
  • {{ 'pass_one_number' | translate }}
  • \\n
\\n
\\n
\\n
\\n {{ passwordErrorMsg | translate }}\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n {{ 'Password Mismatch' | translate }}\\n
\\n
\\n
\\n \\n\\n \\n \\n {{countryId.name | translate}}\\n \\n \\n
\\n
\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n
\\n \\n \\n {{businessUnitId.name}}\\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n {{languageId.name}}\\n \\n \\n
\\n
\\n \\n \\n {{customerNumberLength}} / 10\\n \\n
\\n
\\n \\n \\n {{biography.value.length}} / 130\\n \\n
\\n
\\n
\\n\\n
0\\\">\\n

{{ 'Application Details' | translate }}

\\n\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n \\n
\\n \\n
\\n
\\n
\\n
\\n\\n
\\n\\n
\\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/registration/registration.component.html\n// module id = 1275\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'Admin Management' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'Create Admin' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n {{language.name}}\\n \\n \\n
\\n
\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/adminManagement/addAdmin/addAdmin.component.html\n// module id = 1276\n// module chunks = 10","module.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'ADMIN LIST' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n \\n \\n {{adminRole.name}}\\n \\n \\n
\\n
\\n \\n \\n {{statusData.name | uppercase | translate}}\\n \\n \\n
\\n\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n \\n\\n \\n\\n \\n \\n {{'Name' | translate}}\\n \\n \\n \\n {{row['Name']}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['email']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['roleName']}}\\n \\n \\n\\n \\n \\n {{'WPASS Id' | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | uppercase | translate}}\\n {{row['status'] | uppercase | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/adminManagement/adminList/adminList.component.html\n// module id = 1277\n// module chunks = 10","module.exports = \"\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/adminManagement/adminManagement.component.html\n// module id = 1278\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'Admin Management' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'View Admin' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{adminDetails.firstName}}

\\n
\\n
\\n \\n

{{adminDetails.lastName}}

\\n
\\n
\\n \\n

{{adminDetails.email}}

\\n
\\n
\\n \\n

{{adminDetails.languageName}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n \\n \\n
\\n
\\n \\n

{{adminDetails.roleName}}

\\n
\\n
\\n \\n

{{adminDetails.userId_WPASS}}

\\n
\\n
\\n \\n

{{adminDetails.createdAt}}

\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/adminManagement/viewAdmin/viewAdmin.component.html\n// module id = 1279\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'Application Management' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'Create Application' | translate }}

\\n

{{ 'Update Application' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Application Details' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n
\\n
\\n

{{ 'Manager' | translate }}

\\n \\n \\n
\\n
\\n
\\n

{{managersMessage | translate}}

\\n
\\n
\\n
\\n
\\n\\n
\\n

{{ \\\"Application Roles\\\" | translate }}

\\n
\\n {{ \\\"Country Specific Roles\\\" | translate }}\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n {{'default' | translate}}\\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n

{{skipManagerApprovalMessage | translate}}

\\n
\\n
\\n
\\n\\n\\n \\n
0\\\" formArrayName=\\\"countries\\\">\\n
\\n
\\n \\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n {{'default' | translate}}\\n
\\n
\\n \\n \\n \\n
\\n
\\n\\n
\\n
\\n
\\n

{{skipManagerApprovalMessage | translate}}

\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n\\n\\n \\n\\n\\n
\\n \\n \\n \\n {{country.name | translate}}\\n \\n \\n
\\n
\\n
\\n

{{skipManagerApprovalMessage | translate}}

\\n
\\n
\\n
\\n
\\n\\n\\n\\n
\\n\\n\\n\\n
\\n
\\n
\\n {{ \\\"Allow Multiple Roles\\\" | translate }}\\n
\\n
\\n {{ \\\"Customer Number Required\\\" | translate }}\\n
\\n
\\n {{ \\\"Skip Manager Approval\\\" | translate }}\\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/applicationManagement/addApplication/addApplication.component.html\n// module id = 1280\n// module chunks = 10","module.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'APPLICATION LIST' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n \\n \\n {{statusData.name | uppercase | translate}}\\n \\n \\n
\\n\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n \\n\\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{row['applicationName']}}\\n \\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n done\\n clear\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n done\\n clear\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n done\\n clear\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | uppercase | translate}}\\n {{row['status'] | uppercase | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/applicationManagement/applicationList/applicationList.component.html\n// module id = 1281\n// module chunks = 10","module.exports = \"\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/applicationManagement/applicationManagement.component.html\n// module id = 1282\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'Manager Assignment' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'Assign Manager' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n {{country.name | translate}}\\n \\n \\n
\\n
\\n \\n \\n {{businessUnit.name}}\\n \\n \\n
\\n
\\n \\n

{{ 'Managers' | translate }}

\\n \\n \\n
\\n
\\n

{{ 'Applications' | translate }}

\\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/managerAssignment/addManager/addManager.component.html\n// module id = 1283\n// module chunks = 10","module.exports = \"\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/managerAssignment/managerAssignment.component.html\n// module id = 1284\n// module chunks = 10","module.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'ASSIGNMENT LIST' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n {{statusData.name | uppercase | translate}}\\n \\n \\n \\n \\n {{country.name | translate}}\\n \\n \\n \\n \\n {{businessUnit.name | translate}}\\n \\n \\n \\n \\n {{application.name | translate}}\\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n\\n
\\n\\n
\\n \\n\\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n \\n {{row['Name']}}\\n \\n \\n \\n\\n \\n \\n {{'WPASS Id' | translate}}\\n \\n \\n {{row['userId_WPASS']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['countryName'] | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['businessUnitName']}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{'view' | translate}}\\n \\n \\n\\n \\n \\n {{column.name | translate}}\\n \\n \\n {{row['status'] | uppercase | translate}}\\n {{row['status'] | uppercase | translate}}\\n \\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/managerAssignment/managerList/managerList.component.html\n// module id = 1285\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'Manager Assignment' | translate }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'View Manager' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{managerDetails.firstName}}

\\n
\\n \\n
\\n \\n

{{managerDetails.userId_WPASS}}

\\n
\\n
\\n \\n

{{managerDetails.email}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n

{{managerDetails.countryName | translate}}

\\n
\\n
\\n \\n

{{managerDetails.businessUnitName}}

\\n
\\n
\\n \\n

{{managerDetails.createdAt}}

\\n
\\n
\\n \\n

{{ 'Managers' | translate }}

\\n \\n \\n
\\n
\\n

{{ 'Applications' | translate }}

\\n \\n \\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/managerAssignment/viewManager/viewManager.component.html\n// module id = 1286\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'System Settings' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'WPASS Information' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n Please enter valid url\\n
\\n
\\n
\\n \\n \\n \\n
\\n\\n
\\n {{ 'Change Password' | translate }} \\n
\\n\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n info\\n
    \\n
  • {{ 'pass_8_chars' | translate }}
  • \\n
  • {{ 'pass_one_upper_lower_char' | translate }}
  • \\n
  • {{ 'pass_one_number' | translate }}
  • \\n
\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n \\n \\n \\n
\\n {{ 'Password Mismatch' | translate }}\\n
\\n
\\n\\n
\\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/system-level-setting/wpass/wpass.component.html\n// module id = 1287\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n

{{ 'translation_email' | translate | uppercase }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n\\n
\\n
\\n \\n {{languageData.name}}\\n \\n \\n
\\n
\\n\\n \\n
\\n
\\n
\\n\\n
\\n\\n
\\n\\n \\n
\\n
\\n
\\n
\\n
\\n
{{ 'choose_subject' | translate }}
\\n
\\n
\\n
\\n
\\n
\\n \\n
{{i.text}}
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n\\n
\\n
{{ 'email_subject' | translate }}
\\n \\n \\n
\\n \\n
\\n \\n
{{ 'email_body' | translate }}
\\n \\n \\n
\\n
\\n
\\n \\n \\n
\\n \\n
\\n \\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/translation-email/translation-email.component.html\n// module id = 1288\n// module chunks = 10","module.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'translation_messages' | translate | uppercase }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n {{languageData.name}}\\n \\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n \\n\\n \\n\\n\\n\\n \\n \\n {{column.name}}\\n \\n \\n {{row['english']}}\\n \\n \\n\\n \\n \\n {{column.name}}\\n \\n \\n\\n \\n \\n \\n \\n \\n {{column.name | translate}}\\n \\n \\n\\n \\n\\n \\n \\n\\n \\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/translation-messages/translation-messages.component.html\n// module id = 1289\n// module chunks = 10","module.exports = \"\\n
\\n
\\n
\\n
\\n
\\n

{{'unlock_account' | translate}}

\\n
\\n
\\n
\\n
\\n \\n perm_identity\\n \\n \\n
\\n

\\n {{'after_unlock_account_confirm' | translate}}\\n

\\n\\n
\\n \\n
\\n
\\n\\n \\n
\\n\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/unlock-account/unlockAccount.component.html\n// module id = 1290\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n

{{ 'user_activity' | translate | uppercase }}

\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n
\\n \\n \\n \\n\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n {{column.name}}\\n \\n \\n {{row['username']}}\\n \\n \\n \\n \\n {{column.name}}\\n \\n \\n {{row['wpassId']}}\\n \\n \\n \\n \\n {{column.name}}\\n \\n \\n {{row['createdAt']}}\\n \\n \\n \\n \\n {{column.name}}\\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/user-activity-logs/user-activity.logs.component.html\n// module id = 1291\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'Request Application' | translate }}

\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n

{{ 'NEW APPLICATION' | translate }}

\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n {{businessUnit.name}}\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/user-operations/request-business-unit/add-business-unit/add-business-unit.component.html\n// module id = 1292\n// module chunks = 10","module.exports = \"
\\n
\\n\\n
\\n
\\n

{{ 'my_requests' | translate | uppercase }}

\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n
\\n \\n \\n {{application.name}}\\n \\n \\n
\\n
\\n \\n \\n \\n \\n
\\n
\\n
\\n

{{ 'filter_apply_info' | translate }}

\\n
\\n
\\n
\\n\\n
\\n\\n 0\\\">\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{'Application Name' | translate }}{{'Business Unit' | translate }}{{'Customer Number' | translate }}{{'Status' | translate }}{{'Role' | translate }}
{{i + 1}}\\n near_me \\n {{appData.applicationName}}\\n {{appData.businessUnitName}}{{appData.customerNumber}}{{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.selectedRoleNames}}
\\n
\\n\\n
\\n
\\n
\\n

{{ 'No Data' | translate }}

\\n
\\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/user-operations/request-business-unit/business-unit-list/business-unit-list.component.html\n// module id = 1293\n// module chunks = 10","module.exports = \"\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/user-operations/request-business-unit/request-business-unit.component.html\n// module id = 1294\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n

{{ 'Request Business Unit' | translate }}

\\n
\\n
\\n \\n \\n \\n \\n
\\n
\\n\\n
\\n
\\n

{{ 'View Business Unit' | translate }}

\\n
\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n

{{businessUnitDetails.countryName}}

\\n
\\n
\\n \\n

{{businessUnitDetails.businessUnitName}}

\\n
\\n
\\n \\n

{{businessUnitDetails.customerNumber}}

\\n
\\n
\\n \\n

{{businessUnitDetails.status}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Applications Information' | translate }}

\\n\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#Application NameApplication StatusRejection Message
{{i + 1}}{{application.applicationName}}{{application.status | lowercase | translate}}\\n {{application.status | lowercase | translate}}\\n {{application.status | lowercase | translate}}\\n {{application.message}}
\\n
\\n
\\n\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/user-operations/request-business-unit/view-business-unit/view-business-unit.component.html\n// module id = 1295\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n \\n\\n

visibility

\\n

visibility_off

\\n\\n
\\n info\\n
\\n
    \\n
  • {{ 'pass_8_chars' | translate }}
  • \\n
  • {{ 'pass_one_upper_lower_char' | translate }}
  • \\n
  • {{ 'pass_one_number' | translate }}
  • \\n
  • {{ 'pass_no_userId' | translate }}
  • \\n
\\n
\\n
\\n
\\n {{ passwordErrorMsg | translate }}\\n
\\n
\\n
\\n\\n
\\n
\\n \\n \\n \\n
\\n {{ 'Password Mismatch' | translate }}\\n
\\n
\\n
\\n \\n \\n {{languageId.name}}\\n \\n \\n
\\n
\\n
\\n\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/user/add-edit-user/add-edit-user.component.html\n// module id = 1296\n// module chunks = 10","module.exports = \"
\\n
\\n
{{ 'Manage User' | translate }}
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n
\\n

{{ 'Add User' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/user/user.component.html\n// module id = 1297\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n\\n
\\n

{{ 'Change Email Address' | translate }}?

\\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n {{ 'Email Id Mismatch' | translate }}\\n
\\n
\\n\\n
\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/viewRequest/emailActionDialogComponent.html\n// module id = 1298\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n {{ 'WPASS Id' | translate }}: {{userId}}\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n
\\n

{{ 'User Information' | translate }}

\\n
\\n \\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/viewRequest/view-request.component.html\n// module id = 1299\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{ApplicationsRequestData.userName}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.userEmail}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.countryName | translate}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n
\\n \\n

{{ApplicationsRequestData.businessUnitName}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.customerNumber}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.status | lowercase | translate}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.userId_WPASS}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Applications Information' | translate }}

\\n
\\n \\n

{{ApplicationsRequestData.applicationName}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.approverName}}

\\n
\\n
\\n \\n

{{ApplicationsRequestData.createdAt}}

\\n
\\n
\\n \\n
\\n

{{ApplicationsRequestData.message}}

\\n
\\n
\\n
\\n

\\n {{ 'BU manager suggested partner Type:' | translate }} {{ApplicationsRequestData.partnerType}}\\n

\\n \\n \\n
\\n
\\n\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/viewRequest/viewApplicationRequest/viewApplicationRequest.component.html\n// module id = 1300\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{formData.firstName}}

\\n
\\n
\\n \\n

{{formData.lastName}}

\\n
\\n
\\n \\n

\\n {{formData.email}}  \\n \\n   \\n
\\n \\n \\n check_circle  \\n highlight_off\\n \\n\\n

\\n
\\n
\\n \\n

{{formData.languageName}}

\\n
\\n
\\n \\n

{{formData.countryName | translate}}

\\n
\\n
\\n \\n

{{formData.roleName}}

\\n
\\n
\\n \\n

{{formData.status | lowercase | translate}}

\\n
\\n
\\n \\n

{{formData.userId_WPASS}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n\\n
\\n \\n

{{formData.createdAt}}

\\n
\\n
\\n \\n

{{formData.wpassCreatedAt}}

\\n
\\n
\\n \\n
\\n
\\n \\n

{{formData.companyName}}

\\n
\\n
\\n \\n

{{formData.companyPhone}}

\\n
\\n
\\n \\n

{{formData.companyAddress}}

\\n
\\n
\\n\\n
\\n
\\n

{{ 'Business Unit Information' | translate }}

\\n\\n
\\n
\\n 0\\\">\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{'Application Name' | translate }}{{'Business Unit' | translate }}\\n
\\n {{'Customer Number' | translate }} \\n \\n
\\n
{{'Status' | translate }}{{'Role' | translate }}
{{i + 1}}\\n near_me \\n {{appData.applicationName}}\\n {{appData.businessUnitName}}\\n {{appData.customerNumber}}\\n \\n   \\n \\n \\n check_circle  \\n highlight_off\\n \\n {{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.status | lowercase | translate}}\\n {{appData.selectedRoleNames}}
\\n
\\n
\\n
\\n\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/viewRequest/viewPartners/viewPartners.component.html\n// module id = 1301\n// module chunks = 10","module.exports = \"
\\n
\\n
\\n
\\n

{{ 'Personal Information' | translate }}

\\n
\\n \\n

{{formData.firstName}}

\\n
\\n
\\n \\n

{{formData.lastName}}

\\n
\\n
\\n \\n

{{formData.email}}

\\n
\\n
\\n \\n

{{formData.languageName}}

\\n
\\n
\\n \\n

{{formData.status}}

\\n
\\n
\\n \\n

{{formData.roleName}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Corporate Information' | translate }}

\\n\\n
\\n \\n

{{formData.userId_WPASS}}

\\n
\\n
\\n \\n

{{formData.createdAt}}

\\n
\\n
\\n \\n

{{formData.wpassCreatedAt}}

\\n
\\n
\\n\\n
\\n\\n
\\n

{{ 'Business Unit Information' | translate }}

\\n\\n
\\n
\\n 0\\\">\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
#{{'Application Name' | translate }}{{'Business Unit' | translate }}{{'Customer Number' | translate }}{{'Status' | translate }}{{'Role' | translate }}
{{i + 1}}\\n near_me \\n {{appData.applicationName}}\\n {{appData.businessUnitName}}{{appData.customerNumber}}{{appData.status}}\\n {{appData.status}}\\n {{appData.status}}\\n {{appData.selectedRoleNames}}
\\n
\\n
\\n\\n \\n
\\n\\n
\\n\\n
\\n
\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/viewRequest/viewSubUsers/viewSubUsers.component.html\n// module id = 1302\n// module chunks = 10","module.exports = \".datePicker {\\n float: left;\\n width: 30%; }\\n\\n::ng-deep .custom-field-class ng2-input-autocomplete {\\n overflow-wrap: break-word; }\\n\\n::ng-deep .custom-textfield-class ng2-input-autocomplete {\\n overflow-wrap: break-word; }\\n\\n::ng-deep .custom-md-table * {\\n height: auto !important; }\\n\\n::ng-deep .custom-md-table datatable-body-row {\\n height: auto !important; }\\n\\n::ng-deep .custom-md-table .datatable-body-cell {\\n white-space: normal !important;\\n overflow: visible !important;\\n height: auto !important;\\n line-height: 1.3 !important; }\\n\\n::ng-deep .custom-md-table .datatable-body-cell-label span {\\n white-space: normal !important;\\n overflow: visible !important; }\\n\\n::ng-deep .autocomplete ::-webkit-input-placeholder {\\n color: transparent; }\\n\\n::ng-deep .margin-tag {\\n margin-top: 15px; }\\n\\n::ng-deep .filter-select {\\n float: left;\\n margin-top: -16px !important;\\n margin-bottom: 19px; }\\n\\n::ng-deep textarea {\\n resize: none; }\\n\\n::ng-deep .f-s-18 {\\n font-size: 18px; }\\n\\n::ng-deep .m-l-20 {\\n margin-left: 21px; }\\n\\n/*Vertical Tabs*/\\n.mdl-tabs__panel {\\n display: none; }\\n\\n.vertical-mdl-tabs .mdl-tabs__tab-bar {\\n -ms-flex-direction: column;\\n flex-direction: column;\\n height: inherit;\\n border-bottom: none; }\\n\\n.vertical-mdl-tabs .mdl-tabs__tab {\\n width: 100%;\\n height: auto;\\n line-height: 20px;\\n box-sizing: border-box;\\n letter-spacing: 0px;\\n overflow: visible !important;\\n border-bottom: 1px solid #b9c7d2;\\n padding: 8px;\\n cursor: pointer; }\\n\\n.md-pad {\\n padding-left: 5px; }\\n\\n.containerEditor {\\n background-color: #fff;\\n padding: 0px; }\\n\\n.vertical-mdl-tabs .mdl-tabs__tab:hover {\\n background: rgba(158, 158, 158, 0.34);\\n color: black; }\\n\\n.left-css {\\n background-color: #2d3440 !important;\\n color: #fbfafa !important;\\n border-radius: 4px !important; }\\n\\n.style1 {\\n background-color: #49b1ef;\\n border-top-right-radius: 50px;\\n border-bottom-right-radius: 50px;\\n width: 100%;\\n height: auto;\\n line-height: 20px;\\n box-sizing: border-box;\\n letter-spacing: 0px;\\n overflow: visible !important;\\n border-bottom: 0px solid #b9c7d2;\\n padding: 8px;\\n cursor: pointer; }\\n\\n.style2 {\\n width: 100%;\\n height: auto;\\n line-height: 20px;\\n box-sizing: border-box;\\n letter-spacing: 0px;\\n overflow: visible !important;\\n border-bottom: 1px solid #b9c7d2;\\n padding: 8px;\\n cursor: pointer;\\n background: #d4dee9d6 !important; }\\n\\n.vertical-mdl-tabs.mdl-tabs.is-upgraded a.mdl-tabs__tab.is-active:active {\\n border-right: 3px solid #ED462F; }\\n\\n.vertical-mdl-tabs.mdl-tabs.is-upgraded .mdl-tabs__tab.is-active:after {\\n content: inherit;\\n height: 0; }\\n\\n.vertical-mdl-tabs.mdl-tabs.is-upgraded .mdl-tabs__panel.is-active, .mdl-tabs__panel {\\n padding: 0 30px; }\\n\\n.vertical-mdl-tabs.mdl-tabs .mdl-tabs__tab {\\n text-align: left; }\\n\\n.text-center {\\n text-align: center; }\\n\\n.mdl-tabs.is-upgraded .mdl-tabs__tab.is-active {\\n color: #E21549; }\\n\\n.ckeEditor-1 {\\n width: 100%;\\n margin-bottom: 15px; }\\n\\n.ckeEditor-2 {\\n width: 100%;\\n margin-bottom: 15px; }\\n\\n.p-l-16 {\\n padding-left: 16px; }\\n\\n.m-0 {\\n margin: 0px !important; }\\n\\n.m-l.40 {\\n margin-left: -40px; }\\n\\n::ng-deep .custom-field-class input {\\n height: 35px !important;\\n border-radius: 3px !important;\\n border: 1px solid #ccc !important;\\n padding: 10px;\\n width: 100%;\\n max-width: 174px; }\\n\\n::ng-deep .custom-textfield-class input {\\n height: 35px !important;\\n border-radius: 3px !important;\\n border: 1px solid #ccc !important;\\n padding: 10px;\\n width: 100%; }\\n\\n::ng-deep .data-loading + ng2-input-autocomplete .autocomplete input {\\n background-color: #ffffff;\\n background-image: url(\\\"../assets/images/autocomplete-loader.gif\\\");\\n background-size: 18px 18px;\\n background-position: 96% 50%;\\n background-repeat: no-repeat; }\\n\\n::ng-deep .Data-Search + ng2-input-autocomplete .autocomplete ul {\\n height: 200px !important;\\n padding: 10px !important;\\n overflow-y: auto; }\\n\\n::ng-deep .Data-Search + ng2-input-autocomplete .autocomplete ul li {\\n cursor: pointer !important;\\n border-bottom: 0.5px solid #d4d4d4 !important; }\\n\\n::ng-deep .table-filter-box {\\n display: -ms-flexbox;\\n display: flex;\\n position: relative;\\n width: 100%;\\n -ms-flex-direction: row;\\n flex-direction: row;\\n -ms-flex-flow: wrap;\\n flex-flow: wrap; }\\n ::ng-deep .table-filter-box > .datepicker-custom {\\n min-width: 180px;\\n max-width: 100%; }\\n ::ng-deep .table-filter-box > .datepicker-custom button {\\n height: 90%; }\\n ::ng-deep .table-filter-box > div {\\n margin-right: 15px;\\n margin-bottom: 10px; }\\n ::ng-deep .table-filter-box > div:last-child {\\n margin-right: auto !important; }\\n\\n@media (max-width: 767px) {\\n ::ng-deep .action-btn-group {\\n display: -ms-flexbox;\\n display: flex;\\n -ms-flex-flow: wrap;\\n flex-flow: wrap;\\n -ms-flex-direction: row;\\n flex-direction: row; }\\n ::ng-deep .action-btn-group > .action-btn {\\n width: auto !important;\\n margin-bottom: 10px; }\\n ::ng-deep .table-filter-box {\\n -ms-flex-direction: column !important;\\n flex-direction: column !important; }\\n ::ng-deep .table-filter-box > div {\\n width: 100%; }\\n ::ng-deep .table-filter-box input {\\n width: 100% !important;\\n margin-bottom: 10px !important; } }\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/newCommon.scss\n// module id = 132\n// module chunks = 10","/**\n * Created by shubham on 22/5/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { Http} from '@angular/http';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { ActivateDeactivateComponent } from '../activate-deactivate-request/activate-deactivate.component';\nimport {TranslateModule,TranslateLoader,TranslateStaticLoader} from 'ng2-translate';\nimport { APPCONFIG } from '../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n ActivateDeactivateComponent\n ],\n exports: [\n ActivateDeactivateComponent,\n ]\n})\n\nexport class ActivateDeactivateModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/activate-deactivate-request/activate-deactivate-request.module.ts","/**\n * Created by shubham on 27/2/18.\n */\n\nimport { Injectable,Component } from '@angular/core';\nimport { Http, Response, Headers, RequestOptions } from '@angular/http';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/catch';\nimport { SessionHandler } from './session-handler.service';\nimport { ErrorHandler } from './error-handler.service';\nimport { APPCONFIG } from '../../config';\nimport { Observable } from 'rxjs/Rx';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { LoaderService } from '../../loader/loader.service';\nimport { DialogComponent } from '../../dialog/dialog.component';\nimport { Router } from '@angular/router';\nimport {TranslateService} from 'ng2-translate';\nimport { CommonService } from '../../shared/services/common.service';\n\n\n@Injectable()\nexport class HttpService {\n\n public url:any = APPCONFIG.URL+\"/_ah/api\";\n\n public dialogRef;\n public headers = new Headers({'Content-Type': 'application/json','apiKey':''});\n constructor(private http: Http,private router: Router,private LoaderService: LoaderService, private dialog: MdDialog,public sessionHandler : SessionHandler,\n public errorHandler: ErrorHandler, private translate: TranslateService, public commonService:CommonService) {}\n\n getRequestWithoutAuth(url, showLoader) : Observable {\n if(showLoader) {this.showLoader();}\n let headers;\n headers = new Headers({ 'Content-Type': 'application/json', 'apiKey': APPCONFIG.apiKey});\n \n return this.http.get(this.url +\"/\"+url,{headers: headers})\n .map((res:Response) => this.errorCheckFunction(res.json(),url))\n .catch((error:any) => Observable.throw(this.handleError(error.json(),url)));\n }\n getRequestWithoutLoader(url) : Observable {\n this.sessionHandler.saveItem(\"timestamp\", Math.round(new Date().getTime()/1000.0));\n let loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\n let headers;\n let accessToken;\n if(loginDataArray){accessToken = loginDataArray['accessToken'];}\n headers = new Headers({ 'Content-Type': 'application/json', 'apiKey':APPCONFIG.apiKey, 'access-token': accessToken});\n \n return this.http.get(this.url +\"/\"+url,{headers: headers})\n .map((res:Response) => this.errorCheckFunction(res.json(),url))\n .catch((error:any) => Observable.throw(this.handleError(error.json(),url)));\n }\n getRequest(url) : Observable {\n this.sessionHandler.saveItem(\"timestamp\", Math.round(new Date().getTime()/1000.0));\n this.showLoader();\n let loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\n let headers;\n let accessToken;\n if(loginDataArray){accessToken = loginDataArray['accessToken'];}\n headers = new Headers({ 'Content-Type': 'application/json', 'apiKey':APPCONFIG.apiKey, 'access-token': accessToken});\n \n return this.http.get(this.url +\"/\"+url,{headers: headers})\n .map((res:Response) => this.errorCheckFunction(res.json(),url))\n .catch((error:any) => Observable.throw(this.handleError(error.json(),url)));\n }\n getRequestForAutocomplete(url) : Observable {\n this.sessionHandler.saveItem(\"timestamp\", Math.round(new Date().getTime()/1000.0));\n let loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\n let accessToken;\n let headers;\n if(loginDataArray){accessToken = loginDataArray['accessToken'];}\n headers = new Headers({ 'Content-Type': 'application/json', 'apiKey':APPCONFIG.apiKey, 'access-token': accessToken});\n\n return this.http.get(this.url +\"/\"+url,{headers: headers})\n .map((res:Response) => this.errorCheckFunction(res.json(),url))\n .catch((error:any) => Observable.throw(this.handleError(error.json(),url)));\n }\n\n postRequest(body: Object,api:string): Observable {\n this.sessionHandler.saveItem(\"timestamp\", Math.round(new Date().getTime()/1000.0));\n this.showLoader();\n\n let loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\n let accessToken;\n let headers;\n\n if(loginDataArray){\n accessToken = loginDataArray['accessToken'];\n }\n\n let bodyString = JSON.stringify(body);\n if(api == 'userOperationsApi/v1/wpasslogin' || api == 'userOperationsApi/v1/googleLogin' || api == 'userRegistrationsApi/v1/register/serviceOwner'){\n headers = new Headers({ 'Content-Type': 'application/json', 'apiKey':APPCONFIG.apiKey});\n } else{\n headers = new Headers({ 'Content-Type': 'application/json', 'apiKey':APPCONFIG.apiKey, 'access-token': accessToken});\n }\n let options = new RequestOptions({ headers: headers });\n\n return this.http.post(this.url+\"/\"+api, body, options)\n .map((res:Response) => this.errorCheckFunction(res.json(),api))\n .catch((error:any) => Observable.throw(this.handleError(error.json(),api)))\n }\n\n public noUserError(){\n localStorage.clear();\n //this.commonService.setLoginRedirectUrl(window.location.hash);\n this.router.navigateByUrl('/login');\n this.onEnd();\n }\n\n public onEnd(): void {\n this.hideLoader();\n }\n\n public showLoader(): void {\n this.LoaderService.show();\n }\n public hideLoader(): void {\n this.LoaderService.hide();\n }\n\n public handleError(e: any,api) {\n let errorJson = e;\n\n if(errorJson.error && (api == 'userOperationsApi/v1/googleLogin' || api == 'userOperationsApi/v1/wpasslogin')){\n let msg = errorJson.error.message;\n this.translate.get(msg).subscribe((res: string) => {\n alert(res);\n });\n /*this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = errorJson.error.message;*/\n } else if(errorJson.error && (api != 'userOperationsApi/v1/googleLogin' && api != 'userOperationsApi/v1/wpasslogin')){\n if(errorJson.error.code != 400 && errorJson.error.code != 412 && errorJson.error.code != 503){\n this.errorHandler.handle(errorJson);\n } else if(errorJson.error.code == 412 || errorJson.error.code == 503){\n this.dialogRef = this.dialog.open(DialogComponent,{disableClose:true});\n this.dialogRef.componentInstance.msg = \"Something_went_wrong\";\n } else{\n this.dialogRef = this.dialog.open(DialogComponent,{disableClose:true});\n this.dialogRef.componentInstance.msg = errorJson.error.message;\n if(errorJson.error.message == 'INVITATION_USED') {\n this.dialogRef.afterClosed().subscribe(result => {\n this.router.navigateByUrl('/login');\n });\n }\n }\n }\n\n this.hideLoader();\n return false;\n }\n\n public errorCheckFunction(jsonResult, api) {\n return jsonResult;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/shared/services/http.service.ts","/**\n * Created by shubham on 27/2/18.\n */\n\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class SessionHandler {\n public prevUrl:any;\n\n constructor() { }\n\n saveItem(key,value){\n localStorage.setItem(key,value);\n }\n\n getItem(key){;\n return localStorage.getItem(key);\n }\n\n removeItem(key){\n localStorage.removeItem(key);\n }\n\n clearAllItems(){\n localStorage.clear();\n }\n\n setRedirectionUrl(prevUrl: any) {\n this.prevUrl = prevUrl;\n }\n\n getRedirectionUrl() {\n return this.prevUrl;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/shared/services/session-handler.service.ts","import { Component } from '@angular/core';\n\n@Component({\n selector: 'my-app-layout',\n template: require('./layout.component.html'),\n})\nexport class LayoutComponent {\n constructor(){}\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/layout.component.ts","/**\n * Created by shubham on 27/2/18.\n */\n\nimport { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs/Subject';\n\nimport { LoaderState } from './loader';\n\n@Injectable()\n\nexport class LoaderService {\n\n private loaderSubject = new Subject();\n\n loaderState = this.loaderSubject.asObservable();\n\n constructor() { }\n\n show() {\n this.loaderSubject.next({show: true});\n }\n\n hide() {\n this.loaderSubject.next({show: false});\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/loader/loader.service.ts","/**\n * Created by shubham on 20/4/18.\n */\n\nimport { Component, OnInit } from '@angular/core';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { HttpService } from '../shared/services/http.service';\nimport { APPCONFIG } from '../config';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\nimport { DialogComponent, ShowApplicationsDialogComponent } from '../dialog/dialog.component';\nimport { TranslateService } from 'ng2-translate';\ndeclare const gapi: any;\n\n@Component({\n selector: 'my-profile',\n styles: [],\n template: require('./profile.component.html'),\n providers: []\n})\n\nexport class ProfileComponent {\n dialogRef;\n userDetails:any;\n LanguageData:any;\n ProfileForm: FormGroup;\n ProfileFormDetails: any;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isApplicationManager = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n data: any;\n profileData: any;\n responseLanguageId: any;\n flag: any;\n businessUnitsFlag: boolean = false;\n businessUnitWithApplicationAndRoles = [];\n businessUnitWithAppRolesProfile = [];\n\n constructor(private dialog: MdDialog, public httpService: HttpService, public sessionHandler: SessionHandler,\n private formBuilder: FormBuilder, private translate: TranslateService){\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.applicationManager)) {\n this.isApplicationManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n //Close Sidebar Initially\n APPCONFIG.navCollapsed = true;\n\n this.getLanguages();\n\n if(this.isSystemAdmin || this.isBUManager || this.isRegionalAdmin || this.isApplicationManager){\n if(this.isSystemAdmin){\n this.flag = 'systemAdmin';\n }\n if(this.isBUManager || this.isRegionalAdmin){\n this.flag = 'buManager';\n }\n if(this.isApplicationManager){\n this.flag = 'applicationManager';\n }\n this.profileData = this.userDetails;\n if(this.profileData.languageId){\n this.setLanguage(this.profileData.languageId);\n }\n }\n this.checkNotAdminRole(false, true);\n }\n\n public checkNotAdminRole(langFlag, getDataFlag){\n if(this.isServiceOwner || this.isTradePartner){\n this.flag = 'partners';\n if(getDataFlag){\n this.getPartnersProfileData(langFlag);\n }\n }\n if(this.isSubUser){\n this.flag = 'subUsers';\n if(getDataFlag){\n this.getSubUsersProfileData(langFlag);\n }\n }\n }\n\n //Get Languages Details\n public getLanguages(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(\n res => { this.saveLanguageResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n //Save Languages Response\n public saveLanguageResponse(res) {\n if(res && res.items){\n this.LanguageData = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getPartnersProfileData(langFlag){\n this.httpService.getRequest('partnerOperationsApi/v1/partnerDetails').subscribe(\n res => { this.savePartnersProfileData(res, langFlag) },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public savePartnersProfileData(res, langFlag) {\n if(res){\n this.profileData = res;\n if(this.profileData){\n if(this.profileData.businessUnits){\n this.businessUnitsFlag = true;\n }\n if(this.profileData.languageId){\n this.setLanguage(this.profileData.languageId);\n }\n\n\n if(this.profileData.businessUnitWithApplicationAndRoles){\n this.businessUnitWithApplicationAndRoles = this.profileData.businessUnitWithApplicationAndRoles;\n\n for(let businessUnit in this.businessUnitWithApplicationAndRoles) {\n for(let appAndRoles in this.businessUnitWithApplicationAndRoles[businessUnit]['applications']){\n let temp = [];\n temp['businessUnitName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitName'];\n temp['customerNumber'] = this.businessUnitWithApplicationAndRoles[businessUnit]['customerNumber'];\n temp['applicationName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationName'];\n temp['selectedRoleNames'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['selectedRoleNames'];\n temp['url'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['url'];\n\n let actionObject = {};\n if( this.businessUnitWithApplicationAndRoles[businessUnit]['statusCode'] != 'APPROVED' ){\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit];\n } else {\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles];\n }\n temp['statusCode'] = actionObject['statusCode'];\n temp['status'] = actionObject['status'];\n temp['message'] = actionObject['message'];\n\n this.businessUnitWithAppRolesProfile.push(temp);\n }\n }\n }\n\n /*if(this.profileData.businessUnitWithApplicationAndRoles){\n this.businessUnitWithApplicationAndRoles = this.profileData.businessUnitWithApplicationAndRoles;\n\n for(let appIndex in this.businessUnitWithApplicationAndRoles){\n if(!this.businessUnitWithApplicationAndRoles[appIndex]['message']){\n this.businessUnitWithApplicationAndRoles[appIndex]['message'] = \"\";\n }\n }\n }*/\n }\n\n if(langFlag){\n this.setAppLanguage();\n }\n this.httpService.onEnd();\n } else if(res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_load_failed';\n this.httpService.onEnd();\n }\n }\n\n public getSubUsersProfileData(langFlag){\n this.httpService.getRequest('partnerOperationsApi/v1/companyUser').subscribe(\n res => { this.saveSubUsersProfileData(res, langFlag) },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveSubUsersProfileData(res, langFlag) {\n if(res){\n this.profileData = res;\n if(this.profileData){\n if(this.profileData.businessUnits){\n this.businessUnitsFlag = true;\n }\n if(this.profileData.languageId){\n this.setLanguage(this.profileData.languageId);\n }\n }\n if(langFlag){\n this.setAppLanguage();\n }\n this.httpService.onEnd();\n } else if(res.errorStatus == 'Fail'){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_load_failed';\n this.httpService.onEnd();\n }\n }\n\n public setLanguage(languageId){\n this.responseLanguageId = languageId;\n this.buildForm();\n }\n\n buildForm() {\n this.ProfileForm = this.formBuilder.group({\n languageId: this.formBuilder.control(this.responseLanguageId, [Validators.required])\n });\n this.ProfileForm.valueChanges.subscribe(data => {\n this.ProfileFormDetails = this.ProfileForm.getRawValue();\n });\n }\n\n public onLanguageChange(value: String){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'lang_update_confirm';\n this.dialogRef.componentInstance.isConfirm = true;\n this.dialogRef.afterClosed().subscribe(result => {\n if(result){\n this.httpService.postRequest(this.ProfileFormDetails,'userOperationsApi/v1/languageUpdate').subscribe(\n res => { this.saveLnaguageChangeResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n } else{\n this.ProfileForm.controls['languageId'].setValue(this.responseLanguageId);\n }\n });\n }\n\n public saveLnaguageChangeResponse(res){\n this.httpService.onEnd();\n if(res) {\n this.profileData = res;\n this.setLanguage(this.profileData.languageId);\n this.sessionHandler.saveItem(\"loginData\", JSON.stringify(res));\n this.setAppLanguage();\n if(this.isServiceOwner || this.isTradePartner || this.isSubUser) {\n this.checkNotAdminRole(true, false);\n }\n }\n }\n\n public setAppLanguage(){\n this.sessionHandler.saveItem(\"languageId\", this.profileData.languageId);\n this.translate.setDefaultLang(this.profileData.languageId);\n this.translate.use(this.profileData.languageId);\n\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"lang_update_success\";\n }\n\n selectedOption;\n public performAction(action){\n this.dialogRef = this.dialog.open(EmailPasswordActionDialogComponent);\n this.dialogRef.componentInstance.action = action;\n this.dialogRef.componentInstance.currentEmailAddress = this.profileData.email;\n this.dialogRef.componentInstance.userId = this.userDetails.id;\n this.dialogRef.componentInstance.userDetails = this.userDetails;\n this.dialogRef.afterClosed().subscribe(result => {\n this.data = result;\n });\n }\n\n setProfileAction(action, profileFormData){\n this.dialog.closeAll();\n if(action == 'changeEmail'){\n this.httpService.postRequest(profileFormData,'userOperationsApi/v1/selfEmailUpdate').subscribe(\n res => { this.saveResponse(res, 'changeEmail'); },\n err => { this.httpService.onEnd(); }\n );\n } else if(action == 'changePassword'){\n this.httpService.postRequest(profileFormData,'userOperationsApi/v1/changePassword').subscribe(\n res => { this.saveResponse(res, 'changePassword'); },\n err => { this.httpService.onEnd(); }\n );\n }\n }\n public saveResponse(res, action){\n this.httpService.onEnd();\n if(res){\n if(action == 'changePassword'){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'Password updated successfully';\n } else if(action == 'changeEmail'){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'account_update_request_notify';\n }\n }\n }\n\n showApplicationsWithRoles(apps){\n this.dialogRef = this.dialog.open(ShowApplicationsDialogComponent);\n for(let appIndex in apps){\n if(!apps[appIndex]['message']){\n apps[appIndex]['message'] = \"\";\n }\n }\n this.dialogRef.componentInstance.apps = apps;\n this.dialogRef.componentInstance.profileFlag = true;\n }\n\n ngOnInit(): void {\n this.buildForm();\n }\n}\n\n@Component({\n providers:[ProfileComponent],\n template: require('./emailPasswordActionDialogComponent.html')\n})\nexport class EmailPasswordActionDialogComponent implements OnInit {\n currentEmailAddress: any;\n action: any;\n userId: any;\n userDetails: any;\n changeEmail: any;\n changePass: any;\n ProfileActionForm: FormGroup;\n profileEmailDetails: any;\n profilePasswordDetails: any;\n emailPattern = APPCONFIG.emailPattern;\n //passwordPattern = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$/;\n passwordPattern = /^(?=.*?[A-Za-z])(?=.*?[0-9]).{5,}$/;\n passwordErrorMsg: string = '';\n\n constructor(public dialog: MdDialog, public dialogRef: MdDialogRef, private formBuilder: FormBuilder, private profileComponent: ProfileComponent) {\n this.changeEmail = 'changeEmail';\n this.changePass = 'changePassword';\n }\n\n buildForm() {\n this.ProfileActionForm = this.formBuilder.group({\n emailGroup: this.formBuilder.group({\n currentEmailAddress: this.formBuilder.control({value: this.currentEmailAddress, disabled: true}, [Validators.required, Validators.pattern(this.emailPattern)]),\n email: this.formBuilder.control(null, [Validators.required, Validators.pattern(this.emailPattern)]),\n confirmEmail: this.formBuilder.control(null, [Validators.required, Validators.pattern(this.emailPattern)])\n },{validator: this.checkEmail}),\n passwordGroup: this.formBuilder.group({\n currentPassword: this.formBuilder.control(null, [Validators.required]),\n password: this.formBuilder.control(null, [Validators.required, Validators.minLength(8), Validators.maxLength(8), Validators.pattern(this.passwordPattern)]),\n confirmPassword: this.formBuilder.control(null, [Validators.required, Validators.pattern(this.passwordPattern)])\n },{validator: this.checkPassword})\n });\n this.ProfileActionForm.valueChanges.subscribe(data => {\n let profileDetails = this.ProfileActionForm.getRawValue();\n this.profileEmailDetails = profileDetails.emailGroup;\n this.profileEmailDetails['id'] = this.userId;\n this.profilePasswordDetails = profileDetails.passwordGroup;\n });\n\n this.ProfileActionForm.get('passwordGroup').get('password').valueChanges.subscribe(data=> {\n if(data != null && data != \"\"){\n this.ProfileActionForm.get('passwordGroup').get('password').setErrors({'incorrect': true});\n if(!/.*[A-Z]/.test(data) || !/.*[a-z]/.test(data)){\n this.passwordErrorMsg = \"pass_one_upper_lower_char\";\n } else if(!/.*[0-9]/.test(data)){\n this.passwordErrorMsg = \"pass_one_number\";\n } else if(data.length != 8){\n this.passwordErrorMsg = \"pass_8_chars\";\n } else if(data.toLowerCase().includes(this.userDetails.userId_WPASS.toLowerCase())){\n this.passwordErrorMsg = \"pass_no_userId\";\n } else{\n this.passwordErrorMsg = \"\";\n this.ProfileActionForm.get('passwordGroup').get('password').setErrors(null);\n }\n }\n })\n }\n\n checkEmail(group: FormGroup) {\n if(group.get('email').value === group.get('confirmEmail').value){\n return null;\n } else{\n group.get('confirmEmail').setErrors({'incorrect': true});\n return {'mismatch': true};\n }\n }\n\n checkPassword(group: FormGroup) {\n if(group.get('password').value === group.get('confirmPassword').value){\n group.get('confirmPassword').setErrors(null);\n return null;\n } else{\n group.get('confirmPassword').setErrors({'incorrect': true});\n return {'mismatch': true};\n }\n }\n\n showPassword(input: any): any {\n input.type = input.type === 'password' ? 'text' : 'password';\n }\n\n ngOnInit(): void {\n this.buildForm();\n }\n\n changeEmailAddress() {\n this.profileComponent.setProfileAction(this.changeEmail, this.profileEmailDetails);\n }\n\n changePassword() {\n this.profileComponent.setProfileAction(this.changePass, this.profilePasswordDetails);\n }\n\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/profile/profile.component.ts","/**\n * Created by shubham on 16/4/18.\n */\n\nimport { Component, OnInit } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { HttpService } from '../shared/services/http.service';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';\nimport { CommonService } from '../shared/services/common.service';\nimport { APPCONFIG } from '../config';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n template: require('./view-request.component.html')\n})\n\nexport class ViewRequestComponent {\n data: any = [];\n dialogRef;\n userId: any;\n userEmail: any;\n id: any;\n ownerId: any;\n userDetails: any;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isApplicationManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n showApproveReject:boolean = false;\n dynamicViewText: any;\n languageId: any;\n\n constructor(private router: Router, private route: ActivatedRoute, private httpService: HttpService, private sessionHandler:SessionHandler,\n private dialog: MdDialog, private commonService: CommonService, private translate: TranslateService) {\n\n this.languageId = this.sessionHandler.getItem('languageId');\n if(!this.languageId){\n this.languageId = \"EN\";\n }\n this.translate.use(this.languageId);\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.applicationManager)) {\n this.isApplicationManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.commonService.viewData.subscribe((value) => {\n this.data = value;\n if(this.data){\n if(this.data.userId_WPASS){\n this.userId = this.data.userId_WPASS;\n } else{\n this.translate.get('pending').subscribe((res: string) => {\n this.userId = res;\n });\n }\n this.id = this.data.id;\n this.ownerId = this.data.ownerId;\n this.userEmail = this.data.email;\n }\n if(this.isBUManager || this.isRegionalAdmin || this.isApplicationManager){\n this.commonService.viewDataFlag.subscribe((value) => {\n if(value){\n this.dynamicViewText = value;\n if(this.dynamicViewText == 'subUsersView'){\n this.showApproveReject = false;\n } else if(this.dynamicViewText == 'partnersView'){\n\n if(this.data['businessUnitWithApplicationAndRoles']){\n for(let businessUnit of this.data['businessUnitWithApplicationAndRoles']){\n if(businessUnit.statusCode == \"PENDING\" && businessUnit.sessionUserManager){\n this.showApproveReject = true;\n this.data['businessUnitId'] = businessUnit.businessUnitId;\n break;\n } else{\n this.showApproveReject = false;\n }\n }\n } else{\n this.showApproveReject = false;\n }\n } else {\n this.showApproveReject = false;\n }\n }\n });\n } else if(this.isServiceOwner || this.isTradePartner){}\n });\n }\n\n selectedOption;\n public performAction(action){\n this.dialogRef = this.dialog.open(EmailActionDialogComponent);\n this.dialogRef.componentInstance.action = action;\n this.dialogRef.componentInstance.currentEmailAddress = this.userEmail;\n this.dialogRef.componentInstance.userId = this.id;\n this.dialogRef.afterClosed().subscribe(result => {\n this.data = result;\n });\n }\n\n setProfileAction(action, profileFormData){\n this.dialog.closeAll();\n if(action == 'changeEmail'){\n this.httpService.postRequest(profileFormData,'userOperationsApi/v1/emailUpdate').subscribe(\n res => { this.saveResponse(res, 'changeEmail'); },\n err => { this.httpService.onEnd(); }\n );\n }\n }\n\n public saveResponse(res, action){\n this.httpService.onEnd();\n if(res){\n if(action == 'changePassword'){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'Password updated successfully';\n } else if(action == 'changeEmail'){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'account_update_request_notify';\n }\n }\n }\n}\n\n@Component({\n providers:[ViewRequestComponent],\n template: require('./emailActionDialogComponent.html')\n})\nexport class EmailActionDialogComponent implements OnInit {\n currentEmailAddress: any;\n action: any;\n userId: any;\n changeEmail: any;\n EmailActionForm: FormGroup;\n EmailDetails: any;\n emailPattern = APPCONFIG.emailPattern;\n\n constructor(public dialog: MdDialog, public dialogRef: MdDialogRef, private formBuilder: FormBuilder,\n private viewRequestComponent: ViewRequestComponent) {\n this.changeEmail = 'changeEmail';\n }\n\n buildForm() {\n this.EmailActionForm = this.formBuilder.group({\n emailGroup: this.formBuilder.group({\n currentEmailAddress: this.formBuilder.control({value: this.currentEmailAddress, disabled: true}, [Validators.required, Validators.pattern(this.emailPattern)]),\n email: this.formBuilder.control(null, [Validators.required, Validators.pattern(this.emailPattern)]),\n confirmEmail: this.formBuilder.control(null, [Validators.required, Validators.pattern(this.emailPattern)])\n },{validator: this.checkEmail})\n });\n this.EmailActionForm.valueChanges.subscribe(data => {\n let profileDetails = this.EmailActionForm.getRawValue();\n this.EmailDetails = profileDetails.emailGroup;\n this.EmailDetails['id'] = this.userId;\n });\n }\n\n checkEmail(group: FormGroup) {\n if(group.get('email').value === group.get('confirmEmail').value){\n return null;\n } else{\n group.get('confirmEmail').setErrors({'incorrect': true});\n return {'mismatch': true};\n }\n }\n\n ngOnInit(): void {\n this.buildForm();\n }\n\n changeEmailAddress() {\n this.viewRequestComponent.setProfileAction(this.changeEmail, this.EmailDetails);\n }\n\n public closeDialog(){\n this.dialog.closeAll();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/viewRequest/view-request.component.ts","/**\n * Created by shubham on 27/2/18.\n */\n\nimport { Injectable } from '@angular/core';\nimport {Subject} from 'rxjs/Subject';\n\n@Injectable()\nexport class CommonService {\n\n private loginRedirectUrl: string;\n public viewData = new Subject();\n public viewDataFlag = new Subject();\n public userData = new Subject();\n public adminDashboard = new Subject();\n public partnersDashboard = new Subject();\n public applicationDashboard = new Subject();\n public partnersView = new Subject();\n public subUsersView = new Subject();\n public adminList = new Subject();\n public managerList = new Subject();\n public applicationList = new Subject();\n\n constructor() {}\n\n setLoginRedirectUrl(url: string) {\n this.loginRedirectUrl = url;\n }\n\n getLoginRedirectUrl():string {\n return this.loginRedirectUrl;\n }\n\n changeViewData(data, flag){\n this.viewData.next(data);\n this.viewDataFlag.next(flag);\n }\n\n changeUserData(data){\n this.userData.next(data);\n }\n\n changeAdminDashboardData(){\n this.adminDashboard.next();\n }\n\n changePartnersDashboardData(){\n this.partnersDashboard.next();\n }\n\n changeApplicationDashboardData(){\n this.applicationDashboard.next();\n }\n\n changePartnerViewData(){\n this.partnersView.next();\n }\n\n changeSubUserViewData(){\n this.subUsersView.next();\n }\n\n changeAdminListDashboardData(){\n this.adminList.next();\n }\n\n changeManagerListDashboardData(){\n this.managerList.next();\n }\n\n changeApplicationListDashboardData(){\n this.applicationList.next();\n }\n\n contains(value, term, caseInsensitiveSearch) {\n if(!value) return false;\n if(!term) return false;\n if(caseInsensitiveSearch){\n value = value.toLowerCase();\n term = term.toLowerCase();\n }\n return (value.indexOf(term) != -1);\n }\n\n equals(value1, value2, caseInsensitiveMatch) {\n if(!value1) return false;\n if(!value2) return false;\n if(caseInsensitiveMatch){\n value1 = value1.toLowerCase();\n value2 = value2.toLowerCase();\n }\n return (value1==value2);\n }\n\n stopPropagationCheckBox(event) {\n if (event.stopPropagation) {\n event.stopPropagation(); // Standard\n }else {\n event.cancelBubble = true; // Old IE\n }\n }\n\n getChoosenFile(event, componentModal, componentKey){\n let file = event.srcElement.files[0];\n let fileName = file.name;\n var reader = new FileReader();\n reader.onload = function(){\n componentModal[componentKey] = {name:fileName,data:reader.result};\n }.bind(componentModal);\n reader.readAsDataURL(file);\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/shared/services/common.service.ts","import { NgModule } from '@angular/core';\n\nimport { EChartsDirective } from './echarts.directive';\nimport { SlimScrollDirective } from './slim-scroll.directive';\n\n\n@NgModule({\n imports: [],\n declarations: [\n EChartsDirective,\n SlimScrollDirective,\n ],\n exports: [\n EChartsDirective,\n SlimScrollDirective,\n ]\n})\n\nexport class SharedModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/shared/shared.module.ts","function webpackEmptyAsyncContext(req) {\n\treturn new Promise(function(resolve, reject) { reject(new Error(\"Cannot find module '\" + req + \"'.\")); });\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 278;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/core/@angular lazy\n// module id = 278\n// module chunks = 10","/**\n * Created by shubham on 20/4/18.\n */\n\nimport {Component, ViewChild, OnInit} from '@angular/core';\nimport {Router} from '@angular/router';\nimport {HttpService} from '../shared/services/http.service';\nimport {SessionHandler} from '../shared/services/session-handler.service';\nimport {DatatableComponent} from '@swimlane/ngx-datatable';\nimport {MdDialog} from '@angular/material';\nimport {DialogComponent, WelcomeDialogComponent} from '../dialog/dialog.component';\nimport {CommonService} from '../shared/services/common.service';\nimport {FormGroup, FormBuilder} from '@angular/forms';\nimport {AdminPage} from \"./admin-datatable/admin-page\";\nimport {APPCONFIG} from '../config';\nimport {AdminDashboardResultService} from '../adminDashboardResultService';\nimport {TranslateService} from 'ng2-translate';\n\n\n@Component({\n selector: 'admin-dashboard',\n template: require('./admin-dashboard.component.html'),\n styles: [require('../../app/newCommon.scss')],\n\n})\nexport class AdminDashboardComponent {\n\n @ViewChild(DatatableComponent) table: DatatableComponent;\n dialogRef;\n userDetails: any;\n page = new AdminPage();\n tableRows: any = [];\n filters: any = {};\n rows: any;\n adminDashboardData = [];\n temp = [];\n Countries = [{\n \"id\": \"\",\n \"name\": \"all\",\n \"code\": \"\",\n \"active\": true,\n \"createdAt\": \"2019-02-26T12:49:39.329Z\"\n }];\n showTable: boolean = true;\n isSystemAdmin: boolean = false;\n isBUManager: boolean = false;\n isRegionalAdmin: boolean = false;\n isServiceOwner: boolean = false;\n isTradePartner: boolean = false;\n isSubUser: boolean = false;\n selected = [];\n adminText: any;\n selectedStatusId: string = 'PENDING';\n selectedCountryId: string = '';\n selectedCount: any;\n count: any;\n totalCount: any;\n searchedFilters = {email: '', firstName: '', wpassId: ''};\n isDisabled = false;\n showCheckbox = false;\n wpassLogin: boolean = false;\n autocompleteLoader: string = \"\";\n\n searchName = \"\";\n searchEmail = \"\";\n searchWpass = \"\";\n Names: Array = [];\n Emails: Array = [];\n Wpass: Array = [];\n dataTableMessage = {'selectedMessage': '', 'totalMessage': ''};\n StatusData = [{\n \"id\": \"PENDING\",\n \"code\": \"\",\n \"name\": \"Pending\"\n }];\n\n constructor(private router: Router, private httpService: HttpService, private sessionHandler: SessionHandler, public dialog: MdDialog,\n private formBuilder: FormBuilder, private serverResultsService: AdminDashboardResultService, private commonService: CommonService,\n private translate: TranslateService) {\n\n //Close Sidebar Initially\n APPCONFIG.navCollapsed = true;\n\n this.page.pageNumber = 0;\n this.page.size = 20;\n this.adminText = 'admin';\n\n /*this.wpassLogin = JSON.parse(this.sessionHandler.getItem('wpassLogin'));\n if(this.wpassLogin != null && this.wpassLogin == true){\n this.dialogRef = this.dialog.open(WelcomeDialogComponent);\n this.dialogRef.afterClosed().subscribe(result => {\n localStorage.removeItem('wpassLogin');\n });\n }*/\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\n if (this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n if (this.isBUManager || this.isRegionalAdmin || this.isSystemAdmin) {\n this.getCountries();\n this.getStatusList();\n this.getUsersList(this.filters, this.selectedStatusId, this.selectedCountryId, this.searchEmail, this.searchName, this.searchWpass);\n } else {\n this.getUserList();\n }\n\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\n this.commonService.adminDashboard.subscribe((value) => {\n this.getUsersList(this.filters, this.selectedStatusId, this.selectedCountryId, this.searchEmail, this.searchName, this.searchWpass);\n });\n }\n\n autocompleteSearch(term: string, filter: string) {\n if (filter == \"name\") {\n this.Names = [];\n this.searchName = term;\n } else if (filter == \"email\") {\n this.Emails = [];\n this.searchEmail = term;\n } else if (filter == \"wpass\") {\n this.Wpass = [];\n this.searchWpass = term;\n }\n\n if (term == \"\") return;\n\n let url = \"/lookupDataOperationsApi/v1/partialSearch?type=\" + filter + \"&searchStr=\" + term;\n this.autocompleteLoader = filter;\n this.httpService.getRequestForAutocomplete(url).subscribe(\n res => {\n if (res && res['items']) {\n let name = res['items'];\n let filterArray = [];\n\n for (let index in name) {\n filterArray.push(name[index]['name']);\n }\n\n if (filter == \"name\") {\n this.Names = filterArray;\n } else if (filter == \"email\") {\n this.Emails = filterArray;\n } else if (filter == \"wpass\") {\n this.Wpass = filterArray;\n }\n }\n this.autocompleteLoader = \"\";\n this.httpService.onEnd();\n },\n err => {\n this.autocompleteLoader = \"\";\n this.httpService.onEnd();\n })\n }\n\n onSelectAutocomplete(value, textFlag) {\n if (textFlag == \"name\") {\n this.searchName = value;\n } else if (textFlag == \"email\") {\n this.searchEmail = value;\n } else if (textFlag == \"wpass\") {\n this.searchWpass = value;\n }\n }\n\n public search() {\n this.selected = [];\n this.filters['offSet'] = 0;\n\n /*if (this.searchName == undefined) {\n this.searchName = \"\";\n } else if(this.searchName != \"\" && this.Names.length > 0){\n if(this.checkAutocompleteWord(this.Names, this.searchName)){\n this.searchName = \"\";\n }\n }\n\n if (this.searchEmail == undefined) {\n this.searchEmail = \"\";\n } else if(this.searchEmail != \"\" && this.Emails.length > 0){\n if(this.checkAutocompleteWord(this.Emails, this.searchEmail)){\n this.searchEmail = \"\";\n }\n }\n\n if (this.searchWpass == undefined) {\n this.searchWpass = \"\";\n } else if(this.searchWpass != \"\" && this.Wpass.length > 0){\n if(this.checkAutocompleteWord(this.Wpass, this.searchWpass)){\n this.searchWpass = \"\";\n }\n }*/\n if (this.searchName == undefined) { this.searchName = \"\";}\n if (this.searchEmail == undefined) { this.searchEmail = \"\";}\n if (this.searchWpass == undefined) { this.searchWpass = \"\";}\n this.getUsersList(this.filters, this.selectedStatusId, this.selectedCountryId, this.searchEmail, this.searchName, this.searchWpass);\n }\n\n checkAutocompleteWord(objArray, searchValue){\n if(objArray.includes(searchValue)){\n return false;\n } else {\n return true;\n }\n }\n\n public resetSearch() {\n\n this.searchName = \"\";\n this.searchEmail = \"\";\n this.searchWpass = \"\";\n this.Names = [];\n this.Emails = [];\n this.Wpass = [];\n this.selectedStatusId = \"PENDING\";\n this.selectedCountryId = \"\";\n\n this.search();\n }\n\n public getCountries() {\n this.httpService.getRequest('lookupDataOperationsApi/v1/countriesForAdmin').subscribe(\n res => {\n this.saveCountries(res);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n\n public saveCountries(res) {\n if (res && res.items) {\n this.Countries = this.Countries.concat(res.items);\n }\n this.httpService.onEnd();\n }\n\n public getStatusList() {\n this.httpService.getRequest(\"lookupDataOperationsApi/v1/registrationStatusFilter?includeDeleted=true\").subscribe(\n res => {\n this.saveStatusList(res);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n\n public saveStatusList(res) {\n this.StatusData.push({\"id\":\"\", \"code\":\"\", \"name\":\"all\"});\n if (res) {\n if (res.items) {\n for (let s in res.items) {\n if (res.items[s]['id'] != 'PENDING') {\n this.StatusData.push(res.items[s]);\n }\n }\n }\n }\n }\n\n public getUsersList(filter, selectedStatus, selectedCountryId, email, firstName, wpassId) {\n this.searchedFilters.email = email;\n this.searchedFilters.firstName = firstName;\n this.searchedFilters.wpassId = wpassId;\n\n if (selectedStatus == 'PENDING') {\n this.showCheckbox = true;\n } else {\n this.showCheckbox = false;\n }\n\n this.httpService.getRequest(\"userRegistrationsApi/v1/user/list?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&status=\" + selectedStatus + \"&countryId=\" + selectedCountryId + \"&email=\" + email + \"&firstName=\" + firstName + \"&wpassId=\" + wpassId).subscribe(\n res => {\n this.saveUserList(res, filter);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n\n public getUserList = function () {\n this.showTable = false;\n };\n\n public saveUserList = function (res, filter) {\n if (res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if (res && Object.keys(res).length > 0) {\n this.adminDashboardData = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n this.count = res.count;\n this.totalCount = res.totalCount;\n\n if (this.adminDashboardData.list) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.adminDashboardData.list) {\n if (this.isBUManager || this.isRegionalAdmin || this.isSystemAdmin) {\n this.rows[data] = {};\n this.rows[data]['id'] = this.adminDashboardData.list[data]['id'];\n this.rows[data]['Name'] = this.adminDashboardData.list[data]['firstName'] + ' ' + this.adminDashboardData.list[data]['lastName'];\n this.rows[data]['roleName'] = this.adminDashboardData.list[data]['roleName'];\n this.rows[data]['email'] = this.adminDashboardData.list[data]['email'];\n this.rows[data]['emailVerified'] = this.adminDashboardData.list[data]['emailVerified'];\n\n if (this.adminDashboardData.list[data]['categorizedBusinessUnits'] && Object.keys(this.adminDashboardData.list[data]['categorizedBusinessUnits']).length > 0) {\n this.rows[data]['businessUnits'] = this.adminDashboardData.list[data]['categorizedBusinessUnits'];\n } else {\n this.rows[data]['businessUnits'] = null;\n }\n\n if (this.adminDashboardData.list[data]['userId_WPASS']) {\n this.rows[data]['userId_WPASS'] = this.adminDashboardData.list[data]['userId_WPASS'];\n } else {\n this.rows[data]['userId_WPASS'] = null;\n }\n\n if (this.adminDashboardData.list[data]['pendingSubUserCount']) {\n this.rows[data]['pendingSubUserCount'] = this.adminDashboardData.list[data]['pendingSubUserCount'];\n } else {\n this.rows[data]['pendingSubUserCount'] = 0;\n }\n\n this.rows[data]['languageId'] = this.adminDashboardData.list[data]['languageId'];\n this.rows[data]['languageName'] = this.adminDashboardData.list[data]['languageName'];\n this.rows[data]['countryId'] = this.adminDashboardData.list[data]['countryId'];\n this.rows[data]['countryName'] = this.adminDashboardData.list[data]['countryName'];\n this.rows[data]['companyName'] = this.adminDashboardData.list[data]['companyName'];\n this.rows[data]['companyAddress'] = this.adminDashboardData.list[data]['companyAddress'];\n this.rows[data]['companyPhone'] = this.adminDashboardData.list[data]['companyPhone'];\n this.rows[data]['personalArea'] = this.adminDashboardData.list[data]['personalArea'];\n this.rows[data]['costCenter'] = this.adminDashboardData.list[data]['costCenter'];\n this.rows[data]['location'] = this.adminDashboardData.list[data]['location'];\n this.rows[data]['contractorType'] = this.adminDashboardData.list[data]['contractorType'];\n\n if ((this.adminDashboardData.list[data]['status'] == \"Pending\" || this.adminDashboardData.list[data]['status'] == \"Approved\")\n && this.adminDashboardData.list[data]['categorizedBusinessUnits'] && this.adminDashboardData.list[data]['categorizedBusinessUnits']['PENDING']) {\n for (let businessUnit of this.adminDashboardData.list[data]['categorizedBusinessUnits']['PENDING']) {\n if (businessUnit.status == 'PENDING' && businessUnit.sessionUserManager) {\n this.rows[data]['actionFlag'] = true;\n if (businessUnit.customerNumber) {\n this.rows[data]['customerNumber'] = businessUnit.customerNumber;\n }\n if (businessUnit.customerNumberMandatory) {\n this.rows[data]['customerNumberMandatory'] = businessUnit.customerNumberMandatory;\n }\n if (businessUnit.id) {\n this.rows[data]['businessUnitId'] = businessUnit.id;\n }\n break;\n } else {\n this.rows[data]['actionFlag'] = false;\n }\n }\n } else {\n this.rows[data]['actionFlag'] = false;\n }\n this.rows[data]['status'] = this.adminDashboardData.list[data]['status'];\n this.rows[data]['createdAt'] = this.adminDashboardData.list[data]['createdAt'];\n this.rows[data]['updatedAt'] = this.adminDashboardData.list[data]['updatedAt'];\n this.rows[data]['wpassCreatedAt'] = this.adminDashboardData.list[data]['wpassCreatedAt'];\n } else {\n //For Other Service Partner's\n this.rows[data] = {};\n }\n }\n this.showTable = true;\n this.temp = this.rows;\n } else {\n this.showTable = false;\n }\n\n let finalRows = [];\n for (let f in this.rows) {\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\n finalRows.push(this.rows[f]);\n }\n if (f == 'offset') {\n finalRows['offset'] = this.rows['offset'];\n }\n if (f == 'totalCount') {\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({offset: this.rows['offset'] / this.page.size}, finalRows, filter);\n this.httpService.onEnd();\n }\n }\n };\n\n /**\n * Populate the table with new data based on the page number\n * @param page The page to select\n */\n public setPage(pageInfo, rows, filter) {\n this.page.pageNumber = pageInfo.offset;\n if (rows.length != 0) {\n this.serverResultsService.getResults(this.page, rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if (!filter) {\n if (Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']) {\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.getUsersList(this.filters, this.selectedStatusId, this.selectedCountryId, this.searchEmail, this.searchName, this.searchWpass);\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n\n onSelect({selected}) {\n this.selected.splice(0, this.selected.length);\n this.selected.push(...selected);\n this.selectedCount = this.selected.length;\n }\n\n public forgetPassword(wpassId) {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'sure_to_init_reset_process';\n this.dialogRef.componentInstance.isConfirm = true;\n this.dialogRef.afterClosed().subscribe(data => {\n if (data) {\n var body = {userId_WPASS: wpassId};\n this.httpService.postRequest(body, 'userOperationsApi/v1/forgotPassword').subscribe(\n res => {\n this.processResponse(res, 'after_reset_password_notify');\n },\n err => {\n this.httpService.onEnd();\n }\n );\n } else {\n }\n });\n\n }\n\n downloadCsv(action) {\n let loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\n let accessToken;\n\n if (loginDataArray) {\n accessToken = loginDataArray['accessToken'];\n }\n window.open(APPCONFIG.URL + '/export?access-token=' + accessToken + '&action='+action+'&status=' + this.selectedStatusId + '&email=' + this.searchEmail + '&firstName=' + this.searchName + '&wpassId=' + this.searchWpass + '&countryId=' + this.selectedCountryId, '_blank');\n }\n\n public processResponse(res, msgCode) {\n if (res) {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = msgCode;\n this.dialogRef.afterClosed().subscribe(result => {\n });\n }\n this.httpService.onEnd();\n }\n\n public unlockAccount(wpassId) {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'sure_to_init_unlock_process';\n this.dialogRef.componentInstance.isConfirm = true;\n this.dialogRef.afterClosed().subscribe(data => {\n if (data) {\n var body = {userId_WPASS: wpassId};\n this.httpService.postRequest(body, 'userOperationsApi/v1/unlockWpassUser').subscribe(\n res => {\n this.processResponse(res, 'account_unlock_succesfully');\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n });\n }\n\n public resendEmailVerificationEmail(userId) {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'sure_to_resend_email_verification_link';\n this.dialogRef.componentInstance.isConfirm = true;\n this.dialogRef.afterClosed().subscribe(data => {\n if (data) {\n var body = {};\n this.httpService.postRequest(body, 'userRegistrationsApi/v1/resendNewRegistrationEmailVerificationEmail/' + userId).subscribe(\n res => {\n this.processResponse(res, 'email_sent_success');\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n });\n }\n\n ngOnInit() {\n this.translate.get('total').subscribe((res: string) => {\n this.dataTableMessage.totalMessage = res;\n });\n this.translate.get('selected').subscribe((res: string) => {\n this.dataTableMessage.selectedMessage = res;\n });\n }\n\n ngOnDestroy() {\n this.dialog.closeAll();\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/admin-dashboard/admin-dashboard.component.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * An object used to get page information from the server\n */\nexport class AdminPage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/admin-dashboard/admin-datatable/admin-page.ts","import {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {AdminPageData} from \"./admin-dashboard/admin-datatable/admin-page-data\";\nimport {AdminDashboardList} from \"./admin-dashboard/admin-datatable/admin-dashboardList\";\nimport {AdminPage} from \"./admin-dashboard/admin-datatable/admin-page\";\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class AdminDashboardResultService {\n listData:any;\n loginData;\n rows = {};\n adminDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: AdminPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: AdminPage): AdminPageData {\n let pageData = new AdminPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n let list = new AdminDashboardList(jsonObj['id'], jsonObj['Name'], jsonObj['roleName'], jsonObj['email'],\n jsonObj['emailVerified'], jsonObj['businessUnits'], jsonObj['pendingSubUserCount'], jsonObj['userId_WPASS'],\n jsonObj['languageId'], jsonObj['languageName'], jsonObj['countryId'], jsonObj['countryName'], jsonObj['companyName'],\n jsonObj['companyAddress'], jsonObj['companyPhone'], jsonObj['personalArea'], jsonObj['costCenter'], jsonObj['location'],\n jsonObj['contractorType'], jsonObj['actionFlag'], jsonObj['status'], jsonObj['appStatus'], jsonObj['createdAt']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/adminDashboardResultService.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * An object used to get page information from the server\n */\nexport class ApplicationsPage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/applications-manager-dashboard/applications-datatable/applications-page.ts","/**\n * Created by shubham on 20/10/18.\n */\n\nimport { Component, ViewChild } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { HttpService } from '../shared/services/http.service';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { DatatableComponent } from '@swimlane/ngx-datatable';\nimport { MdDialog } from '@angular/material';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport { CommonService } from '../shared/services/common.service';\nimport { FormGroup, FormBuilder } from '@angular/forms';\nimport { ApplicationsPage } from \"./applications-datatable/applications-page\";\nimport { APPCONFIG } from '../config';\nimport { ApplicationsManagerDashboardResultService } from '../applicationsManagerDashboardResultService';\nimport { ApplicationRejectActionDialogComponent } from '../dialog/dialog.component';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n selector: 'applications-manager-dashboard',\n template: require('./applications-manager-dashboard.component.html'),\n styles: [require('../../app/newCommon.scss')],\n})\nexport class ApplicationsManagerDashboardComponent {\n\n @ViewChild(DatatableComponent) table: DatatableComponent;\n page = new ApplicationsPage();\n applicationText: any;\n dialogRef;\n userDetails: any;\n isSystemAdmin: boolean = false;\n isApplicationManager: boolean = false;\n isBUManager: boolean = false;\n isRegionalAdmin: boolean = false;\n isServiceOwner: boolean = false;\n isTradePartner: boolean = false;\n isSubUser: boolean = false;\n tableRows: any = [];\n rows: any;\n filters: any = {};\n ApplicationsFiltersForm: FormGroup;\n applicationsName = [];\n selectedApplicationId: string = '';\n isDisabled = false;\n selected = [];\n selectedStatusId: string = '';\n selectedCount: any;\n count: any;\n totalCount: any;\n searchedFilters = { applicationName: '', wpassId: '' };\n showCheckbox = false;\n applicationsDashboardData = [];\n temp = [];\n showTable: boolean = true;\n Wpass: Array = [];\n autocompleteLoader: string = \"\";\n searchWpass:string = \"\";\n countries =[];\n businessUnits = [];\n tempCountries =[{\n \"id\": \"\",\n \"name\": \"all\",\n \"code\": \"\",\n \"active\": true,\n \"createdAt\": \"2019-02-26T12:49:39.329Z\"\n }];\n tempBusinessUnits = [{\n \"id\": \"\",\n \"name\": \"all\",\n \"codeISAM\": \"\",\n \"active\": true,\n \"createdAt\": \"2018-04-06T20:05:02.397Z\",\n \"updatedAt\": \"2018-05-31T06:41:54.303Z\"\n }];\n selectedCountryId:any = \"\";\n selectedBusinessUnit:any = \"\";\n dataTableMessage = {'selectedMessage':'','totalMessage':''};\n StatusData = [{\n \"id\": \"\",\n \"code\": \"\",\n \"name\": \"all\"\n }];\n\n constructor(private router: Router, private httpService: HttpService, private sessionHandler: SessionHandler, public dialog: MdDialog,\n private formBuilder: FormBuilder, private serverResultsService: ApplicationsManagerDashboardResultService, private commonService: CommonService, \n private translate: TranslateService) {\n\n //Close Sidebar Initially\n APPCONFIG.navCollapsed = true;\n\n this.page.pageNumber = 0;\n this.page.size = 20;\n this.applicationText = 'applicationManagerView';\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\n if (this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.applicationManager)) {\n this.isApplicationManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n if (this.isBUManager || this.isRegionalAdmin || this.isApplicationManager || this.isSystemAdmin) {\n this.getCountries();\n this.getBusinessUnitAll();\n this.getStatusList();\n this.getApplicationsName();\n this.getApplicationsList(this.filters, this.selectedStatusId, this.selectedApplicationId, this.searchWpass, this.selectedBusinessUnit, this.selectedCountryId);\n } else {\n this.showTable = false;\n }\n\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\n this.commonService.applicationDashboard.subscribe((value) => {\n this.getApplicationsList(this.filters, this.selectedStatusId, this.selectedApplicationId, this.searchWpass, this.selectedBusinessUnit, this.selectedCountryId);\n });\n }\n\n /*buildForm() {\n this.ApplicationsFiltersForm = this.formBuilder.group({\n wpassId: this.formBuilder.control(''),\n });\n this.ApplicationsFiltersForm.valueChanges.subscribe(data => {\n this.wpassId = this.ApplicationsFiltersForm.get('wpassId').value;\n });\n }*/\n public getCountries(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/countriesForAdmin').subscribe(\n res => { this.saveCountries(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveCountries(res){\n if(res && res.items){\n this.countries = this.tempCountries.concat(res.items);\n }\n }\n\n onCountryChange(countryId){\n //this.businessUnits = [];\n this.businessUnits = this.tempBusinessUnits;\n if(countryId != \"\"){\n this.selectedBusinessUnit = \"\";\n this.getBusinessUnitForCountry(countryId);\n } else{\n this.getBusinessUnitAll();\n }\n }\n public getBusinessUnitForCountry(countryId) {\n this.httpService.getRequestWithoutLoader('lookupDataOperationsApi/v1/buForSelectedCountry/'+countryId).subscribe(\n res => { this.saveBusinessUnitForCountry(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n saveBusinessUnitForCountry(res) {\n if(res && res.items){\n //this.businessUnits = res.items;\n this.businessUnits = this.tempBusinessUnits.concat(res.items);\n }\n this.httpService.onEnd();\n }\n \n public getBusinessUnitAll() {\n this.httpService.getRequestWithoutAuth('lookupDataOperationsApi/v1/businessUnit', true).subscribe(\n res => { this.saveBusinessUnitAll(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n saveBusinessUnitAll(res) {\n if(res && res.items){\n this.businessUnits = this.tempBusinessUnits.concat(res.items);\n this.httpService.onEnd();\n }\n }\n\n autocompleteSearch(term: string, filter: string) {\n\n if (filter == \"wpass\") {\n this.Wpass = [];\n this.searchWpass = term;\n }\n\n if (term == \"\") return;\n\n let url = \"/lookupDataOperationsApi/v1/partialSearch?type=\" + filter + \"&searchStr=\" + term;\n this.autocompleteLoader = filter;\n this.httpService.getRequestForAutocomplete(url).subscribe(\n res => {\n if (res && res['items']) {\n let name = res['items'];\n let filterArray = [];\n\n for (let index in name) {\n filterArray.push(name[index]['name']);\n }\n\n if (filter == \"wpass\") {\n this.Wpass = filterArray;\n }\n }\n this.autocompleteLoader = \"\";\n this.httpService.onEnd();\n },\n err => {\n this.autocompleteLoader = \"\";\n this.httpService.onEnd();\n })\n }\n\n onSelectAutocomplete(value, textFlag) {\n if (textFlag == \"wpass\") {\n this.searchWpass = value;\n }\n }\n \n \n public search() {\n this.selected = [];\n this.filters['offSet'] = 0;\n\n if (this.searchWpass == undefined) {\n this.searchWpass = \"\";\n } else if(this.searchWpass != \"\" && this.Wpass.length > 0){\n if(this.checkAutocompleteWord(this.Wpass, this.searchWpass)){\n this.searchWpass = \"\";\n }\n }\n\n this.getApplicationsList(this.filters, this.selectedStatusId, this.selectedApplicationId, this.searchWpass, this.selectedBusinessUnit, this.selectedCountryId);\n }\n\n public resetSearch() {\n /*this.ApplicationsFiltersForm.controls['wpassId'].enable();\n this.ApplicationsFiltersForm.reset();*/\n this.selectedApplicationId = \"\";\n this.searchWpass = '';\n this.selectedStatusId = \"\";\n this.Wpass = [];\n this.countries = [];\n this.businessUnits = [];\n this.selectedBusinessUnit = \"\";\n this.selectedCountryId = \"\";\n this.getCountries();\n this.getBusinessUnitAll();\n this.search();\n }\n\n checkAutocompleteWord(objArray, searchValue){\n if(objArray.includes(searchValue)){\n return false;\n } else {\n return true;\n }\n }\n\n\n public getStatusList() {\n this.httpService.getRequest(\"applicationOperationApi/v1/getApplicationStatusList\").subscribe(\n res => { this.saveStatusList(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveStatusList(res) {\n if (res) {\n if (res.items) {\n for (let s in res.items) {\n this.StatusData.push(res.items[s]);\n }\n }\n }\n }\n\n public getApplicationsName() {\n this.httpService.getRequest(\"applicationOperationApi/v1/applicationsForDropdown\").subscribe(\n res => { this.saveApplicationsName(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveApplicationsName(res) {\n if (res && res.items) {\n var tempApp =[{\"id\": \"\", \"code\": \"\", \"name\": \"all\" }];\n this.applicationsName = tempApp.concat(res.items);\n }\n }\n\n public getApplicationsList(filter, selectedStatus, applicationId, wpassId, selectedBusinessUnit, selectedCountryId) {\n\n this.searchedFilters.wpassId = wpassId;\n\n if (selectedStatus == 'PENDING' && applicationId != '') {\n this.showCheckbox = true;\n } else {\n this.showCheckbox = false;\n }\n\n this.httpService.getRequest(\"/applicationOperationApi/v1/applicationRequestsForManager?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&status=\" + selectedStatus + \"&applicationId=\" + applicationId + \"&wpassId=\" + wpassId+\"&businessUnitId=\"+selectedBusinessUnit+\"&countryId=\"+selectedCountryId).subscribe(\n res => { this.saveApplicationsList(res, filter); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveApplicationsList = function (res, filter) {\n\n if (res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if (res && Object.keys(res).length > 0) {\n this.applicationsDashboardData = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n this.count = res.count;\n this.totalCount = res.totalCount;\n\n if (this.applicationsDashboardData.list) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.applicationsDashboardData.list) {\n if (this.isBUManager || this.isRegionalAdmin || this.isApplicationManager || this.isSystemAdmin) {\n this.rows[data] = {};\n this.rows[data]['id'] = this.applicationsDashboardData.list[data]['id'];\n this.rows[data]['applicationId'] = this.applicationsDashboardData.list[data]['applicationId'];\n this.rows[data]['applicationName'] = this.applicationsDashboardData.list[data]['applicationName'];\n\n if (this.applicationsDashboardData.list[data]['applicationRoles'] && Object.keys(this.applicationsDashboardData.list[data]['applicationRoles']).length > 0) {\n let multipleApplicationRoles = [];\n for (let roles in this.applicationsDashboardData.list[data]['applicationRoles']) {\n if (this.applicationsDashboardData.list[data]['applicationRoles'][roles]['roleName']) {\n multipleApplicationRoles.push(this.applicationsDashboardData.list[data]['applicationRoles'][roles]);\n this.rows[data]['applicationRoles'] = multipleApplicationRoles;\n } else { this.rows[data]['applicationRoles'] = null; }\n }\n } else {\n this.rows[data]['applicationRoles'] = null;\n }\n\n if (this.applicationsDashboardData.list[data]['userId_WPASS']) {\n this.rows[data]['userId_WPASS'] = this.applicationsDashboardData.list[data]['userId_WPASS'];\n } else {\n this.rows[data]['userId_WPASS'] = null;\n }\n\n this.rows[data]['businessUnitId'] = this.applicationsDashboardData.list[data]['businessUnitId'];\n this.rows[data]['businessUnitName'] = this.applicationsDashboardData.list[data]['businessUnitName'];\n this.rows[data]['countryId'] = this.applicationsDashboardData.list[data]['countryId'];\n this.rows[data]['countryName'] = this.applicationsDashboardData.list[data]['countryName'];\n\n if (this.applicationsDashboardData.list[data]['approverId']) {\n this.rows[data]['approverId'] = this.applicationsDashboardData.list[data]['approverId'];\n this.rows[data]['approverName'] = this.applicationsDashboardData.list[data]['approverName'];\n } else {\n this.rows[data]['approverId'] = null;\n this.rows[data]['approverName'] = null;\n }\n\n this.rows[data]['multipleRole'] = this.applicationsDashboardData.list[data]['multipleRole'];\n\n if (this.applicationsDashboardData.list[data]['reason']) {\n this.rows[data]['reason'] = this.applicationsDashboardData.list[data]['reason'];\n } else {\n this.rows[data]['reason'] = null;\n }\n\n this.rows[data]['status'] = this.applicationsDashboardData.list[data]['status'];\n this.rows[data]['statusCode'] = this.applicationsDashboardData.list[data]['statusCode'];\n this.rows[data]['updatedAt'] = this.applicationsDashboardData.list[data]['updatedAt'];\n } else {\n //For Other Service Partner's\n this.rows[data] = {};\n }\n }\n this.showTable = true;\n this.temp = this.rows;\n } else {\n this.showTable = false;\n }\n\n let finalRows = [];\n for (let f in this.rows) {\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\n finalRows.push(this.rows[f]);\n }\n if (f == 'offset') {\n finalRows['offset'] = this.rows['offset'];\n }\n if (f == 'totalCount') {\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\n this.httpService.onEnd();\n }\n }\n }\n\n /**\n * Populate the table with new data based on the page number\n * @param page The page to select\n */\n public setPage(pageInfo, rows, filter) {\n this.page.pageNumber = pageInfo.offset;\n if (rows.length != 0) {\n this.serverResultsService.getResults(this.page, rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if (!filter) {\n if (Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']) {\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n\n\n this.getApplicationsList(this.filters, this.selectedStatusId, this.selectedApplicationId, this.searchWpass, this.selectedBusinessUnit, this.selectedCountryId);\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n\n rejectAction(id, status) {\n this.dialogRef = this.dialog.open(ApplicationRejectActionDialogComponent);\n this.dialogRef.componentInstance.isRejected = true;\n this.dialogRef.componentInstance.msg = 'rqst_rjct_confirm';\n this.dialogRef.afterClosed().subscribe(result => {\n if (result) {\n let data = {};\n data['id'] = id;\n data['status'] = status;\n data['message'] = result;\n\n let today = new Date();\n let dd = ('0' + today.getDate()).slice(-2);\n let mm = ('0' + (today.getMonth() + 1)).slice(-2);\n let yyyy = today.getFullYear();\n data['approvalDate'] = yyyy + '' + mm + '' + dd;\n\n this.httpService.postRequest(data, 'applicationOperationApi/v1/approveApplicationRequest').subscribe(\n res => {\n this.saveResponse(res, status);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n });\n }\n public saveResponse(res, status) {\n this.httpService.onEnd();\n let statusTxt;\n if (res) {\n if (status == 'REJECTED') {\n statusTxt = 'Rejected Successfully';\n }\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = statusTxt;\n this.dialogRef.afterClosed().subscribe(result => {\n this.getApplicationsList(this.filters, this.selectedStatusId, this.selectedApplicationId, this.searchWpass, this.selectedBusinessUnit, this.selectedCountryId);\n });\n }\n }\n\n onSelect({ selected }) {\n this.selected.splice(0, this.selected.length);\n this.selected.push(...selected);\n this.selectedCount = this.selected.length;\n }\n downloadCsv(){\n let loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\n let accessToken;\n\n if(loginDataArray){\n accessToken = loginDataArray['accessToken'];\n }\n window.open(APPCONFIG.URL+'/export?access-token='+accessToken+'&action=application_requests&status='+this.selectedStatusId+'&applicationId='+this.selectedApplicationId+'&wpassId='+this.searchWpass+'&businessUnitId='+this.selectedBusinessUnit+'&countryId='+this.selectedCountryId,'_blank')\n\n }\n saveRevokeData(id){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.isConfirm = true;\n this.dialogRef.componentInstance.msg = \"app_revoke_confirm\";\n this.dialogRef.afterClosed().subscribe(result => {\n if (result) {\n var user_application_id = {id: id}\n this.httpService.postRequest(user_application_id,'applicationOperationApi/v1/revokeAllApplicationRoles').subscribe(\n res => {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"request_success\";\n this.httpService.onEnd();\n },\n err => { this.httpService.onEnd(); \n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"request_failed\";\n this.httpService.onEnd();\n }\n );\n \n }\n \n });\n \n }\n\n /* saveApplicationDataApi(){\n this.httpService.postRequest(this.ApplicationsRequestFormDetails,'applicationOperationApi/v1/updateUserApplicationRoles').subscribe(\n res => {\n this.saveApplicationResponse(res);\n },\n err => { this.httpService.onEnd(); }\n );\n } */\n\n ngOnInit() {\n //this.buildForm();\n this.translate.get('total').subscribe((res: string) => {\n this.dataTableMessage.totalMessage=res;\n });\n this.translate.get('selected').subscribe((res: string) => {\n this.dataTableMessage.selectedMessage=res;\n });\n }\n\n ngOnDestroy() {\n this.dialog.closeAll();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/applications-manager-dashboard/applications-manager-dashboard.component.ts","import {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\n\nimport {ApplicationsPageData} from \"./applications-manager-dashboard/applications-datatable/applications-page-data\";\nimport {ApplicationsDashboardList} from \"./applications-manager-dashboard/applications-datatable/applications-dashboardList\";\nimport {ApplicationsPage} from \"./applications-manager-dashboard/applications-datatable/applications-page\";\n\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class ApplicationsManagerDashboardResultService {\n listData:any;\n loginData;\n rows = {};\n applicationsDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: ApplicationsPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: ApplicationsPage): ApplicationsPageData {\n let pageData = new ApplicationsPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n let list = new ApplicationsDashboardList(jsonObj['id'], jsonObj['applicationId'], jsonObj['applicationName'], jsonObj['userId_WPASS'],\n jsonObj['businessUnitId'], jsonObj['businessUnitName'], jsonObj['countryId'], jsonObj['countryName'], jsonObj['approverId'],\n jsonObj['approverName'], jsonObj['multipleRole'], jsonObj['reason'], jsonObj['status'], jsonObj['statusCode'], jsonObj['updatedAt']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/applicationsManagerDashboardResultService.ts","/**\n * Created by shubham on 29/4/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { Http} from '@angular/http';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { ApproveRejectComponent } from '../approve-reject-request/approve-reject.component';\nimport {TranslateModule,TranslateLoader,TranslateStaticLoader} from 'ng2-translate';\nimport { APPCONFIG } from '../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n ApproveRejectComponent\n ],\n exports: [\n ApproveRejectComponent,\n ]\n})\n\nexport class ApproveRejectRequestModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/approve-reject-request/approve-reject-request.module.ts","/**\n * Created by shubham on 11/6/18.\n */\n\nimport { Component } from '@angular/core';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { Http,Headers } from '@angular/http';\nimport { HttpService } from '../../shared/services/http.service'\nimport { MdDialog } from '@angular/material';\nimport { APPCONFIG } from '../../config';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\nimport { CommonService } from '../../shared/services/common.service';\nimport { Observable } from 'rxjs/Rx';\nimport { DialogComponent } from '../../dialog/dialog.component';\nimport { TranslateService } from 'ng2-translate';\nimport { FileUploader } from 'ng2-file-upload';\n\n@Component({\n template: require('./addFile.component.html')\n})\n\nexport class AddFileComponent {\n data: any = [];\n dialogRef;\n FileUploadForm: FormGroup;\n FileUploadFormDetails: any;\n userDetails: any;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n public uploader: FileUploader;\n public headers = new Headers();\n accessToken: any;\n public URL: any;\n csvName: string;\n showError: boolean = false;\n errorMsg: any;\n Countries = [];\n tempCountries =[{\n \"id\": \"\",\n \"name\": \"All\",\n \"code\": \"\",\n \"active\": true,\n \"createdAt\": \"2019-02-26T12:49:39.329Z\"\n }];\n tempBusinessUnits = [{\n \"id\": \"\",\n \"name\": \"All\",\n \"codeISAM\": \"\",\n \"active\": true,\n \"createdAt\": \"2018-04-06T20:05:02.397Z\",\n \"updatedAt\": \"2018-05-31T06:41:54.303Z\"\n }];\n BusinessUnit = [];\n uploadAction: boolean = false;\n formData: any;\n formDataFlag: boolean = false;\n\n constructor(private router: Router, private route: ActivatedRoute, private Http: Http, private httpService: HttpService, public sessionHandler: SessionHandler,\n private formBuilder: FormBuilder, public dialog: MdDialog, private translate: TranslateService, private commonService: CommonService) {\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n this.accessToken = this.userDetails['accessToken'];\n\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.URL = APPCONFIG.URL+\"/uploadCsv/dataUpload\";\n\n this.uploader = new FileUploader({url: this.URL, disableMultipart: true});\n this.getCountries();\n }\n\n public getCountries(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/countriesForAdmin').subscribe(\n \n res => { this.saveCountries(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveCountries(res){\n if(res && res.items){\n //this.Countries = res.items;\n this.Countries = this.tempCountries.concat(res.items);\n }\n this.FileUploadForm.controls['countryId'].disable();\n this.FileUploadForm.controls['businessUnitId'].disable();\n this.httpService.onEnd();\n }\n\n public getBusinessUnitByCountryId(countryId) {\n if(countryId){\n this.httpService.getRequest('lookupDataOperationsApi/v1/buForSelectedCountry/'+countryId).subscribe(\n res => { this.saveBusinessUnitByCountryId(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n }\n\n saveBusinessUnitByCountryId(res) {\n if(res && res.items){\n //this.BusinessUnit = res.items;\n this.BusinessUnit = this.tempBusinessUnits.concat(res.items);\n }\n this.httpService.onEnd();\n }\n\n buildForm() {\n this.FileUploadForm = this.formBuilder.group({\n selectedRadioValue: this.formBuilder.control('Role_Maintenance', [Validators.required]),\n countryId: this.formBuilder.control('', [Validators.required]),\n businessUnitId: this.formBuilder.control('', [Validators.required]),\n });\n this.FileUploadForm.valueChanges.subscribe(data => {\n this.FileUploadFormDetails = this.FileUploadForm.getRawValue();\n this.FileUploadFormDetails['includesHeader'] = true;\n this.FileUploadFormDetails.validate = this.FileUploadForm.valid;\n });\n\n this.FileUploadForm.get('selectedRadioValue').valueChanges.subscribe(data=> {\n if(data != null){\n if(data == 'Role_Maintenance'){\n this.uploadAction = false;\n this.FileUploadForm.controls['countryId'].disable();\n this.FileUploadForm.controls['businessUnitId'].disable();\n } else if(data == 'User_Migration'){\n this.uploadAction = true;\n this.FileUploadForm.controls['countryId'].enable();\n this.FileUploadForm.controls['businessUnitId'].enable();\n }\n }\n });\n\n this.FileUploadForm.get('countryId').valueChanges.subscribe(data=> {\n this.FileUploadForm.controls['businessUnitId'].setValue('');\n //this.BusinessUnit = [];\n this.BusinessUnit = this.tempBusinessUnits;\n if(data != null){\n this.getBusinessUnitByCountryId(data);\n }\n });\n }\n\n public fileupload() {\n this.formData = new FormData();\n for (let i in this.uploader.queue) {\n if (!this.uploader.queue[i].isSuccess) {\n if(this.uploader.queue[i]._file.type == 'text/csv' || this.uploader.queue[i]._file.type == ''\n || (this.uploader.queue[i]._file.type.indexOf(\"excel\") != -1)) {\n this.csvName = this.uploader.queue[i]._file.name;\n\n if(this.uploader.queue[i]._file.type == ''){\n if(this.csvName.indexOf(\".\")){\n let checkExtension = this.csvName.substring(this.csvName.indexOf(\".\")+1,this.csvName.length);\n if(checkExtension != 'csv'){\n this.showError = true;\n this.formDataFlag = false;\n this.errorMsg = 'invalid_csv_format';\n }\n }\n }\n\n if(this.uploader.queue[i]._file.size/1024/1024 < 5) {\n this.showError = false;\n this.formData.append('file', this.uploader.queue[i]._file);\n this.formDataFlag = true;\n } else {\n this.showError = true;\n this.uploader.queue[i].isError = true;\n this.formDataFlag = false;\n this.errorMsg = 'file_too_large';\n }\n } else{\n this.showError = true;\n this.formDataFlag = false;\n this.errorMsg = 'invalid_csv_format';\n }\n }\n }\n }\n\n public downloadSampleCSVFile(){\n let sampleMigrationData;\n let fileName = \"User_migration_sample.csv\";\n if(this.FileUploadFormDetails['selectedRadioValue'] == 'Role_Maintenance'){\n sampleMigrationData = [['LDAP ID', 'LDAP ROLE', 'Business Unit Name', 'Customer Number']];\n fileName = \"Role_migration_sample.csv\"\n } else{\n sampleMigrationData = [['LDAP ID (Optional)', 'First Name', 'Last Name', 'Email', 'Company Name', 'Company Phone', 'Company Address', 'Customer No', 'Language (Optional)', 'LDAP ROLE (Optional)']];\n }\n\n let csvContent = \"data:text/csv;charset=utf-8,\";\n sampleMigrationData.forEach(function(infoArray, index){\n let dataString = infoArray.join(\",\");\n csvContent += index < sampleMigrationData.length ? dataString+ \"\\n\" : dataString;\n });\n let encodedUri = encodeURI(csvContent);\n let link = document.createElement(\"a\");\n link.setAttribute(\"href\", encodedUri);\n link.setAttribute(\"download\", fileName);\n link.click();\n }\n\n public saveUploadCSVData() {\n this.httpService.showLoader();\n this.Http\n .post(this.URL+'?action='+this.FileUploadFormDetails['selectedRadioValue']+'&includesHeader='+this.FileUploadFormDetails['includesHeader']+'&countryId='+this.FileUploadFormDetails['countryId']+'&businessUnitId='+this.FileUploadFormDetails['businessUnitId']+'&apiKey='+APPCONFIG.apiKey+'&access-token='+this.accessToken, this.formData, {headers: this.headers})\n .toPromise()\n .then(res => this.setFormData(res.json()))\n .catch((error:any) => Observable.throw(this.httpService.handleError(error.json(),'uploadCsv/dataUpload')))\n }\n\n public setFormData(res){\n this.uploader = new FileUploader({url: this.URL,disableMultipart: true});\n if(res){\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"req_rcvd_to_be_notified_by_mail\";\n this.dialogRef.afterClosed().subscribe(result => {\n this.router.navigateByUrl('/app/file-upload/list');\n });\n } else if(res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'unable_to_upload';\n this.httpService.onEnd();\n }\n }\n\n ngOnInit(): void {\n this.buildForm();\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/file-upload/add-file/addFile.component.ts","/**\n * Created by shubham on 13/6/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { MdDialog } from '@angular/material';\nimport { HttpService } from '../shared/services/http.service';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { TranslateService } from 'ng2-translate';\n\n@Component({\n selector: 'file-upload',\n template: require('./fileUpload.component.html')\n})\nexport class FileUploadComponent {\n\n dialogRef;\n languageId: any;\n\n constructor(private router: Router, private sessionHandler:SessionHandler, public httpService : HttpService, public dialog: MdDialog,\n private translate: TranslateService) {\n this.languageId = this.sessionHandler.getItem('languageId');\n if(!this.languageId){\n this.languageId = \"EN\";\n }\n this.translate.use(this.languageId);\n }\n\n ngOnInit() {}\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/file-upload/fileUpload.component.ts","/**\n * Created by shubham on 13/6/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { Http} from '@angular/http';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { NgxDatatableModule } from '@swimlane/ngx-datatable';\nimport { FileUploadRoutingModule } from './fileUpload-routing.module';\nimport { FileUploadComponent } from './fileUpload.component';\nimport { FileUploadListComponent } from './fileUploadList/fileUploadList.component';\nimport { AddFileComponent } from './add-file/addFile.component';\nimport { FileUploadModule } from \"ng2-file-upload\";\nimport { TranslateModule,TranslateLoader,TranslateStaticLoader } from 'ng2-translate';\nimport { APPCONFIG } from '../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n FormsModule,\n NgxDatatableModule,\n ReactiveFormsModule,\n FileUploadModule,\n FileUploadRoutingModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n FileUploadComponent,\n FileUploadListComponent,\n AddFileComponent\n ],\n exports: [\n ]\n})\n\nexport class CSVUploadModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/file-upload/fileUpload.module.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * An object used to get page information from the server\n */\nexport class FileUploadListPage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/file-upload/fileUploadList-datatable/fileUploadList-page.ts","/**\n * Created by shubham on 13/6/18.\n */\n\nimport { Component, ViewChild } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { HttpService } from '../../shared/services/http.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { DatatableComponent } from '@swimlane/ngx-datatable';\nimport { MdDialog } from '@angular/material';\nimport { DialogComponent } from '../../dialog/dialog.component';\nimport { CSVErrorDialogComponent } from '../../dialog/dialog.component';\nimport { CommonService } from '../../shared/services/common.service';\nimport { APPCONFIG } from '../../config';\nimport { FileUploadListPage } from \"../fileUploadList-datatable/fileUploadList-page\";\nimport { FileUploadListDashboardResultService } from '../fileUploadListDashboardResultService';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n selector: 'fileUploadList',\n template: require('./fileUploadList.component.html')\n})\nexport class FileUploadListComponent {\n\n @ViewChild(DatatableComponent) table: DatatableComponent;\n dialogRef;\n userDetails:any;\n page = new FileUploadListPage();\n tableRows :any = [];\n filters:any = {};\n rows:any;\n uploadList: any;\n temp = [];\n showTable:boolean = true;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n dataTableMessage = {'selectedMessage':'','totalMessage':''};\n\n constructor(private router: Router, private httpService:HttpService, private sessionHandler:SessionHandler, public dialog: MdDialog,\n private serverResultsService: FileUploadListDashboardResultService, private commonService: CommonService, private translate: TranslateService) {\n\n this.page.pageNumber = 0;\n this.page.size = 20;\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n if(this.isSystemAdmin || this.isBUManager){\n this.getFileUploadList(this.filters);\n } else{\n this.showTable = false;\n }\n }\n\n public getFileUploadList(filter){\n this.httpService.getRequest(\"dataUploadOperations/v1/userMigration/list?limit=\"+filter.limit+\"&offset=\"+filter.offSet).subscribe(\n res => { this.saveFileUploadList(res, filter); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveFileUploadList = function(res, filter){\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if(res && Object.keys(res).length > 0 ){\n this.uploadList = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n\n if(this.uploadList.list) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.uploadList.list) {\n this.rows[data] = {};\n this.rows[data]['id'] = this.uploadList.list[data]['id'];\n this.rows[data]['type'] = this.uploadList.list[data]['type'];\n\n if(this.uploadList.list[data]['countryName']){\n this.rows[data]['countryName'] = this.uploadList.list[data]['countryName'];\n }\n\n if(this.uploadList.list[data]['businessUnitName']){\n this.rows[data]['businessUnitName'] = this.uploadList.list[data]['businessUnitName'];\n }\n\n this.rows[data]['includesHeader'] = this.uploadList.list[data]['includesHeader'];\n this.rows[data]['csvName'] = this.uploadList.list[data]['csvName'];\n this.rows[data]['csvUrl'] = this.uploadList.list[data]['csvUrl'];\n this.rows[data]['status'] = this.uploadList.list[data]['status'];\n\n this.rows[data]['error'] = this.uploadList.list[data]['error'];\n if(this.uploadList.list[data]['error'] == true){\n this.rows[data]['message'] = this.uploadList.list[data]['message'];\n }\n\n this.rows[data]['uploadBy'] = this.uploadList.list[data]['uploadBy'];\n this.rows[data]['uploadedAt'] = this.uploadList.list[data]['uploadedAt'];\n }\n this.showTable = true;\n this.temp = this.rows;\n } else{\n this.showTable = false;\n }\n\n let finalRows = [];\n for(let f in this.rows){\n if(f != 'offset' && f !='totalCount' && this.rows[f]){\n finalRows.push(this.rows[f]);\n }\n if(f == 'offset'){\n finalRows['offset'] = this.rows['offset'];\n }\n if(f == 'totalCount'){\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({ offset: this.rows['offset']/this.page.size },finalRows,filter);\n this.httpService.onEnd();\n }\n }\n }\n\n /**\n * Populate the table with new data based on the page number\n * @param page The page to select\n */\n public setPage(pageInfo,rows,filter){\n this.page.pageNumber = pageInfo.offset;\n if(rows.length != 0){\n this.serverResultsService.getResults(this.page,rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if(!filter){\n if(Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']){\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.getFileUploadList(this.filters);\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n\n public showErrorMsg(msg){\n this.dialogRef = this.dialog.open(CSVErrorDialogComponent);\n this.dialogRef.componentInstance.msg = msg;\n }\n\n ngOnInit(){\n this.translate.get('total').subscribe((res: string) => {\n this.dataTableMessage.totalMessage=res;\n });\n this.translate.get('selected').subscribe((res: string) => {\n this.dataTableMessage.selectedMessage=res;\n });\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/file-upload/fileUploadList/fileUploadList.component.ts","/**\n * Created by shubham on 8/5/18.\n */\n\nimport {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {FileUploadListPageData} from \"./fileUploadList-datatable/fileUploadList-page-data\";\nimport {FileUploadListDashboard} from \"./fileUploadList-datatable/fileUploadList-dashboard\";\nimport {FileUploadListPage} from \"./fileUploadList-datatable/fileUploadList-page\";\n\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class FileUploadListDashboardResultService {\n listData:any;\n loginData;\n rows = {};\n adminDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: FileUploadListPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: FileUploadListPage): FileUploadListPageData {\n let pageData = new FileUploadListPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n let list = new FileUploadListDashboard(jsonObj['id'], jsonObj['type'], jsonObj['countryName'],\n jsonObj['businessUnitName'], jsonObj['includesHeader'], jsonObj['csvName'], jsonObj['csvUrl'],\n jsonObj['status'], jsonObj['error'], jsonObj['message'], jsonObj['uploadBy'], jsonObj['uploadedAt']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/file-upload/fileUploadListDashboardResultService.ts","/**\n * Created by shubham on 17/5/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { HttpService } from '../shared/services/http.service'\nimport { MdDialog } from '@angular/material';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\nimport { CommonService } from '../shared/services/common.service';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n template: require('./forgotPassword.component.html')\n})\n\nexport class ForgotPasswordComponent {\n data: any = [];\n dialogRef;\n id: any;\n languageId: any;\n ForgetPasswordForm: FormGroup;\n ForgetPasswordFormDetails: any;\n\n constructor(private router: Router, private route: ActivatedRoute, private httpService: HttpService,private sessionHandler:SessionHandler,\n public dialog: MdDialog, private translate: TranslateService, private formBuilder: FormBuilder, private commonService: CommonService) {\n }\n\n buildForm() {\n this.ForgetPasswordForm = this.formBuilder.group({\n userId_WPASS: this.formBuilder.control(null, [Validators.required]),\n });\n this.ForgetPasswordForm.valueChanges.subscribe(data => {\n this.ForgetPasswordFormDetails = this.ForgetPasswordForm.getRawValue();\n });\n }\n\n public forgetPassword(){\n this.httpService.postRequest(this.ForgetPasswordFormDetails,'userOperationsApi/v1/forgotPassword').subscribe(\n res => { this.saveResponse(res); },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n\n public saveResponse(res){\n if(res){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'after_reset_password_notify';\n this.dialogRef.afterClosed().subscribe(result => {\n this.router.navigateByUrl('/login');\n });\n }\n this.httpService.onEnd();\n }\n\n ngOnInit(): void {\n this.buildForm();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/forgot-password/forgotPassword.component.ts","/**\n * Created by shubham on 27/2/18.\n */\n\nimport { Component } from '@angular/core';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { HttpService } from '../shared/services/http.service';\nimport { LayoutService } from '../layout/layout.service';\nimport { APPCONFIG } from '../config';\nimport { MdDialog } from '@angular/material';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { TranslateService } from 'ng2-translate';\nimport { CommonService } from '../shared/services/common.service';\nimport {isNullOrUndefined} from \"util\";\ndeclare const gapi: any;\n\n@Component({\n selector: 'app-login',\n styles: [],\n template: require('./login.component.html'),\n providers: []\n})\n\nexport class LoginComponent {\n dialogRef;\n userDetails:any;\n PartnersForm: FormGroup;\n PartnersFormDetails: any;\n defaultLanguageId: any;\n languageDetails: any;\n urlId: any;\n redirectUrl: string = \"\";\n\n constructor(private dialog: MdDialog,private router: Router, private route: ActivatedRoute,public layoutService: LayoutService,public httpService: HttpService,\n public sessionHandler: SessionHandler, private formBuilder: FormBuilder, private translate: TranslateService, public commonService:CommonService){\n this.PartnersFormDetails = [];\n\n //Get URL param value\n this.route.params.subscribe(params => {\n this.urlId = params['id'];\n if(this.urlId != undefined){\n this.urlId = this.urlId.toUpperCase();\n }\n });\n\n this.redirectUrl = this.commonService.getLoginRedirectUrl();\n //this.redirectUrl = this.sessionHandler.getItem('lastUrl');\n console.log(this.redirectUrl);\n\n this.getLanguages();\n }\n\n //Initialize Google API\n public auth2: any;\n public googleInit() {\n let that = this;\n gapi.load('auth2', function () {\n that.auth2 = gapi.auth2.init({\n client_id: APPCONFIG.google_client_id,\n cookiepolicy: 'single_host_origin',\n scope: 'profile email'\n });\n that.attachSignin(document.getElementById('googleBtn'));\n });\n }\n\n //Attach Click Handler\n public attachSignin(element) {\n let that = this;\n this.auth2.attachClickHandler(element, {},\n function (googleUser) {\n that.adminLogin(googleUser);\n },\n function (error) {\n console.log(JSON.stringify(error, undefined, 2));\n });\n }\n\n //Google Login Post API\n adminLogin(googleUser) {\n let profile = googleUser.getBasicProfile();\n this.userDetails = {\n token: googleUser.getAuthResponse().id_token,\n name: profile.getName(),\n image: profile.getImageUrl(),\n email: profile.getEmail(),\n languageId: this.PartnersFormDetails.languageId\n };\n if(this.userDetails.email){\n this.httpService.postRequest(this.userDetails,'userOperationsApi/v1/googleLogin').subscribe(\n res => { this.saveResponse(res,'GoogleLogin'); },\n err => { this.httpService.onEnd(); }\n );\n } else {\n this.layoutService.popToast(\"Invalid Email Domain.\", APPCONFIG.toastrType.error);\n }\n }\n\n //Service Login Post API\n public servicePartnerLogin() {\n if(this.PartnersFormDetails.userId_WPASS){\n this.httpService.postRequest(this.PartnersFormDetails,'userOperationsApi/v1/wpasslogin').subscribe(\n res => { this.saveResponse(res, 'PartnersLogin'); },\n err => {\n this.PartnersForm.reset();\n this.getLanguages();\n this.httpService.onEnd();\n }\n );\n } else {\n this.layoutService.popToast(\"Invalid Email Domain.\", APPCONFIG.toastrType.error);\n }\n }\n\n //Save Response of Google Login API/Service Partner Login API\n public saveResponse(res,selectedLogin){\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n if(selectedLogin == 'PartnersLogin'){\n this.PartnersForm.reset();\n this.getLanguages();\n }\n alert('User is not authorized');\n } else {\n if(res){\n\n this.sessionHandler.saveItem(\"loginData\", JSON.stringify(res));\n if(res.languageId){\n this.setLanguage(res.languageId);\n } else {\n this.setLanguage('EN');\n }\n\n let redirectUrl;\n if(selectedLogin == \"GoogleLogin\"){\n this.sessionHandler.saveItem(\"userDetails\", JSON.stringify(this.userDetails));\n if(res.roleCode.includes(APPCONFIG.systemAdmin)){\n redirectUrl = '#/app/profile';\n //this.sessionHandler.saveItem(\"wpassLogin\", true);\n } else if(res.roleCode.includes(APPCONFIG.BUManager) || res.roleCode.includes(APPCONFIG.regionalAdmin)){\n redirectUrl = '#/app/admin-dashboard';\n } else if(res.roleCode.includes(APPCONFIG.applicationManager)){\n redirectUrl = '#/app/application-manager-dashboard';\n } else{\n alert('No role assigned to user. Please contact your administrator.');\n redirectUrl = '#/login';\n }\n\n if(this.redirectUrl != \"\" && this.redirectUrl != undefined && this.redirectUrl != null){\n redirectUrl = this.redirectUrl;\n }\n } else if(selectedLogin == \"PartnersLogin\"){\n this.sessionHandler.saveItem(\"userDetails\", JSON.stringify(this.PartnersFormDetails));\n if(res.roleCode.includes(APPCONFIG.serviceOwner) || res.roleCode.includes(APPCONFIG.tradePartner)){\n redirectUrl = '#/app/partners-dashboard';\n this.sessionHandler.saveItem(\"wpassLogin\", true);\n } else if(res.roleCode.includes(APPCONFIG.subuser)){\n redirectUrl = '#/app/profile';\n } else{\n alert('No role assigned to user. Please contact your administrator.');\n redirectUrl = '#/login';\n }\n }\n this.httpService.onEnd();\n window.location.href = redirectUrl;\n }\n }\n }\n\n //Get Languages Details\n public getLanguages(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(\n res => { this.saveLanguageResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n //Save Languages Response\n public saveLanguageResponse(res) {\n if(res && res.items){\n this.languageDetails = res.items;\n let localStorageLanguageId = this.sessionHandler.getItem('languageId');\n for(let l in this.languageDetails){\n if(this.urlId != undefined && this.urlId != null){\n if(this.languageDetails[l]['id'] == this.urlId){\n this.setLanguage(this.urlId);\n this.PartnersForm.controls['languageId'].setValue(this.urlId);\n }\n } else if(localStorageLanguageId != undefined && localStorageLanguageId != null){\n if(this.languageDetails[l]['id'] == localStorageLanguageId){\n this.setLanguage(localStorageLanguageId);\n this.PartnersForm.controls['languageId'].setValue(localStorageLanguageId);\n }\n } else {\n if(this.languageDetails[l]['id'] == 'EN'){\n this.defaultLanguageId = this.languageDetails[l]['id'];\n this.setLanguage(this.defaultLanguageId);\n }\n }\n }\n }\n this.httpService.onEnd();\n }\n\n showPassword(input: any): any {\n input.type = input.type === 'password' ? 'text' : 'password';\n }\n\n //Build Form\n buildForm() {\n this.PartnersForm = this.formBuilder.group({\n languageId: this.formBuilder.control(this.urlId),\n userId_WPASS: this.formBuilder.control(null, [Validators.required]),\n password: this.formBuilder.control(null, [Validators.required])\n });\n this.PartnersForm.valueChanges.subscribe(data => {\n this.PartnersFormDetails = this.PartnersForm.getRawValue();\n if(this.PartnersFormDetails.languageId != null){\n this.setLanguage(this.PartnersFormDetails.languageId);\n }\n });\n }\n\n public setLanguage(languageId){\n this.sessionHandler.saveItem(\"languageId\", languageId);\n this.translate.setDefaultLang(languageId);\n this.translate.use(languageId);\n }\n\n //Initialize buildForm() function when Login Component loads\n ngOnInit(): void {\n this.buildForm();\n }\n\n //Initialize googleInit() function after viewPartners initialize\n ngAfterViewInit(){\n this.googleInit();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/login/login.component.ts","import { Component } from '@angular/core';\n\n// Children of AppModule instead of AppMainModule\n@Component({\n selector: 'my-page-layout-fullscreen',\n styles: [],\n template: require('./fullscreen.component.html')\n})\n\nexport class PageLayoutFullscreenComponent {}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/page-layouts/fullscreen/fullscreen.component.ts","/**\n * Created by shubham on 24/4/18.\n */\n\nimport { Component, ViewChild } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { HttpService } from '../shared/services/http.service';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { DatatableComponent } from '@swimlane/ngx-datatable';\nimport { MdDialog } from '@angular/material';\nimport { DialogComponent, WelcomeDialogComponent } from '../dialog/dialog.component';\nimport { CommonService } from '../shared/services/common.service';\nimport { PartnersPage } from \"./partners-datatable/partners-page\";\nimport { FormGroup, FormBuilder } from '@angular/forms';\nimport { APPCONFIG } from '../config';\nimport { PartnersDashboardResultService } from '../partnersDashboardResultService';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n selector: 'partners-dashboard',\n template: require('./partners-dashboard.component.html')\n})\nexport class PartnersDashboardComponent {\n\n @ViewChild(DatatableComponent) table: DatatableComponent;\n dialogRef;\n PartnersFiltersForm: FormGroup;\n userDetails:any;\n urlId: any;\n page = new PartnersPage();\n tableRows :any = [];\n filters:any = {};\n rows:any;\n partnersDashboardData = [];\n temp = [];\n showTable:boolean = true;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n selected = [];\n selectedCount: any;\n count: any;\n totalCount: any;\n searchedFilters= { email:'', firstName:'', wpassId:'' };\n partnersText: any;\n selectedStatusId: string = '';\n firstName = '';\n email = '';\n wpassId = '';\n isDisabled = false;\n showCheckbox = false;\n wpassLogin: boolean = false;\n type='';\n dataTableMessage = {'selectedMessage':'','totalMessage':''};\n StatusData = [{\n \"id\": \"\",\n \"code\": \"\",\n \"name\": \"All\"\n }];\n\n constructor(private router: Router, private route: ActivatedRoute, private httpService:HttpService, private sessionHandler:SessionHandler,\n private formBuilder: FormBuilder, public dialog: MdDialog, private serverResultsService: PartnersDashboardResultService, \n private commonService: CommonService, private translate: TranslateService) {\n\n //Close Sidebar Initially\n APPCONFIG.navCollapsed = true;\n\n this.page.pageNumber = 0;\n this.page.size = 20;\n this.partnersText = 'partners';\n\n this.wpassLogin = JSON.parse(this.sessionHandler.getItem('wpassLogin'));\n if(this.wpassLogin != null && this.wpassLogin == true){\n this.dialogRef = this.dialog.open(WelcomeDialogComponent);\n this.dialogRef.afterClosed().subscribe(result => {\n localStorage.removeItem('wpassLogin');\n });\n }\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n //Get URL param value\n this.route.params.subscribe(params => {\n this.urlId = +params['id'];\n });\n\n this.getStatusList();\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n this.callUsersListbyAdminOrPartner();\n\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\n this.commonService.partnersDashboard.subscribe((value) => {\n if(!isNaN(this.urlId)){\n this.getUsersList(this.filters, this.selectedStatusId, this.urlId, this.email, this.firstName, this.wpassId);\n } else{\n this.getUsersList(this.filters, this.selectedStatusId, '', this.email, this.firstName, this.wpassId);\n }\n });\n }\n\n buildForm() {\n this.PartnersFiltersForm = this.formBuilder.group({\n firstName: this.formBuilder.control({value: '', disabled: this.isDisabled}),\n email: this.formBuilder.control({value: '', disabled: this.isDisabled}),\n wpassId: this.formBuilder.control(''),\n });\n this.PartnersFiltersForm.valueChanges.subscribe(data => {\n this.firstName = this.PartnersFiltersForm.get('firstName').value;\n this.email = this.PartnersFiltersForm.get('email').value;\n this.wpassId = this.PartnersFiltersForm.get('wpassId').value;\n });\n }\n\n disablefields(value: String) {\n if(value != ''){\n this.PartnersFiltersForm.controls['firstName'].setValue('');\n this.PartnersFiltersForm.controls['email'].setValue('');\n this.PartnersFiltersForm.controls['firstName'].disable();\n this.PartnersFiltersForm.controls['email'].disable();\n } else{\n this.PartnersFiltersForm.controls['firstName'].enable();\n this.PartnersFiltersForm.controls['email'].enable();\n }\n }\n\n public resetSearch(){\n this.PartnersFiltersForm.controls['firstName'].enable();\n this.PartnersFiltersForm.controls['email'].enable();\n this.PartnersFiltersForm.reset();\n this.firstName = '';\n this.email = '';\n this.wpassId = '';\n this.selectedStatusId = \"\";\n this.callUsersListbyAdminOrPartner();\n }\n\n public getStatusList(){\n this.httpService.getRequest(\"lookupDataOperationsApi/v1/registrationStatusFilter?includeDeleted=true\").subscribe(\n res => { this.saveStatusList(res); },\n err => { this.httpService.onEnd();}\n );\n }\n public saveStatusList(res){\n if(res && res.items){\n for(let s in res.items){\n this.StatusData.push(res.items[s]);\n }\n }\n }\n\n public callUsersListbyAdminOrPartner(){\n this.selected = [];\n this.filters['offSet'] = 0;\n if(this.isServiceOwner || this.isTradePartner){\n this.getUsersList(this.filters, this.selectedStatusId, '', this.email, this.firstName, this.wpassId);\n } else if(this.isRegionalAdmin || this.isBUManager){\n if(this.urlId != NaN){\n this.getUsersList(this.filters, this.selectedStatusId, this.urlId, this.email, this.firstName, this.wpassId);\n }\n }\n }\n\n public getUsersList(filter, selectedStatus, id, email, firstName, wpassId) {\n this.searchedFilters.email=email;\n this.searchedFilters.firstName=firstName;\n this.searchedFilters.wpassId=wpassId;\n\n if(selectedStatus == 'PENDING'){\n this.showCheckbox = true;\n } else{\n this.showCheckbox = false;\n }\n\n this.httpService.getRequest(\"partnerOperationsApi/v1/companyUser/list?limit=\"+filter.limit+\"&offset=\"+filter.offSet+\"&ownerId=\"+id+\"&status=\"+selectedStatus+\"&email=\"+email+\"&firstName=\"+firstName+\"&wpassId=\"+wpassId).subscribe(\n res => {\n if(id){ this.saveUserList(res,filter,'admin'); }\n else { this.saveUserList(res,filter,'partners'); }\n },\n err => { this.httpService.onEnd();}\n );\n }\n\n public saveUserList(res, filter, type){\n this.type=type;\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if(res && Object.keys(res).length > 0 ){\n this.partnersDashboardData = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n this.count = res.count;\n this.totalCount = res.totalCount;\n\n if(this.partnersDashboardData['list']) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.partnersDashboardData['list']) {\n if(this.isBUManager || this.isRegionalAdmin ||this.isServiceOwner || this.isTradePartner){\n this.rows[data] = {};\n this.rows[data]['id'] = this.partnersDashboardData['list'][data]['id'];\n this.rows[data]['Name'] = this.partnersDashboardData['list'][data]['firstName'] +' '+this.partnersDashboardData['list'][data]['lastName'];\n\n if(this.partnersDashboardData['list'][data]['roleName']){\n this.rows[data]['roleName'] = this.partnersDashboardData['list'][data]['roleName'];\n }\n\n this.rows[data]['email'] = this.partnersDashboardData['list'][data]['email'];\n this.rows[data]['emailVerified'] = this.partnersDashboardData['list'][data]['emailVerified'];\n if(this.partnersDashboardData['list'][data]['userId_WPASS']){\n this.rows[data]['userId_WPASS'] = this.partnersDashboardData['list'][data]['userId_WPASS'];\n } else {\n this.rows[data]['userId_WPASS'] = null;\n }\n this.rows[data]['languageId'] = this.partnersDashboardData['list'][data]['languageId'];\n this.rows[data]['languageName'] = this.partnersDashboardData['list'][data]['languageName'];\n this.rows[data]['status'] = this.partnersDashboardData['list'][data]['status'];\n this.rows[data]['ownerId'] = this.partnersDashboardData['list'][data]['ownerId'];\n this.rows[data]['sessionUserManager'] = this.partnersDashboardData['list'][data]['sessionUserManager'];\n this.rows[data]['createdAt'] = this.partnersDashboardData['list'][data]['createdAt'];\n this.rows[data]['updatedAt'] = this.partnersDashboardData['list'][data]['updatedAt'];\n } else{\n //For Other Service Partner's\n this.rows[data] = {};\n }\n }\n this.showTable = true;\n this.temp = this.rows;\n } else{\n this.showTable = false;\n }\n\n let finalRows = [];\n for(let f in this.rows){\n if(f != 'offset' && f !='totalCount' && this.rows[f]){\n finalRows.push(this.rows[f]);\n }\n if(f == 'offset'){\n finalRows['offset'] = this.rows['offset'];\n }\n if(f == 'totalCount'){\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({ offset: this.rows['offset']/this.page.size },finalRows,filter);\n this.httpService.onEnd();\n }\n }\n }\n\n /**\n * Populate the table with new data based on the page number\n * @param page The page to select\n */\n public setPage(pageInfo,rows,filter){\n this.page.pageNumber = pageInfo.offset;\n if(rows.length != 0){\n this.serverResultsService.getResults(this.page,rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if(!filter){\n if(Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']){\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n console.log('type:'+this.type);\n if(this.type == 'admin'){\n this.getUsersList(this.filters, this.selectedStatusId, this.urlId, this.email, this.firstName, this.wpassId);\n } else if(this.type == 'partners'){\n this.getUsersList(this.filters, this.selectedStatusId, '', this.email, this.firstName, this.wpassId);\n }\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n\n onSelect({ selected }) {\n this.selected.splice(0, this.selected.length);\n this.selected.push(...selected);\n this.selectedCount = this.selected.length;\n }\n\n ngOnInit(){\n this.buildForm();\n\n this.translate.get('total').subscribe((res: string) => {\n this.dataTableMessage.totalMessage=res;\n });\n this.translate.get('selected').subscribe((res: string) => {\n this.dataTableMessage.selectedMessage=res;\n });\n }\n\n ngOnDestroy() {\n this.dialog.closeAll();\n localStorage.removeItem('wpassLogin');\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/partners-dashboard/partners-dashboard.component.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * An object used to get page information from the server\n */\nexport class PartnersPage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/partners-dashboard/partners-datatable/partners-page.ts","/**\n * Created by shubham on 24/4/18.\n */\n\nimport {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {PartnersPageData} from \"./partners-dashboard/partners-datatable/partners-page-data\";\nimport {PartnersDashboardList} from \"./partners-dashboard/partners-datatable/partnersDashboardList\";\nimport {PartnersPage} from \"./partners-dashboard/partners-datatable/partners-page\";\n\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class PartnersDashboardResultService {\n listData:any;\n loginData;\n rows = {};\n partnersDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: PartnersPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: PartnersPage): PartnersPageData {\n let pageData = new PartnersPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n let list = new PartnersDashboardList(jsonObj['id'], jsonObj['Name'], jsonObj['roleName'], jsonObj['email'],\n jsonObj['emailVerified'], jsonObj['userId_WPASS'], jsonObj['languageId'], jsonObj['languageName'],\n jsonObj['status'], jsonObj['ownerId'], jsonObj['sessionUserManager'], jsonObj['createdAt']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/partnersDashboardResultService.ts","/**\n * Created by shubham on 28/2/18.\n * Updated by shubham on 06/10/18.\n */\n\nimport { Component } from '@angular/core';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { HttpService } from '../shared/services/http.service';\nimport { LayoutService } from '../layout/layout.service';\nimport { APPCONFIG } from '../config';\nimport { MdDialog } from '@angular/material';\nimport { FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { DaterangepickerConfig } from 'ng2-daterangepicker';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport { RegistrationDialogComponent } from '../dialog/dialog.component';\nimport { TranslateService } from 'ng2-translate';\n\n@Component({\n template: require('./registration.component.html')\n})\n\nexport class RegistrationComponent {\n dialogRef;\n RegistrationForm: FormGroup;\n RegistrationFormDetails: any;\n RegistrationDataById = [];\n CountryAndBusinessUnitDataById = [];\n Countries = [];\n BusinessUnit = [];\n isApplicationRemovable = true;\n Applications = [];\n emailPattern = APPCONFIG.emailPattern;\n //passwordPattern = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{5,}$/;\n passwordPattern = /^(?=.*?[A-Za-z])(?=.*?[0-9]).{5,}$/;\n phoneNumberPattern = /^[+]?([0-9]*[\\.\\s\\-\\(\\)]|[0-9]+){3,7}$/;\n //phoneNumberPattern = /^(\\+\\d{1,2}\\s)?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}$/;\n customerNumberLength: number = 0;\n LanguageData: any;\n urlId: any;\n urlIdFlag: boolean = false;\n appsUrlIdFlag: boolean = false;\n passwordErrorMsg: string = '';\n\n constructor(private route: ActivatedRoute, private router: Router,public httpService : HttpService, public layoutService : LayoutService,\n private dialog: MdDialog, private formBuilder: FormBuilder, private daterangepickerOptions: DaterangepickerConfig,\n public sessionHandler : SessionHandler, private translate: TranslateService){\n\n //Get URL param value\n this.route.params.subscribe(params => {\n this.urlId = params['id'];\n this.getLanguages();\n\n if(this.urlId != undefined || this.urlId != null){\n this.urlIdFlag = true;\n\n if(router.url.indexOf(\"apps\") > -1) {\n this.appsUrlIdFlag = true;\n this.getCountryAndBusinessUnitById(this.urlId);\n } else {\n this.getCountries();\n this.getBusinessUnit();\n this.getRegistrationDataById(this.urlId);\n }\n } else{\n this.urlIdFlag = false;\n this.getCountries();\n }\n });\n }\n\n public getCountries() {\n this.httpService.getRequest('lookupDataOperationsApi/v1/country').subscribe(\n res => { this.saveCountries(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n \n validateName(event: any) {\n return APPCONFIG.validNameRegex.test(event.key);\n }\n saveCountries(res) {\n if(res && res.items){\n this.Countries = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getBusinessUnit() {\n this.httpService.getRequest('lookupDataOperationsApi/v1/businessUnit').subscribe(\n res => { this.saveBusinessUnits(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveBusinessUnits(res) {\n if(res && res.items){\n this.BusinessUnit = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getLanguages() {\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(\n res => { this.saveLanguageResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveLanguageResponse(res) {\n if(res && res.items){\n this.LanguageData = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getBusinessUnitByCountryId(countryId) {\n this.httpService.getRequest('lookupDataOperationsApi/v1/businessUnitForCountry/'+countryId).subscribe(\n res => { this.saveBusinessUnitByCountryId(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveBusinessUnitByCountryId(res) {\n if(res && res.items){\n this.BusinessUnit = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getApplicationsByCountryAndBusinessUnit(countryId, businessUnitId) {\n this.httpService.getRequest('applicationOperationApi/v1/getApplicationForbusinessUnit?countryId='+countryId+'&businessUnitId='+businessUnitId).subscribe(\n res => { this.saveApplicationsByCountryAndBusinessUnit(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveApplicationsByCountryAndBusinessUnit(res) {\n if(res && res.items){\n this.Applications = res.items;\n this.createRoles(this.Applications);\n }\n this.httpService.onEnd();\n }\n\n getCountryAndBusinessUnitById(urlId){\n this.httpService.getRequest('/applicationOperationApi/v1/getbusinessUnitCountryForApplication?id='+urlId).subscribe(\n res => { this.saveCountryAndBusinessUnitById(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveCountryAndBusinessUnitById(res){\n this.CountryAndBusinessUnitDataById = res;\n if(this.CountryAndBusinessUnitDataById){\n this.Countries = this.CountryAndBusinessUnitDataById['countryList'];\n }\n this.httpService.onEnd();\n }\n\n public getRegistrationDataById(urlId){\n this.httpService.getRequest('/userRegistrationsApi/v1/migratedUserDetails/'+urlId).subscribe(\n res => { this.saveRegistrationData(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveRegistrationData(res){\n if(res){\n this.RegistrationDataById = res;\n this.RegistrationForm.controls['email'].disable();\n this.RegistrationForm.controls['countryId'].disable();\n this.RegistrationForm.controls['businessUnitId'].disable();\n this.RegistrationForm.controls['companyName'].disable();\n this.RegistrationForm.controls['customerNumber'].disable();\n $('#exampleInputNewPassword').focus();\n this.buildForm();\n\n // Now get all the applications\n if(!res.selectedApplications) {\n this.getApplicationsByCountryAndBusinessUnit(this.RegistrationDataById['countryId'], this.RegistrationDataById['businessUnitId']);\n }else {\n this.isApplicationRemovable = false;\n //Case where roles are already assigned to the migrated user \n res.items = res.selectedApplications;\n this.saveApplicationsByCountryAndBusinessUnit(res);\n }\n }\n }\n\n buildForm() {\n this.RegistrationForm = this.formBuilder.group({\n firstName: this.formBuilder.control(this.RegistrationDataById['firstName']?this.RegistrationDataById['firstName']:null, [Validators.required]),\n lastName: this.formBuilder.control(this.RegistrationDataById['lastName']?this.RegistrationDataById['lastName']:null, [Validators.required]),\n password: this.formBuilder.control('', [Validators.required, Validators.minLength(8), Validators.maxLength(8), Validators.pattern(this.passwordPattern)]),\n confirmPassword: this.formBuilder.control('', [Validators.required]),\n email: this.formBuilder.control(this.RegistrationDataById['email']?this.RegistrationDataById['email']:null, [Validators.required, Validators.pattern(this.emailPattern)]),\n countryId: this.formBuilder.control(this.RegistrationDataById['countryId']?this.RegistrationDataById['countryId']:null, [Validators.required]),\n businessUnitId: this.formBuilder.control(this.RegistrationDataById['businessUnitId']?this.RegistrationDataById['businessUnitId']:null, [Validators.required]),\n companyName: this.formBuilder.control(this.RegistrationDataById['companyName']?this.RegistrationDataById['companyName']:null, [Validators.required]),\n companyAddress: this.formBuilder.control(this.RegistrationDataById['companyAddress']?this.RegistrationDataById['companyAddress']:null, [Validators.required]),\n customerNumber: this.formBuilder.control(this.RegistrationDataById['customerNumber']?this.RegistrationDataById['customerNumber']:null),\n companyPhone: this.formBuilder.control(this.RegistrationDataById['companyPhone']?this.RegistrationDataById['companyPhone']:null, [Validators.pattern(this.phoneNumberPattern)]),\n languageId: this.formBuilder.control(this.RegistrationDataById['languageId']?this.RegistrationDataById['languageId']:null),\n applications: this.formBuilder.array([])\n }, {validator: this.checkPasswords});\n this.RegistrationForm.valueChanges.subscribe(data => {\n this.RegistrationFormDetails = this.RegistrationForm.getRawValue();\n if(this.urlIdFlag){\n this.RegistrationFormDetails['migratedFrom'] = this.RegistrationDataById['id'];\n }\n\n this.RegistrationFormDetails.validate = this.RegistrationForm.valid;\n });\n\n this.RegistrationForm.get('countryId').valueChanges.subscribe(data=> {\n if(!this.urlIdFlag || this.appsUrlIdFlag){\n this.RegistrationForm.controls['businessUnitId'].setValue(null);\n this.BusinessUnit = [];\n\n if(!this.urlIdFlag && data != null){\n this.getBusinessUnitByCountryId(data);\n } else if(this.appsUrlIdFlag && data != null){\n for(let countryData of this.CountryAndBusinessUnitDataById['countryList']){\n if(countryData && countryData['id'] && data == countryData['id'] && countryData['businessUnitList']){\n this.BusinessUnit = countryData['businessUnitList'];\n }\n }\n }\n }\n });\n\n this.RegistrationForm.get('businessUnitId').valueChanges.subscribe(data=> {\n if(!this.urlIdFlag || this.appsUrlIdFlag){\n const arrayControl = this.RegistrationForm.controls['applications'];\n arrayControl.controls = [];\n this.Applications = [];\n\n if(!this.urlIdFlag && data != null){\n this.getApplicationsByCountryAndBusinessUnit(this.RegistrationForm.get('countryId').value,data);\n } else if(this.appsUrlIdFlag && data != null){\n this.Applications.push(this.CountryAndBusinessUnitDataById);\n this.createRoles(this.Applications);\n }\n }\n });\n\n this.RegistrationForm.get('customerNumber').valueChanges.subscribe(data=> {\n if(data != null){\n this.customerNumberLength = data.toString().length;\n }\n });\n\n this.RegistrationForm.get('languageId').valueChanges.subscribe(data=> {\n if(data != null){\n this.sessionHandler.saveItem(\"languageId\", data);\n this.translate.setDefaultLang(data);\n this.translate.use(data);\n }\n })\n\n this.RegistrationForm.get('password').valueChanges.subscribe(data=> {\n if(data != null){\n this.RegistrationForm.get('password').setErrors({'incorrect': true});\n if(!/.*[A-Z]/.test(data) || !/.*[a-z]/.test(data)){\n this.passwordErrorMsg = \"pass_one_upper_lower_char\";\n } else if(!/.*[0-9]/.test(data)){\n this.passwordErrorMsg = \"pass_one_number\";\n } else if(data.length!=8){\n this.passwordErrorMsg = \"pass_8_chars\";\n } else{\n this.passwordErrorMsg = \"\";\n this.RegistrationForm.get('password').setErrors(null);\n }\n }\n })\n }\n\n checkPasswords(group: FormGroup) {\n if(group.get('password').value === group.get('confirmPassword').value){\n group.get('confirmPassword').setErrors(null);\n return null;\n } else{\n group.get('confirmPassword').setErrors({'incorrect': true});\n return {'mismatch': true};\n }\n }\n\n showPassword(input: any): any {\n input.type = input.type === 'password' ? 'text' : 'password';\n }\n\n createRoles(applicationsData): void{\n for(let data of applicationsData){\n this.onAddApplicationsProperty(data);\n }\n }\n public onAddApplicationsProperty(data?: any): void {\n const arrayControl = this.RegistrationForm.controls['applications'];\n let newGroup;\n if(data){\n newGroup = this.formBuilder.group({\n applicationId: this.formBuilder.control(data.id?data.id:null),\n applicationName: this.formBuilder.control({value: data.applicationName?data.applicationName:null, disabled: true}, [Validators.required]),\n /*customerNumber: this.formBuilder.control(null),\n customerNumberCheck: this.formBuilder.control(data.customerNumberRequired?data.customerNumberRequired:false)*/\n }, /*{validator: this.ChangeValidator}*/);\n } else {\n newGroup = this.formBuilder.group({\n applicationId: this.formBuilder.control(null),\n applicationName: this.formBuilder.control(null, [Validators.required]),\n /*customerNumber: this.formBuilder.control(null),\n customerNumberCheck: this.formBuilder.control(true)*/\n });\n }\n arrayControl.push(newGroup);\n }\n\n /*ChangeValidator(group: FormGroup){\n if(group.get('customerNumberCheck').value){\n group.get('customerNumber').setValidators([Validators.required]);\n } else{\n group.get('customerNumber').setValidators(null);\n }\n return null;\n }*/\n\n onDeleteRoleProperty(index: number): void {\n const arrayControl = this.RegistrationForm.controls['applications'];\n arrayControl.removeAt(index);\n }\n\n saveData() {\n if(this.RegistrationFormDetails){\n this.httpService.postRequest(this.RegistrationFormDetails,'userRegistrationsApi/v1/register/serviceOwner').subscribe(\n res => { this.saveResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n } else {\n this.layoutService.popToast(\"Invalid Email Domain.\", APPCONFIG.toastrType.error);\n }\n }\n public saveResponse(res){\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'User is not authorized';\n } else {\n let email = res.email;\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(RegistrationDialogComponent);\n if(this.urlIdFlag){\n this.dialogRef.componentInstance.msg = \"after_registration_notify\";\n } else {\n this.dialogRef.componentInstance.msg = \"registration_rqst_notify\";\n }\n this.dialogRef.afterClosed().subscribe(result => {\n this.router.navigateByUrl('/login');\n });\n }\n }\n\n ngOnInit(): void {\n this.buildForm();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/registration/registration.component.ts","/**\n * Created by shubham on 8/5/18.\n */\n\nimport { Component } from '@angular/core';\nimport { APPCONFIG } from '../../../config';\nimport { MdDialog } from '@angular/material';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { DialogComponent } from '../../../dialog/dialog.component';\nimport {TranslateService} from 'ng2-translate';\n\n\n@Component({\n selector: 'add-admin',\n template: require('./addAdmin.component.html')\n})\nexport class AddAdminComponent {\n\n dialogRef;\n userDetails: any;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n adminRoles = [];\n settings = {};\n languages = [];\n defaultLanguageId: any;\n AdminForm: FormGroup;\n AdminFormDetails: any;\n emailPattern = APPCONFIG.emailPattern;\n isDisabled = true;\n wpassId:any;\n selectedAdminItems:any;\n\n constructor(private sessionHandler:SessionHandler, public httpService : HttpService, public dialog: MdDialog, private formBuilder: FormBuilder,\n private translate: TranslateService) {\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n if(this.isSystemAdmin){\n this.getAdminRoles();\n this.getLanguages();\n }\n }\n\n validateName(event: any) {\n return APPCONFIG.validNameRegex.test(event.key);\n }\n public getAdminRoles(){\n this.httpService.getRequest('superUserOperationsApi/v1/adminRoles').subscribe(\n res => { this.saveAdminRoles(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveAdminRoles(res){\n if(res && res.items){\n this.adminRoles = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getLanguages(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(\n res => { this.saveLanguage(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveLanguage(res){\n if(res && res.items){\n this.languages = res.items;\n\n for(let l in this.languages){\n if(this.languages[l]['id'] == 'EN'){\n this.defaultLanguageId = this.languages[l]['id'];\n }\n }\n }\n this.httpService.onEnd();\n }\n\n buildForm() {\n this.AdminForm = this.formBuilder.group({\n firstName: this.formBuilder.control(null, [Validators.required]),\n lastName: this.formBuilder.control(null, [Validators.required]),\n email: this.formBuilder.control(null, [Validators.required, Validators.pattern(this.emailPattern)]),\n languageId: this.formBuilder.control(null, [Validators.required]),\n roleData: this.formBuilder.control(null, [Validators.required]),\n userId_WPASS: this.formBuilder.control(null, [Validators.required]),\n });\n this.AdminForm.valueChanges.subscribe(data => {\n this.AdminFormDetails = this.AdminForm.getRawValue();\n\n this.AdminFormDetails['roleId'] = [];\n for (let d in this.AdminFormDetails.roleData){\n this.AdminFormDetails['roleId'].push(this.AdminFormDetails.roleData[d]['id']);\n }\n\n this.AdminFormDetails.validate = this.AdminForm.valid;\n });\n }\n api1:boolean = true;\n buroleSelect(item: any){\n \n if(this.selectedAdminItems.find(x=> x.id == \"5639445604728832\")){\n if(this.wpassId){\n if(this.api1){\n /* this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"This user id is not able to assign manager\"; */\n } \n }\n else{\n if(this.selectedAdminItems.find(x=> x.id == \"5639445604728832\")){\n var sliceFor = this.selectedAdminItems.findIndex(x=> x.id == \"5639445604728832\");\n this.selectedAdminItems.splice(sliceFor);\n if(this.selectedAdminItems.length == 0){this.selectedAdminItems = []}\n console.log(this.selectedAdminItems);\n \n }}}\n else{\n if(this.wpassId){ }\n }\n}\n\n onBlurWpass(){\n if(this.selectedAdminItems){\n console.log(this.selectedAdminItems);\n if(this.selectedAdminItems.find(x=> x.id == \"5639445604728832\")){\n if(this.wpassId){\n if(this.api1){\n /* this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"This user id is not able to assign manager\"; */\n if(this.selectedAdminItems.find(x=> x.id == \"5639445604728832\")){\n var sliceFor = this.selectedAdminItems.findIndex(x=> x.id == \"5639445604728832\");\n this.selectedAdminItems.splice(sliceFor);\n if(this.selectedAdminItems.length == 0){this.selectedAdminItems = []}\n console.log(this.selectedAdminItems);\n }\n }\n }\n }\n else if(this.wpassId){ }\n \n }\n }\n\n\n noWpassId(item:any){\n console.log(item);\n }\n public saveAdminData(){\n this.httpService.postRequest(this.AdminFormDetails,'superUserOperationsApi/v1/admin').subscribe(\n res => { this.saveAdminResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveAdminResponse(res){\n if(res){\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"Admin added successfully\";\n this.dialogRef.afterClosed().subscribe(result => {\n window.location.href = '#/app/manage-admin/list';\n });\n } else if(res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'save_failed';\n this.httpService.onEnd();\n }\n }\n\n ngOnInit() {\n this.buildForm();\n\n var temp_settings = {singleSelection: false,text:\"\",labelKey: \"name\",selectAllText:\"\",unSelectAllText:\"\",classes:\"myclass custom-class\"};\n this.translate.get('Select Role').subscribe((res: string) => {temp_settings.text = res;\n if(temp_settings.text&&temp_settings.selectAllText&&temp_settings.unSelectAllText) {this.settings=temp_settings;}\n });\n this.translate.get('select_all').subscribe((res: string) => {temp_settings.selectAllText=res;\n if(temp_settings.text&&temp_settings.selectAllText&&temp_settings.unSelectAllText) {this.settings=temp_settings;}\n });\n this.translate.get('unselect_all').subscribe((res: string) => {temp_settings.unSelectAllText=res;\n if(temp_settings.text&&temp_settings.selectAllText&&temp_settings.unSelectAllText) {this.settings=temp_settings;}\n });\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/addAdmin/addAdmin.component.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * An object used to get page information from the server\n */\nexport class AdminListPage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/adminList-datatable/adminList-page.ts","/**\n * Created by shubham on 8/5/18.\n */\n\nimport { Component, ViewChild, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { DatatableComponent } from '@swimlane/ngx-datatable';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { DialogComponent } from '../../../dialog/dialog.component';\nimport { CommonService } from '../../../shared/services/common.service';\nimport { FormGroup, FormBuilder } from '@angular/forms';\nimport { AdminListPage } from \"../adminList-datatable/adminList-page\";\nimport { APPCONFIG } from '../../../config';\nimport { AdminListDashboardResultService } from '../adminListDashboardResultService';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n selector: 'adminList',\n template: require('./adminList.component.html')\n})\nexport class AdminListComponent {\n\n @ViewChild(DatatableComponent) table: DatatableComponent;\n dialogRef;\n userDetails:any;\n page = new AdminListPage();\n tableRows :any = [];\n filters:any = {};\n rows:any;\n adminListData = [];\n temp = [];\n showTable:boolean = true;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n selected = [];\n StatusData: any;\n selectedStatusId: boolean;\n adminRoles: any;\n defaulAdminId: any;\n adminListText: any;\n FiltersForm: FormGroup;\n firstName = '';\n email = '';\n wpassId = '';\n isDisabled = false;\n dataTableMessage = {'selectedMessage':'','totalMessage':''};\n\n constructor(private router: Router, private httpService:HttpService, private sessionHandler:SessionHandler, public dialog: MdDialog,\n private formBuilder: FormBuilder, private serverResultsService: AdminListDashboardResultService, private commonService: CommonService, \n private translate: TranslateService) {\n\n this.adminListText = 'adminList';\n\n //Assign Active or Inactive status\n this.StatusData = [\n {\n \"id\": true,\n \"code\": \"ACTIVE\",\n \"name\": \"Active\"\n }, {\n \"id\": false,\n \"code\": \"INACTIVE\",\n \"name\": \"Inactive\"\n }\n ];\n this.selectedStatusId = true;\n\n this.page.pageNumber = 0;\n this.page.size = 20;\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n if(this.isSystemAdmin){\n this.getAdminRoles();\n } else{\n this.getUserList();\n }\n\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\n this.commonService.adminList.subscribe((value) => {\n this.getUsersList(this.filters, this.selectedStatusId, this.defaulAdminId, this.email, this.firstName, this.wpassId);\n });\n }\n\n public getAdminRoles(){\n this.httpService.getRequest('superUserOperationsApi/v1/adminRoles').subscribe(\n res => { this.saveAdminRoles(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveAdminRoles(res){\n if(res && res.items){\n this.adminRoles = res.items;\n for(let a in this.adminRoles){\n if(this.adminRoles[a]['code'] == APPCONFIG.BUManager){\n this.defaulAdminId = this.adminRoles[a]['id'];\n }\n }\n if(!this.defaulAdminId) {\n this.defaulAdminId = this.adminRoles[0]['id'];\n }\n this.getUsersList(this.filters, this.selectedStatusId, this.defaulAdminId, this.email, this.firstName, this.wpassId);\n }else {\n this.httpService.onEnd();\n }\n }\n\n buildForm() {\n this.FiltersForm = this.formBuilder.group({\n firstName: this.formBuilder.control({value: '', disabled: this.isDisabled}),\n email: this.formBuilder.control({value: '', disabled: this.isDisabled}),\n wpassId: this.formBuilder.control(''),\n });\n this.FiltersForm.valueChanges.subscribe(data => {\n this.firstName = this.FiltersForm.get('firstName').value;\n this.email = this.FiltersForm.get('email').value;\n this.wpassId = this.FiltersForm.get('wpassId').value;\n });\n }\n\n disablefields(value: String) {\n if(value != ''){\n this.FiltersForm.controls['firstName'].setValue('');\n this.FiltersForm.controls['email'].setValue('');\n this.FiltersForm.controls['firstName'].disable();\n this.FiltersForm.controls['email'].disable();\n } else{\n this.FiltersForm.controls['firstName'].enable();\n this.FiltersForm.controls['email'].enable();\n }\n }\n\n public search(){\n this.filters['offSet'] = 0;\n this.getUsersList(this.filters, this.selectedStatusId, this.defaulAdminId, this.email, this.firstName, this.wpassId);\n }\n\n public resetSearch(){\n this.FiltersForm.controls['firstName'].enable();\n this.FiltersForm.controls['email'].enable();\n this.FiltersForm.reset();\n this.firstName = '';\n this.email = '';\n this.wpassId = '';\n this.search();\n }\n\n public getUsersList(filter, selectedStatus, defaulAdminId, email, firstName, wpassId ){\n this.httpService.getRequest(\"superUserOperationsApi/v1/admin/list?limit=\"+filter.limit+\"&offset=\"+filter.offSet+\"&role=\"+defaulAdminId+\"&active=\"+selectedStatus+\"&email=\"+email+\"&firstName=\"+firstName+\"&wpassId=\"+wpassId).subscribe(\n res => { this.saveUserList(res,filter); },\n err => { this.httpService.onEnd();}\n );\n }\n\n public getUserList = function () {\n this.showTable = false;\n }\n\n public saveUserList = function(res, filter){\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if(res && Object.keys(res).length > 0 ){\n this.adminListData = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n\n if(this.adminListData.list) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.adminListData.list) {\n if(this.isSystemAdmin){\n this.rows[data] = {};\n this.rows[data]['id'] = this.adminListData.list[data]['id'];\n this.rows[data]['Name'] = this.adminListData.list[data]['firstName'] +' '+this.adminListData.list[data]['lastName'];\n this.rows[data]['roleName'] = this.adminListData.list[data]['roleName'];\n this.rows[data]['email'] = this.adminListData.list[data]['email'];\n this.rows[data]['emailVerified'] = this.adminListData.list[data]['emailVerified'];\n\n if(this.adminListData.list[data]['userId_WPASS']){\n this.rows[data]['userId_WPASS'] = this.adminListData.list[data]['userId_WPASS'];\n } else {\n this.rows[data]['userId_WPASS'] = null;\n }\n\n if(this.adminListData.list[data]['pendingSubUserCount']){\n this.rows[data]['pendingSubUserCount'] = this.adminListData.list[data]['pendingSubUserCount'];\n } else {\n this.rows[data]['pendingSubUserCount'] = 0;\n }\n\n this.rows[data]['languageId'] = this.adminListData.list[data]['languageId'];\n this.rows[data]['languageName'] = 'Language';\n\n if(this.adminListData.list[data]['active'] == true){\n this.rows[data]['status'] = 'Active';\n } else{\n this.rows[data]['status'] = 'Inactive';\n }\n\n this.rows[data]['active'] = this.adminListData.list[data]['active'];\n this.rows[data]['createdAt'] = this.adminListData.list[data]['createdAt'];\n this.rows[data]['updatedAt'] = this.adminListData.list[data]['updatedAt'];\n } else{\n //For Other Service Partner's\n this.rows[data] = {};\n }\n }\n this.showTable = true;\n this.temp = this.rows;\n } else{\n this.showTable = false;\n }\n\n let finalRows = [];\n for(let f in this.rows){\n if(f != 'offset' && f !='totalCount' && this.rows[f]){\n finalRows.push(this.rows[f]);\n }\n if(f == 'offset'){\n finalRows['offset'] = this.rows['offset'];\n }\n if(f == 'totalCount'){\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({ offset: this.rows['offset']/this.page.size },finalRows,filter);\n this.httpService.onEnd();\n }\n }\n }\n\n /**\n * Populate the table with new data based on the page number\n * @param page The page to select\n */\n public setPage(pageInfo,rows,filter){\n this.page.pageNumber = pageInfo.offset;\n if(rows.length != 0){\n this.serverResultsService.getResults(this.page,rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if(!filter){\n if(Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']){\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.getUsersList(this.filters, this.selectedStatusId, this.defaulAdminId, this.email, this.firstName, this.wpassId);\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n\n onSelect({ selected }) {\n this.selected.splice(0, this.selected.length);\n this.selected.push(...selected);\n }\n\n ngOnInit(){\n this.buildForm();\n\n this.translate.get('total').subscribe((res: string) => {\n this.dataTableMessage.totalMessage=res;\n });\n this.translate.get('selected').subscribe((res: string) => {\n this.dataTableMessage.selectedMessage=res;\n });\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/adminList/adminList.component.ts","/**\n * Created by shubham on 8/5/18.\n */\n\nimport {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {AdminListPageData} from \"./adminList-datatable/adminList-page-data\";\nimport {AdminListDashboard} from \"./adminList-datatable/adminList-dashboard\";\nimport {AdminListPage} from \"./adminList-datatable/adminList-page\";\n\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class AdminListDashboardResultService {\n listData:any;\n loginData;\n rows = {};\n adminDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: AdminListPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: AdminListPage): AdminListPageData {\n let pageData = new AdminListPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n let list = new AdminListDashboard(jsonObj['id'], jsonObj['Name'], jsonObj['roleName'], jsonObj['email'],\n jsonObj['emailVerified'], jsonObj['pendingSubUserCount'], jsonObj['userId_WPASS'], jsonObj['languageId'],\n jsonObj['languageName'], jsonObj['active'], jsonObj['status'], jsonObj['createdAt']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/adminListDashboardResultService.ts","/**\n * Created by shubham on 8/5/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { MdDialog } from '@angular/material';\nimport { HttpService } from '../../shared/services/http.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { TranslateService } from 'ng2-translate';\n\n@Component({\n selector: 'manage-admin',\n template: require('./adminManagement.component.html')\n})\nexport class AdminManagementComponent {\n\n dialogRef;\n languageId: any;\n\n constructor(private router: Router, private sessionHandler:SessionHandler, public httpService : HttpService, public dialog: MdDialog,\n private translate: TranslateService) {\n this.languageId = this.sessionHandler.getItem('languageId');\n if(!this.languageId){\n this.languageId = \"EN\";\n }\n this.translate.use(this.languageId);\n }\n\n ngOnInit() {}\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/adminManagement.component.ts","/**\n * Created by shubham on 8/5/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { Http} from '@angular/http';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { NgxDatatableModule } from '@swimlane/ngx-datatable';\nimport { AngularMultiSelectModule } from 'angular2-multiselect-dropdown/angular2-multiselect-dropdown';\nimport { ActivateDeactivateModule } from '../../activate-deactivate-request/activate-deactivate-request.module';\nimport { AdminManagementRoutingModule } from './adminManagement-routing.module';\nimport { AdminManagementComponent } from './adminManagement.component';\nimport { AdminListComponent } from './adminList/adminList.component';\nimport { AddAdminComponent } from './addAdmin/addAdmin.component';\nimport { ViewAdminComponent } from './viewAdmin/viewAdmin.component';\nimport { TranslateModule,TranslateLoader,TranslateStaticLoader } from 'ng2-translate';\nimport { APPCONFIG } from '../../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n FormsModule,\n NgxDatatableModule,\n ReactiveFormsModule,\n AngularMultiSelectModule,\n ActivateDeactivateModule,\n AdminManagementRoutingModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n AdminManagementComponent,\n AdminListComponent,\n AddAdminComponent,\n ViewAdminComponent\n ],\n exports: [\n ]\n})\n\nexport class AdminManagementModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/adminManagement.module.ts","/**\n * Created by shubham on 8/5/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { APPCONFIG } from '../../../config';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { DialogComponent } from '../../../dialog/dialog.component';\nimport {TranslateService} from 'ng2-translate';\n\n\n@Component({\n selector: 'view-admin',\n template: require('./viewAdmin.component.html')\n})\nexport class ViewAdminComponent {\n\n dialogRef;\n userDetails: any;\n id: any;\n AdminEditForm: FormGroup;\n AdminEditFormDetails: any;\n adminDetails = [];\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n isDisabled = true;\n adminRoles = [];\n selectedItems = [];\n settings = {};\n\n constructor(private router: Router,private route: ActivatedRoute, private sessionHandler:SessionHandler, public httpService : HttpService, \n public dialog: MdDialog, private formBuilder: FormBuilder, private translate: TranslateService) {\n\n this.route.params.subscribe(params => {\n this.id = +params['id'];\n });\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n if(this.isSystemAdmin){\n this.getAdminDataById(this.id);\n this.getAdminRoles();\n } else{\n //TODO\n }\n }\n\n public getAdminRoles(){\n this.httpService.getRequest('superUserOperationsApi/v1/adminRoles').subscribe(\n res => { this.saveAdminRoles(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveAdminRoles(res){\n if(res && res.items){\n this.adminRoles = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getAdminDataById(id){\n this.httpService.getRequest('superUserOperationsApi/v1/admin/'+ id).subscribe(\n res => { this.saveRequestData(res) },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveRequestData(res) {\n if(res){\n this.adminDetails = res;\n if(this.adminDetails['roleId'] && this.adminDetails['roleName']){\n for(let l in this.adminDetails['roleId']){\n this.selectedItems.push({id: this.adminDetails['roleId'][l], name: this.adminDetails['roleName'][l]});\n }\n }\n this.AdminEditFormDetails = this.adminDetails;\n this.buildForm();\n this.httpService.onEnd();\n } else if(res.errorStatus == 'Fail'){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_load_failed';\n this.httpService.onEnd();\n }\n }\n\n buildForm() {\n this.AdminEditForm = this.formBuilder.group({\n roleData: this.formBuilder.control(null, [Validators.required]),\n });\n this.AdminEditForm.valueChanges.subscribe(data => {\n this.AdminEditFormDetails = this.AdminEditForm.getRawValue();\n this.AdminEditFormDetails['id'] = this.adminDetails['id'];\n\n this.AdminEditFormDetails['roleId'] = [];\n for (let d in this.AdminEditFormDetails.roleData){\n this.AdminEditFormDetails['roleId'].push(this.AdminEditFormDetails.roleData[d]['id']);\n }\n this.AdminEditFormDetails.validate = this.AdminEditForm.valid;\n });\n }\n\n public saveAdminRole(){\n this.httpService.postRequest(this.AdminEditFormDetails,'superUserOperationsApi/v1/updateAdminRole').subscribe(\n res => { this.saveAdminEditResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveAdminEditResponse(res){\n if(res){\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"Role Updated Successfully\";\n this.dialogRef.afterClosed().subscribe(result => {\n window.location.href = '#/app/manage-admin/list';\n });\n } else if(res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'save_failed';\n this.httpService.onEnd();\n }\n }\n api1:boolean = true;\n buroleSelect(item: any){\n console.log(item);\n \n if(this.selectedItems.find(x=> x.id == \"5639445604728832\")){\n \n if(this.api1){\n /* this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"This user id is not able to assign manager\"; */\n } \n }\n else{\n /* if(this.selectedAdminItems.find(x=> x.id == \"5639445604728832\")){\n var sliceFor = this.selectedAdminItems.findIndex(x=> x.id == \"5639445604728832\");\n this.selectedAdminItems.splice(sliceFor);\n } */\n \n }\n }\n\n ngOnInit() {\n this.buildForm();\n\n var temp_settings = {singleSelection: false,text:\"\",labelKey: \"name\",selectAllText:\"\",unSelectAllText:\"\",classes:\"myclass custom-class\"};\n this.translate.get('Select Role').subscribe((res: string) => {temp_settings.text = res;\n if(temp_settings.text&&temp_settings.selectAllText&&temp_settings.unSelectAllText) {this.settings=temp_settings;}\n });\n this.translate.get('select_all').subscribe((res: string) => {temp_settings.selectAllText=res;\n if(temp_settings.text&&temp_settings.selectAllText&&temp_settings.unSelectAllText) {this.settings=temp_settings;}\n });\n this.translate.get('unselect_all').subscribe((res: string) => {temp_settings.unSelectAllText=res;\n if(temp_settings.text&&temp_settings.selectAllText&&temp_settings.unSelectAllText) {this.settings=temp_settings;}\n });\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/viewAdmin/viewAdmin.component.ts","/**\n * Created by shubham on 19/9/18.\n */\n\nimport {Component, Input,ViewChild} from '@angular/core';\nimport {APPCONFIG} from '../../../config';\nimport {MdDialog} from '@angular/material';\nimport {FormGroup, FormBuilder, FormControl, Validators, FormArray} from '@angular/forms';\nimport {HttpService} from '../../../shared/services/http.service';\nimport {SessionHandler} from '../../../shared/services/session-handler.service';\nimport {DialogComponent} from '../../../dialog/dialog.component';\nimport {ActivatedRoute, Router} from \"@angular/router\";\nimport {TranslateService} from 'ng2-translate';\nimport { IfObservable } from 'rxjs/observable/IfObservable';\nimport { concatAll } from 'rxjs/operator/concatAll';\n\n\n@Component({\n selector: 'add-application',\n template: require('./addApplication.component.html')\n})\nexport class AddApplicationComponent {\n\n dialogRef;\n userDetails: any;\n isSystemAdmin: boolean = false;\n isBUManager: boolean = false;\n isRegionalAdmin: boolean = false;\n isServiceOwner: boolean = false;\n isTradePartner: boolean = false;\n isSubUser: boolean = false;\n isApplicationManager: boolean = false;\n admins = [];\n countries = [];\n businessUnits = [];\n ApplicationForm: FormGroup;\n ApplicationFormDetails: any;\n ApplicationFormDetailsById = [];\n managers = [];\n settings = {};\n selectedItems = [];\n managersMessage: string = \"\";\n id: any;\n managersFlag: boolean = false;\n idFlag: boolean = false;\n activeFlag: boolean = false;\n isAssigned: boolean = false;\n allowMultipleRolesFlag: boolean = false;\n skipManagerApprovalFlag: boolean = false;\n skipManagerApprovalMessage = \"\";\n\n selectedCountryId = \"\";\n countryWiseDefaults:any=[];\n\n @ViewChild('countrySelect') countrySelect: any;\n\n constructor(private router: Router, private route: ActivatedRoute, private sessionHandler: SessionHandler, public httpService: HttpService,\n public dialog: MdDialog, private formBuilder: FormBuilder, private translate: TranslateService) {\n this.route.params.subscribe(params => {\n this.id = params['id'];\n });\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\n if (this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.applicationManager)) {\n this.isApplicationManager = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n if (this.isSystemAdmin) {\n if (this.id != null && this.id != undefined) {\n this.getApplicationDataById(this.id);\n this.idFlag = true;\n } else {\n this.activeFlag = true;\n this.idFlag = false;\n }\n this.getApplicationManagers();\n }\n this.getCountries()\n }\n\n public getApplicationManagers() {\n this.httpService.getRequest('applicationOperationApi/v1/getApplicationManagerList').subscribe(\n res => {\n this.saveApplicationManagers(res);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n\n public saveApplicationManagers(res) {\n if (res && res.items) {\n this.managers = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getApplicationDataById(id) {\n this.httpService.getRequest('applicationOperationApi/v1/application/' + id).subscribe(\n res => {\n this.saveApplicationDataById(res)\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n\n public saveApplicationDataById(res) {\n if (res) {\n console.log(res);\n /**************************/\n // var applicationRoles=[];\n // for(let i in res.applicationRoles) {\n // for(let j in res.applicationRoles[i].roles) {\n // res.applicationRoles[i].roles[j].country=res.applicationRoles[i].country;\n // applicationRoles.push(res.applicationRoles[i].roles[j]);\n // }\n // }\n // delete res.applicationRoles;\n // res.applicationRoles=applicationRoles;\n /**************************/\n\n this.ApplicationFormDetailsById = res;\n this.forSpecificCountry = res.countrySpecificRoles;\n if (this.ApplicationFormDetailsById['active']) {\n this.activeFlag = true;\n }\n\n if (this.ApplicationFormDetailsById['managerIds'] && this.ApplicationFormDetailsById['managerNames']) {\n for (let l in this.ApplicationFormDetailsById['managerIds']) {\n this.selectedItems.push({\n id: this.ApplicationFormDetailsById['managerIds'][l],\n name: this.ApplicationFormDetailsById['managerNames'][l]\n });\n }\n }\n this.buildForm();\n if (this.ApplicationFormDetailsById['applicationRoles'] != null) {\n if (this.ApplicationFormDetailsById['assigned'] || this.ApplicationFormDetailsById['assigned'] != undefined) {\n this.isAssigned = true;\n } else {\n this.isAssigned = false;\n }\n // ***÷*****************************\n \n this.createRoles(this.ApplicationFormDetailsById['applicationRoles'], this.isAssigned);\n }\n\n this.httpService.onEnd();\n } else if (res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_load_failed';\n this.httpService.onEnd();\n }\n }\n\n buildForm() {\n this.ApplicationForm = this.formBuilder.group({\n applicationName: this.formBuilder.control(this.ApplicationFormDetailsById['applicationName'] ? this.ApplicationFormDetailsById['applicationName'] : null, [Validators.required]),\n ldapApplicationId: this.formBuilder.control(this.ApplicationFormDetailsById['ldapApplicationId'] ? this.ApplicationFormDetailsById['ldapApplicationId'] : null, [Validators.required]),\n managerData: this.formBuilder.control(null, [Validators.required]),\n url: this.formBuilder.control(this.ApplicationFormDetailsById['url'] ? this.ApplicationFormDetailsById['url'] : null),\n applicationRoles: this.formBuilder.array([]),\n multipleRole: this.formBuilder.control(this.ApplicationFormDetailsById['multipleRole'] ? this.ApplicationFormDetailsById['multipleRole'] : false),\n customerNumberRequired: this.formBuilder.control(this.ApplicationFormDetailsById['customerNumberRequired'] ? this.ApplicationFormDetailsById['customerNumberRequired'] : false),\n skipManagerApproval: this.formBuilder.control(this.ApplicationFormDetailsById['skipManagerApproval'] ? this.ApplicationFormDetailsById['skipManagerApproval'] : false), \n countries: this.formBuilder.array([])\n });\n\n this.ApplicationForm.valueChanges.subscribe(data => {\n this.ApplicationFormDetails = this.ApplicationForm.getRawValue();\n if (this.ApplicationFormDetailsById['id']) {\n this.ApplicationFormDetails['id'] = this.ApplicationFormDetailsById['id'];\n }\n\n this.ApplicationFormDetails['managerIds'] = [];\n for (let d in this.ApplicationFormDetails.managerData) {\n this.ApplicationFormDetails['managerIds'].push(this.ApplicationFormDetails.managerData[d]['id']);\n }\n\n if (this.ApplicationFormDetails['skipManagerApproval']) {\n this.skipManagerApprovalFlag = true;\n } else {\n this.skipManagerApprovalFlag = false;\n }\n\n if (this.ApplicationFormDetails['multipleRole']) {\n this.allowMultipleRolesFlag = true;\n if (this.skipManagerApprovalFlag) {\n this.skipManagerApprovalMessage = \"min_one_default_role\";\n } else {\n this.skipManagerApprovalMessage = \"\";\n }\n } else {\n this.skipManagerApprovalMessage = \"only_one_default_role\";\n this.allowMultipleRolesFlag = false;\n }\n\n if (this.ApplicationFormDetails['applicationRoles'].length > 0) {\n for (let appRolesObject of this.ApplicationFormDetails['applicationRoles']) {\n if (appRolesObject['defaultRole']) {\n this.skipManagerApprovalMessage = \"\";\n break;\n } else {\n if (this.allowMultipleRolesFlag) {\n this.skipManagerApprovalMessage = \"min_one_default_role\";\n } else {\n this.skipManagerApprovalMessage = \"only_one_default_role\";\n }\n }\n }\n }\n\n // ************************************\n if(this.ApplicationFormDetails['countries']){\n setTimeout(()=>{\n if(this.forSpecificCountry && this.selectedContries.length==0){\n this.skipManagerApprovalMessage = \"Select at least one country.\"\n }\n if(this.forSpecificCountry && this.selectedContries.length>0 && this.skipManagerApprovalFlag){\n for(var i=0;i {\n if (data != null && data.length < 2) {\n this.managersMessage = \"atleast_two_mgrs\";\n this.managersFlag = false;\n } else if (data.length >= 2) {\n this.managersMessage = \"\";\n this.managersFlag = true;\n }\n });\n\n this.ApplicationForm.get('multipleRole').valueChanges.subscribe(data => {\n console.log(data)\n if (data != null && !data && this.allowMultipleRolesFlag) {\n this.createDefaultRoles();\n }\n });\n\n this.ApplicationForm.get('skipManagerApproval').valueChanges.subscribe(data => {\n if (data != null && !data) {\n this.createDefaultRoles();\n }\n });\n }\n\n// ********************************\nsetApplicationRoleSpecific(){\n console.log(this.selectedContries);\n let formdata = this.ApplicationForm.getRawValue();\n console.log(formdata)\n if(this.forSpecificCountry){\n formdata.countries.forEach((element,index) => {\n this.ApplicationFormDetails['applicationRoles'].push ({\n country:this.selectedContries[index].id,\n roles:element.countryName\n // country:this.selectedContries[index],\n // roles:element.countryName\n })\n });\n\n\n } else{\n\n this.ApplicationFormDetails.applicationRoles=[];\n this.ApplicationFormDetails['applicationRoles'].push ({\n country:\"all\",\n roles:formdata.applicationRoles\n })\n }\n}\n\n forSpecificCountry=false\n\n createRoles(rolesData, isAssigned): void {\n if(!this.forSpecificCountry){\n for (let roleDataIndex in rolesData) {\n rolesData[roleDataIndex]['isAssigned'] = isAssigned;\n this.onAddRoleProperty(rolesData[roleDataIndex]);\n // this.onAddRoleProperty(rolesData[0].roles[roleDataIndex]);\n }\n }else{\n // rolesData.forEach((element,index) => {\n // console.log(element)\n // this.onAddCountriestoForm(element); \n // });\n this.onAddCountriestoForm(rolesData,isAssigned); \n\n }\n }\n onAddCountriestoForm(data,isAssigned){\n let contries=[];\n for(var i=0;ithis.ApplicationForm.get('countries')).push(fg);\n this.selectedContries.push({'id':contries[k].countryId,\"name\":contries[k].countryName,\"isAssignFlag\":isAssigned});\n\n contries[k]['roles'].forEach((element,index) => {\n let newGroup = this.formBuilder.group({\n id: this.formBuilder.control(element.id ? element.id : null),\n name: this.formBuilder.control(element.name ? element.name : null, [Validators.required]),\n ldapRoleId: this.formBuilder.control(element.ldapRoleId ? element.ldapRoleId : null, [Validators.required]),\n defaultRole: this.formBuilder.control(element.defaultRole ? element.defaultRole : false),\n isAssignFlag: this.formBuilder.control(element.isAssignFlag ? element.isAssignFlag : false)\n });\n \n (((this.ApplicationForm.controls['countries'])\n .controls[this.selectedContries.length-1]).controls['countryName']).push(newGroup);\n });\n }\n\n // data.roles.forEach((element,index) => {\n // console.log(element)\n // let newGroup = this.formBuilder.group({\n // id: this.formBuilder.control(element.id ? element.id : null),\n // name: this.formBuilder.control(element.name ? element.name : null, [Validators.required]),\n // ldapRoleId: this.formBuilder.control(element.ldapRoleId ? element.ldapRoleId : null, [Validators.required]),\n // defaultRole: this.formBuilder.control(element.defaultRole ? element.defaultRole : false),\n // isAssignFlag: this.formBuilder.control(element.isAssigned ? element.isAssigned : false)\n // });\n\n // (((this.ApplicationForm.controls['countries'])\n // .controls[this.selectedContries.length-1]).controls['countryName']).push(newGroup);\n // });\n }\n\n// **********************************\n\n public onAddRoleProperty(data?: any): void {\n const arrayControl = this.ApplicationForm.controls['applicationRoles'];\n let newGroup;\n if (data) {\n newGroup = this.formBuilder.group({\n id: this.formBuilder.control(data.id ? data.id : null),\n name: this.formBuilder.control(data.name ? data.name : null, [Validators.required]),\n ldapRoleId: this.formBuilder.control(data.ldapRoleId ? data.ldapRoleId : null, [Validators.required]),\n defaultRole: this.formBuilder.control(data.defaultRole ? data.defaultRole : false),\n isAssignFlag: this.formBuilder.control(data.isAssigned ? data.isAssigned : false)\n });\n } else {\n newGroup = this.formBuilder.group({\n id: this.formBuilder.control(null),\n name: this.formBuilder.control(null, [Validators.required]),\n ldapRoleId: this.formBuilder.control(null, [Validators.required]),\n defaultRole: this.formBuilder.control(false),\n isAssignFlag: this.formBuilder.control(false)\n });\n }\n\n arrayControl.push(newGroup);\n\n }\n\n onlyOneDefault(index: number, value: any): void {\n if (this.skipManagerApprovalFlag && !this.allowMultipleRolesFlag) {\n this.createDefaultRoles();\n }\n }\n\n createDefaultRoles() {\n if(!this.forSpecificCountry){\n const arrayControl = this.ApplicationForm.controls['applicationRoles'];\n for (let index1 in arrayControl.controls) {\n const groupControl = arrayControl.controls[index1];\n groupControl.controls['defaultRole'].setValue(false);\n groupControl.controls['defaultRole'].updateValueAndValidity();\n }\n }else{\n const arrayControl = this.ApplicationForm.controls['countries']; \n for(let index2 in arrayControl.controls){\n this.createDefaultRolesCountSpecific(index2);\n }\n this.calculateErrorForRDefault();\n }\n }\n\n onDeleteRoleProperty(index: number): void {\n const arrayControl = this.ApplicationForm.controls['applicationRoles'];\n arrayControl.removeAt(index);\n }\n\n public saveApplicationData() {\n this.setApplicationRoleSpecific();\n /**************************/\n var requestData = JSON.parse(JSON.stringify(this.ApplicationFormDetails));\n delete requestData.countries;\n var applicationRoles=[];\n for(let i in requestData.applicationRoles) {\n for(let j in requestData.applicationRoles[i].roles) {\n requestData.applicationRoles[i].roles[j].country=requestData.applicationRoles[i].country;\n applicationRoles.push(requestData.applicationRoles[i].roles[j]);\n }\n }\n delete requestData.applicationRoles;\n requestData.applicationRoles=applicationRoles;\n if(!requestData.skipManagerApproval){\n requestData.applicationRoles.forEach((element)=>{\n element.defaultRole = false;\n })\n }\n\n /**************************/\n this.httpService.postRequest(requestData, 'applicationOperationApi/v1/createApplication').subscribe(\n res => {\n this.saveApplicationResponse(res);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n\n public saveApplicationResponse(res) {\n if (res) {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n if (this.id != null && this.id != undefined) {\n this.dialogRef.componentInstance.msg = \"Application updated successfully.\";\n } else {\n this.dialogRef.componentInstance.msg = \"Application added successfully.\";\n }\n this.dialogRef.afterClosed().subscribe(result => {\n window.location.href = '#/app/application-management/list';\n });\n } else if (res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'save_failed';\n this.httpService.onEnd();\n }\n }\n\n copyToClipboard() {\n var textArea = document.createElement(\"textarea\");\n textArea.style.position = 'fixed';\n textArea.style.top = '-999px';\n textArea.style.left = '-999px';\n textArea.style.width = '2em';\n textArea.style.height = '2em';\n textArea.style.padding = '0';\n textArea.style.border = 'none';\n textArea.style.outline = 'none';\n textArea.style.boxShadow = 'none';\n textArea.style.background = 'transparent';\n\n textArea.value = window.location.origin + \"/#/registration/apps/\" + this.id;\n document.body.appendChild(textArea);\n textArea.select();\n\n try {\n document.execCommand('copy');\n } catch (err) {\n console.log('unable to copy');\n }\n document.body.removeChild(textArea);\n }\n\n ngOnInit() {\n this.buildForm();\n if (this.id == null || this.id == undefined) {\n this.onAddRoleProperty();\n }\n\n var temp_settings = {singleSelection: false,text:\"\",labelKey: \"name\",selectAllText:\"\",unSelectAllText:\"\",classes:\"myclass custom-class\"};\n this.translate.get('Assign Manager').subscribe((res: string) => {temp_settings.text = res;\n if(temp_settings.text&&temp_settings.selectAllText&&temp_settings.unSelectAllText) {this.settings=temp_settings;}\n });\n this.translate.get('select_all').subscribe((res: string) => {temp_settings.selectAllText=res;\n if(temp_settings.text&&temp_settings.selectAllText&&temp_settings.unSelectAllText) {this.settings=temp_settings;}\n });\n this.translate.get('unselect_all').subscribe((res: string) => {temp_settings.unSelectAllText=res;\n if(temp_settings.text&&temp_settings.selectAllText&&temp_settings.unSelectAllText) {this.settings=temp_settings;}\n });\n\n }\n\n public getCountries(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/countriesForAdmin').subscribe(\n res => { \n this.saveCountries(res);\n },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveCountries(res){\n if(res && res.items){\n this.countries = res.items;\n }\n }\n\n countSpecificFun(event){\n const arrayControl = this.ApplicationForm.controls['applicationRoles'];\n if(!event.checked){\n this.forSpecificCountry = false;\n while ((this.ApplicationForm.controls['countries']).controls.length !==0) {\n (this.ApplicationForm.controls['countries']).removeAt(0);\n }\n this.selectedContries=[];\n this.onAddRoleProperty();\n }else if(event.checked){\n this.forSpecificCountry = true;\n while ((this.ApplicationForm.controls['applicationRoles']).controls.length !==0) {\n (this.ApplicationForm.controls['applicationRoles']).removeAt(0);\n }\n }\n\n }\n\n selectedContries:any=[]\n onCountryChange(contId){\n var valueArr = this.selectedContries.map(function(item){ return item.name });\n let contry = contId.source.selected._element.nativeElement.innerText.trim();\n let id= contId.value;\n let country = contId.source.selected._element.nativeElement.innerText.trim();\n let fg = this.formBuilder.group({\n 'countryName': this.formBuilder.array([]),\n });\n if(valueArr.includes(contry)==false){\n this.selectedContries.push({\"id\":id,\"name\":contry,\"isAssignFlag\":false});\n (this.ApplicationForm.get('countries')).push(fg);\n this.rolesAddForSelectedCountries(this.selectedContries.length-1);\n }\n this.calculateErrorForRDefault();\n setTimeout(() => {\n this.countrySelect.writeValue(null) \n }, 1000);\n\n }\n\n rolesAddForSelectedCountries(index){\n let newGroup = this.formBuilder.group({\n id: this.formBuilder.control(null),\n name: this.formBuilder.control(null, [Validators.required]),\n ldapRoleId: this.formBuilder.control(null, [Validators.required]),\n defaultRole: this.formBuilder.control(false),\n isAssignFlag: this.formBuilder.control(false)\n });\n (((this.ApplicationForm.controls['countries'])\n .controls[index]).controls['countryName']).push(newGroup);\n }\n\n deleteCountry(index){\n const arrayControl = this.ApplicationForm.controls['countries'];\n arrayControl.removeAt(index);\n this.selectedContries.splice(index,1);\n this.countryWiseDefaults.splice(index,1);\n }\n onDeleteRolePropertySelected(cIndex,index) {\n const arrayControl = ((this.ApplicationForm.controls['countries'])\n .controls[cIndex]).controls['countryName'];\n \n arrayControl.controls[index].get('defaultRole').value ? this.countryWiseDefaults[cIndex] = false : null;\n arrayControl.removeAt(index);\n\n }\n\n createDefaultRolesCountSpecific(countIndex,index?) {\n const arrayControl = (((this.ApplicationForm.controls['countries'])\n .controls[countIndex]).controls['countryName']);\n for (let index1 in arrayControl.controls) {\n const groupControl = arrayControl.controls[index1];\n groupControl.controls['defaultRole'].setValue(false);\n groupControl.controls['defaultRole'].updateValueAndValidity(); \n }\n }\n\n onlyOneDefaultSpecific(countIndex,index) {\n if(!this.allowMultipleRolesFlag){\n const arrayControl = (((this.ApplicationForm.controls['countries'])\n .controls[countIndex]).controls['countryName']);\n for (let index1 in arrayControl.controls) {\n if(index1 != index){\n const groupControl = arrayControl.controls[index1];\n groupControl.controls['defaultRole'].setValue(false);\n }\n }\n }\n this.calculateErrorForRDefault();\n }\n calculateErrorForRDefault(){\n this.countryWiseDefaults=[];\n setTimeout(()=>{\n var data = this.ApplicationForm.get('countries').value;\n let defaultFlag=false;\n for(var i=0;i 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n if(this.isSystemAdmin){\n this.getAdminRoles();\n } else{\n this.getUserList();\n }\n\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\n this.commonService.applicationList.subscribe((value) => {\n this.getApplicationList(this.filters, this.selectedStatusId, this.defaulAdminId, this.applicationName);\n });\n }\n\n public getAdminRoles(){\n this.httpService.getRequest('superUserOperationsApi/v1/adminRoles').subscribe(\n res => { this.saveAdminRoles(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveAdminRoles(res){\n if(res && res.items){\n this.adminRoles = res.items;\n for(let a in this.adminRoles){\n if(this.adminRoles[a]['code'] == APPCONFIG.BUManager){\n this.defaulAdminId = this.adminRoles[a]['id'];\n }\n }\n if(!this.defaulAdminId) {\n this.defaulAdminId = this.adminRoles[0]['id'];\n }\n this.getApplicationList(this.filters, this.selectedStatusId, this.defaulAdminId, this.applicationName);\n }else {\n this.httpService.onEnd();\n }\n }\n\n buildForm() {\n this.FiltersForm = this.formBuilder.group({\n applicationName: this.formBuilder.control({value: '', disabled: this.isDisabled}),\n wpassId: this.formBuilder.control(''),\n });\n this.FiltersForm.valueChanges.subscribe(data => {\n this.applicationName = this.FiltersForm.get('applicationName').value;\n });\n }\n\n disablefields(value: String) {\n if(value != ''){\n this.FiltersForm.controls['applicationName'].setValue('');\n this.FiltersForm.controls['applicationName'].disable();\n } else{\n this.FiltersForm.controls['applicationName'].enable();\n }\n }\n\n public search(){\n this.filters['offSet'] = 0;\n this.getApplicationList(this.filters, this.selectedStatusId, this.defaulAdminId, this.applicationName);\n }\n\n public resetSearch(){\n this.FiltersForm.controls['applicationName'].enable();\n this.FiltersForm.reset();\n this.applicationName = '';\n this.search();\n }\n\n public getApplicationList(filter, selectedStatus, defaulAdminId, applicationName ){\n this.httpService.getRequest(\"applicationOperationApi/v1/applicationList?limit=\"+filter.limit+\"&offset=\"+filter.offSet+\"&role=\"+defaulAdminId+\"&active=\"+selectedStatus+\"&applicationName=\"+applicationName).subscribe(\n res => { this.saveUserList(res,filter); },\n err => { this.httpService.onEnd();}\n );\n }\n\n public getUserList = function () {\n this.showTable = false;\n }\n\n public saveUserList = function(res, filter){\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if(res && Object.keys(res).length > 0 ){\n this.applicationListData = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n\n if(this.applicationListData.list) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.applicationListData.list) {\n if(this.isSystemAdmin){\n this.rows[data] = {};\n this.rows[data]['id'] = this.applicationListData.list[data]['id'];\n this.rows[data]['applicationName'] = this.applicationListData.list[data]['applicationName'];\n this.rows[data]['ldapApplicationId'] = this.applicationListData.list[data]['ldapApplicationId'];\n this.rows[data]['managerNames'] = this.applicationListData.list[data]['managerNames'];\n this.rows[data]['customerNumberRequired'] = this.applicationListData.list[data]['customerNumberRequired'];\n this.rows[data]['skipManagerApproval'] = this.applicationListData.list[data]['skipManagerApproval'];\n this.rows[data]['multipleRole'] = this.applicationListData.list[data]['multipleRole'];\n\n if(this.applicationListData.list[data]['active'] == true){\n this.rows[data]['status'] = 'Active';\n } else{\n this.rows[data]['status'] = 'Inactive';\n }\n\n this.rows[data]['active'] = this.applicationListData.list[data]['active'];\n this.rows[data]['createdAt'] = this.applicationListData.list[data]['createdAt'];\n } else{\n //For Other Service Partner's\n this.rows[data] = {};\n }\n }\n this.showTable = true;\n this.temp = this.rows;\n } else{\n this.showTable = false;\n }\n\n let finalRows = [];\n for(let f in this.rows){\n if(f != 'offset' && f !='totalCount' && this.rows[f]){\n finalRows.push(this.rows[f]);\n }\n if(f == 'offset'){\n finalRows['offset'] = this.rows['offset'];\n }\n if(f == 'totalCount'){\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({ offset: this.rows['offset']/this.page.size },finalRows,filter);\n this.httpService.onEnd();\n }\n }\n }\n\n /**\n * Populate the table with new data based on the page number\n * @param page The page to select\n */\n public setPage(pageInfo,rows,filter){\n this.page.pageNumber = pageInfo.offset;\n if(rows.length != 0){\n this.serverResultsService.getResults(this.page,rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if(!filter){\n if(Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']){\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.getApplicationList(this.filters, this.selectedStatusId, this.defaulAdminId, this.applicationName);\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n\n onSelect({ selected }) {\n this.selected.splice(0, this.selected.length);\n this.selected.push(...selected);\n }\n\n ngOnInit(){\n this.buildForm();\n\n this.translate.get('total').subscribe((res: string) => {\n this.dataTableMessage.totalMessage=res;\n });\n this.translate.get('selected').subscribe((res: string) => {\n this.dataTableMessage.selectedMessage=res;\n });\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/applicationManagement/applicationList/applicationList.component.ts","/**\n * Created by prakash on 22/9/18.\n */\n\nimport {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {ApplicationListPageData} from \"./applicationList-datatable/applicationList-page-data\";\nimport {ApplicationListDashboard} from \"./applicationList-datatable/applicationList-dashboard\";\nimport {ApplicationListPage} from \"./applicationList-datatable/applicationList-page\";\n\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class ApplicationListDashboardResultService {\n listData:any;\n loginData;\n rows = {};\n applicationDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: ApplicationListPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: ApplicationListPage): ApplicationListPageData {\n let pageData = new ApplicationListPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n let list = new ApplicationListDashboard(jsonObj['id'], jsonObj['applicationName'], jsonObj['ldapApplicationId'],\n jsonObj['managerNames'], jsonObj['customerNumberRequired'], jsonObj['skipManagerApproval'],\n jsonObj['multipleRole'], jsonObj['status'], jsonObj['active'], jsonObj['createdAt']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/applicationManagement/applicationListDashboardResultService.ts","/**\n * Created by shubham on 19/9/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { MdDialog } from '@angular/material';\nimport { HttpService } from '../../shared/services/http.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport {TranslateService} from 'ng2-translate';\n\n\n@Component({\n selector: 'application-management',\n template: require('./applicationManagement.component.html')\n})\nexport class ApplicationManagementComponent {\n\n dialogRef;\n languageId: any;\n\n constructor(private router: Router, private sessionHandler:SessionHandler, public httpService : HttpService,\n public dialog: MdDialog, private translate: TranslateService) {\n\n this.languageId = this.sessionHandler.getItem('languageId');\n if(!this.languageId){\n this.languageId = \"EN\";\n }\n this.translate.use(this.languageId);\n }\n\n ngOnInit() {}\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/applicationManagement/applicationManagement.component.ts","/**\n * Created by shubham on 19/9/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { Http} from '@angular/http';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { NgxDatatableModule } from '@swimlane/ngx-datatable';\nimport { ApplicationManagementRoutingModule } from './applicationManagement-routing.module';\nimport { ApplicationManagementComponent } from './applicationManagement.component';\nimport { AddApplicationComponent } from './addApplication/addApplication.component';\nimport { ApplicationListComponent } from \"./applicationList/applicationList.component\";\nimport { TranslateModule,TranslateLoader,TranslateStaticLoader } from 'ng2-translate';\nimport { AngularMultiSelectModule } from \"angular2-multiselect-dropdown/angular2-multiselect-dropdown\";\nimport { ActivateDeactivateModule } from \"../../activate-deactivate-request/activate-deactivate-request.module\";\nimport { APPCONFIG } from '../../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n FormsModule,\n NgxDatatableModule,\n ReactiveFormsModule,\n AngularMultiSelectModule,\n ActivateDeactivateModule,\n ApplicationManagementRoutingModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n ApplicationManagementComponent,\n AddApplicationComponent,\n ApplicationListComponent\n ],\n exports: [\n ]\n})\n\nexport class ApplicationManagementModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/applicationManagement/applicationManagement.module.ts","/**\n * Created by shubham on 10/5/18.\n */\n\nimport { Component } from '@angular/core';\nimport { APPCONFIG } from '../../../config';\nimport { MdDialog } from '@angular/material';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { DialogComponent } from '../../../dialog/dialog.component';\nimport {TranslateService} from 'ng2-translate';\n\n\n@Component({\n selector: 'add-manager',\n template: require('./addManager.component.html')\n})\nexport class AddManagerComponent {\n\n dialogRef;\n userDetails: any;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n admins = [];\n countries = [];\n applications = [];\n businessUnits = [];\n AddManagerForm: FormGroup;\n AddManagerFormDetails: any;\n selectedItems = [];\n manager_settings = {};\n application_settings = {};\n\n constructor(private sessionHandler:SessionHandler, public httpService : HttpService, public dialog: MdDialog, private formBuilder: FormBuilder, \n private translate: TranslateService) {\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n if(this.isSystemAdmin){\n this.getCountries();\n this.getBusinessUnit();\n this.getAdmins();\n this.getApplications();\n }\n }\n\n public getCountries(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/country').subscribe(\n res => { this.saveCountries(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveCountries(res){\n if(res && res.items){\n this.countries = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getBusinessUnit() {\n this.httpService.getRequest('lookupDataOperationsApi/v1/businessUnit').subscribe(\n res => { this.saveBusinessUnit(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveBusinessUnit(res) {\n if(res && res.items){\n this.businessUnits = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getAdmins(){\n this.httpService.getRequest('superUserOperationsApi/v1/getCountryAdminList').subscribe(\n res => { this.saveAdmins(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveAdmins(res){\n if(res && res.items){\n this.admins = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getApplications() {\n this.httpService.getRequest('applicationOperationApi/v1/getApplicationDropDownList').subscribe(\n res => { this.saveApplications(res); },\n err => { this.httpService.onEnd(); }\n );\n\n }\n public saveApplications(res){\n if(res && res.items){\n this.applications = res.items;\n }\n this.httpService.onEnd();\n }\n\n buildForm() {\n this.AddManagerForm = this.formBuilder.group({\n countryId: this.formBuilder.control(null, [Validators.required]),\n businessUnitId: this.formBuilder.control(null, [Validators.required]),\n /*managerId: this.formBuilder.control(null, [Validators.required]),*/\n managerData: this.formBuilder.control(null, [Validators.required]),\n applicationData: this.formBuilder.control(null, [Validators.required]),\n });\n this.AddManagerForm.valueChanges.subscribe(data => {\n this.AddManagerFormDetails = this.AddManagerForm.getRawValue();\n\n this.AddManagerFormDetails['managerIds'] = [];\n for (let d in this.AddManagerFormDetails.managerData){\n this.AddManagerFormDetails['managerIds'].push(this.AddManagerFormDetails.managerData[d]['id']);\n }\n\n this.AddManagerFormDetails['applicationId'] = [];\n for (let d in this.AddManagerFormDetails.applicationData){\n this.AddManagerFormDetails['applicationId'].push(this.AddManagerFormDetails.applicationData[d]['id']);\n }\n\n this.AddManagerFormDetails.validate = this.AddManagerForm.valid;\n });\n }\n\n public addManager(){\n this.httpService.postRequest(this.AddManagerFormDetails,'superUserOperationsApi/v1/addCountryBusinessUnitManagerMapping').subscribe(\n res => { this.saveAddManagerResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveAddManagerResponse(res){\n if(res){\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"mngr_assigned_notify\";\n this.dialogRef.afterClosed().subscribe(result => {\n window.location.href = '#/app/manager-assignment/list';\n });\n } else if(res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'save_failed';\n this.httpService.onEnd();\n }\n };\n \n ngOnInit() {\n this.buildForm();\n\n var app_settings = {singleSelection: false,text:\"\",labelKey: \"name\",selectAllText:\"\",unSelectAllText:\"\",classes:\"myclass custom-class\"};\n var mgr_settings = {singleSelection: false,text:\"\",labelKey: \"name\",selectAllText:\"\",unSelectAllText:\"\",classes:\"myclass custom-class\"};\n this.translate.get('Select Applications').subscribe((res: string) => {app_settings.text = res;\n if(app_settings.text&&app_settings.selectAllText&&app_settings.unSelectAllText) {this.application_settings=app_settings;}\n });\n this.translate.get('Assign Manager').subscribe((res: string) => {mgr_settings.text = res;\n if(mgr_settings.text&&mgr_settings.selectAllText&&mgr_settings.unSelectAllText) {this.manager_settings=mgr_settings;}\n });\n this.translate.get('select_all').subscribe((res: string) => {app_settings.selectAllText=res;mgr_settings.selectAllText=res;\n if(mgr_settings.text&&mgr_settings.selectAllText&&mgr_settings.unSelectAllText) {this.manager_settings=mgr_settings;}\n if(app_settings.text&&app_settings.selectAllText&&app_settings.unSelectAllText) {this.application_settings=app_settings;}\n });\n this.translate.get('unselect_all').subscribe((res: string) => {app_settings.unSelectAllText=res;mgr_settings.unSelectAllText=res;\n if(mgr_settings.text&&mgr_settings.selectAllText&&mgr_settings.unSelectAllText) {this.manager_settings=mgr_settings;}\n if(app_settings.text&&app_settings.selectAllText&&app_settings.unSelectAllText) {this.application_settings=app_settings;}\n });\n \n\n }\n \n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/addManager/addManager.component.ts","/**\n * Created by shubham on 10/5/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { MdDialog } from '@angular/material';\nimport { HttpService } from '../../shared/services/http.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport {TranslateService} from 'ng2-translate';\n\n\n@Component({\n selector: 'manager-assignment',\n template: require('./managerAssignment.component.html')\n})\nexport class ManagerAssignmentComponent {\n\n dialogRef;\n languageId: any;\n\n constructor(private router: Router, private sessionHandler:SessionHandler, public httpService : HttpService,\n public dialog: MdDialog, private translate: TranslateService) {\n\n this.languageId = this.sessionHandler.getItem('languageId');\n if(!this.languageId){\n this.languageId = \"EN\";\n }\n this.translate.use(this.languageId);\n }\n\n ngOnInit() {}\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/managerAssignment.component.ts","/**\n * Created by shubham on 10/5/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { Http} from '@angular/http';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { NgxDatatableModule } from '@swimlane/ngx-datatable';\nimport { ActivateDeactivateModule } from '../../activate-deactivate-request/activate-deactivate-request.module';\nimport { ManagerAssignmentRoutingModule } from './managerAssignment-routing.module';\nimport { ManagerAssignmentComponent } from './managerAssignment.component';\nimport { ManagerListComponent } from './managerList/managerList.component';\nimport { AddManagerComponent } from './addManager/addManager.component';\nimport { ViewManagerComponent } from './viewManager/viewManager.component';\nimport { TranslateModule,TranslateLoader,TranslateStaticLoader } from 'ng2-translate';\nimport {AngularMultiSelectModule} from \"angular2-multiselect-dropdown/angular2-multiselect-dropdown\";\nimport { APPCONFIG } from '../../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n FormsModule,\n NgxDatatableModule,\n AngularMultiSelectModule,\n ReactiveFormsModule,\n ActivateDeactivateModule,\n ManagerAssignmentRoutingModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n ManagerAssignmentComponent,\n ManagerListComponent,\n AddManagerComponent,\n ViewManagerComponent\n ],\n exports: [\n ]\n})\n\nexport class ManagerAssignmentModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/managerAssignment.module.ts","/**\n * Created by shubham on 10/5/18.\n */\n\n/**\n * An object used to get page information from the server\n */\nexport class ManagerListPage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/managerList-datatable/managerList-page.ts","/**\n * Created by shubham on 10/5/18.\n */\n\nimport { Component, ViewChild, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { DatatableComponent } from '@swimlane/ngx-datatable';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { DialogComponent, ShowApplicationsDialogComponent } from '../../../dialog/dialog.component';\nimport { CommonService } from '../../../shared/services/common.service';\nimport { FormGroup, FormBuilder, FormControl, Validators, AbstractControl } from '@angular/forms';\nimport { ManagerListPage } from \"../managerList-datatable/managerList-page\";\nimport { APPCONFIG } from '../../../config';\nimport { ManagerListDashboardResultService } from '../managerListDashboardResultService';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n selector: 'managerList',\n template: require('./managerList.component.html')\n})\nexport class ManagerListComponent {\n\n @ViewChild(DatatableComponent) table: DatatableComponent;\n dialogRef;\n userDetails:any;\n page = new ManagerListPage();\n tableRows :any = [];\n filters:any = {};\n rows:any;\n managerListData = [];\n temp = [];\n showTable:boolean = true;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n selected = [];\n StatusData: any;\n CountryOrBusinessUnitData: any;\n managerListText: any;\n ManagerFiltersForm: FormGroup;\n countries = [];\n selectedStatusId: boolean;\n businessUnits = [];\n applicationList = [];\n wpassId = '';\n countryId = '';\n businessUnitId = '';\n selectedApplicationId = '';\n applicationName = '';\n dataTableMessage = {'selectedMessage':'','totalMessage':''};\n tempCountries =[{\n \"id\": \"\",\n \"name\": \"All\",\n \"code\": \"\",\n \"active\": true,\n \"createdAt\": \"2019-02-26T12:49:39.329Z\"\n }];\n tempBusinessUnits = [{\n \"id\": \"\",\n \"name\": \"All\",\n \"codeISAM\": \"\",\n \"active\": true,\n \"createdAt\": \"2018-04-06T20:05:02.397Z\",\n \"updatedAt\": \"2018-05-31T06:41:54.303Z\"\n }];\n\n constructor(private router: Router, private httpService:HttpService, private sessionHandler:SessionHandler, public dialog: MdDialog,\n private formBuilder: FormBuilder, private serverResultsService: ManagerListDashboardResultService, \n private commonService: CommonService, private translate: TranslateService) {\n\n this.managerListText = 'managerList';\n\n //Assign Active or Inactive status\n this.StatusData = [\n {\n \"id\": true,\n \"code\": \"ACTIVE\",\n \"name\": \"Active\"\n }, {\n \"id\": false,\n \"code\": \"INACTIVE\",\n \"name\": \"Inactive\"\n }\n ];\n this.selectedStatusId = true;\n\n this.CountryOrBusinessUnitData = [\n {\n \"id\": 1,\n \"name\": \"Country\"\n }, {\n \"id\": 2,\n \"name\": \"Business Unit\"\n }\n ];\n\n this.page.pageNumber = 0;\n this.page.size = 20;\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n if(this.isSystemAdmin){\n this.getCountries();\n this.getBusinessUnit();\n this.getApplications();\n this.getUsersList(this.filters, this.selectedStatusId, this.wpassId, this.countryId, this.businessUnitId, this.selectedApplicationId);\n } else{\n this.getUserList();\n }\n\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\n this.commonService.managerList.subscribe((value) => {\n this.getUsersList(this.filters, this.selectedStatusId, this.wpassId, this.countryId, this.businessUnitId, this.selectedApplicationId);\n });\n }\n\n buildForm() {\n this.ManagerFiltersForm = this.formBuilder.group({\n selectedStatusId: this.formBuilder.control(true),\n wpassId: this.formBuilder.control(''),\n countryId: this.formBuilder.control(''),\n businessUnitId: this.formBuilder.control(''),\n selectedApplicationId: this.formBuilder.control('')\n });\n this.ManagerFiltersForm.valueChanges.subscribe(data => {\n this.selectedStatusId = this.ManagerFiltersForm.get('selectedStatusId').value;\n this.wpassId = this.ManagerFiltersForm.get('wpassId').value;\n this.countryId = this.ManagerFiltersForm.get('countryId').value;\n this.businessUnitId = this.ManagerFiltersForm.get('businessUnitId').value;\n this.selectedApplicationId = this.ManagerFiltersForm.get('selectedApplicationId').value;\n });\n }\n\n public getCountries(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/country').subscribe(\n res => { this.saveCountries(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveCountries(res){\n if(res && res.items){\n this.countries = this.tempCountries.concat(res.items);\n }\n }\n\n public getBusinessUnit() {\n this.httpService.getRequest('lookupDataOperationsApi/v1/businessUnit').subscribe(\n res => { this.saveBusinessUnit(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n saveBusinessUnit(res) {\n if(res && res.items){\n this.businessUnits = this.tempBusinessUnits.concat(res.items);\n }\n }\n\n public getApplications() {\n this.httpService.getRequest(\"applicationOperationApi/v1/applicationsForDropdown\").subscribe(\n res => { this.saveApplicationsName(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveApplicationsName(res) {\n if (res && res.items) {\n var tempApp =[{\"id\": \"\", \"code\": \"\", \"name\": \"all\" }];\n this.applicationList = tempApp.concat(res.items);\n }\n }\n\n disablefields(value: String, uniqueKey) {\n if(value != ''){\n if(uniqueKey == 'wpassId'){\n this.ManagerFiltersForm.controls['selectedApplicationId'].setValue('');\n this.ManagerFiltersForm.controls['selectedApplicationId'].disable();\n } else{\n this.ManagerFiltersForm.controls['wpassId'].setValue('');\n this.ManagerFiltersForm.controls['wpassId'].disable();\n }\n this.ManagerFiltersForm.controls['businessUnitId'].setValue('');\n this.ManagerFiltersForm.controls['countryId'].setValue('');\n this.ManagerFiltersForm.controls['businessUnitId'].disable();\n this.ManagerFiltersForm.controls['countryId'].disable();\n } else{\n if(uniqueKey == 'wpassId'){\n this.ManagerFiltersForm.controls['selectedApplicationId'].enable();\n } else{\n this.ManagerFiltersForm.controls['wpassId'].enable();\n }\n this.ManagerFiltersForm.controls['businessUnitId'].enable();\n this.ManagerFiltersForm.controls['countryId'].enable();\n }\n }\n\n public search(){\n this.filters['offSet'] = 0;\n this.getUsersList(this.filters, this.selectedStatusId, this.wpassId, this.countryId, this.businessUnitId, this.selectedApplicationId);\n }\n\n public resetSearch(){\n this.ManagerFiltersForm.controls['businessUnitId'].enable();\n this.ManagerFiltersForm.controls['countryId'].enable();\n this.ManagerFiltersForm.reset();\n this.selectedStatusId = true;\n this.countryId = '';\n this.businessUnitId = '';\n this.wpassId = '';\n this.selectedApplicationId = '';\n this.buildForm();\n this.search();\n }\n\n public downloadBuMappingCsv() {\n let loginDataArray = JSON.parse(this.sessionHandler.getItem(\"loginData\"));\n let accessToken;\n\n if (loginDataArray) {\n accessToken = loginDataArray['accessToken'];\n }\n window.open(APPCONFIG.URL + '/export?access-token=' + accessToken + '&action=bu_manager_mapping', '_blank');\n }\n\n public getUsersList(filter, selectedStatus, wpassId, countryId, businessUnitId, selectedApplicationId){\n this.httpService.getRequest(\"superUserOperationsApi/v1/countryBusinessUnitManagerMapping/list?limit=\"+filter.limit+\"&offset=\"+filter.offSet+\"&active=\"+selectedStatus+\"&countryId=\"+countryId+\"&businessUnitId=\"+businessUnitId+\"&wpassId=\"+wpassId+\"&selectedApplicationId=\"+selectedApplicationId).subscribe(\n res => { this.saveUserList(res,filter); },\n err => { this.httpService.onEnd();}\n );\n }\n\n public getUserList = function () {\n this.showTable = false;\n }\n\n public saveUserList = function(res, filter){\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if(res && Object.keys(res).length > 0 ){\n this.managerListData = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n\n if(this.managerListData.list) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.managerListData.list) {\n if(this.isSystemAdmin){\n this.rows[data] = {};\n this.rows[data]['buAssociationId'] = this.managerListData.list[data]['buAssociationId'];\n this.rows[data]['Name'] = this.managerListData.list[data]['firstName'];\n /*this.rows[data]['Name'] = this.managerListData.list[data]['firstName'] +' '+this.managerListData.list[data]['lastName'];*/\n this.rows[data]['email'] = this.managerListData.list[data]['email'];\n this.rows[data]['emailVerified'] = this.managerListData.list[data]['emailVerified'];\n\n if(this.managerListData.list[data]['userId_WPASS']){\n this.rows[data]['userId_WPASS'] = this.managerListData.list[data]['userId_WPASS'];\n } else {\n this.rows[data]['userId_WPASS'] = null;\n }\n\n if(this.managerListData.list[data]['pendingSubUserCount']){\n this.rows[data]['pendingSubUserCount'] = this.managerListData.list[data]['pendingSubUserCount'];\n }\n\n if(this.managerListData.list[data]['applicationName']){\n this.rows[data]['applicationName'] = this.managerListData.list[data]['applicationName'];\n }\n\n this.rows[data]['countryId'] = this.managerListData.list[data]['countryId'];\n this.rows[data]['countryName'] = this.managerListData.list[data]['countryName'];\n this.rows[data]['businessUnitId'] = this.managerListData.list[data]['businessUnitId'];\n this.rows[data]['businessUnitName'] = this.managerListData.list[data]['businessUnitName'];\n this.rows[data]['status'] = this.managerListData.list[data]['status'];\n this.rows[data]['active'] = this.managerListData.list[data]['active'];\n this.rows[data]['createdAt'] = this.managerListData.list[data]['createdAt'];\n this.rows[data]['updatedAt'] = this.managerListData.list[data]['updatedAt'];\n } else{\n //For Other Service Partner's\n this.rows[data] = {};\n }\n }\n this.showTable = true;\n this.temp = this.rows;\n } else{\n this.showTable = false;\n }\n\n let finalRows = [];\n for(let f in this.rows){\n if(f != 'offset' && f !='totalCount' && this.rows[f]){\n finalRows.push(this.rows[f]);\n }\n if(f == 'offset'){\n finalRows['offset'] = this.rows['offset'];\n }\n if(f == 'totalCount'){\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({ offset: this.rows['offset']/this.page.size },finalRows,filter);\n this.httpService.onEnd();\n }\n }\n }\n\n /**\n * Populate the table with new data based on the page number\n * @param page The page to select\n */\n public setPage(pageInfo,rows,filter){\n this.page.pageNumber = pageInfo.offset;\n if(rows.length != 0){\n this.serverResultsService.getResults(this.page,rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if(!filter){\n if(Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']){\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.getUsersList(this.filters, this.selectedStatusId, this.wpassId, this.countryId, this.businessUnitId, this.selectedApplicationId);\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n\n onSelect({ selected }) {\n this.selected.splice(0, this.selected.length);\n this.selected.push(...selected);\n }\n\n public showApplications(apps){\n this.dialogRef = this.dialog.open(ShowApplicationsDialogComponent);\n this.dialogRef.componentInstance.apps = apps;\n }\n\n ngOnInit(){\n this.buildForm();\n\n this.translate.get('total').subscribe((res: string) => {\n this.dataTableMessage.totalMessage=res;\n });\n this.translate.get('selected').subscribe((res: string) => {\n this.dataTableMessage.selectedMessage=res;\n });\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/managerList/managerList.component.ts","/**\n * Created by shubham on 10/5/18.\n */\n\nimport {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {ManagerListDashboard} from \"./managerList-datatable/managerList-dashboard\";\nimport {ManagerListPageData} from \"./managerList-datatable/managerList-page-data\";\nimport {ManagerListPage} from \"./managerList-datatable/managerList-page\";\n\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class ManagerListDashboardResultService {\n listData:any;\n loginData;\n rows = {};\n adminDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: ManagerListPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: ManagerListPage): ManagerListPageData {\n let pageData = new ManagerListPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n let list = new ManagerListDashboard(jsonObj['buAssociationId'], jsonObj['Name'], jsonObj['email'], jsonObj['emailVerified'],\n jsonObj['userId_WPASS'], jsonObj['pendingSubUserCount'], jsonObj['applicationName'] ,jsonObj['countryId'], jsonObj['countryName'],\n jsonObj['businessUnitId'], jsonObj['businessUnitName'], jsonObj['active'], jsonObj['status'], jsonObj['createdAt']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/managerListDashboardResultService.ts","/**\n * Created by shubham on 10/5/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { APPCONFIG } from '../../../config';\nimport { MdDialog, MdDialogRef } from '@angular/material';\nimport { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { DialogComponent } from '../../../dialog/dialog.component';\nimport { BuAssignmentDialogComponent } from '../../../dialog/dialog.component';\nimport {TranslateService} from 'ng2-translate';\n\n\n@Component({\n selector: 'view-manager',\n template: require('./viewManager.component.html')\n})\nexport class ViewManagerComponent {\n\n dialogRef;\n userDetails: any;\n id: any;\n ManagerEditForm: FormGroup;\n ManagerEditFormDetails: any;\n\n managerDetails = [];\n isSystemAdmin: boolean = false;\n isBUManager: boolean = false;\n isRegionalAdmin: boolean = false;\n isServiceOwner: boolean = false;\n isTradePartner: boolean = false;\n isSubUser: boolean = false;\n isDisabled = true;\n admins = [];\n manager_settings = {};\n application_settings = {};\n selectedManagerItems = [];\n selectedManagerItemsCopy = [];\n selectedApplicationItems = [];\n selectedApplicationItemsCopy = [];\n applications = [];\n\n constructor(private router: Router, private route: ActivatedRoute, private sessionHandler: SessionHandler, public httpService: HttpService, \n public dialog: MdDialog, private formBuilder: FormBuilder, private translate: TranslateService) {\n\n this.route.params.subscribe(params => {\n this.id = params['buAssociationId'];\n });\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\n if (this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n } else if (this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n } else if (this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n } else if (this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n } else if (this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n } else if (this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n if (this.isSystemAdmin) {\n this.getManagerDataById(this.id);\n this.getAdmins();\n this.getApplications();\n }\n }\n\n public getManagerDataById(id) {\n this.httpService.getRequest('superUserOperationsApi/v1/countryBusinessUnitManagerMapping/' + id).subscribe(\n res => { this.saveManagerData(res) },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveManagerData(res) {\n if (res) {\n this.managerDetails = res;\n\n if (this.managerDetails['managerIds'] && this.managerDetails['managerNames']) {\n for (let l in this.managerDetails['managerIds']) {\n this.selectedManagerItems.push({ id: this.managerDetails['managerIds'][l], name: this.managerDetails['managerNames'][l] });\n this.selectedManagerItemsCopy.push({ id: this.managerDetails['managerIds'][l], name: this.managerDetails['managerNames'][l] });\n }\n }\n\n if (this.managerDetails['applicationId'] && this.managerDetails['applicationName']) {\n for (let l in this.managerDetails['applicationId']) {\n this.selectedApplicationItems.push({ id: this.managerDetails['applicationId'][l], name: this.managerDetails['applicationName'][l] });\n this.selectedApplicationItemsCopy.push({ id: this.managerDetails['applicationId'][l], name: this.managerDetails['applicationName'][l] });\n }\n }\n\n this.ManagerEditFormDetails = this.managerDetails;\n this.buildForm();\n this.httpService.onEnd();\n } else if (res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_load_failed';\n this.httpService.onEnd();\n }\n }\n\n public getAdmins() {\n this.httpService.getRequest('superUserOperationsApi/v1/getCountryAdminList').subscribe(\n res => { this.saveAdmins(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveAdmins(res) {\n if (res && res.items) {\n this.admins = res.items;\n }\n this.httpService.onEnd();\n }\n\n public getApplications() {\n this.httpService.getRequest('applicationOperationApi/v1/getApplicationDropDownList').subscribe(\n res => { this.saveApplications(res); },\n err => { this.httpService.onEnd(); }\n );\n\n }\n public saveApplications(res) {\n if (res && res.items) {\n this.applications = res.items;\n }\n this.httpService.onEnd();\n }\n\n buildForm() {\n this.ManagerEditForm = this.formBuilder.group({\n /*managerId: this.formBuilder.control(this.managerDetails['managerId'], [Validators.required]),*/\n managerData: this.formBuilder.control(null, [Validators.required]),\n applicationData: this.formBuilder.control(null, [Validators.required]),\n buManagerReplacementsData: this.formBuilder.control(null)\n });\n this.ManagerEditForm.valueChanges.subscribe(data => {\n this.ManagerEditFormDetails = this.ManagerEditForm.getRawValue();\n this.ManagerEditFormDetails['buAssociationId'] = this.managerDetails['buAssociationId'];\n\n this.ManagerEditFormDetails['managerIds'] = [];\n for (let d in this.ManagerEditFormDetails.managerData) {\n this.ManagerEditFormDetails['managerIds'].push(this.ManagerEditFormDetails.managerData[d]['id']);\n }\n\n this.ManagerEditFormDetails['applicationId'] = [];\n for (let d in this.ManagerEditFormDetails.applicationData) {\n this.ManagerEditFormDetails['applicationId'].push(this.ManagerEditFormDetails.applicationData[d]['id']);\n }\n this.ManagerEditFormDetails['buManagerReplacements'] = [];\n console.log(this.ManagerEditFormDetails);\n \n for (let d in this.ManagerEditFormDetails.buManagerReplacementsData) {\n this.ManagerEditFormDetails['buManagerReplacements'].push({currentId:this.ManagerEditFormDetails.buManagerReplacementsData[d]['currentId'],\n newId:this.ManagerEditFormDetails.buManagerReplacementsData[d]['newId']});\n }\n this.ManagerEditFormDetails.validate = this.ManagerEditForm.valid;\n });\n }\n\n public updateManagerDetails() {\n console.log(this.tempReplaced);\n \n console.log(this.ManagerEditFormDetails);\n this.httpService.postRequest(this.ManagerEditFormDetails, '/superUserOperationsApi/v1/updateCountryBusinessUnitManagerMapping').subscribe(\n res => { this.saveUpdateManagerResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveUpdateManagerResponse(res) {\n if (res) {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"Updated Successfully\";\n this.dialogRef.afterClosed().subscribe(result => {\n window.location.href = '#/app/manager-assignment/list';\n });\n } else if (res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'save_failed';\n this.httpService.onEnd();\n }\n }\n\n onDeSelectAll(items: any) {\n this.selectedApplicationItems = Object.assign([], this.selectedApplicationItemsCopy);\n this.ManagerEditForm.controls['applicationData'].setValue(this.selectedApplicationItems);\n }\n\n OnItemDeSelect(item: any) {\n if (this.selectedApplicationItemsCopy.find(s => s.id === item.id)) {\n this.selectedApplicationItems.push({ id: item.id, name: item.name });\n this.ManagerEditForm.controls['applicationData'].setValue(this.selectedApplicationItems);\n }\n }\n replacementAdmin;\n replacementAdminId;\n removedAdmin;\n tempRemoved: any = [];\n tempReplaced: any = [];\n tempReplacedCopy: any = [];\n tempFlag: boolean = false;\n OnManagerDeSelect(item: any) {\n this.removedAdmin = item;\n if (this.selectedManagerItemsCopy.find(x => x.id == item.id)) {\n console.log(this.selectedManagerItemsCopy.find(x => x.id == item.id).name);\n if (this.tempReplaced.find(x => x.currentId == item.id)) { }\n else { this.tempReplaced.push({ currentId: this.selectedManagerItemsCopy.find(x => x.id == item.id).id }); }\n console.log(this.tempReplaced.find(x => x.currentId == item.id));\n var currentId = this.tempReplaced.find(x => x.currentId == item.id).currentId;\n console.log(this.selectedManagerItemsCopy.find(x => x.id == currentId).name);\n\n this.dialogRef = this.dialog.open(BuAssignmentDialogComponent);\n this.dialogRef.componentInstance.admins = this.admins;\n this.dialogRef.componentInstance.managerName = this.selectedManagerItemsCopy.find(x => x.id == currentId).name;\n this.dialogRef.afterClosed().subscribe(data => {\n console.log(data);\n if (data) {\n this.replacementAdmin = data;\n if(this.tempReplaced.find(x => x.currentId == this.removedAdmin.id)) {\n \n console.log(this.tempReplaced);\n if (this.selectedManagerItemsCopy.find(x => x.id == this.replacementAdmin.id)) {\n if (this.tempReplaced.find(x => x.currentId == this.replacementAdmin.id)) {\n this.selectedManagerItems.push({ id: this.replacementAdmin.id, name: this.replacementAdmin.name });\n this.ManagerEditForm.controls['managerData'].setValue(this.selectedManagerItems);\n }\n }\n else {\n if (this.tempReplaced.find(x => x.newId == this.replacementAdmin.id)){}\n else{this.selectedManagerItems.push({ id: this.replacementAdmin.id, name: this.replacementAdmin.name });\n this.ManagerEditForm.controls['managerData'].setValue(this.selectedManagerItems);}\n }}\n this.tempReplaced.find(x => x.currentId == this.removedAdmin.id).newId = this.replacementAdmin.id;\n console.log(this.tempReplaced);\n console.log(this.selectedManagerItems);\n \n this.ManagerEditForm.controls['buManagerReplacementsData'].setValue(this.tempReplaced);\n }\n else {\n this.selectedManagerItems.push(this.removedAdmin);\n this.ManagerEditForm.controls['managerData'].setValue(this.selectedManagerItems);\n }\n });\n }\n else if (this.tempReplaced.find(x => x.newId == this.removedAdmin.id)) {\n console.log(this.tempReplaced.find(x => x.newId == this.removedAdmin.id));\n var selectionId = this.tempReplaced.find(x => x.newId == this.removedAdmin.id).currentId;\n this.dialogRef = this.dialog.open(BuAssignmentDialogComponent);\n this.dialogRef.componentInstance.admins = this.admins;\n console.log(this.selectedManagerItemsCopy.find(x => x.id == selectionId).name);\n\n this.dialogRef.componentInstance.managerName = this.selectedManagerItemsCopy.find(x => x.id == selectionId).name;\n\n this.dialogRef.afterClosed().subscribe(data => {\n console.log(data);\n if (data) {\n this.replacementAdmin = data;\n if (this.tempReplaced.find(x => x.currentId == selectionId)) {\n \n console.log(this.tempReplaced);\n if (this.selectedManagerItemsCopy.find(x => x.id == this.replacementAdmin.id)) {\n if (this.tempReplaced.find(x => x.currentId == this.replacementAdmin.id)) {\n this.selectedManagerItems.push({ id: this.replacementAdmin.id, name: this.replacementAdmin.name });\n this.ManagerEditForm.controls['managerData'].setValue(this.selectedManagerItems);\n }\n }\n else {\n if (this.tempReplaced.find(x => x.newId == this.replacementAdmin.id)){}\n else{this.selectedManagerItems.push({ id: this.replacementAdmin.id, name: this.replacementAdmin.name });\n this.ManagerEditForm.controls['managerData'].setValue(this.selectedManagerItems);}\n }}\n this.tempReplaced.find(x => x.currentId == selectionId).newId = this.replacementAdmin.id;\n console.log(this.tempReplaced);\n \n this.ManagerEditForm.controls['buManagerReplacementsData'].setValue(this.tempReplaced);\n }\n else {this.selectedManagerItems.push(this.removedAdmin);}});\n this.ManagerEditForm.controls['managerData'].setValue(this.selectedManagerItems);\n }\n console.log(this.tempReplaced);\n }\n ngOnInit() {\n this.buildForm();\n\n var app_settings = {singleSelection: false,text:\"\",labelKey: \"name\",selectAllText:\"\",unSelectAllText:\"\",classes:\"myclass custom-class\"};\n var mgr_settings = {singleSelection: false,text:\"\",labelKey: \"name\",selectAllText:\"\",unSelectAllText:\"\",classes:\"myclass custom-class\"};\n this.translate.get('Select Applications').subscribe((res: string) => {app_settings.text = res;\n if(app_settings.text&&app_settings.selectAllText&&app_settings.unSelectAllText) {this.application_settings=app_settings;}\n });\n this.translate.get('Assign Manager').subscribe((res: string) => {mgr_settings.text = res;\n if(mgr_settings.text&&mgr_settings.selectAllText&&mgr_settings.unSelectAllText) {this.manager_settings=mgr_settings;}\n });\n this.translate.get('select_all').subscribe((res: string) => {app_settings.selectAllText=res;mgr_settings.selectAllText=res;\n if(mgr_settings.text&&mgr_settings.selectAllText&&mgr_settings.unSelectAllText) {this.manager_settings=mgr_settings;}\n if(app_settings.text&&app_settings.selectAllText&&app_settings.unSelectAllText) {this.application_settings=app_settings;}\n });\n this.translate.get('unselect_all').subscribe((res: string) => {app_settings.unSelectAllText=res;mgr_settings.unSelectAllText=res;\n if(mgr_settings.text&&mgr_settings.selectAllText&&mgr_settings.unSelectAllText) {this.manager_settings=mgr_settings;}\n if(app_settings.text&&app_settings.selectAllText&&app_settings.unSelectAllText) {this.application_settings=app_settings;}\n });\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/viewManager/viewManager.component.ts","/**\n * Created by shubham on 4/5/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router, NavigationEnd } from '@angular/router';\nimport { APPCONFIG } from '../../config';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { FormGroup, FormBuilder, FormControl, Validators, AbstractControl } from '@angular/forms';\nimport { HttpService } from '../../shared/services/http.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { DialogComponent } from '../../dialog/dialog.component';\nimport { ActiveInactiveDialogComponent } from '../../dialog/dialog.component';\n\n\n@Component({\n selector: 'wpass-details',\n template: require('./wpass.component.html')\n})\nexport class WPASSComponent {\n\n dialogRef;\n WPASSForm: FormGroup;\n WPASSFormDetails: any;\n WPASSResponse = [];\n urlPattern = /^((https?|ftp|smtp):\\/\\/)?(www.)?[a-z0-9]+(\\.[a-z]{2,}){1,3}(#?\\/?[a-zA-Z0-9#]+)*\\/?(\\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+&?)?$/;\n passwordPattern = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$/;\n isChecked = false;\n isDisabled = true;\n\n constructor(private router: Router, private sessionHandler:SessionHandler, public httpService : HttpService, public dialog: MdDialog, private formBuilder: FormBuilder) {\n //Close Sidebar Initially\n APPCONFIG.navCollapsed = true;\n\n this.getWPASSDetails();\n }\n\n public getWPASSDetails(){\n this.httpService.getRequest('superUserOperationsApi/v1/applicationDetailsWPASS').subscribe(\n res => { this.saveWPASSDetails(res,'getAPI'); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveUserData(){\n this.dialogRef = this.dialog.open(ActiveInactiveDialogComponent);\n this.dialogRef.componentInstance.isConfirm = true;\n this.dialogRef.componentInstance.msg = 'You are updating very sensitive information.';\n this.dialogRef.componentInstance.systemSetting = 'update_confirmation';\n this.dialogRef.afterClosed().subscribe(result => {\n if(result){\n this.httpService.postRequest(this.WPASSFormDetails,'superUserOperationsApi/v1/applicationDetailsWPASS').subscribe(\n res => { this.saveWPASSDetails(res,'postAPI'); },\n err => { this.httpService.onEnd(); }\n );\n }\n });\n }\n\n public saveWPASSDetails(res, apiStatus){\n if(res){\n if(apiStatus == 'postAPI'){\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"WPASS information updated successfully.\";\n }\n this.WPASSResponse = res;\n this.WPASSFormDetails = this.WPASSResponse;\n this.buildForm();\n }\n this.httpService.onEnd();\n }\n\n public toggle(){\n this.isChecked = !this.isChecked;\n if(this.isChecked == true){\n this.isDisabled = false;\n } else {\n this.isDisabled = true;\n this.WPASSForm.get('wpassAppUserPassword').setValue('');\n this.WPASSForm.get('wpassAppUserConfirmPassword').setValue('');\n }\n this.buildForm();\n }\n\n buildForm() {\n this.WPASSForm = this.formBuilder.group({\n wpassUrl: this.formBuilder.control(this.WPASSResponse['wpassUrl'], [Validators.required, Validators.pattern(this.urlPattern)]),\n wpassAppUserId: this.formBuilder.control(this.WPASSResponse['wpassAppUserId'], [Validators.required]),\n wpassAppUserPassword: this.formBuilder.control({value: '', disabled: this.isDisabled}, [Validators.required, Validators.minLength(8), Validators.maxLength(8), Validators.pattern(this.passwordPattern)]),\n wpassAppUserConfirmPassword: this.formBuilder.control({value: '', disabled: this.isDisabled}, [Validators.required]),\n wpassApplicationId: this.formBuilder.control(this.WPASSResponse['wpassApplicationId'], [Validators.required]),\n }, {validator: this.checkPasswords});\n this.WPASSForm.valueChanges.subscribe(data => {\n this.WPASSFormDetails = this.WPASSForm.getRawValue();\n this.WPASSFormDetails['id'] = this.WPASSResponse['id'];\n this.WPASSFormDetails.validate = this.WPASSForm.valid;\n });\n }\n\n checkPasswords(group: FormGroup) {\n if(group.get('wpassAppUserPassword').value === group.get('wpassAppUserConfirmPassword').value){\n group.get('wpassAppUserConfirmPassword').setErrors(null);\n return null;\n } else{\n group.get('wpassAppUserConfirmPassword').setErrors({'incorrect': true});\n return {'mismatch': true};\n }\n }\n\n ngOnInit() {\n this.buildForm();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/wpass/wpass.component.ts","// Imports\nimport { Component, ViewChild } from '@angular/core';\nimport { HttpService } from '../shared/services/http.service';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport { DatatableComponent } from '@swimlane/ngx-datatable';\nimport { APPCONFIG } from '../config';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\n//import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';\n//import { ChangeEvent } from '@ckeditor/ckeditor5-angular/ckeditor.component';\n\n// Component Decorator\n@Component({\n template: require('./translation-email.component.html'),\n styles: [require('../../app/newCommon.scss')],\n})\n\n// Component Class\nexport class TranslationEmailComponent {\n responseLanguageId: any;\n ProfileForm: FormGroup;\n LanguageData: any;\n userDetails: any;\n profileData: any;\n //public Editor = ClassicEditor;\n emailBody: string = \"\";\n emailSubject: string;\n isSystemAdmin: boolean = false;\n isApplicationManager: boolean = false;\n isBUManager: boolean = false;\n isRegionalAdmin: boolean = false;\n isServiceOwner: boolean = false;\n isTradePartner: boolean = false;\n isSubUser: boolean = false;\n \n constructor(public httpService: HttpService, private formBuilder: FormBuilder, public sessionHandler: SessionHandler,\n ) {\n APPCONFIG.navCollapsed = true;\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\n if (this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.applicationManager)) {\n this.isApplicationManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n if (this.isSystemAdmin) {\n this.getlanguages();\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n this.profileData = this.userDetails;\n if (this.profileData.languageId) {\n this.setLanguage(this.profileData.languageId);\n }\n this.getSubjectList();\n }\n }\n public setLanguage(languageId) {\n this.responseLanguageId = languageId;\n this.buildForm();\n }\n buildForm() {\n this.ProfileForm = this.formBuilder.group({\n languageId: this.formBuilder.control(this.responseLanguageId, [Validators.required])\n });\n }\n public getlanguages() {\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(\n res => { this.savelanguageResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n //Save languages Response\n public savelanguageResponse(res) {\n\n if (res && res.items) {\n this.LanguageData = res.items;\n }\n \n }\n langId;\n onLanguageChange(languageId) {\n this.j = undefined;\n this.responseLanguageId = languageId;\n this.getSubjectList();\n \n this.j = undefined;\n }\n j;\n selectEmail(data, i) {\n console.log(i);\n console.log(data);\n if (this.j != i) {\n if (this.j != undefined ) {\n document.getElementById(this.j).setAttribute(\"class\", \"style2, mdl-tabs__tab\");\n }\n document.getElementById(i).setAttribute(\"class\", \"style1\");\n }\n this.j = i;\n this.emailSubject = data.text;\n this.getEmailBodyList(data);\n }\n SubjectData;\n SubjectItems;\n getSubjectList() {\n const st = this.j;\n this.httpService.getRequest(\"superUserOperationsApi/v1/multilingualEmailSubject/list/\" + this.responseLanguageId).subscribe(\n res => {\n console.log(res);\n this.SubjectData = res;\n this.SubjectItems = this.SubjectData.items;\n },\n err => {\n this.httpService.onEnd();\n });\n if(st){\n setTimeout(() => {\n for(let i in this.SubjectItems){\n if(st == this.SubjectItems[i].id){\n document.getElementById(this.SubjectItems[i].id).setAttribute(\"class\", \"style1\");\n }}\n this.httpService.onEnd();\n }, 3000);\n } else{\n setTimeout(() => {\n if(this.SubjectItems){\n this.selectEmail(this.SubjectItems[0], this.SubjectItems[0].id)\n }\n }, 3000);}\n \n /* if(st){\n for(let i in this.SubjectItems){\n if(st == this.SubjectItems[i].id){\n document.getElementById(this.SubjectItems[i].id).setAttribute(\"class\", \"style1\");\n }\n }\n } */\n }\n emailBodyData;\n emailBodyid;\n emailSubjectid;\n getEmailBodyList(key) {\n this.emailSubjectid = key.id;\n this.httpService.getRequest(\"superUserOperationsApi/v1/multilingualEmail/\"+this.responseLanguageId+\"?key=\" + key.key).subscribe(\n res => {\n console.log(res);\n this.emailBodyData = res;\n this.emailBody = this.emailBodyData.html;\n this.emailBodyid = this.emailBodyData.id;\n this.httpService.onEnd();\n },\n err => {\n this.httpService.onEnd();\n });\n }\n updatedSubject = {};\n updatedSubjectId;\n updateSubject() {\n \n console.log(this.emailSubject);\n var body = {\n id: this.emailSubjectid,\n text: this.emailSubject\n }\n this.httpService.postRequest(body, 'superUserOperationsApi/v1/multilingualEmailSubject').subscribe(\n res => {\n console.log(res);\n this.getSubjectList();\n this.updatedSubject = res;\n },\n err => { this.httpService.onEnd(); }\n );\n }\n AdminFormDetails: any;\n updateBody() {\n console.log(this.emailBody);\n var body = {\n id: this.emailBodyid,\n html: this.emailBody\n }\n this.httpService.postRequest(body, 'superUserOperationsApi/v1/multilingualEmail').subscribe(\n res => {\n console.log(res);\n this.httpService.onEnd();\n },\n err => { this.httpService.onEnd(); }\n );\n\n }\n\n\n\n\n} \n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/translation-email/translation-email.component.ts","// Imports\nimport { Component, ViewChild } from '@angular/core';\nimport { HttpService } from '../shared/services/http.service';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport { DatatableComponent } from '@swimlane/ngx-datatable';\nimport { TranslationMessagePage } from './translation-messages/translation-messages-page'\nimport { TranslationMessagesResultService } from './translation-messages/translationResultService'\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { APPCONFIG } from '../config';\n\n// Component Decorator\n@Component({\n template: require('./translation-messages.component.html'),\n styles: [ require('../../app/newCommon.scss')],\n providers: [TranslationMessagesResultService]\n})\n\n// Component Class\nexport class TranslationMessagesComponent {\n @ViewChild(DatatableComponent) table: DatatableComponent;\n page = new TranslationMessagePage();\n LanguageData:any;\n tableRows: any = [];\n filters: any = {};\n selected = [];\n selectedStatusId: string = '';\n selectedCount: any;\n language2: any = [];\n searchText: any;\n ProfileForm: FormGroup;\n userDetails:any;\n responseLanguageId:any;\n profileData: any;\n isSystemAdmin: boolean = false;\n isApplicationManager: boolean = false;\n isBUManager: boolean = false;\n isRegionalAdmin: boolean = false;\n isServiceOwner: boolean = false;\n isTradePartner: boolean = false;\n isSubUser: boolean = false;\n \n constructor(public httpService: HttpService, private formBuilder: FormBuilder, public sessionHandler: SessionHandler,\n private serverResultsService: TranslationMessagesResultService,){\n\n APPCONFIG.navCollapsed = true;\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\n if (this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.applicationManager)) {\n this.isApplicationManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n this.getlanguages();\n this.page.pageNumber = 0;\n this.page.size = 20;\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n if (this.isSystemAdmin) {\n this.profileData = this.userDetails;\n if(this.profileData.languageId){\n this.setLanguage(this.profileData.languageId);\n }\n }\n \n }\n public setLanguage(languageId){\n this.responseLanguageId = languageId;\n this.buildForm();\n this.getTranslationData(this.filters);\n\n }\n buildForm() {\n this.ProfileForm = this.formBuilder.group({\n languageId: this.formBuilder.control(this.responseLanguageId, [Validators.required])\n });}\n public search() {\n this.selected = [];\n this.filters['offSet'] = 0;\n this.getTranslationData(this.filters);\n }\n resetDateFlag: boolean;\n public resetSearch() {\n this.searchText = \"\";\n this.resetDateFlag = true;\n if(this.profileData.languageId){\n this.setLanguage(this.profileData.languageId);\n }\n this.search();\n }\n updateBtn(rowdata, editedText){\n console.log(rowdata);\n console.log(editedText);\n let data = {};\n data['id'] = rowdata['id'];\n data['text'] = editedText;\n this.httpService.postRequest(data,'superUserOperationsApi/v1/multilingualText').subscribe(\n res => {\n console.log(res);\n this.getTranslationData(this.filters);\n },\n err => { this.httpService.onEnd(); }\n );\n\n \n }\n public getlanguages(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(\n res => { this.savelanguageResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n //Save languages Response\n public savelanguageResponse(res) {\n \n if(res && res.items){\n this.LanguageData = res.items;\n }\n this.httpService.onEnd();\n }\n langId;\n onLanguageChange(languageId){\n console.log(languageId);\n this.responseLanguageId = languageId;\n \n this.getTranslationData(this.filters);\n }\n \n getTranslationData(filter){\n if(this.searchText == undefined){\n this.searchText = \"\";\n }\n this.httpService.getRequest(\"superUserOperationsApi/v1/multilingualText/list/\"+this.responseLanguageId+\"?limit=\" + filter.limit + \"&offset=\" + filter.offSet+\"&search=\"+this.searchText ).subscribe(\n res => {\n console.log(res);\n \n this.saveTranslationList(res, filter);\n\n },\n err => {\n this.httpService.onEnd();\n });\n }\n public saveTranslationList = function (res, filter) {\n if (res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if (res && Object.keys(res).length > 0) {\n this.translationData = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n this.count = res.count;\n this.totalCount = res.totalCount;\n\n if (this.translationData.list) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.translationData.list) {\n \n this.rows[data] = {};\n this.rows[data]['id'] = this.translationData.list[data]['id'];\n this.rows[data]['key'] = this.translationData.list[data]['key'];\n this.rows[data]['english'] = this.translationData.list[data]['englishText'];\n this.rows[data]['selectLanguage'] = this.translationData.list[data]['text'];\n this.rows[data]['actionFlag'] = true;\n this.language2[data] = this.translationData.list[data]['text'];\n \n }\n this.showTable = true;\n this.temp = this.rows;\n } else {\n this.showTable = false;\n }\n let finalRows = [];\n for (let f in this.rows) {\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\n finalRows.push(this.rows[f]);\n }\n if (f == 'offset') {\n finalRows['offset'] = this.rows['offset'];\n }\n if (f == 'totalCount') {\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\n this.httpService.onEnd();\n }\n }\n }\n public setPage(pageInfo, rows, filter) {\n this.page.pageNumber = pageInfo.offset;\n if (rows.length != 0) {\n this.serverResultsService.getResults(this.page, rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if (!filter) {\n if (Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']) {\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.getTranslationData(this.filters);\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n onSelect({ selected }) {\n this.selected.splice(0, this.selected.length);\n this.selected.push(...selected);\n this.selectedCount = this.selected.length;\n }\n\n} \n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/translation-messages/translation-messages.component.ts","\nexport class TranslationMessagePage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/translation-messages/translation-messages/translation-messages-page.ts","/**\n * Created by shubham on 15/02/19.\n */\n\nimport { Component } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { HttpService } from '../shared/services/http.service'\nimport { MdDialog } from '@angular/material';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\nimport { CommonService } from '../shared/services/common.service';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n template: require('./unlockAccount.component.html')\n})\n\nexport class UnlockAccountComponent {\n data: any = [];\n dialogRef;\n id: any;\n languageId: any;\n UnlockAccountForm: FormGroup;\n UnlockAccountFormDetails: any;\n\n constructor(private router: Router, private route: ActivatedRoute, private httpService: HttpService, private sessionHandler: SessionHandler,\n public dialog: MdDialog, private translate: TranslateService, private formBuilder: FormBuilder, private commonService: CommonService) {\n }\n\n buildForm() {\n this.UnlockAccountForm = this.formBuilder.group({\n userId_WPASS: this.formBuilder.control(null, [Validators.required]),\n });\n this.UnlockAccountForm.valueChanges.subscribe(data => {\n this.UnlockAccountFormDetails = this.UnlockAccountForm.getRawValue();\n });\n }\n\n public unlockAccount(){\n this.httpService.postRequest(this.UnlockAccountFormDetails,'userOperationsApi/v1/unlockWpassUser').subscribe(\n res => { this.saveResponse(res); },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n\n public saveResponse(res){\n if(res){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'account_unlock_succesfully';\n this.dialogRef.afterClosed().subscribe(result => {\n this.router.navigateByUrl('/login');\n });\n }\n this.httpService.onEnd();\n }\n\n ngOnInit(): void {\n this.buildForm();\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/unlock-account/UnlockAccountComponent.ts","\nexport class UserActivityPage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-activity-logs/user-activity-datatable/user-activity-page.ts","import {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\n\nimport {UserActivityPageData} from \"./user-activity-page-data\";\nimport {UserActivityDashboardList} from \"./user-activity-dashboardList\";\nimport {UserActivityPage} from \"./user-activity-page\";\n\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class UserActivityResultService {\n listData:any;\n loginData;\n rows = {};\n applicationsDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: UserActivityPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: UserActivityPage): UserActivityPageData {\n let pageData = new UserActivityPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n\n \n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n \n let list = new UserActivityDashboardList(jsonObj['username'], jsonObj['createdAt'],\n jsonObj['description'], jsonObj['email'], jsonObj['wpassId']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-activity-logs/user-activity-datatable/userActivityResultService.ts","import { Component, OnInit, ViewChild } from '@angular/core';\nimport { IMyDpOptions } from 'mydatepicker';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport { UserActivityPage } from \"./user-activity-datatable/user-activity-page\";\nimport { DatatableComponent } from '@swimlane/ngx-datatable';\nimport { UserActivityResultService } from './user-activity-datatable/userActivityResultService'\nimport { HttpService } from '../shared/services/http.service';\nimport { APPCONFIG } from '../config';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport { CommonService } from '../shared/services/common.service';\nimport { DatePipe } from '@angular/common';\n\n@Component({\n\n template: require('./user-activity.logs.component.html'),\n styles: [require('./user-activity.logs.component.scss'), require('../../app/newCommon.scss')],\n providers: [DatePipe]\n\n})\n\nexport class userActivityLogs implements OnInit {\n @ViewChild(DatatableComponent) table: DatatableComponent;\n page = new UserActivityPage();\n filters: any = {};\n tableRows: any = [];\n userDetails: any;\n isSystemAdmin: boolean = false;\n isApplicationManager: boolean = false;\n isBUManager: boolean = false;\n isRegionalAdmin: boolean = false;\n isServiceOwner: boolean = false;\n isTradePartner: boolean = false;\n isSubUser: boolean = false;\n showTable: boolean = true;\n todaySelected: Date = new Date;\n Wpass: Array = [];\n autocompleteLoader: string = \"\";\n searchWpass:string = \"\";\n selectedDate;\n today: Date = new Date();\n public model: any = { date: { year: this.today.getFullYear(), month: this.today.getMonth() + 1, day: this.today.getDate() } };\n response = {};\n showCheckbox;\n selected = [];\n selectedStatusId: string = '';\n selectedCount: any;\n searchValue;\n\n\n constructor(private serverResultsService: UserActivityResultService, private sessionHandler: SessionHandler,\n private httpService: HttpService, private datePipe: DatePipe, private commonService: CommonService) {\n\n this.selectedDate = this.datePipe.transform(this.todaySelected, 'yyyy-MM-dd');\n //Close Sidebar Initially\n APPCONFIG.navCollapsed = true;\n\n this.page.pageNumber = 0;\n this.page.size = 20;\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if (this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0) {\n if (this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.applicationManager)) {\n this.isApplicationManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if (this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n if (this.isSystemAdmin) {\n this.getApplicationsList(this.filters)\n } else {\n this.showTable = false;\n }\n\n //Call when approve/delete from ApproveRejectComponent/ActiveInactiveComponent to get the updated list.\n this.commonService.applicationDashboard.subscribe((value) => {\n this.getApplicationsList(this.filters);\n });\n }\n\n public myDatePickerOptions: IMyDpOptions = {\n // other options...\n dateFormat: 'yyyy-mm-dd',\n };\n\n autocompleteSearch(term: string, filter: string) {\n\n if (filter == \"wpass\") {\n this.Wpass = [];\n this.searchWpass = term;\n }\n\n if (term == \"\") return;\n\n let url = \"/lookupDataOperationsApi/v1/partialSearch?type=\" + filter + \"&searchStr=\" + term;\n this.autocompleteLoader = filter;\n this.httpService.getRequestForAutocomplete(url).subscribe(\n res => {\n if (res && res['items']) {\n let name = res['items'];\n let filterArray = [];\n\n for (let index in name) {\n filterArray.push(name[index]['name']);\n }\n\n if (filter == \"wpass\") {\n this.Wpass = filterArray;\n }\n }\n this.autocompleteLoader = \"\";\n this.httpService.onEnd();\n },\n err => {\n this.autocompleteLoader = \"\";\n this.httpService.onEnd();\n })\n }\n\n onSelectAutocomplete(value, textFlag) {\n if (textFlag == \"wpass\") {\n this.searchWpass = value;\n }\n }\n\n public search() {\n this.selected = [];\n this.selectedDate = \"\";\n this.filters['offSet'] = 0;\n\n if(this.model) {\n if (this.model.formatted) {\n this.selectedDate = this.model.formatted;\n }else {\n var date1 = this.model.date.year + \"-\" + this.model.date.month + \"-\" + this.model.date.day;\n this.selectedDate = this.datePipe.transform(date1, 'yyyy-MM-dd');\n }\n }\n\n if (this.searchWpass == undefined) {\n this.searchWpass = \"\";\n } else if(this.searchWpass != \"\" && this.Wpass.length > 0){\n if(this.checkAutocompleteWord(this.Wpass, this.searchWpass)){\n this.searchWpass = \"\";\n }\n }\n\n this.getApplicationsList(this.filters);\n }\n\n checkAutocompleteWord(objArray, searchValue){\n if(objArray.includes(searchValue)){\n return false;\n } else {\n return true;\n }\n }\n\n public resetSearch() {\n this.searchWpass = '';\n this.Wpass = [];\n this.searchValue = \"\";\n this.selectedDate = \"\";\n this.model = { date: { year: this.today.getFullYear(), month: this.today.getMonth() + 1, day: this.today.getDate() } };\n this.search();\n }\n \n onSelect({ selected }) {\n this.selected.splice(0, this.selected.length);\n this.selected.push(...selected);\n this.selectedCount = this.selected.length;\n }\n\n public getApplicationsList(filter) {\n this.showCheckbox = true;\n\n this.httpService.getRequest(\"/userActivityLogsOperationApi/v1/userActivityLogList?limit=\" + filter.limit + \"&offset=\" + filter.offSet + \"&wpassId=\" + this.searchWpass + \"&date=\" + this.selectedDate).subscribe(\n res => {\n this.saveApplicationsList(res, filter);\n\n },\n err => {\n this.httpService.onEnd();\n }\n );\n\n }\n\n public saveApplicationsList = function (res, filter) {\n\n if (res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if (res && Object.keys(res).length > 0) {\n this.applicationsDashboardData = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n this.count = res.count;\n this.totalCount = res.totalCount;\n\n if (this.applicationsDashboardData.list) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.applicationsDashboardData.list) {\n this.rows[data] = {};\n this.rows[data]['name'] = this.applicationsDashboardData.list[data]['name'];\n this.rows[data]['username'] = this.applicationsDashboardData.list[data]['username'];\n this.rows[data]['description'] = this.applicationsDashboardData.list[data]['description'];\n this.rows[data]['email'] = this.applicationsDashboardData.list[data]['email'];\n this.rows[data]['wpassId'] = this.applicationsDashboardData.list[data]['wpassId'];\n this.rows[data]['createdAt'] = this.applicationsDashboardData.list[data]['createdAt'];\n /* this.rows[data]['createdAt'] = this.datePipe.transform(this.applicationsDashboardData.list[data]['createdAt'], 'dd-MM-yyyy hh:mm:ss a'); */\n\n\n }\n this.showTable = true;\n this.temp = this.rows;\n } else {\n this.showTable = false;\n }\n\n let finalRows = [];\n for (let f in this.rows) {\n if (f != 'offset' && f != 'totalCount' && this.rows[f]) {\n finalRows.push(this.rows[f]);\n }\n if (f == 'offset') {\n finalRows['offset'] = this.rows['offset'];\n }\n if (f == 'totalCount') {\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({ offset: this.rows['offset'] / this.page.size }, finalRows, filter);\n this.httpService.onEnd();\n }\n }\n }\n public setPage(pageInfo, rows, filter) {\n this.page.pageNumber = pageInfo.offset;\n if (rows.length != 0) {\n this.serverResultsService.getResults(this.page, rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if (!filter) {\n if (Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']) {\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n\n\n this.getApplicationsList(this.filters);\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n ngOnInit() { }\n\n} \n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-activity-logs/user-activity.logs.component.ts","/**\n * Created by shubham on 20/11/18.\n */\n\nimport { Component } from '@angular/core';\nimport { APPCONFIG } from '../../../config';\nimport { MdDialog } from '@angular/material';\nimport { FormGroup, FormBuilder, FormArray, Validators } from '@angular/forms';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { DialogComponent } from '../../../dialog/dialog.component';\n\n\n@Component({\n selector: 'add-business-user',\n template: require('./add-business-unit.component.html')\n})\nexport class AddBusinessUnitForUserComponent {\n\n dialogRef;\n userDetails: any;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n settings = {};\n country = [];\n businessUnits = [];\n applications = [];\n AddBusinessUnitForm: FormGroup;\n AddBusinessUnitFormDetails: any;\n isDisabled = true;\n selectedBusinessUnit: any;\n\n constructor(private sessionHandler:SessionHandler, public httpService : HttpService, public dialog: MdDialog, private formBuilder: FormBuilder) {\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n if(this.isServiceOwner){\n this.getBusinessUnitAndCountry();\n }\n }\n\n public getBusinessUnitAndCountry() {\n this.httpService.getRequest('applicationOperationApi/v1/initNewApplicationRequest').subscribe(\n res => { this.saveBusinessUnitAndCountry(res); },\n err => { this.httpService.onEnd(); }\n );\n\n }\n public saveBusinessUnitAndCountry(res){\n if(res){\n this.country['id'] = res.countryId;\n this.country['name'] = res.countryName;\n\n if(res.availableBusinessUnits){\n this.businessUnits = res.availableBusinessUnits;\n }\n\n if(res.defaultBusinessUnit){\n this.selectedBusinessUnit = res.defaultBusinessUnit.id;\n }\n }\n this.buildForm();\n this.httpService.onEnd();\n }\n\n buildForm() {\n this.AddBusinessUnitForm = this.formBuilder.group({\n country: this.formBuilder.control({value: this.country['name'], disabled: true}),\n businessUnitId: this.formBuilder.control(null, [Validators.required]),\n applicationData: this.formBuilder.control(null, [Validators.required]),\n customerNumber: this.formBuilder.control(null, [Validators.required])\n });\n this.AddBusinessUnitForm.valueChanges.subscribe(data => {\n this.AddBusinessUnitFormDetails = this.AddBusinessUnitForm.getRawValue();\n\n this.AddBusinessUnitFormDetails['applicationId'] = [];\n for (let d in this.AddBusinessUnitFormDetails.applicationData){\n this.AddBusinessUnitFormDetails['applicationId'].push(this.AddBusinessUnitFormDetails.applicationData[d]['id']);\n }\n\n this.AddBusinessUnitFormDetails.validate = this.AddBusinessUnitForm.valid;\n });\n\n this.AddBusinessUnitForm.get('businessUnitId').valueChanges.subscribe(data=> {\n const arrayControl = this.AddBusinessUnitForm.controls['applicationData'];\n arrayControl.controls = [];\n this.applications = [];\n\n if(data != null){\n this.getApplicationsByBusinessUnit(data);\n }\n });\n\n this.AddBusinessUnitForm.get('applicationData').valueChanges.subscribe(data=> {\n\n if(data != null){\n for(let app of data){\n if(app.customerNumberRequired && app.customerNumberRequired != null){\n this.AddBusinessUnitForm.get('customerNumber').setValidators(null);\n this.AddBusinessUnitForm.get('customerNumber').updateValueAndValidity();\n break;\n }\n }\n }\n });\n }\n\n public getApplicationsByBusinessUnit(businessUnitId) {\n this.httpService.getRequest('applicationOperationApi/v1/getUnsubscribedApplicationsForPartner/'+businessUnitId).subscribe(\n res => { this.saveApplicationsByBusinessUnit(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveApplicationsByBusinessUnit(res) {\n if(res && res.availableApplications){\n\n if(res.availableApplications){\n this.applications = res.availableApplications;\n }\n\n if(res.customerNumber) {\n this.AddBusinessUnitForm.get('customerNumber').setValue(res.customerNumber);\n }\n }\n this.httpService.onEnd();\n }\n\n public saveBusinessUnitData(){\n this.httpService.postRequest(this.AddBusinessUnitFormDetails,'applicationOperationApi/v1/subscribeApplications').subscribe(\n res => { this.saveBusinessUnitDataResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveBusinessUnitDataResponse(res){\n if(res){\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"app_add_success\";\n this.dialogRef.afterClosed().subscribe(result => {\n window.location.href = '#/app/request-application/list';\n });\n } else if(res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'save_failed';\n this.httpService.onEnd();\n }\n }\n\n ngOnInit() {\n this.buildForm();\n\n this.settings = {\n singleSelection: false,\n text:\"Select Applications\",\n labelKey: \"name\",\n selectAllText:'Select All',\n unSelectAllText:'UnSelect All',\n classes:\"myclass custom-class\"\n };\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/add-business-unit/add-business-unit.component.ts","/**\n * Created by shubham on 24/11/18.\n */\n\nimport { Component, ViewChild, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { DatatableComponent } from '@swimlane/ngx-datatable';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { DialogComponent } from '../../../dialog/dialog.component';\nimport { CommonService } from '../../../shared/services/common.service';\nimport { FormGroup, FormBuilder, FormControl, Validators, AbstractControl } from '@angular/forms';\nimport { BusinessUnitListPage } from \"../businessUnitList-datatable/businessUnitList-page\";\nimport { APPCONFIG } from '../../../config';\nimport { BusinessUnitListForUserDashboardResultService } from '../businessUnitForUserDashboardResultService';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n selector: 'businessUnitList',\n template: require('./business-unit-list.component.html')\n})\nexport class BusinessUnitListForUserComponent {\n\n @ViewChild(DatatableComponent) table: DatatableComponent;\n dialogRef;\n userDetails:any;\n page = new BusinessUnitListPage();\n tableRows :any = [];\n filters:any = {};\n rows:any;\n businessUnitListData = [];\n temp = [];\n showTable:boolean = true;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n selected = [];\n businessUnitForUserListText: any;\n ApplicationData = [];\n selectedApplicationId: string = '';\n selectedStatusId: boolean;\n profileData: any;\n businessUnitWithApplicationAndRoles = [];\n businessUnitWithAppRolesProfile = [];\n\n constructor(private router: Router, private httpService:HttpService, private sessionHandler:SessionHandler, public dialog: MdDialog,\n private formBuilder: FormBuilder, private serverResultsService: BusinessUnitListForUserDashboardResultService, \n private commonService: CommonService, private translate: TranslateService) {\n\n this.businessUnitForUserListText = 'businessUnitForUserList';\n\n this.page.pageNumber = 0;\n this.page.size = 20;\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.filters['limit'] = this.page.size;\n if(this.isServiceOwner){\n //this.getApplications();\n //this.getUsersList(this.filters, this.selectedApplicationId);\n this.getPartnersProfileData();\n } else{\n //this.getUserList();\n }\n }\n\n public getPartnersProfileData(){\n this.httpService.getRequest('partnerOperationsApi/v1/partnerDetails').subscribe(\n res => { this.savePartnersProfileData(res) },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public savePartnersProfileData(res) {\n if(res){\n this.profileData = res;\n if(this.profileData){\n if(this.profileData.businessUnitWithApplicationAndRoles){\n this.businessUnitWithApplicationAndRoles = this.profileData.businessUnitWithApplicationAndRoles;\n\n for(let businessUnit in this.businessUnitWithApplicationAndRoles) {\n for(let appAndRoles in this.businessUnitWithApplicationAndRoles[businessUnit]['applications']){\n let temp = [];\n temp['businessUnitName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitName'];\n temp['customerNumber'] = this.businessUnitWithApplicationAndRoles[businessUnit]['customerNumber'];\n temp['applicationName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationName'];\n temp['selectedRoleNames'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['selectedRoleNames'];\n temp['url'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['url'];\n\n let actionObject = {};\n if( this.businessUnitWithApplicationAndRoles[businessUnit]['statusCode'] != 'APPROVED' ){\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit];\n } else {\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles];\n }\n temp['statusCode'] = actionObject['statusCode'];\n temp['status'] = actionObject['status'];\n temp['message'] = actionObject['message'];\n\n this.businessUnitWithAppRolesProfile.push(temp);\n }\n }\n }\n }\n this.httpService.onEnd();\n } else if(res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_load_failed';\n this.httpService.onEnd();\n }\n }\n\n public getApplications() {\n this.httpService.getRequest('applicationOperationApi/v1/applicationsForPartner').subscribe(\n res => { this.saveApplications(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveApplications(res) {\n if(res && res.items){\n for(let s in res.items){\n this.ApplicationData.push(res.items[s]);\n }\n }\n }\n\n public search(){\n this.filters['offSet'] = 0;\n this.getUsersList(this.filters, this.selectedApplicationId);\n }\n\n public resetSearch(){\n this.selectedApplicationId = \"\";\n this.search();\n }\n\n public getUsersList(filter, applicationId){\n this.httpService.getRequest(\"partnerOperationsApi/v1/businessUnitListForPartner?limit=\"+filter.limit+\"&offset=\"+filter.offSet+\"&applicationId=\"+applicationId).subscribe(\n res => { this.saveUserList(res,filter); },\n err => { this.httpService.onEnd();}\n );\n }\n\n public getUserList = function () {\n this.showTable = false;\n }\n\n public saveUserList = function(res, filter){\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_pull_fail';\n } else {\n if(res && Object.keys(res).length > 0 ){\n this.businessUnitListData = res;\n this.rows = [];\n this.rows['offset'] = res.offset;\n\n if(this.businessUnitListData.list) {\n let totalCount = 0;\n if (parseInt(res.offset) == 0) {\n localStorage.setItem('totalCount', res.totalCount);\n totalCount = parseInt(res.totalCount);\n } else {\n totalCount = parseInt(localStorage.getItem('totalCount'));\n }\n\n this.rows['totalCount'] = totalCount;\n for (let data in this.businessUnitListData.list) {\n if(this.isServiceOwner){\n this.rows[data] = {};\n this.rows[data]['countryId'] = this.businessUnitListData.list[data]['countryId'];\n this.rows[data]['countryName'] = this.businessUnitListData.list[data]['countryName'];\n this.rows[data]['businessUnitId'] = this.businessUnitListData.list[data]['businessUnitId'];\n this.rows[data]['businessUnitName'] = this.businessUnitListData.list[data]['businessUnitName'];\n this.rows[data]['emailVerified'] = this.businessUnitListData.list[data]['emailVerified'];\n this.rows[data]['customerNumber'] = this.businessUnitListData.list[data]['customerNumber'];\n\n if(this.businessUnitListData.list[data]['selectedApplicationNames']){\n this.rows[data]['selectedApplicationNames'] = this.businessUnitListData.list[data]['selectedApplicationNames'];\n }\n\n this.rows[data]['status'] = this.businessUnitListData.list[data]['status'];\n this.rows[data]['active'] = this.businessUnitListData.list[data]['active'];\n } else{\n //For Other Service Partner's\n this.rows[data] = {};\n }\n }\n this.showTable = true;\n this.temp = this.rows;\n } else{\n this.showTable = false;\n }\n\n let finalRows = [];\n for(let f in this.rows){\n if(f != 'offset' && f !='totalCount' && this.rows[f]){\n finalRows.push(this.rows[f]);\n }\n if(f == 'offset'){\n finalRows['offset'] = this.rows['offset'];\n }\n if(f == 'totalCount'){\n finalRows['totalCount'] = this.rows['totalCount'];\n }\n }\n this.rows = finalRows;\n this.setPage({ offset: this.rows['offset']/this.page.size },finalRows,filter);\n this.httpService.onEnd();\n }\n }\n }\n\n /**\n * Populate the table with new data based on the page number\n * @param page The page to select\n */\n public setPage(pageInfo,rows,filter){\n this.page.pageNumber = pageInfo.offset;\n if(rows.length != 0){\n this.serverResultsService.getResults(this.page,rows).subscribe(pageData => {\n this.page = pageData.page;\n this.tableRows = pageData.data;\n if(!filter){\n if(Object.keys(this.tableRows).length == 0 || !this.tableRows[0]['status']){\n this.filters['offSet'] = this.page.pageNumber * this.page.size;\n this.getUsersList(this.filters, this.selectedApplicationId);\n }\n }\n });\n } else {\n this.tableRows = [];\n this.page.totalElements = rows.length;\n }\n }\n\n onSelect({ selected }) {\n this.selected.splice(0, this.selected.length);\n this.selected.push(...selected);\n }\n\n ngOnInit() {\n var temp = [{id:\"\",code:\"\",name: \"All\"}];\n this.translate.get('all').subscribe((res: string) => {temp[0].name = res;\n this.ApplicationData = temp;\n });\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/business-unit-list/business-unit-list.component.ts","/**\n * Created by shubham on 20/11/18.\n */\n\nimport {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {BusinessUnitListPage} from \"./businessUnitList-datatable/businessUnitList-page\";\nimport {BusinessUnitListPageData} from \"./businessUnitList-datatable/businessUnitList-page-data\";\nimport {BusinessUnitListDashboard} from \"./businessUnitList-datatable/businessUnitList-dashboard\";\n\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class BusinessUnitListForUserDashboardResultService {\n listData:any;\n loginData;\n rows = {};\n adminDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: BusinessUnitListPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: BusinessUnitListPage): BusinessUnitListPageData {\n let pageData = new BusinessUnitListPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n let list = new BusinessUnitListDashboard(jsonObj['countryId'], jsonObj['countryName'], jsonObj['businessUnitId'],\n jsonObj['businessUnitName'], jsonObj['emailVerified'], jsonObj['customerNumber'], jsonObj['selectedApplicationNames'],\n jsonObj['status'], jsonObj['active']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/businessUnitForUserDashboardResultService.ts","/**\n * Created by shubham on 20/11/18.\n */\n\n/**\n * An object used to get page information from the server\n */\nexport class BusinessUnitListPage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/businessUnitList-datatable/businessUnitList-page.ts","/**\n * Created by shubham on 19/11/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { HttpService } from '../../shared/services/http.service'\nimport { MdDialog } from '@angular/material';\nimport { CommonService } from '../../shared/services/common.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { TranslateService } from 'ng2-translate';\n\n@Component({\n template: require('./request-business-unit.component.html')\n})\n\nexport class RequestBusinessUnitComponent {\n data: any = [];\n dialogRef;\n id: any;\n languageId: any;\n\n constructor(private router: Router, private route: ActivatedRoute, private httpService: HttpService,private sessionHandler:SessionHandler,\n public dialog: MdDialog, private translate: TranslateService, private commonService: CommonService) {\n\n this.languageId = this.sessionHandler.getItem('languageId');\n if(!this.languageId){\n this.languageId = \"EN\";\n }\n this.translate.use(this.languageId);\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/request-business-unit.component.ts","/**\n * Created by shubham on 20/11/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { Http} from '@angular/http';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { AngularMultiSelectModule } from 'angular2-multiselect-dropdown/angular2-multiselect-dropdown';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { NgxDatatableModule } from '@swimlane/ngx-datatable';\nimport { RequestBusinessUnitRoutingModule } from './request-business-unit-routing.module';\nimport { RequestBusinessUnitComponent } from './request-business-unit.component';\nimport { AddBusinessUnitForUserComponent } from './add-business-unit/add-business-unit.component';\nimport { BusinessUnitListForUserComponent } from './business-unit-list/business-unit-list.component';\nimport { ViewBusinessUnitForUserComponent } from './view-business-unit/view-business-unit.component';\nimport { TranslateModule,TranslateLoader,TranslateStaticLoader } from 'ng2-translate';\nimport { APPCONFIG } from '../../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n NgxDatatableModule,\n FormsModule,\n ReactiveFormsModule,\n AngularMultiSelectModule,\n RequestBusinessUnitRoutingModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n RequestBusinessUnitComponent,\n AddBusinessUnitForUserComponent,\n BusinessUnitListForUserComponent,\n ViewBusinessUnitForUserComponent\n ],\n exports: [\n\n ]\n})\n\nexport class RequestBusinessUnitModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/request-business-unit.module.ts","/**\n * Created by shubham on 25/11/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { APPCONFIG } from '../../../config';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { DialogComponent, SelectApplicationsDialogComponent } from '../../../dialog/dialog.component';\n\n\n@Component({\n selector: 'view-business-unit-for-user',\n template: require('./view-business-unit.component.html')\n})\nexport class ViewBusinessUnitForUserComponent {\n\n dialogRef;\n userDetails: any;\n id: any;\n businessUnitDetails = [];\n applications = [];\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n isDisabled = true;\n admins = [];\n settings = {};\n selectedItems = [];\n applicationData = [];\n\n constructor(private router: Router,private route: ActivatedRoute, private sessionHandler:SessionHandler, public httpService : HttpService, public dialog: MdDialog, private formBuilder: FormBuilder) {\n\n this.route.params.subscribe(params => {\n this.id = params['id'];\n });\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n } else if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n\n if(this.isServiceOwner){\n this.getBusinessUnitDetailsById(this.id);\n }\n }\n\n public getBusinessUnitDetailsById(id){\n this.httpService.getRequest('partnerOperationsApi/v1/businessUnitDetailsForPartner/'+ id).subscribe(\n res => { this.saveBusinessUnitDetails(res) },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveBusinessUnitDetails(res) {\n if(res){\n this.businessUnitDetails = res;\n if(this.businessUnitDetails['applications']){\n this.applications = this.businessUnitDetails['applications'];\n for(let appIndex in this.applications){\n if(!this.applications[appIndex]['message']){\n this.applications[appIndex]['message'] = \"\";\n }\n }\n }\n this.httpService.onEnd();\n } else if(res.errorStatus == 'Fail'){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_load_failed';\n this.httpService.onEnd();\n }\n }\n\n public requestNewApplication(businessUnitId) {\n this.httpService.getRequest('applicationOperationApi/v1/getUnsubscribedApplicationsForPartner/'+businessUnitId).subscribe(\n res => { this.requestNewApplicationResponse(res, businessUnitId); },\n err => { this.httpService.onEnd(); }\n );\n }\n requestNewApplicationResponse(res, businessUnitId) {\n if(res && res.items){\n this.applicationData = res.items;\n this.dialogRef = this.dialog.open(SelectApplicationsDialogComponent);\n this.dialogRef.componentInstance.applications = this.applicationData;\n this.dialogRef.componentInstance.businessUnitId = businessUnitId;\n this.dialogRef.afterClosed().subscribe(result => {\n if(result){\n this.saveApplications(result);\n }\n });\n }\n this.httpService.onEnd();\n }\n saveApplications(result){\n this.httpService.postRequest(result,'applicationOperationApi/v1/subscribeApplications').subscribe(\n res => { this.saveBusinessUnitDetails(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/view-business-unit/view-business-unit.component.ts","/**\n * Created by shubham on 24/4/18.\n */\n\nimport { Component } from '@angular/core';\nimport { APPCONFIG } from '../../config';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { HttpService } from '../../shared/services/http.service'\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';\nimport { DialogComponent } from '../../dialog/dialog.component';\nimport {SessionHandler} from \"../../shared/services/session-handler.service\";\n\n@Component({\n template: require('./add-edit-user.component.html')\n})\n\nexport class AddEditUserComponent {\n data: any = [];\n dialogRef;\n userDetails:any;\n UserForm: FormGroup;\n UserFormDetails: any;\n id: any;\n emailPattern = APPCONFIG.emailPattern;\n //passwordPattern = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$/;\n passwordPattern = /^(?=.*?[A-Za-z])(?=.*?[0-9]).{5,}$/;\n settings = {};\n LanguageDetails = [];\n passwordErrorMsg: string = '';\n\n constructor(private router: Router, public sessionHandler: SessionHandler, private route: ActivatedRoute, private httpService: HttpService, private formBuilder: FormBuilder, private dialog: MdDialog) {\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n this.getLanguages();\n }\n\n public getLanguages(){\n this.httpService.getRequest('lookupDataOperationsApi/v1/language').subscribe(\n res => { this.saveLanguageResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n validateName(event: any) {\n return APPCONFIG.validNameRegex.test(event.key);\n }\n public saveLanguageResponse(res) {\n if(res){\n if(res.items){\n this.LanguageDetails = res.items;\n }\n }\n this.httpService.onEnd();\n }\n\n buildForm() {\n this.UserForm = this.formBuilder.group({\n firstName: this.formBuilder.control(null, [Validators.required]),\n lastName: this.formBuilder.control(null, [Validators.required]),\n password: this.formBuilder.control('', [Validators.required, Validators.minLength(8), Validators.maxLength(8), Validators.pattern(this.passwordPattern)]),\n confirmPassword: this.formBuilder.control('', [Validators.required]),\n email: this.formBuilder.control(null, [Validators.required, Validators.pattern(this.emailPattern)]),\n languageId: this.formBuilder.control(null, [Validators.required]),\n }, {validator: this.checkPasswords});\n this.UserForm.valueChanges.subscribe(data => {\n this.UserFormDetails = this.UserForm.getRawValue();\n this.UserFormDetails.validate = this.UserForm.valid;\n });\n\n this.UserForm.get('password').valueChanges.subscribe(data=> {\n if(data != null){\n this.UserForm.get('password').setErrors({'incorrect': true});\n if(!/.*[A-Z]/.test(data) || !/.*[a-z]/.test(data)){\n this.passwordErrorMsg = \"pass_one_upper_lower_char\";\n } else if(!/.*[0-9]/.test(data)){\n this.passwordErrorMsg = \"pass_one_number\";\n } else if(data.length!=8){\n this.passwordErrorMsg = \"pass_8_chars\";\n } else if(data.toLowerCase().includes(this.userDetails.userId_WPASS.toLowerCase())){\n this.passwordErrorMsg = \"pass_no_userId\";\n } else{\n this.passwordErrorMsg = \"\";\n this.UserForm.get('password').setErrors(null);\n }\n }\n })\n }\n\n showPassword(input: any): any {\n input.type = input.type === 'password' ? 'text' : 'password';\n }\n\n checkPasswords(group: FormGroup) {\n if(group.get('password').value === group.get('confirmPassword').value){\n group.get('confirmPassword').setErrors(null);\n return null;\n } else{\n group.get('confirmPassword').setErrors({'incorrect': true});\n return {'mismatch': true};\n }\n }\n\n public saveUserData(){\n this.httpService.postRequest(this.UserFormDetails,'partnerOperationsApi/v1/createCompanyUser').subscribe(\n res => { this.saveResponse(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n\n public saveResponse(res){\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'user_creation_failed';\n } else {\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"registration_rqst_notify\";\n //this.dialogRef.componentInstance.msg = \"User Created Successfully\";\n this.dialogRef.afterClosed().subscribe(result => {\n this.router.navigateByUrl('/app/partners-dashboard');\n });\n }\n }\n\n ngOnInit(): void {\n this.buildForm();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user/add-edit-user/add-edit-user.component.ts","/**\n * Created by shubham on 24/4/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { HttpService } from '../shared/services/http.service'\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { CommonService } from '../shared/services/common.service';\nimport { SessionHandler } from '../shared/services/session-handler.service';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n template: require('./user.component.html')\n})\n\nexport class UserComponent {\n data: any = [];\n dialogRef;\n id: any;\n languageId: any;\n\n constructor(private router: Router, private route: ActivatedRoute, private httpService: HttpService,private sessionHandler:SessionHandler,\n public dialog: MdDialog, private translate: TranslateService, private commonService: CommonService) {\n\n this.languageId = this.sessionHandler.getItem('languageId');\n if(!this.languageId){\n this.languageId = \"EN\";\n }\n this.translate.use(this.languageId);\n\n this.commonService.userData.subscribe((value) => {\n this.data = value;\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user/user.component.ts","/**\n * Created by shubham on 16/4/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { Http} from '@angular/http';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { AngularMultiSelectModule } from 'angular2-multiselect-dropdown/angular2-multiselect-dropdown';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { UserRoutingModule } from './user-routing.module';\nimport { UserComponent } from './user.component';\nimport { AddEditUserComponent } from './add-edit-user/add-edit-user.component';\nimport {TranslateModule,TranslateLoader,TranslateStaticLoader} from 'ng2-translate';\nimport { APPCONFIG } from '../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n AngularMultiSelectModule,\n UserRoutingModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n UserComponent,\n AddEditUserComponent\n ],\n exports: [\n\n ]\n})\n\nexport class UserModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user/user.module.ts","/**\n * Created by shubham on 16/4/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { Http} from '@angular/http';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { RequestRoutingModule } from './view-request-routing.module';\nimport { ApproveRejectRequestModule } from '../approve-reject-request/approve-reject-request.module';\nimport { ViewRequestComponent } from './view-request.component';\nimport { ViewPartnersRequestComponent } from './viewPartners/viewPartners.component';\nimport { ViewSubUsersRequestComponent } from './viewSubUsers/viewSubUsers.component';\nimport { ViewApplicationRequestComponent } from './viewApplicationRequest/viewApplicationRequest.component';\nimport { AngularMultiSelectModule } from \"angular2-multiselect-dropdown/angular2-multiselect-dropdown\";\nimport { TranslateModule,TranslateLoader,TranslateStaticLoader } from 'ng2-translate';\nimport { APPCONFIG } from '../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n RequestRoutingModule,\n AngularMultiSelectModule,\n ApproveRejectRequestModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n ViewRequestComponent,\n ViewPartnersRequestComponent,\n ViewSubUsersRequestComponent,\n ViewApplicationRequestComponent\n ],\n exports: [\n\n ]\n})\n\nexport class ViewRequestModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/viewRequest/view-request.module.ts","/**\n * Created by shubham on 11/10/18.\n */\n\nimport {Component} from '@angular/core';\nimport {ActivatedRoute} from \"@angular/router\";\nimport {HttpService} from \"../../shared/services/http.service\";\nimport {FormBuilder, FormGroup, Validators} from \"@angular/forms\";\nimport {DialogComponent} from \"../../dialog/dialog.component\";\nimport {MdDialog} from \"@angular/material\";\nimport {CommonService} from '../../shared/services/common.service';\nimport {ApplicationRejectActionDialogComponent} from '../../dialog/dialog.component';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { APPCONFIG } from '../../config';\nimport {TranslateService} from 'ng2-translate';\n\n@Component({\n selector: 'application-request',\n template: require('./viewApplicationRequest.component.html'),\n})\nexport class ViewApplicationRequestComponent {\n\n dialogRef;\n urlId: any;\n ApplicationsRequestData: any;\n ApplicationsRequestForm: FormGroup;\n ApplicationsRequestFormDetails: any;\n public isApproved:boolean = false;\n public isReject:boolean = false;\n userDetails:any;\n roles = [];\n settings = {};\n selectedItems = [];\n applicationText: any;\n isSystemAdmin;\n isApplicationManager;\n isBUManager;\n showApproveButton: boolean = false;\n settingSingleField = {\n singleSelection: true,\n text:\"Select Role\",\n labelKey: \"name\",\n selectAllText:'Select All',\n unSelectAllText:'UnSelect All',\n classes:\"myclass custom-class\",\n disabled: false\n };\n settingMultipleField = {\n singleSelection: false,\n text:\"Select Role\",\n labelKey: \"name\",\n selectAllText:'Select All',\n unSelectAllText:'UnSelect All',\n classes:\"myclass custom-class\",\n disabled: false\n };\n\n constructor(private route: ActivatedRoute, public httpService : HttpService, private formBuilder: FormBuilder, public dialog: MdDialog,\n private commonService: CommonService, private sessionHandler:SessionHandler, private translate: TranslateService) {\n\n this.applicationText = 'applicationManagerView';\n\n //Get URL param value\n this.route.params.subscribe(params => {\n this.urlId = params['id'];\n\n if(this.urlId != undefined || this.urlId != null){\n this.getApplicationRequestDataById(this.urlId);\n }\n });\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n \n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.applicationManager)) {\n this.isApplicationManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n \n } else {\n this.httpService.noUserError();\n }\n }\n\n getApplicationRequestDataById(urlId){\n this.httpService.getRequest(\"applicationOperationApi/v1/applicationRequestsById/\"+this.urlId).subscribe(\n res => { this.saveApplicationRequestDataById(res); },\n err => { this.httpService.onEnd(); }\n );\n }\n saveApplicationRequestDataById(res){\n if(res){\n this.ApplicationsRequestData = res;\n this.commonService.changeViewData(this.ApplicationsRequestData, 'appView');\n if(this.ApplicationsRequestData){\n if(this.ApplicationsRequestData.multipleRole){\n this.settings = this.settingMultipleField;\n } else{\n this.settings = this.settingSingleField;\n }\n\n if(this.ApplicationsRequestData.applicationRoles){\n this.roles = this.ApplicationsRequestData.applicationRoles;\n }\n if(this.ApplicationsRequestData.selectedRoles){\n for(let l in this.ApplicationsRequestData.selectedRoles){\n this.selectedItems.push({id: this.ApplicationsRequestData.selectedRoles[l]['id'], name: this.ApplicationsRequestData.selectedRoles[l]['name']});\n }\n }\n }\n }\n this.httpService.onEnd();\n }\n\n buildForm() {\n this.ApplicationsRequestForm = this.formBuilder.group({\n selectedRoles: this.formBuilder.control(null, [Validators.required])\n });\n\n this.ApplicationsRequestForm.valueChanges.subscribe(data => {\n this.ApplicationsRequestFormDetails = this.ApplicationsRequestForm.getRawValue();\n\n if(this.urlId){\n this.ApplicationsRequestFormDetails['id'] = this.urlId;\n }\n\n if(this.ApplicationsRequestFormDetails['selectedRoles'].length > 0){\n this.showApproveButton = false;\n } else{\n this.showApproveButton = true;\n }\n\n this.ApplicationsRequestFormDetails.validate = this.ApplicationsRequestForm.valid;\n });\n }\n\n saveApplicationData(){\n if(this.ApplicationsRequestFormDetails['selectedRoles'].length <= 0){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.isConfirm = true;\n this.dialogRef.componentInstance.msg = \"app_revoke_confirm\";\n this.dialogRef.afterClosed().subscribe(result => {\n if (result) {\n this.saveApplicationDataApi();\n }\n });\n } else {\n this.saveApplicationDataApi();\n }\n }\n\n saveApplicationDataApi(){\n this.httpService.postRequest(this.ApplicationsRequestFormDetails,'applicationOperationApi/v1/updateUserApplicationRoles').subscribe(\n res => {\n this.saveApplicationResponse(res);\n },\n err => { this.httpService.onEnd(); }\n );\n }\n saveApplicationResponse(res){\n if(res){\n this.httpService.onEnd();\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = \"Request submitted successfully.\";\n this.dialogRef.afterClosed().subscribe(result => {\n window.location.href = '#/app/application-manager-dashboard';\n });\n } else if(res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'save_failed';\n this.httpService.onEnd();\n }\n }\n\n appAction(status){\n this.dialogRef = this.dialog.open(ApplicationRejectActionDialogComponent);\n let actionStatus = \"\";\n if (status == 'APPROVED') {\n actionStatus = 'APPROVE';\n this.dialogRef.componentInstance.msg = 'rqst_approve_confirm';\n this.dialogRef.componentInstance.isApproved = true;\n } else if (status == 'REJECTED') {\n actionStatus = 'REJECT';\n this.dialogRef.componentInstance.msg = 'rqst_rjct_confirm';\n this.dialogRef.componentInstance.isRejected = true;\n }\n this.dialogRef.afterClosed().subscribe(result => {\n if (result) {\n let data = {};\n data['id'] = this.urlId;\n data['status'] = status;\n\n if(status == \"REJECTED\"){\n data['message'] = result;\n } else{\n data['selectedRoles'] = this.ApplicationsRequestFormDetails['selectedRoles'];\n }\n\n let today = new Date();\n let dd = ('0' + today.getDate()).slice(-2);\n let mm = ('0' + (today.getMonth() + 1)).slice(-2);\n let yyyy = today.getFullYear();\n data['approvalDate'] = yyyy + '' + mm + '' + dd;\n\n this.httpService.postRequest(data, 'applicationOperationApi/v1/approveApplicationRequest').subscribe(\n res => {\n this.saveResponse(res, status);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n });\n }\n public saveResponse(res, status) {\n this.httpService.onEnd();\n let statusTxt;\n if (res) {\n if (status == 'APPROVED') {\n statusTxt = 'Approval process initiated. It will take time. User will be notified on mail.';\n } else {\n statusTxt = 'Rejected Successfully';\n }\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = statusTxt;\n this.dialogRef.afterClosed().subscribe(result => {\n window.location.href = '#/app/application-manager-dashboard';\n });\n }\n }\n\n ngOnInit() {\n this.buildForm();\n this.translate.get('Select Role').subscribe((res: string) => {\n this.settingSingleField.text = res;\n this.settingMultipleField.text = res;\n });\n this.translate.get('select_all').subscribe((res: string) => {\n this.settingSingleField.selectAllText = res;\n this.settingMultipleField.selectAllText = res;\n });\n this.translate.get('unselect_all').subscribe((res: string) => {\n this.settingSingleField.unSelectAllText = res;\n this.settingMultipleField.unSelectAllText = res;\n });\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/viewRequest/viewApplicationRequest/viewApplicationRequest.component.ts","/**\n * Created by shubham on 16/4/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { ErrorHandler } from '../../shared/services/error-handler.service';\nimport { HttpService } from '../../shared/services/http.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { CommonService } from '../../shared/services/common.service';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { DialogComponent, ShowApplicationsDialogComponent } from '../../dialog/dialog.component';\n\n\n@Component({\n selector: 'partners-request-view',\n template: require('./viewPartners.component.html'),\n providers: [HttpService, ErrorHandler]\n})\n\nexport class ViewPartnersRequestComponent {\n\n dialogRef;\n id: any;\n userDetails: any;\n formData: any;\n businessUnitsFlag: boolean = false;\n wPassIdFlag: boolean = false;\n companyPhoneFlag: boolean = false;\n businessUnitWithApplicationAndRoles = [];\n businessUnitWithAppRoles = [];\n updatingBuAppId='';\n emailUpdating=false;\n allCustomerNumberChecked=false;\n\n constructor(private router: Router,private route: ActivatedRoute,private httpService: HttpService,private dialog: MdDialog,\n private commonService: CommonService, private sessionHandler:SessionHandler) {\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n this.route.params.subscribe(params => {\n this.id = +params['id'];\n });\n\n if(this.userDetails){\n this.getRequestDataWithId();\n } else{\n this.httpService.noUserError();\n }\n\n this.commonService.partnersView.subscribe((value) => {\n this.getRequestDataWithId();\n });\n }\n\n public getRequestDataWithId(){\n this.httpService.getRequest('userRegistrationsApi/v1/user?userId='+ this.id+\"&allRoles=false&applicationStatus=approve\").subscribe(\n res => { this.saveRequestData(res) },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveRequestData(res) {\n if(res){\n this.formData = res;\n this.commonService.changeViewData(this.formData, 'partnersView');\n if(this.formData){\n if(this.formData.businessUnits){\n this.businessUnitsFlag = true;\n }\n if(this.formData.userId_WPASS){\n this.wPassIdFlag = true;\n }\n if(this.formData.companyPhone){\n this.companyPhoneFlag = true;\n }\n\n if(this.formData.businessUnitWithApplicationAndRoles){\n this.businessUnitWithAppRoles = [];\n this.businessUnitWithApplicationAndRoles = this.formData.businessUnitWithApplicationAndRoles;\n\n for(let businessUnit in this.businessUnitWithApplicationAndRoles) {\n for(let appAndRoles in this.businessUnitWithApplicationAndRoles[businessUnit]['applications']){\n let temp = [];\n temp['buAppId'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitId']+'-'+this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationId'];\n temp['businessUnitName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitName'];\n temp['customerNumber'] = this.businessUnitWithApplicationAndRoles[businessUnit]['customerNumber'];\n temp['applicationName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationName'];\n temp['selectedRoleNames'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['selectedRoleNames'];\n temp['url'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['url'];\n\n let actionObject = {};\n if( this.businessUnitWithApplicationAndRoles[businessUnit]['statusCode'] != 'APPROVED' ){\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit];\n } else {\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles];\n }\n temp['statusCode'] = actionObject['statusCode'];\n temp['status'] = actionObject['status'];\n temp['message'] = actionObject['message'];\n\n this.businessUnitWithAppRoles.push(temp);\n }\n }\n }\n }\n this.httpService.onEnd();\n } else if(res.errorStatus == 'Fail'){\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_load_failed';\n this.httpService.onEnd();\n }\n }\n\n showApplicationsWithRoles(apps){\n this.dialogRef = this.dialog.open(ShowApplicationsDialogComponent);\n for(let appIndex in apps){\n if(!apps[appIndex]['message']){\n apps[appIndex]['message'] = \"\";\n }\n }\n this.dialogRef.componentInstance.apps = apps;\n this.dialogRef.componentInstance.profileFlag = true;\n }\n\n initUpdateCustomerNumber(buAppId) {\n this.updatingBuAppId=buAppId;\n }\n updateCustomerNumber(buAppId) {\n var newCustomerNumber = $('#cn-'+buAppId).val();\n buAppId = buAppId.split('-')[0];\n console.log('newCustomerNumber:'+newCustomerNumber+', buAppId:'+buAppId);\n if(!newCustomerNumber) {\n this.updatingBuAppId='';\n return;\n }\n this.httpService.postRequest(\n {customerNumber:newCustomerNumber, businessUnitId:buAppId, customerNumberMandatory:this.allCustomerNumberChecked, id:this.id},\n 'userRegistrationsApi/v1/updateCustomerNumber').subscribe(\n res => { \n this.httpService.onEnd();\n window.location.reload();\n },\n err => { this.httpService.onEnd(); }\n );\n }\n cancelUpdateCustomerNumber(buAppId) {\n this.updatingBuAppId='';\n }\n customerNumberUpdating(buAppId) {\n return this.updatingBuAppId==buAppId;\n }\n\n updateEmail() {\n var newEmail = $('#newEmail').val();\n console.log('newEmail:'+newEmail);\n if(!newEmail) {\n this.emailUpdating=false;\n return;\n }\n this.httpService.postRequest({email:newEmail,id:this.id},'userRegistrationsApi/v1/updateEmail').subscribe(\n res => { \n this.httpService.onEnd();\n window.location.reload();\n },\n err => { this.httpService.onEnd(); }\n );\n }\n initUpdateEmail() {\n this.emailUpdating=true;\n }\n cancelUpdateEmail() {\n this.emailUpdating=false;\n }\n isEmailUpdating() {\n return this.emailUpdating\n }\n\n toggleAllCustomerNumberCheck() {\n this.allCustomerNumberChecked = !this.allCustomerNumberChecked;\n }\n\n ngOnInit(){}\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/viewRequest/viewPartners/viewPartners.component.ts","/**\n * Created by shubham on 26/4/18.\n */\n\nimport { Component } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { APPCONFIG } from '../../config';\nimport { ErrorHandler } from '../../shared/services/error-handler.service';\nimport { HttpService } from '../../shared/services/http.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { CommonService } from '../../shared/services/common.service';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { DialogComponent, ShowApplicationsDialogComponent } from '../../dialog/dialog.component';\n\n\n@Component({\n selector: 'subusers-request-view',\n template: require('./viewSubUsers.component.html'),\n providers: [HttpService, ErrorHandler]\n})\n\nexport class ViewSubUsersRequestComponent {\n\n dialogRef;\n id: any;\n userDetails: any;\n formData: any;\n businessUnitsFlag: boolean = false;\n wPassIdFlag: boolean = false;\n businessUnitWithApplicationAndRoles = [];\n businessUnitWithAppRolesSubPartner = [];\n\n constructor(private router: Router,private route: ActivatedRoute,private httpService: HttpService,private dialog: MdDialog,\n private commonService: CommonService, private sessionHandler:SessionHandler) {\n\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n this.route.params.subscribe(params => {\n this.id = +params['id'];\n });\n\n if(this.userDetails){\n this.getRequestDataWithId();\n } else{\n this.httpService.noUserError();\n }\n\n this.commonService.subUsersView.subscribe((value) => {\n this.getRequestDataWithId();\n });\n\n }\n\n public getRequestDataWithId(){\n this.httpService.getRequest('partnerOperationsApi/v1/companyUser/'+ this.id).subscribe(\n res => { this.saveRequestData(res) },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveRequestData(res) {\n if(res){\n this.formData = res;\n this.commonService.changeViewData(this.formData, 'subUsersView');\n if(this.formData){\n if(this.formData.userId_WPASS){\n this.wPassIdFlag = true;\n }\n\n /*if(this.formData.businessUnitWithApplicationAndRoles){\n this.businessUnitWithApplicationAndRoles = this.formData.businessUnitWithApplicationAndRoles;\n\n for(let appIndex in this.businessUnitWithApplicationAndRoles){\n if(!this.businessUnitWithApplicationAndRoles[appIndex]['message']){\n this.businessUnitWithApplicationAndRoles[appIndex]['message'] = \"\";\n }\n }\n }*/\n\n if(this.formData.businessUnitWithApplicationAndRoles){\n this.businessUnitWithApplicationAndRoles = this.formData.businessUnitWithApplicationAndRoles;\n\n for(let businessUnit in this.businessUnitWithApplicationAndRoles) {\n for(let appAndRoles in this.businessUnitWithApplicationAndRoles[businessUnit]['applications']){\n let temp = [];\n temp['businessUnitName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['businessUnitName'];\n temp['customerNumber'] = this.businessUnitWithApplicationAndRoles[businessUnit]['customerNumber'];\n temp['applicationName'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['applicationName'];\n temp['selectedRoleNames'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['selectedRoleNames'];\n temp['url'] = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles]['url'];\n\n let actionObject = {};\n if( this.businessUnitWithApplicationAndRoles[businessUnit]['statusCode'] != 'APPROVED' ){\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit];\n } else {\n actionObject = this.businessUnitWithApplicationAndRoles[businessUnit]['applications'][appAndRoles];\n }\n temp['statusCode'] = actionObject['statusCode'];\n temp['status'] = actionObject['status'];\n temp['message'] = actionObject['message'];\n\n this.businessUnitWithAppRolesSubPartner.push(temp);\n }\n }\n }\n }\n this.httpService.onEnd();\n } else if(res.errorStatus == 'Fail') {\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = 'data_load_failed';\n this.httpService.onEnd();\n }\n }\n\n showApplicationsWithRoles(apps){\n this.dialogRef = this.dialog.open(ShowApplicationsDialogComponent);\n for(let appIndex in apps){\n if(!apps[appIndex]['message']){\n apps[appIndex]['message'] = \"\";\n }\n }\n this.dialogRef.componentInstance.apps = apps;\n this.dialogRef.componentInstance.profileFlag = true;\n }\n\n ngOnInit(){}\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/viewRequest/viewSubUsers/viewSubUsers.component.ts","import { NgModule, ApplicationRef } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { HttpModule, Http} from '@angular/http';\nimport { FormsModule,ReactiveFormsModule } from '@angular/forms';\nimport { MaterialModule } from '@angular/material';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport 'hammerjs';\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\nimport { MdInputModule } from '@angular/material';\n\n// Layout\nimport { LayoutComponent } from './layout/layout.component';\nimport { PreloaderDirective } from './layout/preloader.directive';\n// Header\nimport { AppHeaderComponent } from './layout/header/header.component';\n// Sidenav\nimport { AppSidenavComponent } from './layout/sidenav/sidenav.component';\nimport { ToggleOffcanvasNavDirective } from './layout/sidenav/toggle-offcanvas-nav.directive';\nimport { AutoCloseMobileNavDirective } from './layout/sidenav/auto-close-mobile-nav.directive';\nimport { AppSidenavMenuComponent } from './layout/sidenav/sidenav-menu/sidenav-menu.component';\nimport { AccordionNavDirective } from './layout/sidenav/sidenav-menu/accordion-nav.directive';\nimport { AppendSubmenuIconDirective } from './layout/sidenav/sidenav-menu/append-submenu-icon.directive';\nimport { HighlightActiveItemsDirective } from './layout/sidenav/sidenav-menu/highlight-active-items.directive';\n// Customizer\nimport { AppCustomizerComponent } from './layout/customizer/customizer.component';\nimport { ToggleQuickviewDirective } from './layout/customizer/toggle-quickview.directive';\n//date range picker\nimport { Daterangepicker } from 'ng2-daterangepicker';\n// Footer\nimport { AppFooterComponent } from './layout/footer/footer.component';\n// Search Overaly\nimport { AppSearchOverlayComponent } from './layout/search-overlay/search-overlay.component';\nimport { SearchOverlayDirective } from './layout/search-overlay/search-overlay.directive';\nimport { OpenSearchOverlaylDirective } from './layout/search-overlay/open-search-overlay.directive';\nimport { LoaderComponent } from './loader/loader.component';\nimport { LoaderService } from './loader/loader.service';\nimport { CommonService } from './shared/services/common.service';\n// Pages\nimport { LoginComponent } from './login/login.component';\nimport { RegistrationComponent } from './registration/registration.component';\nimport { ForgotPasswordComponent } from './forgot-password/forgotPassword.component';\nimport { UnlockAccountComponent } from './unlock-account/UnlockAccountComponent';\nimport { WPASSComponent } from './system-level-setting/wpass/wpass.component';\nimport { AdminDashboardComponent } from './admin-dashboard/admin-dashboard.component';\nimport { PartnersDashboardComponent } from './partners-dashboard/partners-dashboard.component';\nimport { ApplicationsManagerDashboardComponent } from './applications-manager-dashboard/applications-manager-dashboard.component';\nimport { ProfileComponent } from './profile/profile.component';\nimport { PageLayoutFullscreenComponent } from './page-layouts/fullscreen/fullscreen.component';\nimport { DialogComponent, ShowApplicationsDialogComponent, SelectApplicationsDialogComponent } from './dialog/dialog.component';\nimport { WelcomeDialogComponent } from './dialog/dialog.component';\nimport { BuAssignmentDialogComponent } from './dialog/dialog.component';\n\nimport { DashboardActionDialogComponent } from './dialog/dialog.component';\nimport { ApplicationDashboardActionDialogComponent } from './dialog/dialog.component';\nimport { ApplicationRejectActionDialogComponent } from './dialog/dialog.component';\nimport { RegistrationDialogComponent } from './dialog/dialog.component';\nimport { ActiveInactiveDialogComponent } from './dialog/dialog.component';\nimport { EmailPasswordActionDialogComponent } from './profile/profile.component';\nimport { EmailActionDialogComponent } from './viewRequest/view-request.component';\nimport { CSVErrorDialogComponent } from './dialog/dialog.component';\n// Sub modules\nimport { NgxDatatableModule } from '@swimlane/ngx-datatable';\nimport { ApproveRejectRequestModule } from './approve-reject-request/approve-reject-request.module';\nimport { MultiApproveRejectRequestModule } from './multi-approve-reject/multi-approve-reject-request.module';\nimport { ActivateDeactivateModule } from './activate-deactivate-request/activate-deactivate-request.module';\nimport { LayoutModule } from './layout/layout.module';\nimport { SharedModule } from './shared/shared.module';\nimport { ToasterModule } from 'angular2-toaster';\nimport { AngularMultiSelectModule } from 'angular2-multiselect-dropdown/angular2-multiselect-dropdown';\nimport { ViewRequestModule } from './viewRequest/view-request.module';\nimport { AdminManagementModule } from './system-level-setting/adminManagement/adminManagement.module';\nimport { ManagerAssignmentModule } from './system-level-setting/managerAssignment/managerAssignment.module';\nimport { UserModule } from './user/user.module';\nimport { RequestBusinessUnitModule } from \"./user-operations/request-business-unit/request-business-unit.module\";\nimport { CSVUploadModule } from './file-upload/fileUpload.module';\nimport { MyDatePickerModule } from 'mydatepicker';\n// hmr\nimport { removeNgStyles, createNewHosts } from '@angularclass/hmr';\n//Services\nimport { HttpService } from './shared/services/http.service';\nimport { SessionHandler } from './shared/services/session-handler.service';\nimport { ErrorHandler } from './shared/services/error-handler.service';\nimport { AdminDashboardResultService } from './adminDashboardResultService';\nimport { PartnersDashboardResultService } from './partnersDashboardResultService';\nimport { ApplicationsManagerDashboardResultService } from './applicationsManagerDashboardResultService';\nimport { AdminListDashboardResultService } from './system-level-setting/adminManagement/adminListDashboardResultService';\nimport { ApplicationListDashboardResultService } from \"./system-level-setting/applicationManagement/applicationListDashboardResultService\";\nimport { BusinessUnitListDashboardResultService } from './system-level-setting/businessUnitManagement/businessUnitDashboardResultService';\nimport { ManagerListDashboardResultService } from './system-level-setting/managerAssignment/managerListDashboardResultService';\nimport { FileUploadListDashboardResultService } from './file-upload/fileUploadListDashboardResultService';\nimport { BusinessUnitListForUserDashboardResultService } from './user-operations/request-business-unit/businessUnitForUserDashboardResultService';\n//Directive\nimport { BlockCutCopyPasteDirective } from './shared/directive/blockCutCopyPaste.directive';\n// multilingual\nimport { AutocompleteModule } from 'ng2-input-autocomplete';\nimport {TranslateModule,TranslateLoader,TranslateStaticLoader} from 'ng2-translate';\nimport {ApplicationManagementModule} from \"./system-level-setting/applicationManagement/applicationManagement.module\";\n\nimport { userActivityLogs} from '../app/user-activity-logs/user-activity.logs.component';\nimport{ TranslationMessagesComponent } from '../app/translation-messages/translation-messages.component'\nimport {UserActivityResultService} from '../app/user-activity-logs/user-activity-datatable/userActivityResultService';\nimport { TranslationEmailComponent } from '../app/translation-email/translation-email.component'\nimport { APPCONFIG } from './config';\n//import { CKEditorModule } from 'ckeditor4-angular';\nimport { CKEditorModule } from 'ng2-ckeditor';\nimport { from } from 'rxjs/observable/from';\n\n\nexport function createTranslateLoader(http: Http) {\n //return new TranslateStaticLoader(http, './assets/i18n', '.json');\n return new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', '');\n}\n\n@NgModule({ \n imports: [\n ToasterModule,\n BrowserModule,\n HttpModule,\n FormsModule,\n ReactiveFormsModule,\n MaterialModule,\n BrowserAnimationsModule,\n AppRoutingModule,\n ApproveRejectRequestModule,\n MultiApproveRejectRequestModule,\n ActivateDeactivateModule,\n AngularMultiSelectModule,\n AutocompleteModule.forRoot(),\n MdInputModule,\n // Sub modules\n LayoutModule,\n SharedModule,\n NgxDatatableModule,\n Daterangepicker,\n ViewRequestModule,\n AdminManagementModule,\n ManagerAssignmentModule,\n ApplicationManagementModule,\n UserModule,\n RequestBusinessUnitModule,\n MyDatePickerModule,\n CSVUploadModule,\n CKEditorModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n useFactory: (createTranslateLoader),\n deps: [Http]\n }) \n ],\n declarations: [\n AppComponent, \n // Layout\n LayoutComponent,\n PreloaderDirective,\n // Header\n AppHeaderComponent,\n\n // Sidenav\n AppSidenavComponent,\n ToggleOffcanvasNavDirective,\n AutoCloseMobileNavDirective,\n AppSidenavMenuComponent,\n AccordionNavDirective,\n AppendSubmenuIconDirective,\n HighlightActiveItemsDirective,\n // Customizer\n AppCustomizerComponent,\n ToggleQuickviewDirective,\n // Footer\n AppFooterComponent,\n // Search overlay\n AppSearchOverlayComponent,\n SearchOverlayDirective,\n OpenSearchOverlaylDirective,\n // Dashboard\n AdminDashboardComponent,\n userActivityLogs,\n TranslationMessagesComponent,\n TranslationEmailComponent,\n PartnersDashboardComponent,\n ApplicationsManagerDashboardComponent,\n // Profile\n ProfileComponent,\n // Pages\n LoginComponent,\n RegistrationComponent,\n ForgotPasswordComponent,\n UnlockAccountComponent,\n WPASSComponent,\n PageLayoutFullscreenComponent,\n LoaderComponent,\n DialogComponent,\n SelectApplicationsDialogComponent,\n WelcomeDialogComponent,\n BuAssignmentDialogComponent,\n RegistrationDialogComponent,\n DashboardActionDialogComponent,\n ApplicationDashboardActionDialogComponent,\n ApplicationRejectActionDialogComponent,\n ActiveInactiveDialogComponent,\n EmailPasswordActionDialogComponent,\n EmailActionDialogComponent,\n CSVErrorDialogComponent,\n ShowApplicationsDialogComponent,\n //Directives\n BlockCutCopyPasteDirective,\n \n ],\n providers:[LoaderService, HttpService, SessionHandler, ErrorHandler, CommonService, AdminDashboardResultService, PartnersDashboardResultService, ApplicationsManagerDashboardResultService,\n UserActivityResultService, AdminListDashboardResultService, ApplicationListDashboardResultService, BusinessUnitListDashboardResultService, ManagerListDashboardResultService, FileUploadListDashboardResultService, BusinessUnitListForUserDashboardResultService],\n entryComponents: [DialogComponent,SelectApplicationsDialogComponent,ShowApplicationsDialogComponent,WelcomeDialogComponent,BuAssignmentDialogComponent,DashboardActionDialogComponent,ApplicationDashboardActionDialogComponent,ApplicationRejectActionDialogComponent,RegistrationDialogComponent,ActiveInactiveDialogComponent,EmailPasswordActionDialogComponent,EmailActionDialogComponent,CSVErrorDialogComponent],\n bootstrap: [AppComponent]\n})\n\nexport class AppModule {\n constructor(public appRef: ApplicationRef) {\n // console.log = function(){};\n // console.error = function(){};\n // window.alert = function(){}\n }\n hmrOnInit(store) {\n console.log('HMR store', store);\n }\n hmrOnDestroy(store) {\n let cmpLocation = this.appRef.components.map(cmp => cmp.location.nativeElement);\n // recreate elements\n store.disposeOldHosts = createNewHosts(cmpLocation);\n // remove styles\n removeNgStyles();\n }\n hmrAfterDestroy(store) {\n // display new elements\n store.disposeOldHosts();\n delete store.disposeOldHosts;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/app.module.ts","import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs/Subject';\nimport { APPCONFIG } from '../config';\nimport {ToasterContainerComponent, ToasterConfig, ToasterService, Toast} from 'angular2-toaster';\n\n@Injectable()\nexport class LayoutService {\n\n constructor(private toasterService: ToasterService){}\n\n public toasterConfig : ToasterConfig = new ToasterConfig({\n timeout: APPCONFIG.toasterDefaultTimeOut,\n positionClass: APPCONFIG.toasterDefaultPositionClass\n });\n\n popToastWithTimeOut(title:string, type:string, timeout:number) {\n var toast: Toast = {type: type, body: title, timeout: timeout}; this.toasterService.pop(toast);\n }\n popToast(title:string, type:string) {\n var toast: Toast = {type: type, body: title}; this.toasterService.pop(toast);\n }\n\n private preloaderStateSource = new Subject();\n\n preloaderState$ = this.preloaderStateSource.asObservable();\n\n updatePreloaderState(state: string) {\n // console.log('preloader state: ' + state)\n this.preloaderStateSource.next(state);\n }\n\n\n private searchOverlaySource = new Subject();\n\n searchOverlayState$ = this.searchOverlaySource.asObservable();\n\n updateSearchOverlayState(state: string) {\n // console.log('overlay state: ' + state)\n this.searchOverlaySource.next(state);\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/layout.service.ts","/**\n * Created by shubham on 23/5/18.\n */\n\nimport {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {BusinessUnitListPageData} from \"./businessUnitList-datatable/businessUnitList-page-data\";\nimport {BusinessUnitListDashboard} from \"./businessUnitList-datatable/businessUnitList-dashboard\";\nimport {BusinessUnitListPage} from \"./businessUnitList-datatable/businessUnitList-page\";\n\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class BusinessUnitListDashboardResultService {\n listData:any;\n loginData;\n rows = {};\n adminDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: BusinessUnitListPage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: BusinessUnitListPage): BusinessUnitListPageData {\n let pageData = new BusinessUnitListPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n let list = new BusinessUnitListDashboard(jsonObj['id'], jsonObj['Name'], jsonObj['code'], jsonObj['active'],\n jsonObj['status'], jsonObj['createdAt']);\n pageData.data.push(list);\n }\n }\n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/businessUnitManagement/businessUnitDashboardResultService.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * An object used to get page information from the server\n */\nexport class BusinessUnitListPage {\n //The number of elements in the page\n size: number = 0;\n\n //The total number of elements\n totalElements: number = 0;\n\n //The total number of pages\n totalPages: number = 0;\n\n //The current page number\n pageNumber: number = 0;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/businessUnitManagement/businessUnitList-datatable/businessUnitList-page.ts","/**\n * Created by shubham on 22/5/18.\n */\n\nimport { Component, Input } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { HttpService } from '../shared/services/http.service'\nimport { MdDialog } from '@angular/material';\nimport { CommonService } from '../shared/services/common.service';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport { ActiveInactiveDialogComponent } from '../dialog/dialog.component';\n\n@Component({\n selector:'activate-deactivate',\n template: require('./activate-deactivate.component.html')\n})\n\nexport class ActivateDeactivateComponent {\n @Input() childData: any;\n @Input() dashboard: any;\n dialogRef;\n\n constructor(private router: Router, private route: ActivatedRoute, private httpService: HttpService,\n private dialog: MdDialog, private commonService: CommonService) {\n }\n\n public performAction(status) {\n this.dialogRef = this.dialog.open(ActiveInactiveDialogComponent);\n\n let actionStatus;\n if(status == 'delete'){\n actionStatus = 'DELETE';\n this.dialogRef.componentInstance.msg = 'user_deactivate_confirm';\n }else if(status == 'active'){\n actionStatus = 'Activate';\n this.dialogRef.componentInstance.msg = 'user_activate_confirm';\n } else{\n actionStatus = 'Deactivate';\n this.dialogRef.componentInstance.msg = 'user_deactivate_confirm';\n }\n\n this.dialogRef.componentInstance.activeDeactive = true;\n this.dialogRef.componentInstance.dashboard = this.dashboard;\n this.dialogRef.componentInstance.isConfirm = true;\n if(this.dashboard == 'admin'){\n this.dialogRef.componentInstance.note= 'sub_user_del_info';\n }\n this.dialogRef.afterClosed().subscribe(result => {\n if(result) {\n let data = {};\n if(this.dashboard == 'managerList'){\n data['buAssociationId'] = this.childData.buAssociationId;\n } else{\n data['id'] = this.childData.id;\n }\n\n if(this.childData){\n if(this.childData.applicationName){\n data['Name'] = this.childData.applicationName;\n }\n\n if(this.childData.Name){\n data['Name'] = this.childData.Name;\n } else if(this.childData.firstName && this.childData.lastName){\n data['Name'] = this.childData.firstName +' '+this.childData.lastName;\n }\n\n if(this.childData.email){\n data['email'] = this.childData.email;\n }\n }\n\n if(status == 'delete'){\n data['status'] = 'DELETE';\n }else if(status == 'active'){\n data['active'] = true;\n } else{\n data['active'] = false;\n }\n\n let today = new Date();\n let dd = ('0'+today.getDate()).slice(-2);\n let mm = ('0' + (today.getMonth()+1)).slice(-2);\n let yyyy = today.getFullYear();\n data['deletionDate'] = yyyy+''+mm+''+dd;\n\n if(this.dashboard == 'admin'){\n this.httpService.postRequest(data,'userRegistrationsApi/v1/deletePartner/'+this.childData.id).subscribe(\n res => {\n this.saveResponse(res,status);\n },\n err => { this.httpService.onEnd(); }\n );\n\n } else if(this.dashboard == 'partners'){\n this.httpService.postRequest(data,'partnerOperationsApi/v1/deleteCompanyUser/'+data['id']).subscribe(\n res => {\n this.saveResponse(res,status);\n },\n err => { this.httpService.onEnd(); }\n );\n } else if(this.dashboard == 'adminList'){\n this.httpService.postRequest(data,'superUserOperationsApi/v1/adminActiveState').subscribe(\n res => {\n this.saveResponse(res,status);\n },\n err => { this.httpService.onEnd(); }\n );\n } else if(this.dashboard == 'managerList'){\n this.httpService.postRequest(data,'superUserOperationsApi/v1/countryBusinessUnitManagerActiveState?active='+data['active']).subscribe(\n res => {\n this.saveResponse(res,status);\n },\n err => { this.httpService.onEnd(); }\n );\n }else if(this.dashboard == 'applicationList'){\n this.httpService.getRequest('applicationOperationApi/v1/deleteApplication/'+data['id']).subscribe(\n res => {\n this.saveResponse(res,status);\n },\n err => { this.httpService.onEnd(); }\n );\n }\n\n }\n this.dialogRef = null;\n });\n }\n\n public saveResponse(res,status) {\n this.httpService.onEnd();\n let statusTxt;\n if(res){\n if(status == 'delete'){\n statusTxt = 'del_rqst_submission_notify';\n } else{\n statusTxt = 'Updated Successfully';\n }\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = statusTxt;\n\n if(this.dashboard == 'admin'){\n this.commonService.changeAdminDashboardData();\n } else if(this.dashboard == 'partners'){\n this.commonService.changePartnersDashboardData();\n } else if(this.dashboard == 'adminList'){\n this.commonService.changeAdminListDashboardData();\n } else if(this.dashboard == 'managerList'){\n this.commonService.changeManagerListDashboardData();\n }else if(this.dashboard == 'applicationList'){\n this.commonService.changeApplicationListDashboardData();\n }\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/activate-deactivate-request/activate-deactivate.component.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * A model for an individual corporate employee\n */\nexport class AdminDashboardList {\n id:number;\n Name: string;\n roleName: string;\n email: string;\n emailVerified: boolean;\n businessUnits: any;\n userId_WPASS: string;\n pendingSubUserCount: string;\n languageId: string;\n languageName: string;\n countryId: string;\n countryName: string;\n companyName: string;\n companyAddress: string;\n companyPhone: string;\n personalArea: string;\n costCenter: string;\n location: string;\n contractorType: string;\n actionFlag: boolean;\n status: string;\n appStatus: boolean;\n createdAt: string;\n\n constructor(id:number, Name:string, roleName:string, email:string, emailVerified:boolean, businessUnits:any, userId_WPASS:string, pendingSubUserCount:string,\n languageId:string, languageName: string, countryId: string, countryName: string, companyName: string, companyAddress: string, companyPhone: string,\n personalArea: string, costCenter: string, location: string, actionFlag:boolean, contractorType: string, status: string, appStatus: boolean, createdAt: string){\n this.id = id;\n this.Name = Name;\n this.roleName = roleName;\n this.email = email;\n this.emailVerified = emailVerified;\n this.businessUnits = businessUnits;\n this.userId_WPASS = userId_WPASS;\n this.pendingSubUserCount = pendingSubUserCount;\n this.languageId = languageId;\n this.languageName = languageName;\n this.countryId = countryId;\n this.countryName = countryName;\n this.companyName = companyName;\n this.companyAddress = companyAddress;\n this.companyPhone = companyPhone;\n this.personalArea = personalArea;\n this.costCenter = costCenter;\n this.location = location;\n this.contractorType = contractorType;\n this.actionFlag = actionFlag;\n this.status = status;\n this.appStatus = appStatus;\n this.createdAt = createdAt;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/admin-dashboard/admin-datatable/admin-dashboardList.ts","/**\n * Created by shubham on 11/4/18.\n */\n\nimport {AdminPage} from \"./admin-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class AdminPageData {\n data = new Array();\n page = new AdminPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/admin-dashboard/admin-datatable/admin-page-data.ts","import { RouterModule, Routes } from '@angular/router';\n\nimport { LayoutComponent } from './layout/layout.component';\nimport { LoginComponent } from './login/login.component';\nimport { RegistrationComponent } from './registration/registration.component';\nimport { ForgotPasswordComponent } from './forgot-password/forgotPassword.component';\nimport { UnlockAccountComponent } from './unlock-account/UnlockAccountComponent';\n\n// Page Layouts\nimport { PageLayoutFullscreenComponent } from './page-layouts/fullscreen/fullscreen.component';\n\n\nconst AppRoutes: Routes = [\n { path: '', redirectTo: '/login', pathMatch: 'full' },\n { path: 'login', component: LoginComponent },\n { path: 'login/:id', component: LoginComponent },\n { path: 'registration', component: RegistrationComponent },\n { path: 'registration/:id', component: RegistrationComponent },\n { path: 'registration/apps/:id', component: RegistrationComponent },\n { path: 'forgot-password', component: ForgotPasswordComponent},\n { path: 'unlock-account', component: UnlockAccountComponent},\n { path: 'app', component: LayoutComponent },\n { path: 'extra', loadChildren: './extra-pages/extra-pages.module#ExtraPagesModule' },\n { path: 'fullscreen', component: PageLayoutFullscreenComponent },\n { path: '**', redirectTo: 'login', pathMatch: 'full' },\n];\n\nexport const AppRoutingModule = RouterModule.forRoot(AppRoutes, {useHash: true});\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/app-routing.module.ts","import { Component } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { Router, NavigationEnd } from '@angular/router';\nimport { APPCONFIG } from './config';\nimport { LayoutService } from './layout/layout.service';\nimport { MdDialog,MdDialogRef } from '@angular/material';\nimport { HttpService } from './shared/services/http.service';\nimport { ErrorHandler } from './shared/services/error-handler.service';\nimport { SessionHandler } from './shared/services/session-handler.service';\nimport {TranslateService} from 'ng2-translate';\n\n// 3rd\nimport 'styles/font-awesome.scss';\nimport 'styles/material2-theme.scss';\nimport 'styles/bootstrap.scss';\n// custom\nimport 'styles/layout.scss';\nimport 'styles/theme.scss';\nimport 'styles/ui.scss';\nimport 'styles/app.scss';\n\n@Component({\n selector: 'app-root',\n template: require('./app.component.html'),\n providers: [LayoutService,HttpService,ErrorHandler,SessionHandler],\n})\nexport class AppComponent {\n AppConfig: any;\n languageId: any;\n constructor(private router: Router, private layoutService:LayoutService,private sessionHandler:SessionHandler,\n public dialog: MdDialog, private translate: TranslateService) {\n\n this.languageId = this.sessionHandler.getItem('languageId');\n if(!this.languageId){\n this.languageId = \"EN\";\n }\n this.translate.use(this.languageId);\n }\n\n ngOnInit() {\n this.AppConfig = APPCONFIG;\n\n // Scroll to top on route change\n this.router.events.subscribe((evt) => {\n if (!(evt instanceof NavigationEnd)) {\n return;\n }\n document.body.scrollTop = 0;\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/app.component.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * A model for an individual corporate employee\n */\n/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * A model for an individual corporate employee\n */\nexport class ApplicationsDashboardList {\n id:number;\n applicationId: number;\n applicationName: string;\n userId_WPASS: string;\n businessUnitId: number;\n businessUnitName: string;\n countryId: string;\n countryName: string;\n approverId: number;\n approverName: string;\n multipleRole: boolean;\n reason: string;\n status: string;\n statusCode: string;\n updatedAt: string;\n\n constructor(id:number, applicationId:number, applicationName:string, userId_WPASS:string, businessUnitId:number, businessUnitName:string,\n countryId:string, countryName:string, approverId:number, approverName: string, multipleRole: boolean, reason: string,\n status: string, statusCode:string, updatedAt: string){\n this.id = id;\n this.applicationId = applicationId;\n this.applicationName = applicationName;\n this.userId_WPASS = userId_WPASS;\n this.businessUnitId = businessUnitId;\n this.businessUnitName = businessUnitName;\n this.countryId = countryId;\n this.countryName = countryName;\n this.approverId = approverId;\n this.approverName = approverName;\n this.multipleRole = multipleRole;\n this.reason = reason;\n this.status = status;\n this.statusCode = statusCode;\n this.updatedAt = updatedAt;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/applications-manager-dashboard/applications-datatable/applications-dashboardList.ts","/**\n * Created by shubham on 11/4/18.\n */\n\nimport {ApplicationsPage} from \"./applications-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class ApplicationsPageData {\n data = new Array();\n page = new ApplicationsPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/applications-manager-dashboard/applications-datatable/applications-page-data.ts","/**\n * Created by shubham on 27/4/18.\n */\n\nimport {Component, Input} from '@angular/core';\nimport {Router, ActivatedRoute} from '@angular/router';\nimport {HttpService} from '../shared/services/http.service'\nimport {MdDialog} from '@angular/material';\nimport {CommonService} from '../shared/services/common.service';\nimport {DialogComponent} from '../dialog/dialog.component';\nimport {DashboardActionDialogComponent} from '../dialog/dialog.component';\n\n@Component({\n selector: 'approve-reject',\n template: require('./approve-reject.component.html')\n})\n\nexport class ApproveRejectComponent {\n @Input() childData: any;\n @Input() dashboard: any;\n dialogRef;\n\n constructor(private router: Router, private route: ActivatedRoute, private httpService: HttpService,\n private dialog: MdDialog, private commonService: CommonService) {\n }\n\n public performAction(status) {\n this.dialogRef = this.dialog.open(DashboardActionDialogComponent);\n\n let actionStatus;\n if (status == 'approved') {\n actionStatus = 'APPROVE';\n this.dialogRef.componentInstance.msg = 'rqst_approve_confirm';\n this.dialogRef.componentInstance.isApproved = true;\n } else if (status == 'rejected') {\n actionStatus = 'REJECT';\n this.dialogRef.componentInstance.isReject = true;\n this.dialogRef.componentInstance.msg = 'rqst_rjct_confirm';\n }\n\n this.dialogRef.componentInstance.multiApproveRejectFlag = false;\n this.dialogRef.componentInstance.dashboard = this.dashboard;\n this.dialogRef.componentInstance.row = this.childData;\n this.dialogRef.afterClosed().subscribe(result => {\n if (result) {\n let data = {};\n data['id'] = this.childData.id;\n if (this.childData.Name) {\n data['Name'] = this.childData.Name;\n } else {\n data['Name'] = this.childData.firstName + ' ' + this.childData.lastName;\n }\n\n if (this.childData.email) {\n data['email'] = this.childData.email;\n }\n\n if (this.childData.userId_WPASS) {\n data['userId_WPASS'] = this.childData.userId_WPASS;\n }\n\n if (this.childData && this.childData.businessUnitId) {\n data['businessUnitId'] = this.childData.businessUnitId;\n }\n\n if (status == 'approved') {\n data['status'] = 'BU_APPROVE';\n if (this.dashboard == 'admin' || this.dashboard == 'partnersView') {\n //data['roleId'] = result.roleId;\n data['customerNumber'] = result.customerNumber;\n data['partnerType'] = result.selectedPartnerType;\n }\n } else if (status == 'rejected') {\n data['message'] = result;\n data['status'] = 'BU_REJECT';\n }\n\n let today = new Date();\n let dd = ('0' + today.getDate()).slice(-2);\n let mm = ('0' + (today.getMonth() + 1)).slice(-2);\n let yyyy = today.getFullYear();\n data['approvalDate'] = yyyy + '' + mm + '' + dd;\n\n console.log(data);\n if (this.dashboard == 'admin' || this.dashboard == 'partnersView') {\n if(data['userId_WPASS'] && data['userId_WPASS'] != \"\"){\n this.httpService.postRequest(data, 'partnerOperationsApi/v1/approveRejectNewBusinessUnitForPartner').subscribe(\n res => {\n this.saveResponse(res, status, true);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n } else {\n this.httpService.postRequest(data, 'userRegistrationsApi/v1/approveBusinessUnit').subscribe(\n res => {\n this.saveResponse(res, status, false);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n\n } else if (this.dashboard == 'partners' || this.dashboard == 'subUsersView') {\n this.httpService.postRequest(data, 'partnerOperationsApi/v1/approveCompanyUserCreationRequest').subscribe(\n res => {\n this.saveResponse(res, status, false);\n },\n err => {\n this.httpService.onEnd();\n }\n );\n }\n }\n this.dialogRef = null;\n });\n }\n\n public saveResponse(res, status, wpassIdCreated) {\n this.httpService.onEnd();\n let statusTxt;\n console.log(wpassIdCreated);\n if (res) {\n if (status == 'approved') {\n if(wpassIdCreated){\n statusTxt = 'after_new_bu_approval_notify';\n } else {\n statusTxt = 'after_user_creation_approval_notify';\n }\n } else {\n statusTxt = 'Rejected Successfully';\n }\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = statusTxt;\n\n if (this.dashboard == 'admin') {\n this.commonService.changeAdminDashboardData();\n } else if (this.dashboard == 'partnersView') {\n this.commonService.changePartnerViewData();\n } else if (this.dashboard == 'partners') {\n this.commonService.changePartnersDashboardData();\n } else if (this.dashboard == 'subUsersView') {\n this.commonService.changeSubUserViewData();\n }\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/approve-reject-request/approve-reject.component.ts","/**\n * Created by shubham on 13/6/18.\n */\n\nimport { Routes, RouterModule } from '@angular/router';\nimport { FileUploadComponent } from './fileUpload.component';\nimport { FileUploadListComponent } from './fileUploadList/fileUploadList.component';\nimport { AddFileComponent } from './add-file/addFile.component';\n\nexport const FileUploadRoutes: Routes = [\n {\n path: '',\n component: FileUploadComponent,\n children: [\n { path: '', redirectTo: '/app/profile', pathMatch: 'full' },\n { path: 'list', component: FileUploadListComponent },\n { path: 'add', component: AddFileComponent },\n ]\n }\n];\n\nexport const FileUploadRoutingModule = RouterModule.forChild(FileUploadRoutes);\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/file-upload/fileUpload-routing.module.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * A model for an individual corporate employee\n */\nexport class FileUploadListDashboard {\n\n id:number;\n type: string;\n countryName: string;\n businessUnitName: string;\n includesHeader: boolean;\n csvName: string;\n csvUrl: string;\n status: string;\n error: boolean;\n message: string;\n uploadBy: string;\n uploadedAt: string;\n\n constructor(id:number, type:string, countryName:string, businessUnitName:string, includesHeader:boolean, csvName:string,\n csvUrl:string, status:string, error: boolean, message: string, uploadBy: string, uploadedAt: string){\n this.id = id;\n this.type = type;\n this.countryName = countryName;\n this.businessUnitName = businessUnitName;\n this.includesHeader = includesHeader;\n this.csvName = csvName;\n this.csvUrl = csvUrl;\n this.status = status;\n this.error = error;\n this.message = message;\n this.uploadBy = uploadBy;\n this.uploadedAt = uploadedAt;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/file-upload/fileUploadList-datatable/fileUploadList-dashboard.ts","/**\n * Created by shubham on 11/4/18.\n */\n\nimport {FileUploadListPage} from \"./fileUploadList-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class FileUploadListPageData {\n data = new Array();\n page = new FileUploadListPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/file-upload/fileUploadList-datatable/fileUploadList-page-data.ts","import { Component, Input } from '@angular/core';\nimport { APPCONFIG } from '../../config'\n\n@Component({\n selector: 'my-app-customizer',\n styles: [],\n template: require('./customizer.component.html'),\n})\n\nexport class AppCustomizerComponent {\n AppConfig: any;\n\n ngOnInit() {\n this.AppConfig = APPCONFIG;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/customizer/customizer.component.ts","import { Directive, ElementRef, Input } from '@angular/core';\n\n\n@Directive({ selector: '[myToggleQuickview]' })\n\nexport class ToggleQuickviewDirective {\n @Input() myToggleQuickview: string;\n\n el: ElementRef;\n constructor(el: ElementRef) {\n this.el = el;\n }\n\n ngAfterViewInit() {\n const $el = $(this.el.nativeElement);\n const $body = $('#body');\n const target = this.myToggleQuickview;\n let qvClass = 'quickview-open';\n\n if (target) {\n qvClass = qvClass + '-' + target;\n }\n\n $el.on('click', function(e) {\n $body.toggleClass(qvClass);\n e.preventDefault();\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/customizer/toggle-quickview.directive.ts","import { Component, OnInit } from '@angular/core';\nimport { APPCONFIG } from '../../config'\n\n@Component({\n selector: 'my-app-footer',\n styles: [],\n template: require('./footer.component.html')\n})\n\nexport class AppFooterComponent {\n AppConfig: any;\n\n ngOnInit() {\n this.AppConfig = APPCONFIG;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/footer/footer.component.ts","import { Component } from '@angular/core';\nimport { APPCONFIG } from '../../config';\nimport { Router } from '@angular/router';\nimport { ErrorHandler } from '../../shared/services/error-handler.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { HttpService } from '../../shared/services/http.service';\nimport { CommonService } from '../../shared/services/common.service';\nimport { LayoutService } from '../../layout/layout.service';\n\n@Component({\n selector: 'my-app-header',\n styles: [],\n template: require('./header.component.html')\n})\n\nexport class AppHeaderComponent {\n AppConfig: any;\n public userDetails: any;\n\n constructor(private router: Router,public httpService : HttpService,public errorHandler : ErrorHandler,\n public layoutService : LayoutService, public sessionHandler : SessionHandler, public commonService:CommonService){\n\n this.userDetails={image:''};\n\n try {\n if(this.sessionHandler.getItem(\"userDetails\") != null) {\n this.userDetails = JSON.parse(this.sessionHandler.getItem(\"userDetails\"));\n if(!this.userDetails) throw \"Invalid user details.\";\n }else {\n this.router.navigate(['/login']);\n }\n }catch(err){\n this.router.navigate(['/login']);\n }\n }\n\n logout() {\n //this.commonService.setLoginRedirectUrl(window.location.hash);\n this.sessionHandler.removeItem('loginData');\n this.sessionHandler.removeItem('timestamp');\n this.sessionHandler.removeItem('userDetails');\n this.router.navigate(['/login']);\n }\n\n public saveResponse(res){\n if(res.errorStatus == 'Fail') {\n this.httpService.onEnd();\n alert('Not able to Logout Please Try Again');\n } else {\n this.httpService.onEnd();\n //this.commonService.setLoginRedirectUrl('');\n this.sessionHandler.clearAllItems();\n this.router.navigate(['/login']);\n }\n }\n\n toggleCollapsedNav() {\n this.AppConfig.navCollapsed = !this.AppConfig.navCollapsed;\n }\n\n ngOnInit() {\n this.AppConfig = APPCONFIG;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/header/header.component.ts","import { RouterModule, Routes } from '@angular/router';\n\nimport { LayoutComponent } from './layout.component';\nimport { WPASSComponent } from '../system-level-setting/wpass/wpass.component';\nimport { AdminDashboardComponent } from '../admin-dashboard/admin-dashboard.component';\nimport { PartnersDashboardComponent } from '../partners-dashboard/partners-dashboard.component';\nimport { ApplicationsManagerDashboardComponent } from '../applications-manager-dashboard/applications-manager-dashboard.component';\nimport { ProfileComponent } from '../profile/profile.component';\nimport { userActivityLogs} from '../user-activity-logs/user-activity.logs.component';\nimport { TranslationMessagesComponent } from '../translation-messages/translation-messages.component'\nimport {TranslationEmailComponent} from '../translation-email/translation-email.component'\nconst routes: Routes = [\n {\n path: 'app',\n component: LayoutComponent,\n children: [\n { path: '', redirectTo: '/app/admin-dashboard', pathMatch: 'full' },\n { path: 'wpass', component: WPASSComponent },\n { path: 'admin-dashboard', component: AdminDashboardComponent },\n { path: 'translation-messages', component: TranslationMessagesComponent },\n { path: 'translation-email', component: TranslationEmailComponent },\n { path: 'user-activity-logs', component: userActivityLogs },\n { path: 'partners-dashboard', component: PartnersDashboardComponent },\n { path: 'partners-dashboard/:id', component: PartnersDashboardComponent },\n { path: 'application-manager-dashboard', component: ApplicationsManagerDashboardComponent },\n { path: 'profile', component: ProfileComponent },\n { path: 'user', loadChildren: '../user/user.module#UserModule' },\n { path: 'request-application', loadChildren: '../user-operations/request-business-unit/request-business-unit.module#RequestBusinessUnitModule' },\n { path: 'chart', loadChildren: '../charts/charts.module#ChartsModule' },\n { path: 'ecommerce', loadChildren: '../ecommerce/ecommerce.module#ECommerceModule' },\n { path: 'form', loadChildren: '../forms/forms.module#MyFormsModule' },\n { path: 'page', loadChildren: '../pages/pages.module#PagesModule' },\n { path: 'pglayout', loadChildren: '../page-layouts/page-layouts.module#PageLayoutsModule' },\n { path: 'table', loadChildren: '../tables/tables.module#MyTablesModule' },\n { path: 'ui', loadChildren: '../ui/ui.module#UIModule' },\n { path: 'file-upload', loadChildren: '../file-upload/fileUpload.module#CSVUploadModule' },\n { path: 'manage-admin', loadChildren: '../system-level-setting/adminManagement/adminManagement.module#AdminManagementModule' },\n { path: 'manage-business-unit', loadChildren: '../system-level-setting/businessUnitManagement/businessUnitManagement.module#BusinessUnitManagementModule' },\n { path: 'manager-assignment', loadChildren: '../system-level-setting/managerAssignment/managerAssignment.module#ManagerAssignmentModule' },\n { path: 'application-management', loadChildren: '../system-level-setting/applicationManagement/applicationManagement.module#ApplicationManagementModule' },\n { path: 'view-request', loadChildren: '../viewRequest/view-request.module#ViewRequestModule' },\n ]\n }\n];\n\nexport const LayoutRoutingModule = RouterModule.forChild(routes);\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/layout-routing.module.ts","import { NgModule } from '@angular/core';\n\nimport { LayoutRoutingModule } from './layout-routing.module';\nimport { SharedModule } from '../shared/shared.module';\n\n@NgModule({\n imports: [\n LayoutRoutingModule,\n SharedModule,\n ],\n declarations: []\n})\n\nexport class LayoutModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/layout.module.ts","import { Directive, ElementRef, Input } from '@angular/core';\nimport { Router, Event as RouterEvent, NavigationStart, NavigationEnd, NavigationCancel, NavigationError } from '@angular/router'\nimport { LayoutService } from './layout.service'\nimport { Subscription } from 'rxjs/Subscription';\n\n@Directive({ \n selector: '[myPreloader]',\n})\n\nexport class PreloaderDirective {\n subscription: Subscription;\n\n constructor(private el: ElementRef, private router: Router, private layoutService: LayoutService) {\n router.events.subscribe((event: RouterEvent) => {\n this.navigationInterceptor(event);\n });\n\n this.subscription = layoutService.preloaderState$.subscribe((state) => {\n this.updatePreloader(state);\n })\n }\n\n $el;\n\n ngAfterViewInit() {\n this.$el = $(this.el.nativeElement);\n }\n\n active() {\n if(this.$el) {\n this.$el.removeClass('hide').addClass('active');\n }\n }\n\n hide() {\n if(this.$el) {\n this.$el.addClass('hide').removeClass('active');\n }\n }\n\n // Shows and hides the loading spinner during RouterEvent changes\n navigationInterceptor(event: RouterEvent): void {\n if (event instanceof NavigationStart) {\n this.active()\n }\n if (event instanceof NavigationEnd) {\n this.hide()\n }\n\n // Set loading state to false in both of the below events to hide the spinner in case a request fails\n if (event instanceof NavigationCancel) {\n this.hide()\n }\n if (event instanceof NavigationError) {\n this.hide()\n }\n }\n\n // \n updatePreloader(state) {\n // console.log('change state')\n if (state == 'active') {\n this.active()\n }\n\n if (state == 'hide') {\n this.hide()\n }\n }\n\n ngOnDestroy() {\n // prevent memory leak when component destroyed\n this.subscription.unsubscribe();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/preloader.directive.ts","import { Directive, ElementRef } from '@angular/core';\nimport { LayoutService } from '../layout.service'\n\n@Directive({ selector: '[myOpenSearchOverlay]' })\n\nexport class OpenSearchOverlaylDirective {\n\n constructor(private el: ElementRef, private layoutService: LayoutService) {}\n\n\n ngAfterViewInit() {\n const $el = $(this.el.nativeElement);\n const $body = $('#body');\n\n $el.on('click', (e) => {\n this.openOverlay();\n });\n }\n\n openOverlay () {\n this.layoutService.updateSearchOverlayState('open')\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/search-overlay/open-search-overlay.directive.ts","import { Component } from '@angular/core';\nimport { APPCONFIG } from '../../config'\n\n@Component({\n selector: 'my-app-search-overlay',\n styles: [],\n template: require('./search-overlay.component.html')\n})\n\nexport class AppSearchOverlayComponent {\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/search-overlay/search-overlay.component.ts","import { Directive, ElementRef } from '@angular/core';\nimport { LayoutService } from '../layout.service'\nimport { Subscription } from 'rxjs/Subscription';\n\n@Directive({ selector: '[mySearchOverlay]' })\n\nexport class SearchOverlayDirective {\n subscription: Subscription;\n\n constructor(private el: ElementRef, private layoutService: LayoutService) {\n this.subscription = layoutService.searchOverlayState$.subscribe((state) => {\n this.updateSearchOverlay(state);\n })\n }\n\n $el;\n $body;\n $searchInput;\n $closeOverlayBtn;\n\n ngAfterViewInit() {\n this.$el = $(this.el.nativeElement);\n this.$body = $('#body');\n this.$searchInput = this.$el.find('#overlay-search-input');\n this.$closeOverlayBtn = this.$el.find('#overlay-close');\n\n this.$el.on('keyup', (e) => {\n if ( e.keyCode == 27) { // when ESC is pressed\n this.closeOverlay();\n }\n });\n\n this.$closeOverlayBtn.on('click', (e) => {\n this.closeOverlay();\n e.preventDefault();\n })\n }\n\n openOverlay() {\n this.$body.addClass('overlay-active');\n\n // [delay] should >= `visibility` transition duration in CSS, see _overlay.scss\n // otherwise auto-focus won't work since element is not there yet\n if(this.$searchInput) {\n setTimeout(() => {\n this.$searchInput.focus();\n }, 301)\n }\n }\n\n closeOverlay () {\n this.$body.removeClass('overlay-active');\n\n if(this.$searchInput) {\n this.$searchInput.val(function() {\n return this.defaultValue;\n });\n }\n }\n\n updateSearchOverlay(state) {\n if (state == 'open') {\n this.openOverlay();\n }\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/search-overlay/search-overlay.directive.ts","import { Directive, ElementRef } from '@angular/core';\nimport { Router, NavigationEnd } from '@angular/router';\nimport { APPCONFIG } from '../../config'\n\n// Mobile only: automatically close sidebar on route change.\n@Directive({ selector: '[myAutoCloseMobileNav]' })\n\nexport class AutoCloseMobileNavDirective {\n el: ElementRef;\n router: Router;\n constructor(el: ElementRef, router: Router) {\n this.el = el;\n this.router = router;\n }\n\n ngOnInit() {\n const $body = $('#body');\n\n if (APPCONFIG.AutoCloseMobileNav) {\n this.router.events.subscribe((event) => {\n if (event instanceof NavigationEnd) {\n setTimeout(function() {\n // console.log('NavigationEnd:', event);\n $body.removeClass('sidebar-mobile-open');\n }, 0);\n }\n });\n }\n\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/sidenav/auto-close-mobile-nav.directive.ts","import { Directive, ElementRef } from '@angular/core';\n\n@Directive({ selector: '[myAccordionNav]' })\n\nexport class AccordionNavDirective {\n el: ElementRef;\n constructor(el: ElementRef) {\n this.el = el;\n }\n\n ngAfterViewInit() {\n // on click, open it's own ul, close sibling li opened ul & sub ul\n // on click, close it's own ul & sub ul\n\n const $nav = $(this.el.nativeElement);\n const slideTime = 250;\n const $lists = $nav.find('ul').parent('li');\n $lists.append('arrow_drop_down');\n const $As = $lists.children('a');\n\n\n // Disable a link that has ul\n $As.on('click', function(event) {\n event.preventDefault();\n });\n\n // Accordion nav\n $nav.on('click', function(e) {\n\n let target = e.target;\n let $parentLi = $(target).closest('li') // closest, insead of parent, so it still works when click on i icons\n if (!$parentLi.length) return; // return if doesn't click on li\n let $subUl = $parentLi.children('ul')\n\n\n // let depth = $subUl.parents().length; // but some li has no sub ul, so...\n let depth = $parentLi.parents().length + 1;\n \n // filter out all elements (except target) at current depth or greater\n let allAtDepth = $nav.find('ul').filter(function() {\n if($(this).parents().length >= depth && this !== $subUl.get(0)) {\n return true; \n }\n })\n allAtDepth.slideUp(slideTime).closest('li').removeClass('open');\n\n // Toggle target \n if ( $parentLi.has('ul').length ) {\n $parentLi.toggleClass('open');\n }\n $subUl.stop().slideToggle(slideTime);\n\n })\n }\n}\n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/sidenav/sidenav-menu/accordion-nav.directive.ts","import { Directive, ElementRef } from '@angular/core';\n\n@Directive({ selector: '[myAppendSubmenuIcon]' })\n\nexport class AppendSubmenuIconDirective {\n el: ElementRef;\n constructor(el: ElementRef) {\n this.el = el;\n }\n\n ngAfterViewInit() {\n const $el = $(this.el.nativeElement);\n\n $el.find('.prepend-icon').prepend('keyboard_arrow_right');\n }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/sidenav/sidenav-menu/append-submenu-icon.directive.ts","import { Directive, ElementRef } from '@angular/core';\nimport { Location } from '@angular/common';\nimport { Router, NavigationEnd } from '@angular/router';\n\n@Directive({ selector: '[myHighlightActiveItems]' })\n\nexport class HighlightActiveItemsDirective {\n constructor(private el: ElementRef, private location: Location, private router: Router) {}\n\n ngAfterViewInit() {\n const $el = $(this.el.nativeElement);\n let $links = $el.find('a');\n\n function highlightActive(links) {\n let path = location.hash\n // console.log(path);\n\n links.each( (i, link) => {\n let $link = $(link);\n let $li = $link.parent('li');\n let href = $link.attr('href');\n // console.log(href);\n\n if ($li.hasClass('active')) {\n $li.removeClass('active');\n }\n if (path.indexOf(href) === 0) {\n $li.addClass('active');\n }\n } )\n }\n\n highlightActive($links);\n\n this.router.events.subscribe((evt) => {\n if (!(evt instanceof NavigationEnd)) {\n return;\n }\n highlightActive($links);\n });\n }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/sidenav/sidenav-menu/highlight-active-items.directive.ts","import {Component, Input} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { SessionHandler } from '../../../shared/services/session-handler.service';\nimport { CommonService } from '../../../shared/services/common.service';\nimport { LayoutService } from '../../../layout/layout.service';\nimport { HttpService } from '../../../shared/services/http.service';\nimport { APPCONFIG } from '../../../config';\n\n@Component({\n selector: 'my-app-sidenav-menu',\n styles: [],\n template: require('./sidenav-menu.component.html')\n})\n\nexport class AppSidenavMenuComponent {\n\n userDetails: any;\n isSystemAdmin:boolean = false;\n isBUManager:boolean = false;\n isApplicationManager = false;\n isRegionalAdmin:boolean = false;\n isServiceOwner:boolean = false;\n isTradePartner:boolean = false;\n isSubUser:boolean = false;\n\n constructor(private router: Router,public layoutService : LayoutService, public httpService : HttpService,public sessionHandler : SessionHandler, public commonService:CommonService){\n this.userDetails = JSON.parse(this.sessionHandler.getItem('loginData'));\n\n if(this.userDetails && Object.keys(this.userDetails).length > 0 && this.userDetails.roleCode && this.userDetails.roleCode.length > 0){\n if(this.userDetails.roleCode.includes(APPCONFIG.systemAdmin)) {\n this.isSystemAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.BUManager)) {\n this.isBUManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.applicationManager)) {\n this.isApplicationManager = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.regionalAdmin)) {\n this.isRegionalAdmin = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.serviceOwner)) {\n this.isServiceOwner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.tradePartner)) {\n this.isTradePartner = true;\n }\n if(this.userDetails.roleCode.includes(APPCONFIG.subuser)) {\n this.isSubUser = true;\n }\n } else {\n this.httpService.noUserError();\n }\n }\n\n logout() {\n //this.commonService.setLoginRedirectUrl(window.location.hash);\n this.sessionHandler.removeItem('loginData');\n this.sessionHandler.removeItem('timestamp');\n this.sessionHandler.removeItem('userDetails');\n this.router.navigate(['/login']);\n }\n\n public saveResponse(res){\n this.httpService.onEnd();\n //this.commonService.setLoginRedirectUrl('');\n this.sessionHandler.clearAllItems();\n this.router.navigate(['/login']);\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/sidenav/sidenav-menu/sidenav-menu.component.ts","import { Component, Input } from '@angular/core';\nimport { APPCONFIG } from '../../config';\nimport { Router } from '@angular/router';\nimport { ErrorHandler } from '../../shared/services/error-handler.service';\nimport { SessionHandler } from '../../shared/services/session-handler.service';\nimport { HttpService } from '../../shared/services/http.service';\nimport { CommonService } from '../../shared/services/common.service';\nimport { LayoutService } from '../../layout/layout.service';\n\n@Component({\n selector: 'my-app-sidenav',\n styles: [],\n template: require('./sidenav.component.html')\n})\n\nexport class AppSidenavComponent {\n AppConfig;\n\n constructor(private router: Router,public httpService : HttpService,public errorHandler : ErrorHandler,\n public layoutService : LayoutService, public sessionHandler : SessionHandler, public commonService:CommonService){\n }\n\n ngOnInit() {\n this.AppConfig = APPCONFIG;\n }\n\n toggleCollapsedNav() {\n this.AppConfig.navCollapsed = !this.AppConfig.navCollapsed;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/sidenav/sidenav.component.ts","import { Directive, ElementRef } from '@angular/core';\n\n// off-canvas sidebar for mobile, and this is the trigger\n@Directive({ selector: '[myToggleOffcanvasNav]' })\n\nexport class ToggleOffcanvasNavDirective {\n el: ElementRef;\n constructor(el: ElementRef) {\n this.el = el;\n }\n\n ngAfterViewInit() {\n\n const $navToggler = $(this.el.nativeElement);\n const $body = $('#body');\n\n $navToggler.on('click', (e) => {\n // _sidebar.scss, _page-container.scss\n $body.toggleClass('sidebar-mobile-open')\n e.preventDefault();\n })\n }\n}\n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/layout/sidenav/toggle-offcanvas-nav.directive.ts","/**\n * Created by shubham on 27/2/18.\n */\n\nimport { Component, OnInit, OnDestroy,ChangeDetectorRef } from '@angular/core';\nimport { Subscription } from 'rxjs/Subscription';\nimport { LoaderService } from './loader.service';\nimport { LoaderState } from './loader';\nimport { MdDialog, MdDialogRef } from '@angular/material';\nimport { Router,NavigationEnd } from '@angular/router';\n\n\n@Component({\n selector: 'angular-loader',\n template: require('./loader.component.html'),\n styles: [require('./loader.component.css')]\n})\nexport class LoaderComponent implements OnInit {\n\n show:boolean = false;\n isLogin:boolean = false;\n\n private subscription: Subscription;\n\n constructor(\n private router: Router,private loaderService: LoaderService,private chRef: ChangeDetectorRef\n ) { }\n\n ngOnInit() {\n this.router.events.subscribe((evt) => {\n if ((evt instanceof NavigationEnd)) {\n if(evt['url'] == '/login'){\n this.isLogin = true;\n } else {\n this.isLogin = false;\n }\n }\n });\n\n this.subscription = this.loaderService.loaderState\n .subscribe((state: LoaderState) => {\n this.show = state.show;\n if(this.isLogin) {\n this.chRef.detectChanges();\n }\n });\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/loader/loader.component.ts","/**\n * Created by shubham on 29/4/18.\n */\n\nimport { NgModule} from '@angular/core';\nimport { MaterialModule,MdTabsModule } from '@angular/material';\nimport { Http} from '@angular/http';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { MultiApproveRejectComponent } from '../multi-approve-reject/multi-approve-reject.component';\nimport { TranslateModule,TranslateLoader,TranslateStaticLoader } from 'ng2-translate';\nimport { APPCONFIG } from '../config';\n\n@NgModule({\n imports: [\n MaterialModule,\n MdTabsModule,\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TranslateModule.forRoot({\n provide: TranslateLoader,\n //useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),\n useFactory: (http: Http) => new TranslateStaticLoader(http, APPCONFIG.URL+'/_ah/api/noAuthApi/v1/i18nJson', ''),\n deps: [Http]\n })\n ],\n declarations: [\n MultiApproveRejectComponent\n ],\n exports: [\n MultiApproveRejectComponent,\n ]\n})\n\nexport class MultiApproveRejectRequestModule {}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/multi-approve-reject/multi-approve-reject-request.module.ts","/**\n * Created by shubham on 27/4/18.\n */\n\nimport { Component, Input } from '@angular/core';\nimport { Router,ActivatedRoute } from '@angular/router';\nimport { HttpService } from '../shared/services/http.service'\nimport { MdDialog } from '@angular/material';\nimport { CommonService } from '../shared/services/common.service';\nimport { DialogComponent } from '../dialog/dialog.component';\nimport { DashboardActionDialogComponent } from '../dialog/dialog.component';\nimport { ApplicationDashboardActionDialogComponent } from '../dialog/dialog.component';\n\n@Component({\n selector:'multi-approve-reject',\n template: require('./multi-approve-reject.component.html')\n})\n\nexport class MultiApproveRejectComponent {\n @Input() childData: any;\n @Input() searchedFilters: any;\n @Input() dashboard: any;\n @Input() selectedCount: any;\n @Input() count: any;\n @Input() totalCount: any;\n settingSingleField = {\n singleSelection: true,\n text:\"Select Role\",\n labelKey: \"name\",\n selectAllText:'Select All',\n unSelectAllText:'UnSelect All',\n classes:\"myclass custom-class\",\n disabled: false\n };\n settingMultipleField = {\n singleSelection: false,\n text:\"Select Role\",\n labelKey: \"name\",\n selectAllText:'Select All',\n unSelectAllText:'UnSelect All',\n classes:\"myclass custom-class\",\n disabled: false\n };\n dialogRef;\n\n constructor(private router: Router, private route: ActivatedRoute, private httpService: HttpService,\n private dialog: MdDialog, private commonService: CommonService) {\n }\n\n public checkStatus(status){\n if(this.dashboard == \"applicationManagerView\"){\n let applicationId = 0;\n for(let data in this.childData){\n if(this.childData[data]['applicationId']){\n applicationId = this.childData[data]['applicationId'];\n break;\n }\n }\n\n if(status == 'approved'){\n this.getApplicationRoles(applicationId, status);\n } else {\n this.performAction(status, applicationId,'');\n }\n } else {\n this.performAction(status, '', '');\n }\n }\n\n public getApplicationRoles(applicationId, status) {\n this.httpService.getRequest('applicationOperationApi/v1/applicationRoles/'+applicationId).subscribe(\n res => { this.saveApplicationRoles(res, applicationId, status); },\n err => { this.httpService.onEnd(); }\n );\n }\n public saveApplicationRoles(res, applicationId, status){\n this.httpService.onEnd();\n if(res && res.applicationRoles){\n this.performAction(status, applicationId, res);\n }\n }\n\n public performAction(status, applicationId, res) {\n if(this.dashboard == \"applicationManagerView\"){\n this.dialogRef = this.dialog.open(ApplicationDashboardActionDialogComponent);\n this.dialogRef.componentInstance.row = this.childData;\n this.dialogRef.componentInstance.roles = res.applicationRoles;\n if(res.multipleRole){\n this.dialogRef.componentInstance.settings = this.settingMultipleField;\n } else {\n this.dialogRef.componentInstance.settings = this.settingSingleField;\n }\n } else {\n this.dialogRef = this.dialog.open(DashboardActionDialogComponent);\n this.dialogRef.componentInstance.row = '';\n }\n\n let actionStatus;\n if(status == 'approved'){\n actionStatus = 'APPROVE';\n this.dialogRef.componentInstance.isApproved = true;\n }else if(status == 'rejected'){\n actionStatus = 'REJECT';\n this.dialogRef.componentInstance.isReject = true;\n }\n\n this.dialogRef.componentInstance.multiApproveRejectFlag = true;\n this.dialogRef.componentInstance.actionStatus = actionStatus;\n this.dialogRef.componentInstance.dashboard = this.dashboard;\n\n if(this.selectedCount < this.count){\n this.dialogRef.componentInstance.condition1Flag = true;\n } else if(this.selectedCount >= this.count && this.selectedCount < this.totalCount){\n this.dialogRef.componentInstance.condition2Flag = true;\n } else if(this.selectedCount == this.totalCount){\n this.dialogRef.componentInstance.condition3Flag = true;\n }\n\n this.dialogRef.afterClosed().subscribe(result => {\n if(result) {\n let data = {};\n\n if(this.childData){\n if(this.dashboard == \"applicationManagerView\"){\n data['applicationId'] = applicationId;\n data['userApplicationIds'] = [];\n } else {\n data['userIds'] = [];\n }\n\n if(result.selectedRadioValue == \"Approve All\"){\n data['allSelected'] = true;\n } else{\n data['allSelected'] = false;\n for(let c in this.childData){\n if(this.childData[c]['id']){\n if(this.dashboard == \"applicationManagerView\"){\n data['userApplicationIds'].push(this.childData[c]['id']);\n } else {\n data['userIds'].push(this.childData[c]['id']);\n }\n }\n }\n }\n\n if(status == 'approved'){\n if(this.dashboard == 'admin' || this.dashboard == 'partners'){\n data['status'] = 'BU_APPROVE';\n // data['roleIds'] = result.roleId;\n } else {\n data['status'] = 'APPROVED';\n data['selectedRoles'] = result.selectedRoles;\n }\n }else if(status == 'rejected'){\n if(this.dashboard == 'admin' || this.dashboard == 'partners'){\n data['status'] = 'BU_REJECT';\n } else {\n data['status'] = 'REJECTED';\n }\n data['message'] = result.reason;\n }\n\n data['email'] = this.searchedFilters.email?this.searchedFilters.email:'';\n data['firstName'] = this.searchedFilters.firstName?this.searchedFilters.firstName:'';\n data['wpassId'] = this.searchedFilters.wpassId;\n }\n\n if(this.dashboard == 'admin' || this.dashboard == 'partners'){\n this.httpService.postRequest(data,'userRegistrationsApi/v1/bulkApproveBusinessUnit').subscribe(\n res => {\n this.checkResponse(res, status, data['allSelected']);\n },\n err => { this.httpService.onEnd(); }\n );\n } else {\n this.httpService.postRequest(data,'applicationOperationApi/v1/bulkActionUserApplication').subscribe(\n res => {\n this.checkResponse(res, status, data['allSelected']);\n },\n err => { this.httpService.onEnd(); }\n );\n }\n }\n this.dialogRef = null;\n });\n }\n\n public checkResponse(res, status, allSelected) {\n if(allSelected){\n setTimeout(()=>{\n this.httpService.onEnd();\n this.saveResponse(res, status);\n }, 15000);\n } else {\n this.httpService.onEnd();\n this.saveResponse(res, status);\n }\n }\n\n public saveResponse(res, status){\n let statusTxt;\n if(res){\n if(status == 'approved'){\n statusTxt = 'after_user_creation_approval_notify';\n } else{\n statusTxt = 'Rejected Successfully';\n }\n this.dialogRef = this.dialog.open(DialogComponent);\n this.dialogRef.componentInstance.msg = statusTxt;\n\n this.dialogRef.afterClosed().subscribe(result => {\n if(this.dashboard == 'admin'){\n this.commonService.changeAdminDashboardData();\n } else if(this.dashboard == 'partners'){\n this.commonService.changePartnersDashboardData();\n } else if(this.dashboard == 'applicationManagerView'){\n this.commonService.changeApplicationDashboardData();\n }\n });\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/multi-approve-reject/multi-approve-reject.component.ts","/**\n * Created by shubham on 11/4/18.\n */\n\nimport {PartnersPage} from \"./partners-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class PartnersPageData {\n data = new Array();\n page = new PartnersPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/partners-dashboard/partners-datatable/partners-page-data.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * A model for an individual corporate employee\n */\nexport class PartnersDashboardList {\n id:number;\n Name: string;\n roleName: string;\n email: string;\n emailVerified: boolean;\n userId_WPASS: string;\n languageId: string;\n languageName: string;\n ownerId: string;\n sessionUserManager: boolean;\n status: string;\n createdAt: string;\n\n constructor(id:number, Name:string, roleName:string, email:string, emailVerified:boolean, userId_WPASS:string, languageId:string,\n languageName: string, ownerId: string, sessionUserManager:boolean, status: string, createdAt: string){\n this.id = id;\n this.Name = Name;\n this.roleName = roleName;\n this.email = email;\n this.emailVerified = emailVerified;\n this.userId_WPASS = userId_WPASS;\n this.languageId = languageId;\n this.languageName = languageName;\n this.ownerId = ownerId;\n this.sessionUserManager = sessionUserManager;\n this.status = status;\n this.createdAt = createdAt;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/partners-dashboard/partners-datatable/partnersDashboardList.ts","/**\n * Created by shubham on 23/4/18.\n */\n\nimport { Directive, HostListener } from '@angular/core';\n\n@Directive({\n selector: '[appBlockCutCopyPaste]'\n})\nexport class BlockCutCopyPasteDirective {\n constructor() {\n }\n\n @HostListener('paste', ['$event']) blockPaste(e: KeyboardEvent) {\n console.log(\"Can not paste here\");\n e.preventDefault();\n }\n\n @HostListener('copy', ['$event']) blockCopy(e: KeyboardEvent) {\n console.log(\"Can not copy here\");\n e.preventDefault();\n }\n\n @HostListener('cut', ['$event']) blockCut(e: KeyboardEvent) {\n console.log(\"Can not cut here\");\n e.preventDefault();\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/shared/directive/blockCutCopyPaste.directive.ts","import { Directive, ElementRef, Input, HostListener } from '@angular/core';\nimport echarts from 'echarts';\nimport 'echarts/theme/macarons';\n\n@Directive({ selector: '[myECharts]' })\n\nexport class EChartsDirective {\n el: ElementRef;\n constructor(el: ElementRef) {\n this.el = el;\n }\n\n @Input() EChartsOptions: any;\n private myChart;\n\n\n ngAfterViewInit() {\n this.myChart = echarts.init(this.el.nativeElement, 'macarons');\n if (!this.EChartsOptions) return;\n\n this.myChart.setOption(this.EChartsOptions);\n }\n\n ngOnChanges() {}\n\n ngOnDestroy() {\n if (this.myChart) {\n this.myChart.dispose();\n }\n }\n\n @HostListener('window:resize')\n onResize() {\n if(this.myChart) {\n this.myChart.resize();\n }\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/shared/echarts.directive.ts","import { Directive, ElementRef, Input } from '@angular/core';\nimport 'jquery-slimscroll/jquery.slimscroll.min.js';\n\n@Directive({ selector: '[mySlimScroll]' })\n\nexport class SlimScrollDirective {\n el: ElementRef;\n constructor(el: ElementRef) {\n this.el = el;\n }\n\n @Input() scrollHeight: string;\n\n ngAfterViewInit() {\n const $el = $(this.el.nativeElement);\n\n ($el).slimScroll({\n height: this.scrollHeight || '100%'\n });\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/shared/slim-scroll.directive.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * A model for an individual corporate employee\n */\nexport class AdminListDashboard {\n id:number;\n Name: string;\n roleName: string;\n email: string;\n emailVerified: boolean;\n userId_WPASS: string;\n pendingSubUserCount: string;\n languageId: string;\n languageName: string;\n active: boolean;\n status: string;\n createdAt: string;\n\n constructor(id:number, Name:string, roleName:string, email:string, emailVerified:boolean, userId_WPASS:string, pendingSubUserCount:string,\n languageId:string, languageName: string, active: boolean, status: string, createdAt: string){\n this.id = id;\n this.Name = Name;\n this.roleName = roleName;\n this.email = email;\n this.emailVerified = emailVerified;\n this.userId_WPASS = userId_WPASS;\n this.pendingSubUserCount = pendingSubUserCount;\n this.languageId = languageId;\n this.languageName = languageName;\n this.active = active;\n this.status = status;\n this.createdAt = createdAt;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/adminList-datatable/adminList-dashboard.ts","/**\n * Created by shubham on 11/4/18.\n */\n\nimport {AdminListPage} from \"./adminList-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class AdminListPageData {\n data = new Array();\n page = new AdminListPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/adminList-datatable/adminList-page-data.ts","/**\n * Created by shubham on 8/5/18.\n */\n\nimport { Routes, RouterModule } from '@angular/router';\nimport { AdminManagementComponent } from './adminManagement.component';\nimport { AdminListComponent } from './adminList/adminList.component';\nimport { AddAdminComponent } from './addAdmin/addAdmin.component';\nimport { ViewAdminComponent } from './viewAdmin/viewAdmin.component';\n\nexport const AdminManagementRoutes: Routes = [\n {\n path: '',\n component: AdminManagementComponent,\n children: [\n { path: '', redirectTo: '/app/profile', pathMatch: 'full' },\n { path: 'list', component: AdminListComponent },\n { path: 'add', component: AddAdminComponent },\n { path: 'view/:id', component: ViewAdminComponent },\n ]\n }\n];\n\nexport const AdminManagementRoutingModule = RouterModule.forChild(AdminManagementRoutes);\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/adminManagement/adminManagement-routing.module.ts","/**\n * Created by prakash on 22/9/18.\n */\n\n/**\n * A model for an Application listing\n */\nexport class ApplicationListDashboard {\n id:number;\n applicationName: string;\n ldapApplicationId: string;\n managerNames: string;\n customerNumberRequired: boolean;\n skipManagerApproval: boolean;\n multipleRole: boolean;\n status: string;\n active: boolean;\n createdAt: string;\n\n constructor(id:number, applicationName: string, ldapApplicationId: string, managerNames: string, customerNumberRequired: boolean,\n skipManagerApproval: boolean, multipleRole: boolean, status: string, active: boolean, createdAt: string){\n this.id = id;\n this.applicationName = applicationName;\n this.ldapApplicationId = ldapApplicationId;\n this.managerNames = managerNames;\n this.customerNumberRequired = customerNumberRequired;\n this.skipManagerApproval = skipManagerApproval;\n this.multipleRole = multipleRole;\n this.status = status;\n this.active = active;\n this.createdAt = createdAt;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/applicationManagement/applicationList-datatable/applicationList-dashboard.ts","/**\n * Created by prakash on 22/9/18.\n */\n\nimport {ApplicationListPage} from \"./applicationList-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class ApplicationListPageData {\n data = new Array();\n page = new ApplicationListPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/applicationManagement/applicationList-datatable/applicationList-page-data.ts","/**\n * Created by shubham on 19/9/18.\n */\n\nimport { Routes, RouterModule } from '@angular/router';\nimport { AddApplicationComponent } from './addApplication/addApplication.component';\nimport { ApplicationManagementComponent } from \"./applicationManagement.component\";\nimport { ApplicationListComponent } from \"./applicationList/applicationList.component\";\n\nexport const ApplicationManagementRoutes: Routes = [\n {\n path: '',\n component: ApplicationManagementComponent,\n children: [\n { path: '', redirectTo: '/app/profile', pathMatch: 'full' },\n { path: 'add', component: AddApplicationComponent },\n { path: 'list', component: ApplicationListComponent },\n { path: 'view/:id', component: AddApplicationComponent }\n ]\n }\n];\n\nexport const ApplicationManagementRoutingModule = RouterModule.forChild(ApplicationManagementRoutes);\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/applicationManagement/applicationManagement-routing.module.ts","/**\n * Created by shubham on 11/4/18.\n */\n\n/**\n * A model for an individual corporate employee\n */\nexport class BusinessUnitListDashboard {\n id:number;\n Name: string;\n code: string;\n active: boolean;\n status: string;\n createdAt: string;\n\n constructor(id:number, Name:string, code:string, active: boolean, status: string, createdAt: string){\n this.id = id;\n this.Name = Name;\n this.code = code;\n this.active = active;\n this.status = status;\n this.createdAt = createdAt;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/businessUnitManagement/businessUnitList-datatable/businessUnitList-dashboard.ts","/**\n * Created by shubham on 11/4/18.\n */\n\nimport {BusinessUnitListPage} from \"./businessUnitList-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class BusinessUnitListPageData {\n data = new Array();\n page = new BusinessUnitListPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/businessUnitManagement/businessUnitList-datatable/businessUnitList-page-data.ts","/**\n * Created by shubham on 10/5/18.\n */\n\nimport { Routes, RouterModule } from '@angular/router';\nimport { ManagerAssignmentComponent } from './managerAssignment.component';\nimport { ManagerListComponent } from './managerList/managerList.component';\nimport { AddManagerComponent } from './addManager/addManager.component';\nimport { ViewManagerComponent } from './viewManager/viewManager.component';\n\nexport const ManagerAssignmentRoutes: Routes = [\n {\n path: '',\n component: ManagerAssignmentComponent,\n children: [\n { path: '', redirectTo: '/app/profile', pathMatch: 'full' },\n { path: 'list', component: ManagerListComponent },\n { path: 'add', component: AddManagerComponent },\n { path: 'view/:buAssociationId', component: ViewManagerComponent }\n ]\n }\n];\n\nexport const ManagerAssignmentRoutingModule = RouterModule.forChild(ManagerAssignmentRoutes);\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/managerAssignment-routing.module.ts","/**\n * Created by shubham on 10/5/18.\n */\n\n/**\n * A model for an individual corporate employee\n */\nexport class ManagerListDashboard {\n buAssociationId: string;\n Name: string;\n email: string;\n emailVerified: boolean;\n userId_WPASS: string;\n pendingSubUserCount: string;\n applicationName: string;\n countryId: string;\n countryName: string;\n businessUnitId: string;\n businessUnitName: string;\n active: boolean;\n status: string;\n createdAt: string;\n\n constructor(buAssociationId:string, Name:string, email:string, emailVerified:boolean, userId_WPASS:string, pendingSubUserCount:string,\n applicationName: string, countryId:string, countryName: string, businessUnitId: string, businessUnitName: string, active: boolean, status: string, createdAt: string){\n this.buAssociationId = buAssociationId;\n this.Name = Name;\n this.email = email;\n this.emailVerified = emailVerified;\n this.userId_WPASS = userId_WPASS;\n this.pendingSubUserCount = pendingSubUserCount;\n this.applicationName = applicationName;\n this.countryId = countryId;\n this.countryName = countryName;\n this.businessUnitId = countryId;\n this.businessUnitName = countryName;\n this.active = active;\n this.status = status;\n this.createdAt = createdAt;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/managerList-datatable/managerList-dashboard.ts","/**\n * Created by shubham on 10/5/18.\n */\n\nimport {ManagerListPage} from \"./managerList-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class ManagerListPageData {\n data = new Array();\n page = new ManagerListPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/system-level-setting/managerAssignment/managerList-datatable/managerList-page-data.ts","\n\nimport {TranslationMessagePage} from \"./translation-messages-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class TranslationMessagesPageData {\n data = new Array();\n page = new TranslationMessagePage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/translation-messages/translation-messages/translation-messages.ts","import {Injectable} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {TranslationMessagesPageData} from \"./translation-messages\";\nimport {TranslationMessagesList} from \"./translations-messages.list\";\nimport {TranslationMessagePage} from \"./translation-messages-page\";\n/**\n * A server used to mock a paged data result from a server\n */\n@Injectable()\nexport class TranslationMessagesResultService {\n listData:any;\n loginData;\n rows = {};\n applicationsDashboardData = {};\n\n constructor(){}\n\n /**\n * A method that mocks a paged server response\n * @param page The selected page\n * @returns {any} An observable containing the employee data\n */\n public getResults(page: TranslationMessagePage,listData): Observable> {\n this.listData = listData;\n return Observable.of(listData).map(data => this.getPageData(page));\n }\n\n /**\n * Package companyData into a PagedData object based on the selected Page\n * @param page The page data used to get the selected data from companyData\n * @returns {PagedData} An array of the selected data and page\n */\n private getPageData(page: TranslationMessagePage): TranslationMessagesPageData {\n let pageData = new TranslationMessagesPageData();\n let offset = this.listData.offset;\n let raw = [];\n for(let l in this.listData){\n if(Object.keys(this.listData[l]).length > 0){\n raw[offset+parseInt(l)] = this.listData[l];\n }\n }\n if(this.listData.totalCount){\n page.totalElements = this.listData.totalCount;\n }\n page.totalPages = page.totalElements / page.size;\n let start = page.pageNumber * page.size;\n let end = Math.min((start + page.size), page.totalElements);\n\n \n for (let i = start; i < end; i++) {\n if(raw[i]){\n let jsonObj = raw[i];\n if(jsonObj){\n \n let list = new TranslationMessagesList(jsonObj['id'], jsonObj['key'], jsonObj['english'], jsonObj['seletedLanguage'], jsonObj['actionFlag']);\n pageData.data.push(list);\n }\n } \n }\n pageData.page = page;\n return pageData;\n }\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/translation-messages/translation-messages/translationResultService.ts","\nexport class TranslationMessagesList {\n \n english: string;\n key: string;\n id: string;\n seletedLanguage: string;\n actionFlag: boolean\n constructor(id:string, key:string, english: string, seletedLanguage:string , actionFlag:boolean){\n this.key = key;\n this.id = id;\n this.english = english;\n this.seletedLanguage = seletedLanguage;\n this.actionFlag = actionFlag;\n \n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/translation-messages/translation-messages/translations-messages.list.ts","\nexport class UserActivityDashboardList {\n \n\n createdAt: Date;\n description: string;\n username: string;\n email: string;\n wpassId: string;\n constructor( username:string, createdAt: Date, description: string,\n email: string, wpassId: string){\n this.username = username;\n this.createdAt = createdAt;\n this.description = description;\n this.email = email;\n this.wpassId = wpassId;\n \n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-activity-logs/user-activity-datatable/user-activity-dashboardList.ts","\n\nimport {UserActivityPage} from \"./user-activity-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class UserActivityPageData {\n data = new Array();\n page = new UserActivityPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-activity-logs/user-activity-datatable/user-activity-page-data.ts","/**\n * Created by shubham on 20/11/18.\n */\n\n/**\n * A model for an individual corporate employee\n */\nexport class BusinessUnitListDashboard {\n countryId: string;\n countryName: string;\n businessUnitId: string;\n businessUnitName: boolean;\n emailVerified: string;\n customerNumber: string;\n selectedApplicationNames: string;\n status: string;\n active: boolean;\n\n constructor(countryId:string, countryName:string, businessUnitId:string, businessUnitName:boolean, emailVerified:string,\n customerNumber:string, selectedApplicationNames: string, status:string, active: boolean){\n this.countryId = countryId;\n this.countryName = countryName;\n this.businessUnitId = businessUnitId;\n this.businessUnitName = businessUnitName;\n this.emailVerified = emailVerified;\n this.customerNumber = customerNumber;\n this.selectedApplicationNames = selectedApplicationNames;\n this.status = status;\n this.active = active;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/businessUnitList-datatable/businessUnitList-dashboard.ts","/**\n * Created by shubham on 20/11/18.\n */\n\nimport {BusinessUnitListPage} from \"./businessUnitList-page\";\n\n/**\n * An array of data with an associated page object used for paging\n */\nexport class BusinessUnitListPageData {\n data = new Array();\n page = new BusinessUnitListPage();\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/businessUnitList-datatable/businessUnitList-page-data.ts","/**\n * Created by shubham on 19/11/18.\n */\n\nimport { Routes, RouterModule } from '@angular/router';\nimport { RequestBusinessUnitComponent} from './request-business-unit.component';\nimport { AddBusinessUnitForUserComponent } from './add-business-unit/add-business-unit.component';\nimport { BusinessUnitListForUserComponent } from './business-unit-list/business-unit-list.component';\nimport { ViewBusinessUnitForUserComponent } from './view-business-unit/view-business-unit.component';\n\nexport const RequestBusinessUnitRoutes: Routes = [\n {\n path: '',\n component: RequestBusinessUnitComponent,\n children: [\n { path: '', redirectTo: '/app/partners-dashboard', pathMatch: 'full' },\n { path: 'list', component: BusinessUnitListForUserComponent },\n { path: 'add', component: AddBusinessUnitForUserComponent },\n { path: 'view/:id', component: ViewBusinessUnitForUserComponent }\n ]\n }\n];\n\nexport const RequestBusinessUnitRoutingModule = RouterModule.forChild(RequestBusinessUnitRoutes);\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user-operations/request-business-unit/request-business-unit-routing.module.ts","/**\n * Created by shubham on 16/4/18.\n */\n\nimport { Routes, RouterModule } from '@angular/router';\nimport { UserComponent } from './user.component';\nimport { AddEditUserComponent } from './add-edit-user/add-edit-user.component';\n\nexport const UserRoutes: Routes = [\n {\n path: '',\n component: UserComponent,\n children: [\n { path: '', redirectTo: '/app/partners-dashboard', pathMatch: 'full' },\n { path: 'add', component: AddEditUserComponent },\n { path: 'edit/:id', component: AddEditUserComponent }\n ]\n }\n];\n\nexport const UserRoutingModule = RouterModule.forChild(UserRoutes);\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/user/user-routing.module.ts","/**\n * Created by shubham on 16/4/18.\n */\n\nimport { Routes, RouterModule } from '@angular/router';\nimport { ViewRequestComponent } from './view-request.component';\nimport { ViewPartnersRequestComponent } from './viewPartners/viewPartners.component';\nimport { ViewSubUsersRequestComponent } from './viewSubUsers/viewSubUsers.component';\nimport { ViewApplicationRequestComponent } from './viewApplicationRequest/viewApplicationRequest.component';\n\nexport const RequestRoutes: Routes = [\n {\n path: '',\n component: ViewRequestComponent,\n children: [\n { path: '', redirectTo: '/app/admin-dashboard', pathMatch: 'full' },\n { path: 'viewPartners/:id', component: ViewPartnersRequestComponent },\n { path: 'viewSubUsers/:id', component: ViewSubUsersRequestComponent },\n { path: 'viewApplicationRequest/:id', component: ViewApplicationRequestComponent },\n ]\n }\n];\n\nexport const RequestRoutingModule = RouterModule.forChild(RequestRoutes);\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/viewRequest/view-request-routing.module.ts","import { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\nimport { AppModule } from './app/app.module';\n\n// depending on the env mode, enable prod mode or add debugging modules\nif (process.env.ENV === 'build') {\n enableProdMode();\n}\n\nexport function main() {\n return platformBrowserDynamic().bootstrapModule(AppModule);\n}\n\nif (document.readyState === 'complete') {\n main();\n} else {\n document.addEventListener('DOMContentLoaded', main);\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/main.ts","import { Injectable } from '@angular/core';\n\nimport { Router } from '@angular/router';\nimport { SessionHandler } from './session-handler.service';\nimport { CommonService } from '../../shared/services/common.service';\n\n@Injectable()\nexport class ErrorHandler {\n \n\tconstructor(private router: Router, public sessionHandler : SessionHandler, public commonService:CommonService) { }\n\n\thandle(response) {\n\t\tif(response.error!=undefined) {\n\t\t\tconsole.log(\"handling error\");\n\t\t\tif(response.error.code == 401 || response.error.code == 403){\n\t\t\t\tconsole.log(\"Error : \"+response.error.message);\n\t\t\t\tif(response.error.message==\"Access token not valid\" || response.error.message==\"Session Expired\") {\n\t\t\t\t\tthis.commonService.setLoginRedirectUrl(window.location.hash);\n\t\t\t\t}\n\t\t\t\tthis.sessionHandler.clearAllItems();\n //this.sessionHandler.saveItem(\"lastUrl\", window.location.hash);\n\t\t\t\tthis.router.navigate(['/login']);\n\t\t\t}else if(response.error.code == 404){\n\t\t\t\tconsole.log(\"Forbidden : \"+response);\n\t\t\t\twindow.location.href = \"/#/extra/404\";\n\t\t\t}else if(response.error.code == 500){\n\t\t\t\tconsole.log(\"Server Exception : \"+response);\n\t\t\t\twindow.location.href = \"/#/extra/500\";\n\t\t\t}\n\t\t}\n\t}\n\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular2-template-loader!./src/app/shared/services/error-handler.service.ts"],"sourceRoot":""}