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EAAqB,IAErB,IAAIC,EAAsBL,EAC1BK,SAAoBJ,QAAUA,EAC9BI,EAAoBH,YAAcA,EAClCG,EAAoBC,OAASH,EAC7BE,EAAoBD,WAAaA,EAC1BG,OAAOC,OAAO,GAAIH,EAC7B,iDAhBSP,EAAqB,sCAArBA,EAAqB9G,QAArB8G,EAAqB7G,UAAAC,WAFlB,QAAM,SAET4G,CAAqB","names":["ClientIntegrationService","constructor","_http","this","serverUrl","window","location","host","version","_url","replace","getClientIntegrations","clientKey","params","HttpParams","set","toString","get","getClientIntegrationTypeByIntegrationType","integrationType","getClientIntegrationBySourceKey","clientIntegrationSourceKey","upsertClientIntegration","parameters","post","headers","HttpHeaders","i0","i1","factory","ɵfac","providedIn","HierarchyService","http","getHierarchyEntities","getHierarchyEntitiesForClient","getHierarchyLevelsOfInterest","getHierarchyEntitiesOfInterest","getHierarchyDetailsModel","id","identifier","upsertNewHierarchyEntity","formModel","origOwner","cleanUpData","originalOwnerIdentifier","Observable","subscriber","subscribe","next","response","error","generalInfo","hierarchyKey","hierarchyInfo","roleOrder","parentHierarchyKey","hierarchyTypeKey","ownerIdentifier","selectOwner","length","primaryIdentifier","locationInfo","zipCodeDeliverySpecific","zipCode","getCorporateAllHierarchy","getHierarchyRoleTypes","getHierarchyTypes","updateHierarchyLevels","hierarchyData","JSON","stringify","deleteHierarchyLevels","getBranches","getHierarchyByRole","roleName","getEntitiesByRoleOrder","getEmployeeListByAsOfDateAndPosition","doHierarchyEntitiesExistForClient","clientShortName","IntegrationSourceService","getClientIntegrationSources","getClientIntegrationSourcesByName","getIntegrationSources","isIdentifierUniqueForSource","integrationSource","integrationDescription","IntegrationSource","IntegrationDescription","Identifier","submitIntegrationSystemConfig","formValues","integrationArray","EmployeeRecordViewRequirementsValidators","IdentitiferRequired","isPrimary","control","value","required","ZeroPaddingRequired","zeroPaddingFlag","zeroPaddingLength","zeroPaddingRequired","ConfirmationDialogComponent","data","ngOnInit","title","undefined","MAT_DIALOG_DATA","selectors","decls","vars","consts","template","rf","ctx","message","ctx_r0","moduleLink","linkTitle","_r2","link_r3","$implicit","onClick","PageHeadlineComponent_div_10_div_1_Template","linkArray","showLink","PageHeadlineComponent","_router","routerUrl","navigate","then","inputs","module","moduleIcon","pageTitle","PageHeadlineComponent_span_8_Template","PageHeadlineComponent_div_9_Template","PageHeadlineComponent_div_10_Template","CustomMatTableService","refreshCustomMatTable","customTableInfo","hasData","isDataReady","noDataType","searchTerm","customTableInfoCopy","action","Object","assign"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./src/app/modules/settings/services/client-integration.service.ts","./src/app/modules/settings/services/hierarchy.service.ts","./src/app/modules/settings/services/integration-source.service.ts","./src/app/modules/shared/Validators/employee-record-view.validator.ts","./src/app/modules/shared/components/confirmation-dialog/confirmation-dialog.component.ts","./src/app/modules/shared/components/confirmation-dialog/confirmation-dialog.component.html","./src/app/modules/shared/components/page-headline/page-headline.component.html","./src/app/modules/shared/components/page-headline/page-headline.component.ts","./src/app/modules/shared/services/custom-mat-table.service.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';\nimport { ClientIntegration, IClientIntegrationParameters } from '../interfaces/client-integration';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ClientIntegrationService {\n private serverUrl = 'https://' + window.location.host; // TODO Get url and version number from appsettings.\n private version = '0.5';\n private _url = (this.serverUrl + '/api/v{version}/ClientIntegration/').replace(\n '{version}',\n this.version\n );\n\n constructor(private _http: HttpClient) {}\n\n getClientIntegrations(clientKey: number): Observable {\n const params = new HttpParams().set('clientKey', clientKey?.toString());\n return this._http.get(this._url + 'GetClientIntegrations', {\n params: params,\n });\n }\n\n getClientIntegrationTypeByIntegrationType(\n integrationType: string\n ): Observable {\n const params = new HttpParams().set('integrationType', integrationType);\n return this._http.get(\n this._url + 'GetClientIntegrationTypeByIntegrationType',\n {\n params: params,\n }\n );\n }\n\n getClientIntegrationBySourceKey(\n clientKey: number,\n clientIntegrationSourceKey: number\n ): Observable {\n const params = new HttpParams()\n .set('clientKey', clientKey?.toString())\n .set('clientIntegrationSourceKey', clientIntegrationSourceKey?.toString());\n return this._http.get(this._url + 'GetClientIntegrationBySourceKey', {\n params: params,\n });\n }\n\n upsertClientIntegration(\n parameters: IClientIntegrationParameters\n ): Observable {\n return this._http.post(\n this._url + 'UpsertClientIntegration',\n parameters,\n {\n headers: new HttpHeaders({ 'Content-Type': 'application/json' }),\n }\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport {\n HierarchyEntity,\n HierarchyWebModel,\n HierarchyLevel,\n HierarchyEntityShort,\n HierarchyDetailsModel as HierarchyCompleteModel,\n HierarchyDetailsModel,\n HierarchyType,\n UserHierarchyByRole,\n} from '../interfaces/hierarchy-data';\nimport {\n ClientHierarchy,\n HierarchyRoleType,\n ClientHierarchyMain,\n} from '../../shared/interfaces/user-location';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class HierarchyService {\n constructor(private http: HttpClient) {}\n\n private serverUrl = 'https://' + window.location.host;\n private version = '0.5'; // TODO Get version number dynamically\n private _url = (this.serverUrl + '/api/v{version}/hierarchy').replace(\n '{version}',\n this.version\n );\n\n getHierarchyEntities(): Observable {\n return this.http.get(this._url + '/GetHierarchyEntities/');\n }\n\n getHierarchyEntitiesForClient(clientKey: number): Observable {\n const params = {\n clientKey: clientKey.toString(),\n };\n return this.http.get(this._url + '/GetHierarchyEntitiesForClient/', {\n params: params,\n });\n }\n\n getHierarchyLevelsOfInterest(): Observable {\n return this.http.get(this._url + '/GetHierarchyLevelsOfInterest');\n }\n\n getHierarchyEntitiesOfInterest(): Observable {\n return this.http.get(this._url + '/GetHierarchyEntitiesOfInterest');\n }\n\n getHierarchyDetailsModel(id: string): Observable {\n return this.http.post(this._url + '/GetHierarchyCompleteModel', {\n identifier: id,\n });\n }\n\n upsertNewHierarchyEntity(formModel: any, origOwner: string) {\n this.cleanUpData(formModel);\n formModel.originalOwnerIdentifier = origOwner;\n return new Observable((subscriber) => {\n this.http.post(`${this._url}/UpsertNewHierarchyEntity`, formModel).subscribe(\n () => {\n subscriber.next(true);\n },\n (response) => {\n subscriber.error(response);\n }\n );\n });\n }\n private cleanUpData(formModel: any) {\n if (!formModel.generalInfo.hierarchyKey) {\n formModel.generalInfo.hierarchyKey = null;\n }\n formModel.hierarchyInfo.roleOrder = +formModel.hierarchyInfo.roleOrder;\n if (!formModel.hierarchyInfo.parentHierarchyKey) {\n formModel.hierarchyInfo.parentHierarchyKey = null;\n }\n formModel.generalInfo.hierarchyTypeKey = +formModel.generalInfo.hierarchyTypeKey;\n if (\n !formModel.generalInfo.ownerIdentifier &&\n formModel.generalInfo.selectOwner &&\n formModel.generalInfo.selectOwner.length\n ) {\n formModel.generalInfo.ownerIdentifier =\n formModel.generalInfo.selectOwner[0].primaryIdentifier;\n }\n if (\n !formModel.hierarchyInfo.parentHierarchyKey &&\n formModel.hierarchyInfo.parentHierarchyKey &&\n formModel.hierarchyInfo.parentHierarchyKey.length\n ) {\n formModel.hierarchyInfo.parentHierarchyKey =\n formModel.hierarchyInfo.parentHierarchyKey[0].hierarchyKey;\n }\n if (\n formModel.generalInfo.locationInfo &&\n formModel.generalInfo.locationInfo.zipCodeDeliverySpecific\n ) {\n formModel.generalInfo.locationInfo.zipCode =\n formModel.generalInfo.locationInfo.zipCode +\n formModel.generalInfo.locationInfo.zipCodeDeliverySpecific;\n }\n }\n\n getCorporateAllHierarchy() {\n return this.http.get(this._url + '/CorporateAll');\n }\n\n getHierarchyRoleTypes() {\n return this.http.get(this._url + '/RoleTypes');\n }\n\n getHierarchyTypes() {\n return this.http.get(this._url + '/GetHierarchyTypes');\n }\n\n updateHierarchyLevels(hierarchyData: ClientHierarchyMain[]) {\n const params = new HttpParams().set('hierarchyData', JSON.stringify(hierarchyData));\n\n return this.http.get(this._url + '/UpdateHierarchyLevels', {\n params: params,\n });\n }\n\n deleteHierarchyLevels(hierarchyData: ClientHierarchy) {\n const params = new HttpParams().set('roleOrder', hierarchyData.roleOrder.toString());\n\n return this.http.get(this._url + '/DeleteHierarchyLevels', {\n params: params,\n });\n }\n\n getBranches(): Observable {\n return this.http.get(this._url + '/branches/all');\n }\n\n getHierarchyByRole(roleName: string): Observable {\n const params = new HttpParams().set('roleName', roleName);\n\n return this.http.get(this._url + '/DisplayUserHierarchyByRole', {\n params: params,\n });\n }\n\n getEntitiesByRoleOrder(roleOrder: number): Observable {\n const params = new HttpParams().set('roleOrder', roleOrder.toString());\n return this.http.get(this._url + '/level', {\n params: params,\n });\n }\n\n getEmployeeListByAsOfDateAndPosition(parameters: object = null) {\n let params: HttpParams = new HttpParams().set('paramsString', JSON.stringify(parameters));\n return this.http.get(this._url + '/GetEmployeeListByPosition', {\n params: params,\n });\n }\n\n doHierarchyEntitiesExistForClient(clientShortName: string = ''): Observable {\n const params = new HttpParams().set('clientShortName', clientShortName);\n return this.http.get(this._url + '/DoHierarchyEntitiesExistForClient', {\n params: params,\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { ClientIntegrationSource, IntegrationSource } from '../../shared/interfaces/client-data';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class IntegrationSourceService {\n private serverUrl = 'https://' + window.location.host;\n private version = '0.5';\n private _url = (this.serverUrl + '/api/v{version}/integrationsource').replace(\n '{version}',\n this.version\n );\n\n constructor(private http: HttpClient) {}\n\n getClientIntegrationSources(): Observable {\n return this.http.get(this._url + '/clientIntegrationSources');\n }\n getClientIntegrationSourcesByName(\n clientShortName: string\n ): Observable {\n const params = new HttpParams().set('clientShortName', clientShortName);\n return this.http.get(\n this._url + '/clientIntegrationSourcesByName',\n { params: params }\n );\n }\n\n getIntegrationSources(): Observable {\n return this.http.get(this._url + '/integrationSources');\n }\n\n isIdentifierUniqueForSource(\n integrationSource: string,\n integrationDescription: string,\n identifier: string\n ): Observable {\n return this.http.post(this._url + '/isIdentifierUniqueForSource', {\n IntegrationSource: integrationSource,\n IntegrationDescription: integrationDescription,\n Identifier: identifier,\n });\n }\n\n submitIntegrationSystemConfig(formValues: any): Observable {\n return new Observable((subscriber) => {\n this.http.post(this._url + '/submitConfig', formValues.integrationArray).subscribe(\n () => {\n subscriber.next(true);\n },\n (response) => {\n subscriber.error(response);\n }\n );\n });\n }\n}\n","import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\n\nexport module EmployeeRecordViewRequirementsValidators {\n export function IdentitiferRequired(isPrimary: boolean): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n if (!control || control.value === null) {\n return null;\n }\n\n if(control.value.length == 0 && isPrimary == true) {\n return { required: true };\n }\n }\n }\n\n export function ZeroPaddingRequired(zeroPaddingFlag: boolean, zeroPaddingLength: number): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n if (!control || control.value === null) {\n return null;\n }\n\n if(zeroPaddingFlag && control.value.length < zeroPaddingLength) {\n return { zeroPaddingRequired: true };\n }\n }\n }\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { MAT_DIALOG_DATA } from '@angular/material/dialog';\n\n@Component({\n selector: 'app-confirmation-dialog',\n templateUrl: './confirmation-dialog.component.html',\n styleUrls: ['./confirmation-dialog.component.css'],\n})\nexport class ConfirmationDialogComponent implements OnInit {\n constructor(@Inject(MAT_DIALOG_DATA) public data: any) {}\n\n ngOnInit(): void {\n if (this.data.title == null || this.data.title == undefined) {\n this.data.title = 'Are you sure?';\n }\n }\n}\n","
\n

{{ data.title }}

\n \n

{{ data.message }}

\n
\n\n \n \n \n \n
\n","
\n
\n \n
\n
\n
\n \n Home\n  > \n \n \n
\n \n
\n
\n
\n {{ pageTitle }}\n
\n
\n
\n","import { Component, OnInit, Input } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { ILinkInfo } from '../../classes/page-title-parameters';\n\n@Component({\n selector: 'page-headline',\n templateUrl: './page-headline.component.html',\n styleUrls: ['./page-headline.component.scss'],\n})\nexport class PageHeadlineComponent implements OnInit {\n @Input() linkTitle: string;\n @Input() module: string;\n @Input() moduleIcon: string;\n @Input() moduleLink: string;\n @Input() pageTitle: string;\n @Input() linkArray?: ILinkInfo[];\n\n constructor(public _router: Router) {}\n\n ngOnInit() {}\n\n onClick(routerUrl: string) {\n this._router.navigate(['']).then(() => {\n this._router.navigate([routerUrl]);\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport { ICustomTableInfoExtend } from 'app/modules/shared/components/custom-mat-table/custom-mat-table.component';\nimport { NoDataActionType } from 'app/modules/shared/interfaces/no-data';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CustomMatTableService {\n constructor() {}\n\n refreshCustomMatTable(\n customTableInfo: ICustomTableInfoExtend,\n hasData: boolean,\n isDataReady: boolean,\n noDataType: NoDataActionType,\n searchTerm: string = ''\n ) {\n let customTableInfoCopy = customTableInfo;\n customTableInfoCopy.hasData = hasData;\n customTableInfoCopy.isDataReady = isDataReady;\n customTableInfoCopy.action = noDataType;\n customTableInfoCopy.searchTerm = searchTerm;\n return Object.assign({}, customTableInfoCopy);\n }\n}\n"],"x_google_ignoreList":[]}