PageSourceSearch

https://sangsaka.com/2103.02e6b2989029c400.js

js sangsaka.com collected 2026-10-08 23:49:31 UTC 83,995 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[2103],{11808(G,S,o){o.d(S,{Y:()=>w});var i=o(85802),r=o(74005),C=o(76415),v=o(47429),M=o(89417),I=o(46941),b=o(35547);let w=(()=>{class L{queryParameter="filter";dataSource=(0,i.WQX)(I.Gt);static \u0275fac=function(V){return new(V||L)};static \u0275cmp=b.VBU({type:L,selectors:[["app-audit-logs-filter"]],inputs:{queryParameter:"queryParameter"},decls:4,vars:9,consts:[[3,"filterChanged","saveReport","search","filterForm","formGroup","queryParameter","reportType","disabled"],["formControlName","dateRange"],["formControlName","auditObjTypeIndex","data-qa","audit-obj-type-filter",3,"sortOptions","searchable"],["formControlName","auditActionIndex","data-qa","audit-action-filter",3,"searchable"]],template:function(V,d){1&V&&(b.j41(0,"app-complex-filter",0),b.bIt("filterChanged",function(){return d.dataSource.submitFilter()})("saveReport",function(p){return d.dataSource.onSaveReport(p)}),b.nrm(1,"app-date-range-filter",1)(2,"app-enum-filter",2)(3,"app-enum-filter",3),b.k0s()),2&V&&(b.Y8G("search",d.dataSource.searchText)("filterForm",d.dataSource.filter)("formGroup",d.dataSource.filter)("queryParameter",d.queryParameter)("reportType",d.dataSource.scheduledReportType)("disabled",!d.dataSource.isReportAvailable),b.R7$(2),b.Y8G("sortOptions",!0)("searchable",!0),b.R7$(),b.Y8G("searchable",!0))},dependencies:[r.M,C.B,v.j,M.YN,M.BC,M.cb,M.X1,M.j4,M.JD],encapsulation:2,changeDetection:0})}return L})()},67710(G,S,o){o.d(S,{$:()=>rt});var i=o(85802),r=o(17705),C=o(89417),v=o(93049),M=o(38601),I=o(54327),b=o(96354),w=o(46941),L=o(70514);const N={"REPOS.TEXT.ALL_RECORDS":"_i18n.AllRecords"},D=$=>N[$]||$||"";var V=o(87019),d=o(68018),u=o(49769),p=o(78713),h=o(45764),m=o(42610),E=o(58368),W=o(12426),J=o(4801),_=o(89079);class Q{dataSource;callsParameters;constructor(A,f){this.dataSource=A,this.callsParameters=f}resolveData(A,f,k,F){if(!this.callsParameters||!this.callsParameters.canViewReport)return(0,I.BY)();const q=A-1;return this.dataSource.requestAuditLogs(this.callsParameters,q,f+1,q*f).pipe((0,b.T)(z=>(0,I.ro)(A,f,z.value)))}}var t=o(35547);const st=($,A)=>A.Id;function it($,A){if(1&$&&(t.j41(0,"a",10),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&$){const f=t.XpG().$implicit;t.Y8G("routerLink",f.Id.toString()),t.R7$(),t.SpI(" ",t.bMT(2,2,"_i18n.Details")," ")}}function Z($,A){if(1&$&&(t.j41(0,"tr",5)(1,"td",8),t.EFF(2),t.nI1(3,"appJsDateFormat"),t.nI1(4,"emptyValue"),t.k0s(),t.j41(5,"td",8),t.EFF(6),t.nI1(7,"emptyValue"),t.k0s(),t.j41(8,"td",2),t.EFF(9),t.nI1(10,"emptyValue"),t.k0s(),t.j41(11,"td",8),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"td",8),t.EFF(15),t.nI1(16,"translate"),t.nI1(17,"emptyValue"),t.k0s(),t.j41(18,"td",9),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"td"),t.nVh(22,it,3,4,"a",10),t.k0s()()),2&$){const f=A.$implicit,k=t.XpG();t.R7$(2),t.JRh(t.bMT(4,9,t.bMT(3,7,f.Timestamp))),t.R7$(4),t.JRh(t.bMT(7,11,f.UserName)),t.R7$(3),t.JRh(t.bMT(10,13,f.Ip)),t.R7$(3),t.JRh(t.bMT(13,15,k.getCfgTypeTranslationKey(f.ObjectType))),t.R7$(3),t.JRh(t.bMT(17,19,t.bMT(16,17,null!==f.Action?k.getActionTranslationKey(f.Action):""))),t.R7$(4),t.JRh(t.bMT(20,21,k.getObjectNameTranslationKey(f.ObjectName))),t.R7$(3),t.vxM(f.PrevData||f.NewData?22:-1)}}function mt($,A){1&$&&(t.j41(0,"tr")(1,"td",6),t.nrm(2,"div",11),t.k0s()())}function B($,A){if(1&$&&(t.j41(0,"tr")(1,"td",12),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&$){const f=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,1,f.noDataMessage(!f.dataSource.isReportAvailable))," ")}}let rt=(()=>{class ${localStorageService=(0,i.WQX)(W.sj);cd=(0,i.WQX)(r.gRc);dataSource=(0,i.WQX)(w.Gt);modalService=(0,i.WQX)(M.B);destroy$=(0,i.WQX)(i.abz);pager;logs;constructor(){const f=this.dataSource.parameters$.pipe((0,b.T)(k=>new Q(this.dataSource,k)));
1this.pager=new J.f(this.destroy$,f,void 0,this.getStoredPageSize()),this.pager.pagedItems$.pipe((0,_.pQ)(this.destroy$)).subscribe({next:k=>{this.updateItems(k)},error:k=>this.modalService.error(k)})}updateItems(f){this.logs=f.value??[],this.cd.markForCheck()}getStoredPageSize(){const f=this.localStorageService.retrieve(m.Hh.ReportPageSize);return f?+f:E.n}onPageSizeChange(f){this.localStorageService.store(m.Hh.ReportPageSize,f),this.pager.pageSizeChanged(f)}getCfgTypeTranslationKey=L.b$;getActionTranslationKey=L.fE;getObjectNameTranslationKey=D;noDataMessage=I.Ns;static \u0275fac=function(k){return new(k||$)};static \u0275cmp=t.VBU({type:$,selectors:[["app-audit-logs-pager"]],decls:37,vars:34,consts:[["data-qa","audit-log-table",1,"scrollable-table"],[1,"table-header"],["nowrap",""],[1,"minw-px-200"],[1,"actions"],["data-qa","audit-log-row"],["colspan","7"],[3,"pageChanged","itemsPerPageChanged","showPageSizes","currentPage","itemsPerPage","totalItems"],[1,"text-md-nowrap"],[1,"text-break"],[1,"dashed_link",3,"routerLink"],[1,"loader"],["colspan","7",1,"text-center"]],template:function(k,F){1&k&&(t.j41(0,"table",0)(1,"thead")(2,"tr",1)(3,"th"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"th",2),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"th",2),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"th"),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"th"),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"th",3),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"th",4),t.EFF(22),t.nI1(23,"translate"),t.k0s()()(),t.j41(24,"tbody"),t.Z7z(25,Z,23,23,"tr",5,st),t.nVh(27,mt,3,0,"tr"),t.nI1(28,"async"),t.vZN(29,B,4,3,"tr"),t.k0s(),t.j41(30,"tfoot")(31,"tr")(32,"td",6)(33,"app-paging",7),t.nI1(34,"async"),t.nI1(35,"async"),t.nI1(36,"async"),t.bIt("pageChanged",function(z){return F.pager.pageChanged(z)})("itemsPerPageChanged",function(z){return F.onPageSizeChange(z)}),t.k0s()()()()()),2&k&&(t.R7$(4),t.JRh(t.bMT(5,12,"_i18n.ReportsDate")),t.R7$(3),t.JRh(t.bMT(8,14,"_i18n.ReportsAuditUserName")),t.R7$(3),t.JRh(t.bMT(11,16,"_i18n.IpAddress")),t.R7$(3),t.JRh(t.bMT(14,18,"_i18n.ReportsAuditObjectType")),t.R7$(3),t.JRh(t.bMT(17,20,"_i18n.ReportsAuditAction")),t.R7$(3),t.JRh(t.bMT(20,22,"_i18n.ReportsAuditObjectName")),t.R7$(3),t.JRh(t.bMT(23,24,"_i18n.Details")),t.R7$(3),t.Dyx(F.logs),t.R7$(2),t.vxM(F.logs&&0!==F.logs.length||!t.bMT(28,26,F.pager.filterLoading$)||!F.dataSource.isReportAvailable?F.logs&&0===F.logs.length?29:-1:27),t.R7$(6),t.Y8G("showPageSizes",!0)("currentPage",t.bMT(34,28,F.pager.currentPage$))("itemsPerPage",t.bMT(35,30,F.pager.pageSize$))("totalItems",t.bMT(36,32,F.pager.totalCount$)))},dependencies:[C.X1,v.Wk,V.u4,d.D9,u.Jj,h.N,p.vE],styles:['@media(max-width:1399.98px){.d-xxl-down-none[_ngcontent-%COMP%], .xxl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:1199.98px){.d-xl-down-none[_ngcontent-%COMP%], .xl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:991.98px){.d-lg-down-none[_ngcontent-%COMP%], .lg-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:767.98px){.d-md-down-none[_ngcontent-%COMP%], .md-visible[_ngcontent-%COMP%]{display:none!important}}@media(max-width:575.98px){.d-sm-down-none[_ngcontent-%COMP%], .sm-visible[_ngcontent-%COMP%]{display:none!important}}.page-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{min-height:auto;display:inline-flex;flex:none;background-color:var(--background);padding:0}.page-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{margin-right:10px}.scrollable-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], table.scrollable-table[_ngcontent-%COMP%]{min-width:700px;overflow-x:auto}@media(min-width:768px){.scrollable-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(1 of:not(.actions):not(.icon)), table.scrollable-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(1 of:not(.actions):not(.icon)){width:100%}}.grouped-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]:first-child{position:sticky;top:0;z-index:1}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%], .grouped-table[_ngcontent-%COMP%]   tr.table-group-header[_ngcontent-%COMP%]{cursor:pointer;background:var(--bg-table-group);position:sticky;top:30px;z-index:1}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{font-weight:400}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]:first-child{white-space:nowrap}.grouped-table[_ngcontent-%COMP%]   .table-group-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{padding-left:40px}.grouped-table[_ngcontent-%COMP%]   .dropdown-arrow-icon[_ngcontent-%COMP%]{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent;transition:.3s transform;transform:rotate(0)}.grouped-table[_ngcontent-%COMP%]   .dropdown-arrow-icon.dropdown-arrow-icon-rotated[_ngcontent-%COMP%]{transform:rotate(-90deg)}']})}return $})()},42103(G,S,o){o.d(S,{reportsRoutes:()=>co});var i=o(53905),r=o(85802),C=function(n){return n[n.Users=0]="Users",n[n.Reports=1]="Reports",n[n.Queues=2]="Queues",n[n.Chats=3]="Chats",n[n.ExtRg=4]="ExtRg",n[n.System=5]="System",n[n.ArtificialIntelligence=6]="ArtificialIntelligence",n}(C||{}),v=o(38601),M=o(13755);const I={chatReports:[{name:"_i18n.QueueChatPerformance",routerLink:"/office/reports/queue-chat-performance",qaId:"q-chat-performance-link"},{name:"_i18n.QueueAgentsChat",routerLink:"/office/reports/queue-agents-chat-statistics",qaId:"q-agents-chat-link"},{name:"_i18n.AbandonedChats",routerLink:"/office/reports/abandoned-chats",qaId:"abandoned-chats-link"}],agentStatistics:[{name:"_i18n.AgentInQueueStatistics",routerLink:"/office/reports/agent-in-queue-statistics",qaId:"agent-q-statistics-link"},{name:"_i18n.AgentLoginHistory",routerLink:"/office/reports/agent-login-history",qaId:"agent-login-history-link"}]},b=n=>[{name:"_i18n.InboundRules",routerLink:"/office/reports/inbound-rules",qaId:"inbound-rules-link",disabled:n}],N=n=>[{name:"_i18n.QueueChatPerformance",routerLink:"/office/reports/queue-chat-performance",qaId:"q-chat-performance-link",disabled:n},{name:"_i18n.QueueAgentsChat",routerLink:"/office/reports/queue-agents-chat-statistics",qaId:"q-agents-chat-link",disabled:n},{name:"_i18n.AbandonedChats",routerLink:"/office/reports/abandoned-chats",qaId:"abandoned-chats-link",disabled:n}],V=(n,c,e)=>[{name:"_i18n.ChatLog",routerLink:"/office/reports/chats",qaId:"chat-log-link",disabled:n},{name:"_i18n.AuditLogs",routerLink:"/office/reports/audit-logs",qaId:"audit-logs-link",disabled:c},{name:"System Metrics",routerLink:"/office/reports/system-telemetry",qaId:"metrics-link",hidden:e}];var d=o(17705),u=o(89417),p=o(49769),h=o(68018),m=o(40953),E=o(24708),W=o(54999),J=o(22972),_=o(97201),Q=o(4499),t=o(35547);let st=(()=>{class n extends Q.d{getCallTypesSettings(e,a="body"){const s=e?.$select,l=e?.$expand;let g=new _.rx(this.encoder);g=this.addToHttpParams(g,"$select",s,_.l2.Form,!1),g=this.addToHttpParams(g,"$expand",l,_.l2.Form,!1);let T=this.defaultHeaders;T=this.configuration.addCredentialToHeaders("Application","Authorization",T,"Bearer ");const O=this.configuration.selectHeaderAccept(["application/json"]);void 0!==O&&(T=T.set("Accept",O));let j="json";O&&(j=O.startsWith("text")?"text":this.configuration.isJsonMime(O)?"json":"blob");const{basePath:U,withCredentials:y}=this.configuration;return this.httpClient.request("get",`${U}/CallTypesSettings`,{params:g.toHttpParams(),responseType:j,...y?{withCredentials:y}:{},headers:T,observe:a})}getCallTypesSettingsQuery(e,a="body",s=!1,l){const g=e.$select,T=e.$expand;let O=new _.rx(this.encoder);return O=this.addToHttpParams(O,"$select",g,_.l2.Form,!1),O=this.addToHttpParams(O,"$expand",T,_.l2.Form,!1),"/CallTypesSettings?"+O.toString()}updateCallTypesSettings(e,a="body"){const s=e?.pbxCallTypesSettings;let l=this.defaultHeaders;l=this.configuration.addCredentialToHeaders("Application","Authorization",l,"Bearer ");const g=this.configuration.selectHeaderAccept(["application/json"]);void 0!==g&&(l=l.set("Accept",g));const O=this.configuration.selectHeaderContentType(["application/json"]);void 0!==O&&(l=l.set("Content-Type",O));let j="json";g&&(j=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");const{basePath:U,withCredentials:y}=this.configuration;return this.httpClient.request("patch",`${U}/CallTypesSettings`,{body:s,responseType:j,...y?{withCredentials:y}:{},headers:l,observe:a})}updateCallTypesSettingsQuery(e,a="body",s=!1,l){return"/CallTypesSettings"}static \u0275fac=(()=>{let e;return function(s){return(e||(e=t.xGo(n)))(s||n)}})();static \u0275prov=r.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var it=o(983),Z=o(99437),mt=o(41029),B=o(59053),rt=o(84460);const $=n=>({legend:"_i18n.LocalCallType",formGroup:n}),A=n=>({$implicit:n}),f=n=>({legend:"_i18n.National",formGroup:n}),k=n=>({legend:"_i18n.Mobile",formGroup:n}),F=n=>({legend:"_i18n.International",formGroup:n});function q(n,c){1&n&&t.eu8(0)}function z(n,c){1&n&&t.eu8(0)}function ce(n,c){1&n&&t.eu8(0)}function de(n,c){1&n&&t.eu8(0)}function pe(n,c){1&n&&(t.EFF(0),t.nI1(1,"translate")),2&n&&t.JRh(t.bMT(1,1,"_i18n.CallTypesRangeTooBig"))}function ge(n,c){1&n&&(t.EFF(0),t.nI1(1,"translate")),2&n&&t.JRh(t.bMT(1,1,"_i18n.CallTypesRangeTooBig"))}function ue(n,c){if(1&n&&(t.j41(0,"fieldset",3)(1,"legend"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",4)(5,"field-input",5),t.nI1(6,"translate"),t.j41(7,"val-errors",6),t.DNE(8,pe,2,3,"ng-template",7),t.k0s()(),t.j41(9,"field-input",8),t.nI1(10,"translate"),t.j41(11,"val-errors",9),t.DNE(12,ge,2,3,"ng-template",7),t.k0s()()()()),2&n){const e=c.$implicit;t.Y8G("formGroup",e.formGroup),t.R7$(2),t.JRh(t.bMT(3,6,e.legend)),t.R7$(3),t.Y8G("placeholder",t.bMT(6,8,"_i18n.Prefix"))("maxlength",255),t.R7$(4),t.Y8G("placeholder",t.bMT(10,10,"_i18n.DigitLength"))("maxlength",255)}}let me=(()=>{class n extends J.m{cd=(0,r.WQX)(d.gRc);fb=(0,r.WQX)(u.ok);callTypesApiService=(0,r.WQX)(st);xapiErrorService=(0,r.WQX)(mt.Ko);callTypesSettings={};buttons=W.P.OkCancel;form;validateBeforeSubmit;ngOnInit(){this.form=this.fb.group({International:this.fb.group({DigitsLength:this.fb.control(this.callTypesSettings.International?.DigitsLength??"",[(0,B.Si)(!1,!0,!1)]),Prefix:this.fb.control(this.callTypesSettings.International?.Prefix??"",[(0,B.Si)(!0,!1,!0)])}),Mobile:this.fb.group({DigitsLength:this.fb.control(this.callTypesSettings.Mobile?.DigitsLength??"",[(0,B.Si)(!1,!0,!1)]),Prefix:this.fb.control(this.callTypesSettings.Mobile?.Prefix??"",[(0,B.Si)(!0,!1,!0)])}),Local:this.fb.group({DigitsLength:this.fb.control(this.callTypesSettings.Local?.DigitsLength??"",[(0,B.Si)(!1,!0,!1)]),Prefix:this.fb.control(this.callTypesSettings.Local?.Prefix??"",[(0,B.Si)(!0,!1,!0)])}),National:this.fb.group({DigitsLength:this.fb.control(this.callTypesSettings.National?.DigitsLength??"",[(0,B.Si)(!1,!0,!1)]),Prefix:this.fb.control(this.callTypesSettings.National?.Prefix??"",[(0,B.Si)(!0,!1,!0)])})}),this.validateBeforeSubmit=this.createDialogValidate(this.form,this.cd)}submit$=()=>this.callTypesApiService.updateCallTypesSettings({pbxCallTypesSettings:this.form.value}).pipe((0,Z.W)(e=>(this.xapiErrorService.error(this.cd,e,this.form,!1),it.w)));get f(){return this.form.controls}getPayload(){return this.form.value}static \u0275fac=(()=>{let e;return function(s){return(e||(e=t.xGo(n)))(s||n)}})();static \u0275cmp=t.VBU({type:n,selectors:[["app-call-types-modal"]],hostVars:2,hostBindings:function(a,s){2&a&&t.AVh("modal-lg",!0)},features:[t.Vt3],decls:10,vars:31,consts:[["formControls",""],["header","_i18n.CallTypes",3,"submitted","validateBeforeSubmit","buttons","formGroup","submit$"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formGroup"],[1,"row"],["label","_i18n.Prefix","formControlName","Prefix",1,"col-md-6",3,"placeholder","maxlength"],["controlName","Prefix"],["valError","rangeCantBeMoreThan20"],["label","_i18n.DigitLength","formControlName","DigitsLength",1,"col-md-6",3,"placeholder","maxlength"],["controlName","DigitsLength"]],template:function(a,s){if(1&a&&(t.j41(0,"app-modal-dialog",1),t.bIt("submitted",function(){return s.onSubmit()}),t.j41(1,"p"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,q,1,0,"ng-container",2)(5,z,1,0,"ng-container",2)(6,ce,1,0,"ng-container",2)(7,de,1,0,"ng-container",2),t.k0s(),t.DNE(8,ue,13,12,"ng-template",null,0,t.C5r)),2&a){const l=t.sdS(9);t.Y8G("validateBeforeSubmit",s.validateBeforeSubmit)("buttons",s.buttons)("formGroup",s.form)("submit$",s.submit$),t.R7$(2),t.JRh(t.bMT(3,13,"_i18n.CallTypesDescription")),t.R7$(2),t.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",t.eq3(17,A,t.eq3(15,$,s.f.Local))),t.R7$(),t.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",t.eq3(21,A,t.eq3(19,f,s.f.National))),t.R7$(),t.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",t.eq3(25,A,t.eq3(23,k,s.f.Mobile))),t.R7$(),t.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",t.eq3(29,A,t.eq3(27,F,s.f.International)))}},dependencies:[p.T3,u.YN,u.BC,u.cb,u.tU,u.X1,u.j4,u.JD,rt.m,m.p,E.VI,E.IH,h.D9],encapsulation:2})}return n})(),he=(()=>{class n extends Q.d{exportCallCosts(e="body"){let a=this.defaultHeaders;a=this.configuration.addCredentialToHeaders("Application","Authorization",a,"Bearer ");const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(a=a.set("Accept",s));let l="json";s&&(l=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");const{basePath:T,withCredentials:O}=this.configuration;return this.httpClient.request("get",`${T}/CallCostSettings/Pbx.ExportCallCosts()`,{responseType:l,...O?{withCredentials:O}:{},headers:a,observe:e})}exportCallCostsQuery(e="body",a=!1,s){return"/CallCostSettings/Pbx.ExportCallCosts()"}listCallCostSettings(e,a="body"){const s=e?.$top,l=e?.$skip,g=e?.$search,T=e?.$filter,O=e?.$count,j=e?.$orderby,X=e?.$select,U=e?.$expand;let y=new _.rx(this.encoder);y=this.addToHttpParams(y,"$top",s,_.l2.Form,!1),y=this.addToHttpParams(y,"$skip",l,_.l2.Form,!1),y=this.addToHttpParams(y,"$search",g,_.l2.Form,!1),y=this.addToHttpParams(y,"$filter",T,_.l2.Form,!1),y=this.addToHttpParams(y,"$count",O,_.l2.Form,!1),y=this.addToHttpParams(y,"$orderby",j,_.l2.Form,!1),y=this.addToHttpParams(y,"$select",X,_.l2.Form,!1),y=this.addToHttpParams(y,"$expand",U,_.l2.Form,!1);let K=this.defaultHeaders;K=this.configuration.addCredentialToHeaders("Application","Authorization",K,"Bearer ");const R=this.configuration.selectHeaderAccept(["application/json"]);void 0!==R&&(K=K.set("Accept",R));let ut="json";R&&(ut=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");const{basePath:go,withCredentials:le}=this.configuration;return this.httpClient.request("get",`${go}/CallCostSettings`,{params:y.toHttpParams(),responseType:ut,...le?{withCredentials:le}:{},headers:K,observe:a})}listCallCostSettingsQuery(e,a="body",s=!1,l){const g=e.$top,T=e.$skip,O=e.$search,j=e.$filter,X=e.$count,U=e.$orderby,y=e.$select,K=e.$expand;let R=new _.rx(this.encoder);return R=this.addToHttpParams(R,"$top",g,_.l2.Form,!1),R=this.addToHttpParams(R,"$skip",T,_.l2.Form,!1),R=this.addToHttpParams(R,"$search",O,_.l2.Form,!1),R=this.addToHttpParams(R,"$filter",j,_.l2.Form,!1),R=this.addToHttpParams(R,"$count",X,_.l2.Form,!1),R=this.addToHttpParams(R,"$orderby",U,_.l2.Form,!1),R=this.addToHttpParams(R,"$select",y,_.l2.Form,!1),R=this.addToHttpParams(R,"$expand",K,_.l2.Form,!1),"/CallCostSettings?"+R.toString()}updateCost(e,a="body"){const s=e?.callCostSettingsUpdateCostRequestBody;let l=this.defaultHeaders;l=this.configuration.addCredentialToHeaders("Application","Authorization",l,"Bearer ");const g=this.configuration.selectHeaderAccept(["application/json"]);void 0!==g&&(l=l.set("Accept",g));const O=this.configuration.selectHeaderContentType(["application/json"]);void 0!==O&&(l=l.set("Content-Type",O));let j="json";g&&(j=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");const{basePath:U,withCredentials:y}=this.configuration;return this.httpClient.reque
1st("post",`${U}/CallCostSettings/Pbx.UpdateCost`,{body:s,responseType:j,...y?{withCredentials:y}:{},headers:l,observe:a})}updateCostQuery(e,a="body",s=!1,l){return"/CallCostSettings/Pbx.UpdateCost"}static \u0275fac=(()=>{let e;return function(s){return(e||(e=t.xGo(n)))(s||n)}})();static \u0275prov=r.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var lt=o(87019),_t=o(84412),bt=o(84572),fe=o(13798),tt=o(25558),yt=o(48643),Ce=o(99172),H=o(96354),Mt=o(23294),Pt=o(5964),ht=o(96697),ve=o(91413),et=o(50644),nt=o(96106),_e=o(25843),ct=o(89079),be=o(49371),ye=o(56197),Me=o(83421),xt=o(38969),Pe=o(68845),xe=o(72788),Ot=o(56344);const Oe=["file"];function Te(n,c){if(1&n&&(t.j41(0,"div",9),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Lme(" ",t.bMT(2,2,"_i18n.DuplicatedPrefixesInCallCosts"),": ",e.duplicatedPrefixes.join(", ")," ")}}function Re(n,c){if(1&n&&t.nrm(0,"field-input",17),2&n){const e=t.XpG(2);t.Y8G("formControl",e.f.CountryName)("maxlength",50)}}function $e(n,c){if(1&n&&(t.j41(0,"span",18),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.CountryName)}}function Se(n,c){if(1&n&&t.nrm(0,"field-input",19),2&n){const e=t.XpG(2);t.Y8G("formControl",e.f.Prefix)}}function Ie(n,c){if(1&n&&(t.j41(0,"span",20),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.Prefix)}}function Ee(n,c){if(1&n&&t.nrm(0,"field-input-number",21),2&n){const e=t.XpG(2);t.Y8G("formControl",e.f.Rate)("integer",!1)("min",0)}}function je(n,c){if(1&n&&(t.j41(0,"span",22),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.Rate)}}function ke(n,c){if(1&n){const e=t.RV6();t.j41(0,"tr",15),t.bIt("click",function(s){const l=r.eBV(e).$implicit,g=t.XpG();return r.Njj(g.onEntityClick(s,l))}),t.j41(1,"td",16),t.nVh(2,Re,1,2,"field-input",17)(3,$e,2,1,"span",18),t.k0s(),t.j41(4,"td",16),t.nVh(5,Se,1,1,"field-input",19)(6,Ie,2,1,"span",20),t.k0s(),t.j41(7,"td",16),t.nVh(8,Ee,1,3,"field-input-number",21)(9,je,2,1,"span",22),t.k0s(),t.j41(10,"td",13)(11,"button",23),t.bIt("click",function(s){const l=r.eBV(e).$implicit,g=t.XpG();return r.Njj(g.deleteEntity(l,s))}),t.k0s()()()}if(2&n){const e=c.$implicit,a=t.XpG();t.R7$(),t.Y8G("id",e.Id+"-country-name"),t.R7$(),t.vxM(e!==a.editedEntity||e.ReadOnly?3:2),t.R7$(2),t.AVh("text-error",!e.Prefix||a.duplicatedPrefixes.includes(e.Prefix)),t.Y8G("id",e.Id+"-prefix"),t.R7$(),t.vxM(e===a.editedEntity?5:6),t.R7$(2),t.Y8G("id",e.Id+"-rate"),t.R7$(),t.vxM(e===a.editedEntity?8:9),t.R7$(3),t.AVh("invisible",e.ReadOnly)}}function Ae(n,c){if(1&n){const e=t.RV6();t.j41(0,"tfoot")(1,"tr")(2,"td",24)(3,"app-paging",25),t.nI1(4,"async"),t.nI1(5,"async"),t.bIt("pageChanged",function(s){r.eBV(e);const l=t.XpG();return r.Njj(l.currentPage$.next(s.page))}),t.k0s()()()()}if(2&n){const e=t.XpG();t.R7$(3),t.Y8G("currentPage",t.bMT(4,4,e.currentPage$))("itemsPerPage",e.itemsPerPage)("totalItems",t.bMT(5,6,e.totalFilteredItems$))("showBoundaryLinks",!0)}}let Fe=(()=>{class n extends J.m{cd=(0,r.WQX)(d.gRc);destroy$=(0,r.WQX)(r.abz);modalService=(0,r.WQX)(v.B);fileDownloadService=(0,r.WQX)(yt.y);callCostApiService=(0,r.WQX)(he);http=(0,r.WQX)(ve.Qq);onEnter(){this.finishEdit()}onClick(){this.finishEdit()}itemsPerPage=lt.tn[0];buttons=W.P.OkCancel;search=new u.MJ("");currentPage$=new _t.t(1);controls=new u.Yp([]);items$=new _t.t([]);filteredItems$=(0,bt.z)([this.items$,this.search.valueChanges.pipe((0,Ce.Z)(this.search.value))]).pipe((0,H.T)(([e,a])=>a?e.filter(s=>s.CountryName?.toLowerCase().includes(a.toLowerCase())||s.Prefix?.includes(a)):e),(0,et.H9)());totalFilteredItems$=this.filteredItems$.pipe((0,H.T)(e=>e.length),(0,et.H9)());maxPage$=this.totalFilteredItems$.pipe((0,H.T)(e=>Math.max(1,Math.ceil(e/this.itemsPerPage))),(0,Mt.F)(),(0,et.H9)());displayedItems$=(0,bt.z)([this.filteredItems$,this.currentPage$]).pipe((0,H.T)(([e,a])=>e.slice((a-1)*this.itemsPerPage,a*this.itemsPerPage)),(0,et.H9)());newId;addedItems=[];duplicatedPrefixesError=!1;duplicatedPrefixes=[];editedEntityControl;editedEntity;get f(){return this.editedEntityControl.controls}fileUpload;constructor(){super(),this.search.valueChanges.pipe((0,ct.pQ)(this.destroy$)).subscribe(()=>{this.currentPage$.next(1)}),this.maxPage$.pipe((0,Pt.p)(e=>this.currentPage$.value>e),(0,ct.pQ)(this.destroy$)).subscribe(e=>{this.currentPage$.next(e)}),this.items$.pipe((0,ct.pQ)(this.destroy$)).subscribe(()=>
1this.updateValidationState())}ngOnInit(){this.callCostApiService.listCallCostSettings({}).subscribe(e=>{this.items$.next(e.value??[])})}addEntity(){this.finishEdit();const e=this.items$.value;this.newId=Math.max(...e.map(l=>l.Id))+1;const a={Id:this.newId,CountryName:"Country",Prefix:"Prefix",Rate:1,ReadOnly:!1},s=e.concat(a);this.addedItems.push(a),this.items$.next(s),this.search.value&&this.search.setValue(""),this.displayedItems$.pipe((0,ht.s)(1),(0,fe.Z)(0)).subscribe(()=>{this.startEdit(a,`${a.Id}-country-name`)}),this.currentPage$.next(Math.ceil(s.length/this.itemsPerPage))}onEntityClick(e,a){if(e.stopPropagation(),e.preventDefault(),this.editedEntity&&this.editedEntity.Id===a.Id)return;const s=e.target,l=s.getAttribute("id")||`${a.Id}-${s.getAttribute("data-type")||"country-name"}`;this.finishEdit(),this.startEdit(a,l)}startEdit(e,a){let s=this.controls.controls.find(l=>l.value.Id===e.Id);s?s.patchValue({CountryName:e.CountryName,Prefix:e.Prefix,Rate:e.Rate}):(s=this.createControl(e),this.controls.push(s)),this.editedEntity=e,this.editedEntityControl=s,this.cd.markForCheck(),setTimeout(()=>{document.getElementById(a)?.getElementsByTagName("input")[0]?.focus()},10)}finishEdit(){if(this.editedEntity&&this.editedEntityControl&&this.editedEntityControl.valid){const{Rate:e,CountryName:a,Prefix:s}=this.editedEntityControl.value;Object.assign(this.editedEntity,{Rate:e,CountryName:a,Prefix:s}),this.updateValidationState()}this.editedEntity=void 0,this.editedEntityControl=void 0,this.cd.markForCheck()}updateValidationState(){const e=this.items$.value.reduce((a,s)=>Object.assign(a,{[s.Prefix||""]:(a[s.Prefix||""]||[]).concat(s)}),{});this.duplicatedPrefixes=Object.keys(e).filter(a=>a&&e[a].length>1),this.duplicatedPrefixesError=this.duplicatedPrefixesError&&this.duplicatedPrefixes.length>0,this.cd.markForCheck()}createControl(e){return new u.gE({Id:new u.MJ(e.Id,{nonNullable:!0}),CountryName:new u.MJ(e.CountryName,{nonNullable:!0,validators:u.k0.required}),Prefix:new u.MJ(e.Prefix,{nonNullable:!0,validators:u.k0.required}),Rate:new u.MJ(e.Rate,{nonNullable:!0,validators:u.k0.required}),ReadOnly:new u.MJ(e.ReadOnly,{nonNullable:!0,validators:u.k0.required})})}deleteEntity(e,a){a.stopPropagation(),this.finishEdit();const s=this.controls.controls.findIndex(T=>T.value.Id===e.Id);s>=0&&this.controls.removeAt(s);const l=this.items$.value,g=l.indexOf(e);this.items$.next(l.slice(0,g).concat(l.slice(g+1)))}cleanup(){const e=this.items$.value;this.finishEdit(),this.items$.next(e.filter(a=>a.ReadOnly)),this.controls.clear()}export(e){this.fileDownloadService.download("/CallCostSettings/Pbx.ExportCallCosts()"),e.preventDefault(),e.stopPropagation()}import(){this.fileUpload.nativeElement.value="",this.fileUpload.nativeElement.click()}onFileSelected(e){if(!e||!e.length)return;const a=e[0],s=(0,B.j$)(a,{maxSizeMb:_e.uS,incorrectExtensionText:"_i18n.IncorrectTemplateFormat",allowedExtensions:["xml"]});s?this.modalService.error(s):this.uploadFile(a)}uploadFile(e){const a=new FormData;a.append("file",e,e.name),this.http.post(Ot.H+"/CallCostSettings/Import",a).pipe((0,tt.n)(()=>this.callCostApiService.listCallCostSettings({})),(0,nt.Tg)(this.modalService)).subscribe(s=>{this.items$.next(s.value??[])})}submit$=()=>{if(this.finishEdit(),this.duplicatedPrefixes.length)return this.duplicatedPrefixesError=!0,this.cd.markForCheck(),it.w;const e=this.items$.value.map(a=>this.addedItems.includes(a)?{...a,Id:void 0}:a);return this.callCostApiService.updateCost({callCostSettingsUpdateCostRequestBody:{costs:e}})};static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-call-costs-modal"]],viewQuery:function(a,s){if(1&a&&t.GBs(Oe,5),2&a){let l;t.mGM(l=t.lsd())&&(s.fileUpload=l.first)}},hostVars:2,hostBindings:function(a,s){1&a&&t.bIt("keydown.enter",function(){return s.onEnter()},t.EBC)("click",function(){return s.onClick()}),2&a&&t.AVh("modal-lg",!0)},features:[t.Vt3],decls:45,vars:31,consts:[["file",""],["header","_i18n.CallCosts","okText","_i18n.Save",3,"submitted","buttons","submit$","disableSubmitOnEnter"],[1,"button-group","border-0","py-0"],["type","file","hidden","","accept",".xml",3,"change"],["type","button","data-qa","add-button",1,"btn","btn-primary",3,"click"],["type","button","data-qa","import-button",1,"btn","btn-primary",3,"click"],["type","button","data-qa","export-button",1,"btn","btn-primary",3,"click"],["type","button","data-qa","cleanup-button",1,"btn","btn-primary",3,"click"],[3,"formControl"],["data-qa","duplicate-warning",1,"text-error","px-4","py-2","border-bottom"],[1,"scrollable-table","mb-3"],[1,"col-size-250"],[1,"col-size-50"],[1,"actions"],[1,"pointer"],[1,"pointer",3,"click"],[3,"id"],["data-qa","country-name",3,"formControl","maxlength"],["data-type","country-name",1,"form-control","line-clamp-1"],["data-qa","prefix",3,"formControl"],["data-type","prefix",1,"form-control","line-clamp-1"],["data-qa","rate",3,"formControl","integer","min"],["data-type","rate",1,"form-control"],["type","button","data-qa","delete-btn","app-trash-alt-solid-icon","",1,"btn","btn-sm","btn-plain",3,"click"],["colspan","4"],[3,"pageChanged","currentPage","itemsPerPage","totalItems","showBoundaryLinks"]],template:function(a,s){if(1&a){const l=t.RV6();t.j41(0,"app-modal-dialog",1),t.bIt("submitted",function(){return s.onSubmit()}),t.j41(1,"div",2)(2,"input",3,0),t.bIt("change",function(){r.eBV(l);const T=t.sdS(3);
1return r.Njj(s.onFileSelected(T.files))}),t.k0s(),t.j41(4,"button",4),t.bIt("click",function(){return s.addEntity()}),t.nrm(5,"app-plus-solid-icon"),t.j41(6,"span"),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"button",5),t.bIt("click",function(){return s.import()}),t.nrm(10,"app-up-to-line-solid-icon"),t.j41(11,"span"),t.EFF(12),t.nI1(13,"translate"),t.k0s()(),t.j41(14,"button",6),t.bIt("click",function(T){return s.export(T)}),t.nrm(15,"app-arrow-from-bottom-solid-icon"),t.j41(16,"span"),t.EFF(17),t.nI1(18,"translate"),t.k0s()(),t.j41(19,"button",7),t.bIt("click",function(){return s.cleanup()}),t.nrm(20,"app-trash-alt-solid-icon"),t.j41(21,"span"),t.EFF(22),t.nI1(23,"translate"),t.k0s()()(),t.nrm(24,"search-bar",8),t.nVh(25,Te,3,4,"div",9),t.j41(26,"table",10)(27,"thead")(28,"tr")(29,"th",11),t.EFF(30),t.nI1(31,"translate"),t.k0s(),t.j41(32,"th",12),t.EFF(33),t.nI1(34,"translate"),t.k0s(),t.j41(35,"th",12),t.EFF(36),t.nI1(37,"translate"),t.k0s(),t.nrm(38,"th",13),t.k0s()(),t.j41(39,"tbody"),t.Z7z(40,ke,12,10,"tr",14,t.fX1),t.nI1(42,"async"),t.k0s(),t.nVh(43,Ae,6,8,"tfoot"),t.nI1(44,"async"),t.k0s()()}2&a&&(t.Y8G("buttons",s.buttons)("submit$",s.submit$)("disableSubmitOnEnter",!0),t.R7$(7),t.JRh(t.bMT(8,13,"_i18n.Add")),t.R7$(5),t.JRh(t.bMT(13,15,"_i18n.Import")),t.R7$(5),t.JRh(t.bMT(18,17,"_i18n.Export")),t.R7$(5),t.JRh(t.bMT(23,19,"_i18n.Cleanup")),t.R7$(2),t.Y8G("formControl",s.search),t.R7$(),t.vxM(s.duplicatedPrefixesError?25:-1),t.R7$(5),t.JRh(t.bMT(31,21,"_i18n.CountryName")),t.R7$(3),t.JRh(t.bMT(34,23,"_i18n.Prefix")),t.R7$(3),t.JRh(t.bMT(37,25,"_i18n.Rate")),t.R7$(4),t.Dyx(t.bMT(42,27,s.displayedItems$)),t.R7$(3),t.vxM((t.bMT(44,29,s.totalFilteredItems$)??0)>s.itemsPerPage?43:-1))},dependencies:[m.p,be.K,ye.s,Me.I,xt.d,Pe.L,u.X1,u.BC,u.tU,u.l_,rt.m,xe.B,lt.u4,h.D9,p.Jj],styles:["table.scrollable-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:not(:first-child){padding-left:calc(var(--input-padding-x) + 1px)}table.scrollable-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:0 var(--spacer-s) 0 0}table.scrollable-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{padding-left:calc(var(--spacer) - var(--input-padding-x) - 1px)}table.scrollable-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   span.form-control[_ngcontent-%COMP%]{border-color:transparent!important;background-color:transparent!important}table.scrollable-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   field-input[_ngcontent-%COMP%], table.scrollable-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   field-input-number[_ngcontent-%COMP%]{margin:0}"]})}return n})();var ot=o(59882),ft=o(93049),Le=o(51046),dt=o(83188);let De=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-file-alt-solid-icon"],["","app-file-alt-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512"],["d","M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]],template:function(a,s){1&a&&(r.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return n})(),we=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-euro-sign-solid-icon"],["","app-euro-sign-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M48.1 240c-.1 2.7-.1 5.3-.1 8v16c0 2.7 0 5.3 .1 8H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H60.3C89.9 419.9 170 480 264 480h24c17.7 0 32-14.3 32-32s-14.3-32-32-32H264c-57.9 0-108.2-32.4-133.9-80H256c17.7 0 32-14.3 32-32s-14.3-32-32-32H112.2c-.1-2.6-.2-5.3-.2-8V248c0-2.7 .1-5.4 .2-8H256c17.7 0 32-14.3 32-32s-14.3-32-32-32H130.1c25.7-47.6 76-80 133.9-80h24c17.7 0 32-14.3 32-32s-14.3-32-32-32H264C170 32 89.9 92.1 60.3 176H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H48.1z"]],template:function(a,s){1&a&&(r.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return n})();var Ve=o(57202);let Be=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-comments-alt-solid-icon"],["","app-comments-alt-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512"],["d","M416 224V64c0-35.3-28.7-64-64-64H64C28.7 0 0 28.7 0 64v160c0 35.3 28.7 64 64 64v54.2c0 8 9.1 12.6 15.5 7.8l82.8-62.1H352c35.3.1 64-28.6 64-63.9zm96-64h-64v64c0 52.9-43.1 96-96 96H192v64c0 35.3 28.7 64 64 64h125.7l82.8 62.1c6.4 4.8 15.5.2 15.5-7.8V448h32c35.3 0 64-28.7 64-64V224c0-35.3-28.7-64-64-64z"]],template:function(a,s){1&a&&(r.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return n})();var He=o(30646);let Ge=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-microchip-ai-solid-icon"],["","app-microchip-ai-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M176 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64c-35.3 0-64 28.7-64 64H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64v56H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64v56H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64c0 35.3 28.7 64 64 64v40c0 13.3 10.7 24 24 24s24-10.7 24-24V448h56v40c0 13.3 10.7 24 24 24s24-10.7 24-24V448h56v40c0 13.3 10.7 24 24 24s24-10.7 24-24V448c35.3 0 64-28.7 64-64h40c13.3 0 24-10.7 24-24s-10.7-24-24-24H448V280h40c13.3 0 24-10.7 24-24s-10.7-24-24-24H448V176h40c13.3 0 24-10.7 24-24s-10.7-24-24-24H448c0-35.3-28.7-64-64-64V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H280V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H176V24zm32 152c6.4 0 12.1 3.8 14.7 9.6l42 96 14 32c3.5 8.1-.1 17.5-8.2 21.1s-17.5-.2-21.1-8.2L239.5 304H176.5l-9.8 22.4c-3.5 8.1-13 11.8-21.1 8.2s-11.8-13-8.2-2
11.1l14-32 42-96c2.5-5.8 8.3-9.6 14.7-9.6zm17.5 96L208 231.9 190.5 272h35.1zM336 176c8.8 0 16 7.2 16 16V320c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16z"]],template:function(a,s){1&a&&(r.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return n})(),Qe=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-screen-users-solid-icon"],["","app-screen-users-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M96 0C60.7 0 32 28.7 32 64V248.4C49 233.2 71.4 224 96 224V64l448 0V224c24.6 0 47 9.2 64 24.4V64c0-35.3-28.7-64-64-64H96zm64 320A64 64 0 1 0 32 320a64 64 0 1 0 128 0zM0 480c0 17.7 14.3 32 32 32H160c17.7 0 32-14.3 32-32c0-35.3-28.7-64-64-64H64c-35.3 0-64 28.7-64 64zM384 320a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zM224 480c0 17.7 14.3 32 32 32H384c17.7 0 32-14.3 32-32c0-35.3-28.7-64-64-64H288c-35.3 0-64 28.7-64 64zm320-96a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-35.3 0-64 28.7-64 64c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32c0-35.3-28.7-64-64-64H512z"]],template:function(a,s){1&a&&(r.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return n})();var Ne=o(68931),Xe=o(65756);let Ue=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-user-friends-solid-icon"],["","app-user-friends-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c2
16.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"]],template:function(a,s){1&a&&(r.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}return n})();var Ct=o(8516);const We=["*"],Je=(n,c)=>c.routerLink,ze=(n,c)=>c.href;function Ye(n,c){1&n&&t.nrm(0,"app-user-alt-solid-icon",2)}function Ke(n,c){1&n&&t.nrm(0,"app-square-list-solid-icon",2)}function Ze(n,c){1&n&&t.nrm(0,"app-screen-users-solid-icon",2)}function qe(n,c){1&n&&t.nrm(0,"app-comments-alt-solid-icon",2)}function tn(n,c){1&n&&t.nrm(0,"app-user-friends-solid-icon",2)}function en(n,c){1&n&&t.nrm(0,"app-gear-solid-icon",2)}function nn(n,c){1&n&&t.nrm(0,"app-microchip-ai-solid-icon",3)}function on(n,c){if(1&n&&t.nrm(0,"p",5),2&n){const e=t.XpG();t.Y8G("translate",e.officeCard.descHint)}}function an(n,c){if(1&n&&(t.j41(0,"span",10),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.JRh(t.bMT(2,1,e.badge))}}function sn(n,c){if(1&n&&(t.j41(0,"a",7),t.nrm(1,"lucide-icon",9),t.EFF(2),t.nI1(3,"translate"),t.nVh(4,an,3,3,"span",10),t.k0s()),2&n){const e=t.XpG().$implicit,a=t.XpG();t.Y8G("routerLink",e.routerLink),t.BMQ("data-qa",e.qaId),t.R7$(),t.Y8G("img",a.ChevronRight),t.R7$(),t.SpI(" ",t.bMT(3,5,e.name)," "),t.R7$(2),t.vxM(e.badge?4:-1)}}function rn(n,c){if(1&n&&(t.j41(0,"span",8),t.nrm(1,"lucide-icon",9),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&n){const e=t.XpG().$implicit,a=t.XpG();t.BMQ("data-qa",e.qaId),t.R7$(),t.Y8G("img",a.ChevronRight),t.R7$(),t.SpI(" ",t.bMT(3,3,e.name)," ")}}function ln(n,c){1&n&&t.nVh(0,sn,5,7,"a",7)(1,rn,4,5,"span",8),2&n&&t.vxM(c.$implicit.disabled?1:0)}function cn(n,c){if(1&n&&(t.j41(0,"a",6),t.nrm(1,"lucide-icon",9),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&n){const e=c.$implicit,a=t.XpG();t.Y8G("href",e.href,t.B4B),t.BMQ("data-qa",e.qaId),t.R7$(),t.Y8G("img",a.ChevronRight),t.R7$(),t.SpI(" ",t.bMT(3,4,e.name)," ")}}let dn=(()=>{class n{officeCard;disableSingleClick;get routerLinks(){return(this.officeCard.links??[]).filter(e=>!!e.routerLink&&!e.hidden)}get hrefLinks(){return(this.officeCard.links??[]).filter(e=>!!e.href&&!e.hidden)}get singleRouterLink(){return this.disableSingleClick||1!==this.routerLinks.length?null:this.routerLinks[0].routerLink}OfficeCardIcon=C;ChevronRight=Ct.c_$;static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-office-card"]],inputs:{officeCard:"officeCard",disableSingleClick:"disableSingleClick"},ngContentSelectors:We,decls:18,vars:6,consts:[[1,"office-card","card","p-3","d-flex","flex-column","gap-2",3,"routerLink"],[1,"header-icon","d-flex","flex-row","align-items-center","gap-2"],[1,"svg-sm"],[1,"svg-md"],[1,"mb-0"],[3,"translate"],["target","_blank",3,"href"],[3,"routerLink"],[1,"text-body-secondary"],[3,"img"],["data-qa","badge-text",1,"badge","bg-brand","text-uppercase","p-1"]],template:function(a,s){if(1&a&&(t.NAR(),t.j41(0,"a",0)(1,"div",1),t.nVh(2,Ye,1,0,"app-user-alt-solid-icon",2)(3,Ke,1,0,"app-square-list-solid-icon",2)(4,Ze,1,0,"app-screen-users-solid-icon",2)(5,qe,1,0,"app-comments-alt-solid-icon",2)(6,tn,1,0,"app-user-friends-solid-icon",2)(7,en,1,0,"app-gear-solid-icon",2)(8,nn,1,0,"app-microchip-ai-solid-icon",3),t.j41(9,"h5",4),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.nVh(12,on,1,1,"p",5),t.Z7z(13,ln,2,1,null,null,Je),t.Z7z(15,cn,4,6,"a",6,ze),t.SdG(17),t.k0s()),2&a){let l;t.Y8G("routerLink",s.singleRouterLink),t.R7$(2),t.vxM((l=s.officeCard.selectedIcon)===s.OfficeCardIcon.Users?2:l===s.OfficeCardIcon.Reports?3:l===s.OfficeCardIcon.Queues?4:l===s.OfficeCardIcon.Chats?5:l===s.OfficeCardIcon.ExtRg?6:l===s.OfficeCardIcon.System?7:l===s.OfficeCardIcon.ArtificialIntelligence?8:-1),t.R7$(8),t.JRh(t.bMT(11,4,s.officeCard.cardTitle)),t.R7$(2),t.vxM(s.officeCard.descHint?12:-1),t.R7$(),t.Dyx(s.routerLinks),t.R7$(2),t.Dyx(s.hrefLinks)}},dependencies:[h.Mm,ft.iI,ft.Wk,Be,He.n,Ge,Qe,Ne.H,Xe.i,Ue,Ct.flO,Ct.WGl,h.D9],styles:[".office-card[_ngcontent-%COMP%]{height:100%;margin:0}.office-card[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;margin-top:auto;align-items:center;color:var(--bg-secondary);gap:3px;cursor:pointer}.office-card[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--bg-secondary-hover)}.office-card[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   lucide-icon[_ngcontent-%COMP%]{--svg-color: currentColor;display:contents}.office-card[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.office-card[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{margin-top:-10px}"]})}return n})();var pn=o(23773);const Tt=(n,c)=>c.cardTitle;function gn(n,c){if(1&n){const e=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){r.eBV(e);const s=t.XpG();
1return r.Njj(s.purge())}),t.nrm(1,"app-trash-alt-solid-icon"),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"button",8),t.bIt("click",function(){r.eBV(e);const s=t.XpG();return r.Njj(s.callTypes())}),t.nrm(6,"app-file-alt-solid-icon"),t.j41(7,"span"),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.j41(10,"button",9),t.bIt("click",function(){r.eBV(e);const s=t.XpG();return r.Njj(s.callCosts())}),t.nrm(11,"app-euro-sign-solid-icon"),t.j41(12,"span"),t.EFF(13),t.nI1(14,"translate"),t.k0s()()}2&n&&(t.R7$(3),t.JRh(t.bMT(4,3,"_i18n.Purge")),t.R7$(5),t.JRh(t.bMT(9,5,"_i18n.CallTypes")),t.R7$(5),t.JRh(t.bMT(14,7,"_i18n.CallCosts")))}function un(n,c){if(1&n&&t.nrm(0,"app-office-card",10),2&n){const e=t.XpG().$implicit;t.Y8G("disableSingleClick",!0)("officeCard",e)}}function mn(n,c){if(1&n&&t.nVh(0,un,1,2,"app-office-card",10),2&n){const e=c.$implicit,a=t.XpG();t.vxM(a.hasVisibleItems(e)?0:-1)}}function hn(n,c){if(1&n&&t.nrm(0,"app-office-card",10),2&n){const e=t.XpG().$implicit;t.Y8G("disableSingleClick",!0)("officeCard",e)}}function fn(n,c){if(1&n&&t.nVh(0,hn,1,2,"app-office-card",10),2&n){const e=c.$implicit,a=t.XpG();t.vxM(a.hasVisibleItems(e)?0:-1)}}let Cn=(()=>{class n{modalService=(0,r.WQX)(v.B);route=(0,r.WQX)(ot.nX);purgeApiService=(0,r.WQX)(Le.o);callTypesApiService=(0,r.WQX)(st);lab=(0,pn.D)();isSystemAdmin;systemParameters=this.route.snapshot.data.systemParameters??{};constructor(){const e=!!this.systemParameters.IsChatLogEnabled,a=this.route.snapshot.data.isAdmin;this.isSystemAdmin=this.route.snapshot.data.isSystemAdmin,this.firstColumn=[{selectedIcon:C.ArtificialIntelligence,cardTitle:"_i18n.AiSummaryAndSentiment",permission:!0,links:[{name:"_i18n.CallLog",routerLink:"/office/reports/call-reports",qaId:"call-reports-link"},{name:"_i18n.InboundCalls",routerLink:"/office/reports/inbound-calls",qaId:"inbound-calls-link"},{name:"_i18n.OutboundCalls",routerLink:"/office/reports/outbound-calls",qaId:"outbound-calls-link"},{name:"_i18n.ExtStatistics",routerLink:"/office/reports/extension-statistic",qaId:"ext-statistics-link"},{name:"_i18n.RingGroups",routerLink:"/office/reports/ring-group",qaId:"rg-statistics-link"},{name:"_i18n.AnsweredQueueCalls",routerLink:"/office/reports/queue-answered-calls-by-wait-time",qaId:"q-answered-waiting-time-link"}]},{selectedIcon:C.Reports,cardTitle:"_i18n.ReportsLogs",permission:!0,links:V(!e,!a,!this.lab())},{selectedIcon:C.System,cardTitle:"_i18n.System",permission:!0,links:b(!a)},{selectedIcon:C.Queues,cardTitle:"_i18n.ReportsQHeader",permission:!0,links:[{name:"_i18n.AbandonedQueueCalls",routerLink:"/office/reports/abandoned-queue-calls",qaId:"abandoned-q-calls-link"},{name:"_i18n.QueueCallbacks",routerLink:"/office/reports/call-backs",qaId:"q-callbacks-link"},{name:"_i18n.QueueFailedCallbacks",routerLink:"/office/reports/queue-failed-callbacks",qaId:"q-failed-callbacks-link"},{name:"_i18n.SLAStatistics",routerLink:"/office/reports/statistics-sla",qaId:"sla-statistics-link"},{name:"_i18n.SLABreaches",routerLink:"/office/reports/breaches-sla",qaId:"sla-breaches-link"},{name:"_i18n.QueuePerformanceOverview",routerLink:"/office/reports/queue-performance-overview",qaId:"q-performance-overview-link"},{name:"_i18n.DetailedQueueStatistics",routerLink:"/office/reports/detailed-queue-statistics",qaId:"detailed-q-statistics-link"},{name:"_i18n.TeamQueueGeneralStatistics",routerLink:"/office/reports/team-queue-general-statistics",qaId:"team-q-general-statistics-link"}]}],this.secondColumn=[{selectedIcon:C.Users,cardTitle:"_i18n.AgentStatistics",permission:!0,links:I.agentStatistics},{selectedIcon:C.ExtRg,cardTitle:"_i18n.ReportsExtRgStatsHeader",permission:!0,links:[{name:"_i18n.UserActivity",routerLink:"/office/reports/user-activity",qaId:"user-activity-link"},{name:"_i18n.CallDistribution",routerLink:"/office/reports/call-distribution",qaId:"call-distribution-link"},{name:"_i18n.CallCostByExtGroup",routerLink:"/office/reports/call-cost-by-extension-group",qaId:"call-cost-by-ext-group-link"}]},{selectedIcon:C.Chats,cardTitle:"_i18n.ReportsChatsHeader",permission:!0,links:N(!e)}]}firstColumn;secondColumn;purge(){this.modalService.showDialog(M.o,{description:"_i18n.PurgeCallModalText"}).pipe((0,nt.Sf)(),(0,tt.n)(e=>this.purgeApiService.purgeCalls({actionImportPurgeCallsRequestBody:{period:e}}))).subscribe({next:()=>{this.modalService.messageBox("_i18n.PurgeStartedMsg","_i18n.PurgeStartedHeader")},error:e=>this.modalService.error(e)})}callTypes(){this.callTypesApiService.getCallTypesSettings({}).pipe((0,tt.n)(e=>this.modalService.showComponent(me,{initialState:{callTypesSettings:e}}))).pipe((0,ht.s)(1)).subscribe()}callCosts(){this.modalService.showComponent(Fe,{keyboard:!1,focus:!1,backdrop:"static"})}hasVisibleItems(e){return(e.links??[]).some(a=>!a.hidden)}static \u0275fac=function(a){return new(a||n)};
1static \u0275cmp=t.VBU({type:n,selectors:[["app-reports"]],decls:17,vars:5,consts:[["header","_i18n.Reports",3,"helpUrl"],["top-bar","",1,"button-group"],["data-qa","my-reports","routerLink","my-reports",1,"btn","btn-primary"],[1,"scrollable"],[1,"container-xxl"],[1,"row","py-4","px-3"],[1,"col-xl-6"],["data-qa","purge","type","button",1,"btn","btn-primary",3,"click"],["data-qa","call-types","type","button",1,"btn","btn-primary",3,"click"],["data-qa","call-costs","type","button",1,"btn","btn-primary",3,"click"],[1,"d-block","mb-4",3,"disableSingleClick","officeCard"]],template:function(a,s){1&a&&(t.j41(0,"app-page",0)(1,"div",1),t.nVh(2,gn,15,9),t.j41(3,"a",2),t.nrm(4,"app-calendar-alt-light-icon"),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()(),t.j41(8,"div",3)(9,"div",4)(10,"div",5)(11,"div",6),t.Z7z(12,mn,1,1,null,null,Tt),t.k0s(),t.j41(14,"div",6),t.Z7z(15,fn,1,1,null,null,Tt),t.k0s()()()()()),2&a&&(t.Y8G("helpUrl","_i18n.ReportsUri"),t.R7$(2),t.vxM(s.isSystemAdmin?2:-1),t.R7$(4),t.JRh(t.bMT(7,3,"_i18n.MyReports")),t.R7$(6),t.Dyx(s.firstColumn),t.R7$(3),t.Dyx(s.secondColumn))},dependencies:[dt.H,xt.d,De,we,ft.Wk,Ve.e,dn,h.D9],encapsulation:2})}return n})();var Rt=o(94588),$t=o(4164),St=o(47148),It=o(80492),Et=o(99100),jt=o(76626),kt=o(49382),At=o(26346),Ft=o(37402),Lt=o(12168),Dt=o(1088),wt=o(58500),Vt=o(41308),Bt=o(7932),Ht=o(14059),Gt=o(28962),Qt=o(32573),Nt=o(30670),Y=o(43676),Xt=o(51656),at=o(46941),vn=o(45764),Ut=o(70514),_n=o(90836),bn=o(45984);const yn=(n,c)=>c.label;function Mn(n,c){if(1&n&&(t.j41(0,"tr")(1,"td"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"td"),t.EFF(5),t.k0s()()),2&n){const e=c.$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,e.label),":"),t.R7$(3),t.JRh(e.value)}}function Pn(n,c){1&n&&(t.j41(0,"div",1)(1,"table",4)(2,"tbody"),t.Z7z(3,Mn,6,4,"tr",null,yn),t.k0s()()()),2&n&&(t.R7$(3),t.Dyx(c))}function xn(n,c){if(1&n&&(t.j41(0,"div")(1,"header"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"app-json-viewer",5),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.JRh(t.bMT(3,2,"_i18n.AuditLogOldValue")),t.R7$(2),t.Y8G("jsonString",e.PrevData)}}function On(n,c){if(1&n&&(t.j41(0,"div")(1,"header"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"app-json-viewer",5),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.JRh(t.bMT(3,2,"_i18n.AuditLogNewValue")),t.R7$(2),t.Y8G("jsonString",e.NewData)}}function Tn(n,c){if(1&n&&(t.j41(0,"div",2),t.nVh(1,xn,5,4,"div"),t.nVh(2,On,5,4,"div"),t.k0s()),2&n){const e=c;t.R7$(),t.vxM(e.PrevData?1:-1),t.R7$(),t.vxM(e.NewData?2:-1)}}function Rn(n,c){1&n&&(t.j41(0,"div",3),t.nrm(1,"div",6),t.k0s())}let Wt=(()=>{class n{location=(0,r.WQX)(bn.aZ);route=(0,r.WQX)(ot.nX);auditLogsDataSource=(0,r.WQX)(at.Gt);translateService=(0,r.WQX)(h.c$);auditLog$=this.route.params.pipe((0,H.T)(e=>e.id),(0,Pt.p)(Boolean),(0,Mt.F)(),(0,tt.n)(e=>this.auditLogsDataSource.requestAuditLogById(Number.parseInt(e,10))),(0,et.H9)());auditLogProps$=this.auditLog$.pipe((0,H.T)(e=>[{label:"_i18n.ReportsDate",value:(0,vn.Y)(e.Timestamp)??""},{label:"_i18n.ReportsAuditUserName",value:e.UserName??""},{label:"_i18n.IpAddress",value:e.Ip??""},{label:"_i18n.ReportsAuditObjectType",value:this.translateService.instant((0,Ut.b$)(e.ObjectType??void 0)??"")},{label:"_i18n.ReportsAuditObjectName",value:e.ObjectName??""},{label:"_i18n.ReportsAuditAction",value:this.translateService.instant((0,Ut.fE)(e.Action??void 0)??"")}]));static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-audit-log-details"]],features:[t.Jv_([at.Gt])],decls:6,vars:7,consts:[["header","_i18n.AuditLogDetails",3,"back","helpUrl"],[1,"card","p-3"],["data-qa","diff",1,"diff","card","p-3"],[1,"loaderContainer"],["data-qa","properties",1,"properties-table"],[3,"jsonString"],[1,"loader"]],template:function(a,s){if(1&a&&(t.j41(0,"app-page",0),t.bIt("back",function(){return s.location.back()}),t.nVh(1,Pn,5,0,"div",1),t.nI1(2,"async"),t.nVh(3,Tn,3,2,"div",2),t.nI1(4,"async"),t.vZN(5,Rn,2,0,"div",3),t.k0s()),2&a){let l,g;t.Y8G("helpUrl","_i18n.ReportsUri"),t.R7$(),t.vxM((l=t.bMT(2,3,s.auditLogProps$))?1:-1,l),t.R7$(2),t.vxM((g=t.bMT(4,5,s.auditLog$))?3:5,g)}},dependencies:[dt.H,_n.g,h.D9,p.Jj],styles:['@media(max-width:1399.98px){.d-xxl-down-none[_ngcontent-%COMP%], .xxl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:1199.98px){.d-xl-down-none[_ngcontent-%COMP%], .xl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:991.98px){.d-lg-down-none[_ngcontent-%COMP%], .lg-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:767.98px){.d-md-down-none[_ngcontent-%COMP%], .md-visible[_ngcontent-%COMP%]{display:none!important}}@media(max-width:575.98px){.d-sm-down-none[_ngcontent-%COMP%], .sm-visible[_ngcontent-%COMP%]{display:none!important}}.page-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{min-height:auto;display:inline-flex;flex:none;background-color:var(--background);padding:0}.page-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{margin-right:10px}.scrollable-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], table.scrollable-table[_ngcontent-%COMP%]{min-width:700px;overflow-x:auto}@media(min-width:768px){.scrollable-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(1 of:not(.actions):not(.icon)), table.scrollable-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(1 of:not(.actions):not(.icon)){width:100%}}.grouped-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]:first-child{position:sticky;top:0;z-index:1}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%], .grouped-table[_ngcontent-%COMP%]   tr.table-group-header[_ngcontent-%COMP%]{cursor:pointer;background:var(--bg-table-group);position:sticky;top:30px;z-index:1}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{font-weight:400}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]:first-child{white-space:nowrap}.grouped-table[_ngcontent-%COMP%]   .table-group-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{padding-left:40px}.grouped-table[_ngcontent-%COMP%]   .dropdown-arrow-icon[_ngcontent-%COMP%]{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent;transition:.3s transform;transform:rotate(0)}.grouped-table[_ngcontent-%COMP%]   .dropdown-arrow-icon.dropdown-arrow-icon-rotated[_ngcontent-%COMP%]{transform:rotate(-90deg)}',".diff[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:16px}.diff[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-direction:column;max-width:calc(50% - 8px)}.diff[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:only-child{max-width:100%}.diff[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]{text-shadow:.25px 0 #333333;margin-bottom:.5em}.loaderContainer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:400px;max-height:100%}table.properties-table[_ngcontent-%COMP%]{width:fit-content;border-spacing:0;margin-bottom:0;font-size:.9em}table.properties-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:0 5px}table.properties-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{text-align:right}"],changeDetection:0})}return n})();
1var $n=o(19060),pt=o(82199),Sn=o(54381),vt=o(7673),Jt=o(60007),zt=o(30689),Yt=o(50139),Kt=o(76034),En=o(51702),Zt=o(93785),qt=o(64438),gt=o(74651),jn=o(85343),kn=o(15708),An=o(20129),te=o(30407),Fn=o(45678),Ln=o(96794),Dn=o(54327),ee=o(19037);let ne=(()=>{class n{scheduledReportsApiService=(0,r.WQX)(qt.u);resolveData(e=1,a=lt.z9,s=""){return this.scheduledReportsApiService.listScheduledReport({$count:!0,$skip:(e-1)*a,$top:a}).pipe((0,H.T)(l=>({value:l.value??[],totalItems:l["@odata.count"]})))}static \u0275fac=function(a){return new(a||n)};static \u0275prov=r.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Vn=o(4801),Bn=o(52101),Hn=o(83185),oe=o(75957),ae=o(15518),se=o(73724),ie=o(16308);const Gn={AbandonedChats:Ht.lE,AgentInQueueStatistics:wt.lE,AgentLoginHistory:Qt.lE,AuditLogs:at.lE,CallCostByExtensionDept:Dt.lE,CallLogs:Gt.lE,ChatLogs:i.lE,ExtensionStatistics:Bt.lE,ExtensionsStatisticsByRingGroups:Nt.lE,InboundRules:null,None:null,QueueAbandonedCalls:St.lE,QueueAgentsChat:$t.lE,QueueAnsweredCallsByWaitingTime:It.lE,QueueCallbacks:Et.lE,QueueChatPerformance:Rt.lE,QueueDetailedStatistics:Lt.lE,QueueFailedCallbacks:jt.lE,QueuePerformanceOverview:Ft.lE,QueueTeamGeneralStatistics:Vt.lE,RingGroups:null,SlaBreaches:At.lE,SlaStatistics:kt.lE,InboundCalls:oe.lE,OutBoundCalls:ae.lE,UserActivity:se.lE,CallDistribution:ie.lE};var Nn=o(29325);const Xn={AbandonedChats:"_i18n.AbandonedChats",AgentInQueueStatistics:"_i18n.AgentInQueueStatistics",AgentLoginHistory:"_i18n.AgentLoginHistory",AuditLogs:"_i18n.AuditLogs",CallCostByExtensionDept:"_i18n.CallCostByExtGroup",CallLogs:"_i18n.CallLog",ChatLogs:"_i18n.ChatLog",ExtensionStatistics:"_i18n.ExtStatistics",InboundRules:"_i18n.InboundRules",None:"",QueueAbandonedCalls:"_i18n.AbandonedQueueCalls",QueueAgentsChat:"_i18n.QueueAgentsChat",QueueAnsweredCallsByWaitingTime:"_i18n.AnsweredQueueCalls",QueueCallbacks:"_i18n.QueueCallbacks",QueueChatPerformance:"_i18n.QueueChatPerformance",QueueDetailedStatistics:"_i18n.DetailedQueueStatistics",QueueFailedCallbacks:"_i18n.QueueFailedCallbacks",QueuePerformanceOverview:"_i18n.QueuePerformanceOverview",QueueTeamGeneralStatistics:"_i18n.TeamQueueGeneralStatistics",RingGroups:"_i18n.RingGroups",SlaBreaches:"_i18n.SLABreaches",SlaStatistics:"_i18n.SLAStatistics",ExtensionsStatisticsByRingGroups:"_i18n.RingGroups",InboundCalls:"_i18n.InboundCalls",OutBoundCalls:"_i18n.OutboundCalls",UserActivity:"_i18n.UserActivity",CallDistribution:"_i18n.CallDistribution"};let Un=(()=>{class n{transform(e){return null==e?"":Xn[e]}static \u0275fac=function(a){return new(a||n)};static \u0275pipe=t.EJ8({name:"appReportType",type:n,pure:!0})}return n})();const Wn=(n,c)=>c.Id,Jn=(n,c)=>c.label;function zn(n,c){1&n&&(t.j41(0,"tr")(1,"td",7),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&n&&(t.R7$(),t.Y8G("colSpan",6),t.R7$(),t.JRh(t.bMT(3,2,"_i18n.ReportsNoData")))}function Yn(n,c){if(1&n&&(t.j41(0,"span",9),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&n){const e=c.$implicit;t.R7$(),t.Lme("",t.bMT(2,2,e.label),": ",t.bMT(3,4,e.value))}}function Kn(n,c){if(1&n&&(t.j41(0,"a",15),t.bIt("click",function(a){return a.stopPropagation()}),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG().$implicit,a=t.XpG();t.Y8G("href",a.getReportLink(e),t.B4B),t.R7$(),t.SpI(" ",t.bMT(2,2,"_i18n.CheckReportLink")," ")}}function Zn(n,c){if(1&n){const e=t.RV6();t.j41(0,"tr",8),t.bIt("click",function(){const s=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.edit(s))}),t.j41(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.nI1(5,"appReportType"),t.nI1(6,"translate"),t.k0s(),t.j41(7,"td"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"td"),t.Z7z(11,Yn,4,6,"span",9,Jn),t.nI1(13,"async"),t.k0s(),t.j41(14,"td",10),t.nVh(15,Kn,3,4,"a",11),t.k0s(),t.j41(16,"td",3)(17,"row-action-button")(18,"li",12)(19,"button",13),t.bIt("click",function(){const s=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.edit(s))}),t.EFF(20),t.nI1(21,"translate"),t.k0s()(),t.j41(22,"li",12)(23,"button",14),t.bIt("click",function(){const s=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.delete(s))}),t.EFF(24),t.nI1(25,"translate"),t.k0s()()()()()}if(2&n){const e=c.$implicit,a=t.XpG();t.AVh("clickable",a.isReportEditable(e)),t.R7$(2),t.JRh(e.Name),t.R7$(2),t.JRh(t.bMT(6,13,t.bMT(5,11,e.ReportType))),t.R7$(4),t.JRh(t.bMT(9,15,a.getScheduleType(e))),t.R7$(3),t.Dyx(t.bMT(13,17,a.getLabels$
1(e))),t.R7$(4),t.vxM(a.isReportEditable(e)?15:-1),t.R7$(3),t.AVh("disabled",!a.isReportEditable(e)),t.R7$(),t.Y8G("disabled",!a.isReportEditable(e)),t.R7$(),t.SpI(" ",t.bMT(21,19,"_i18n.Edit")," "),t.R7$(4),t.SpI(" ",t.bMT(25,21,"_i18n.Delete")," ")}}let qn=(()=>{class n{api=(0,r.WQX)(qt.u);modalService=(0,r.WQX)(v.B);route=(0,r.WQX)(ot.nX);router=(0,r.WQX)(ot.Ix);cd=(0,r.WQX)(d.gRc);translate=(0,r.WQX)(h.c$);filterRefreshSrv=(0,r.WQX)(An.Z);destroy$=(0,r.WQX)(r.abz);pager;isChatLogsEnabled=!!this.route.snapshot.data.isChatLogsEnabled;scheduledReports=[];constructor(){const e=this.modalService,a=(0,r.WQX)(ne);this.pager=new Vn.f(this.destroy$,a,this.route.snapshot.data.scheduledReports),this.pager.pagedItems$.pipe((0,ct.pQ)(this.destroy$)).subscribe({next:l=>{this.scheduledReports=l.value||[],this.cd.markForCheck()},error:l=>e.error(l)})}getLabels$(e){if(!e.ReportLink)return(0,vt.of)([]);if(!this.reportFilterLabelsCache[e.ReportLink]){const a=new URLSearchParams(e.ReportLink.split("?")[1]??"").get("filter")??"",s=(0,Hn.Bl)(a,{});this.reportFilterLabelsCache[e.ReportLink]=function Qn(n,c,e){const a=(n&&Gn[n])?.().value??{};return(0,te.kO)(a,c,e)}(e.ReportType,s,this.filterRefreshSrv).pipe((0,H.T)(l=>(0,te.oQ)(l,this.translate,!1,s.search||"")),(0,et.H9)())}return this.reportFilterLabelsCache[e.ReportLink]}reportFilterLabelsCache={};getReportLink(e){return(0,Ot.T)()+e.ReportLink+`&${Fn.tc}=${(0,Ln.Cg)(new Date)}`}getScheduleType(e){return(0,Dn.$o)(e.ScheduleType)}isReportEditable(e){const s=e.ReportType&&[gt.G.ChatLogs,gt.G.QueueChatPerformance,gt.G.QueueAgentsChat,gt.G.AbandonedChats].includes(e.ReportType);return!(!this.isChatLogsEnabled&&s)}edit(e){this.isReportEditable(e)&&this.modalService.showComponent(kn.B,{initialState:{report:e}}).pipe(nt.nx).subscribe(()=>this.refresh())}delete(e){(0,Bn.qq)(this.modalService).pipe((0,tt.n)(()=>this.api.deleteScheduledReport({id:e.Id})),(0,nt.Y$)(),(0,nt.Tg)(this.modalService)).subscribe(()=>this.refresh())}goToReports(){this.router.navigate([".."],{relativeTo:this.route}).catch(jn.l)}refresh(){this.pager.refresh$.next()}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-scheduled-reports"]],hostVars:2,hostBindings:function(a,s){2&a&&t.AVh("modal-lg",!0)},decls:31,vars:26,consts:[["header","_i18n.MyReports",3,"back"],["full-width","",1,"scrollable-table"],[1,"w-fc"],[1,"actions"],[1,"clickable",3,"clickable"],["colspan","6"],[3,"pageChanged","currentPage","itemsPerPage","totalItems","showBoundaryLinks"],[1,"text-center",3,"colSpan"],[1,"clickable",3,"click"],[1,"pill"],["nowrap",""],["target","_blank",1,"link",3,"href"],["role","menuitem"],["data-qa","edit-schedule","type","button",1,"dropdown-item",3,"click","disabled"],["data-qa","delete-schedule","type","button",1,"dropdown-item",3,"click"],["target","_blank",1,"link",3,"click","href"]],template:function(a,s){1&a&&(t.j41(0,"app-page",0),t.bIt("back",function(){return s.goToReports()}),t.j41(1,"table",1)(2,"thead")(3,"tr")(4,"th"),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"th"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"th"),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"th"),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"th",2),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.nrm(19,"th",3),t.k0s()(),t.j41(20,"tbody"),t.nVh(21,zn,4,4,"tr"),t.Z7z(22,Zn,26,23,"tr",4,Wn),t.k0s(),t.j41(24,"tfoot")(25,"tr")(26,"td",5)(27,"app-paging",6),t.nI1(28,"async"),t.nI1(29,"async"),t.nI1(30,"async"),t.bIt("pageChanged",function(g){return s.pager.pageChanged(g)}),t.k0s()()()()()()),2&a&&(t.R7$(5),t.JRh(t.bMT(6,10,"_i18n.Name")),t.R7$(3),t.JRh(t.bMT(9,12,"_i18n.Type")),t.R7$(3),t.JRh(t.bMT(12,14,"_i18n.Schedule")),t.R7$(3),t.JRh(t.bMT(15,16,"_i18n.Filter")),t.R7$(3),t.JRh(t.bMT(18,18,"_i18n.ReportLink")),t.R7$(4),t.vxM(s.scheduledReports.length?-1:21),t.R7$(),t.Dyx(s.scheduledReports),t.R7$(5),t.Y8G("currentPage",t.bMT(28,20,s.pager.currentPage$))("itemsPerPage",t.bMT(29,22,s.pager.pageSize$))("totalItems",t.bMT(30,24,s.pager.totalCount$))("showBoundaryLinks",!0))},dependencies:[dt.H,Nn.I,lt.u4,h.D9,p.Jj,Un],styles:['@media(max-width:1399.98px){.d-xxl-down-none[_ngcontent-%COMP%], .xxl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:1199.98px){.d-xl-down-none[_ngcontent-%COMP%], .xl-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:991.98px){.d-lg-down-none[_ngcontent-%COMP%], .lg-visible[_ngcontent-%COMP%]{display:none}}@media(max-width:767.98px){.d-md-down-none[_ngcontent-%COMP%], .md-visible[_ngcontent-%COMP%]{display:none!important}}@media(max-width:575.98px){.d-sm-down-none[_ngcontent-%COMP%], .sm-visible[_ngcontent-%COMP%]{display:none!important}}.page-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{min-height:auto;display:inline-flex;flex:none;background-color:var(--background);padding:0}.page-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{margin-right:10px}.scrollable-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], table.scrollable-table[_ngcontent-%COMP%]{min-width:700px;overflow-x:auto}@media(min-width:768px){.scrollable-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(1 of:not(.actions):not(.icon)), table.scrollable-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(1 of:not(.actions):not(.icon)){width:100%}}.grouped-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]:first-child{position:sticky;top:0;z-index:1}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%], .grouped-table[_ngcontent-%COMP%]   tr.table-group-header[_ngcontent-%COMP%]{cursor:pointer;background:var(--bg-table-group);position:sticky;top:30px;z-index:1}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{font-weight:400}.grouped-table[_ngcontent-%COMP%]   .table-group-header[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]:first-child{white-space:nowrap}.grouped-table[_ngcontent-%COMP%]   .table-group-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{padding-left:40px}.grouped-table[_ngcontent-%COMP%]   .dropdown-arrow-icon[_ngcontent-%COMP%]{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent;transition:.3s transform;transform:rotate(0)}.grouped-table[_ngcontent-%COMP%]   .dropdown-arrow-icon.dropdown-arrow-icon-rotated[_ngcontent-%COMP%]{transform:rotate(-90deg)}',".pill[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:nowrap;white-space:nowrap;gap:2px;padding:1px 4px;background:var(--bg-button-secondary);border-radius:6px;margin:2px}"],changeDetection:0})}return n})();var to=o(81783),eo=o(64277),no=o(50942),oo=o(71747);const re=()=>{const n=(0,r.WQX)(no.L),c=(0,r.WQX)(ee.s);return n.getReportPeers({$filter:`Type in ('${oo.J.ExternalLine}
1')`,$select:["Number","Name","Id"],$orderby:["Number, Name"],$top:1,$skip:0}).pipe((0,ht.s)(1),(0,H.T)(e=>e.value?.[0]??void 0),(0,Z.W)(e=>c.handleError(e)))};var ao=o(67710),so=o(92996),io=o(59625),ro=o(11808);let lo=(()=>{class n{dataSource=(0,r.WQX)(at.Gt);fileDownloadService=(0,r.WQX)(yt.y);router=(0,r.WQX)(ot.Ix);tokenInfo=(0,r.WQX)(so.Z);back(){this.tokenInfo.getMyToken$().pipe((0,H.T)(e=>e.reports?["office","reports"]:["office"]),(0,tt.n)(e=>this.router.navigate(e))).subscribe()}downloadCsv(){this.fileDownloadService.download(this.dataSource.generateCSVDownloadLink(this.dataSource.parameters))}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=t.VBU({type:n,selectors:[["app-audit-logs-report"]],features:[t.Jv_([at.Gt])],decls:4,vars:3,consts:[["header","_i18n.AuditLogs",3,"back","helpUrl"],["header","",3,"exportClicked","disabled","showReportPrint"],["top-bar",""],[1,"scrollable-table"]],template:function(a,s){1&a&&(t.j41(0,"app-page",0),t.bIt("back",function(){return s.back()}),t.j41(1,"app-report-action-buttons",1),t.bIt("exportClicked",function(){return s.downloadCsv()}),t.k0s(),t.nrm(2,"app-audit-logs-filter",2)(3,"app-audit-logs-pager",3),t.k0s()),2&a&&(t.Y8G("helpUrl","_i18n.ReportsUri"),t.R7$(),t.Y8G("disabled",!s.dataSource.isReportAvailable)("showReportPrint",!0))},dependencies:[ao.$,dt.H,io.n,ro.Y],encapsulation:2,changeDetection:0})}return n})();const P=(0,En.N)("reports"),x=()=>(0,vt.of)(!0),co=[{path:"",component:Cn,canActivate:[P],resolve:{systemParameters:eo.M,isAdmin:Jt.ev,isSystemAdmin:Jt.Tp}},{path:"my-reports",component:qn,canActivate:[P],resolve:{scheduledReports:()=>{const n=(0,r.WQX)(ne),c=(0,r.WQX)(ee.s);return n.resolveData().pipe((0,Z.W)(e=>c.handleError(e)))},isChatLogsEnabled:()=>(0,r.WQX)(Sn.G).getSystemParameters().pipe((0,H.T)(n=>n.IsChatLogEnabled??!1),(0,Z.W)(()=>(0,vt.of)(!1)))}},{path:"system-telemetry",canActivate:[P],resolve:{reportsAvailable:x},children:[{path:"",pathMatch:"full",loadComponent:()=>Promise.all([o.e(2076),o.e(2437)]).then(o.bind(o,92437)).then(n=>n.SystemTelemetryComponent)},{path:":id",component:Wt}]},{path:"chats",canActivate:[P,pt.G],resolve:{reportsAvailable:x},component:i.dR},{path:"ring-group",canActivate:[P],resolve:{reportsAvailable:x},component:Nt.Fw},{path:"queue-chat-performance",canActivate:[P,pt.G],resolve:{reportsAvailable:x},component:Rt.Xw},{path:"queue-agents-chat-statistics",canActivate:[P,pt.G],resolve:{reportsAvailable:x},component:$t.xb},{path:"abandoned-queue-calls",canActivate:[P],resolve:{reportsAvailable:x,firstQueue:Y.q},component:St._j},{path:"queue-answered-calls-by-wait-time",canActivate:[P],resolve:{reportsAvailable:x,firstQueue:Y.q},component:It.Ce},{path:"call-backs",canActivate:[P],resolve:{reportsAvailable:x},component:Et.W9},{path:"queue-failed-callbacks",canActivate:[P],resolve:{reportsAvailable:x,firstQueue:Y.q},component:jt.ed},{path:"statistics-sla",canActivate:[P],resolve:{reportsAvailable:x},component:kt.HO},{path:"breaches-sla",canActivate:[P],resolve:{reportsAvailable:x,firstQueue:Y.q},component:At.f3},{path:"queue-performance-overview",canActivate:[P],resolve:{reportsAvailable:x},component:Ft._2},{path:"detailed-queue-statistics",canActivate:[P],resolve:{reportsAvailable:x},component:Lt.Mw},{path:"call-cost-by-extension-group",canActivate:[P],resolve:{reportsAvailable:x,firstGroup:Xt.K,mcm:zt.s,isSystemOwner:(0,Yt.d)(["system_owners"])},component:Dt._m},{path:"agent-in-queue-statistics",canActivate:[P],resolve:{reportsAvailable:x,firstQueue:Y.q},component:wt.KZ},{path:"team-queue-general-statistics",canActivate:[P],resolve:{reportsAvailable:x},component:Vt.tY},{path:"extension-statistic",canActivate:[P],resolve:{reportsAvailable:x,firstGroup:Xt.K,mcm:zt.s,isSystemOwner:(0,Yt.d)(["system_owners"])},component:Bt.P8},{path:"abandoned-chats",canActivate:[P,pt.G],resolve:{reportsAvailable:x,firstQueue:Y.q},component:Ht.ZU},{path:"call-reports",canActivate:[P],resolve:{reportsAvailable:x},component:Gt.pZ},{path:"inbound-calls",canActivate:[P],resolve:{reportsAvailable:x,firstTrunk:re},component:oe.EM},{path:"outbound-calls",canActivate:[P],resolve:{reportsAvailable:x,firstTrunk:re},component:ae.PH},{path:"agent-login-history",canActivate:[P],resolve:{reportsAvailable:x,firstQueue:Y.q},component:Qt.G0},{path:"audit-logs",canActivate:[Zt.bV],children:[{path:"",pathMatch:"full",resolve:{reportsAvailable:(0,Kt.c)("audit")},component:lo},{path:":id",component:Wt}]},{path:"inbound-rules",canActivate:[Zt.bV],resolve:{reportsAvailable:(0,Kt.c)("admin"),...to.oF},component:$n.i},{path:"user-activity",canActivate:[P],resolve:{reportsAvailable:x},component:se.cY},{path:"call-distribution",canActivate:[P],resolve:{reportsAvailable:x},component:ie.g8}]},60007(G,S,o){o.d(S,{Tp:()=>I,Xy:()=>M,ev:()=>v});var i=o(37201),r=o(76034),C=o(50139);const v=(0,r.c)("admin"),M=(0,r.c)("machineAdmin"),I=(0,C.d)(i.mD)},50139(G,S,o){o.d(S,{d:()=>v});var i=o(85802),r=o(96354),C=o(92996);const v=M=>()=>(0,i.WQX)(C.Z).getMyToken$().pipe((0,r.T)(I=>M.includes(I.myRole)))},30689(G,S,o){o.d(S,{s:()=>L});var i=o(85802),r=o(16444),C=o(99437),v=o(96354),M=o(25558),I=o(96697),b=o(19037);const L=()=>{const N=(0,i.WQX)(r.gx),D=(0,i.WQX)(b.s);return function w(N){return N.myPhoneSession.pipe((0,M.n)(D=>D.systemParameters$),(0,v.T)(D=>D.MultiCompanyMode))}(N).pipe((0,I.s)(1),(0,C.W)(V=>D.handleError(V)))}},52101(G,S,o){function i(M){M.warning("_i18n.RestartOfServicesRequired",{link:"#/office/dashboard/services"})}function C(M){return M.confirmDangerAction("_i18n.AllEntriesDeletedPermanently","_i18n.DeleteSelected",{},"_i18n.Delete")}function v(M){return M.confirmDeletion("_i18n.EntryDeletedPermanently")}o.d(S,{fb:()=>i,qq:()=>v,zq:()=>C})},83421(G,S,o){o.d(S,{I:()=>C});var i=o(35547),r=o(85802);let C=(()=>{class v{static \u0275fac=function(b){return new(b||v)};static \u0275cmp=i.VBU({type:v,selectors:[["app-arrow-from-bottom-solid-icon"],["","app-arrow-from-bottom-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512"],["d","M360 480H24c-13.3 0-24-10.7-24-24v-24c0-13.3 10.7-24 24-24h336c13.3 0 24 10.7 24 24v24c0 13.3-10.7 24-24 24zM90.4 216.5l65.6-65.6V360c0 13.3 10.7 24 24 24h24c13.3 0 24-10.7 24-24V150.9l65.6 65.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L209 30.1c-9.4-9.4-24.6-9.4-33.9 0L39.5 165.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0z"]],template:function(b,w){1&b&&(r.qSk(),i.rj2(0,"svg",0),i.Hgh(1,"path",1),i.eux())},encapsulation:2})}return v})()},49371(G,S,o){o.d(S,{K:()=>C});var i=o(35547),r=o(85802);let C=(()=>{class v{static \u0275fac=function(b){return new(b||v)};static \u0275cmp=i.VBU({type:v,selectors:[["app-plus-solid-icon"],["","app-plus-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]],template:function(b,w){1&b&&(r.qSk(),i.rj2(0,"svg",0),i.Hgh(1,"path",1),i.eux())},encapsulation:2})}return v})()},56197(G,S,o){o.d(S,{s:()=>C});var i=o(35547),r=o(85802);let C=(()=>{class v{static \u0275fac=function(b){return new(b||v)};static \u0275cmp=i.VBU({type:v,selectors:[["app-up-to-line-solid-icon"],["","app-up-to-line-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512"],["d","M342.1 262.1L219.3 139.3c-7.2-7.2-17.1-11.3-27.3-11.3s-20.1 4.1-27.3 11.3L41.9 262.1c-6.4 6.4-9.9 15-9.9 24C32 304.8 47.2 320 65.9 320l62.1 0 0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V320l62.1 0c18.7 0 33.9-15.2 33.9-33.9c0-9-3.6-17.6-9.9-24zM32 96H352c17.7 0 32-14.3 32-32s-14.3-32-32-32H32C14.3 32 0 46.3 0 64S14.3 96 32 96z"]],template:function(b,w){1&b&&(r.qSk(),i.rj2(0,"svg",0),i.Hgh(1,"path",1),i.eux())},encapsulation:2})}return v})()},90836(G,S,o){o.d(S,{g:()=>V});var i=o(35547),r=o(85802),C=o(49769);const v=d=>["segment",d],M=(d,u)=>({"segment-main":!0,expandable:d,expanded:u});function I(d,u){1&d&&i.nrm(0,"div",9)}function b(d,u){if(1&d&&(i.j41(0,"span",10),i.EFF(1),i.k0s()),2&d){const p=i.XpG().$implicit;i.R7$(),i.JRh(p.description)}}function w(d,u){if(1&d&&(i.j41(0,"section",11),i.nrm(1,"ngx-json-viewer",12),i.k0s()),2&d){const p=i.XpG().$implicit,h=i.XpG();i.R7$(),i.Y8G("json",p.value)("expanded",h.expanded)("depth",h.depth)("_currentDepth",h._currentDepth+1)}}function L(d,u){if(1&d){const p=i.RV6();i.j41(0,"section",2)(1,"section",3),i.bIt("click",function(){const m=r.eBV(p).$implicit,E=i.XpG();
1return r.Njj(E.toggle(m))}),i.DNE(2,I,1,0,"div",4),i.j41(3,"span",5),i.EFF(4),i.k0s(),i.j41(5,"span",6),i.EFF(6,": "),i.k0s(),i.DNE(7,b,2,1,"span",7),i.k0s(),i.DNE(8,w,2,4,"section",8),i.k0s()}if(2&d){const p=u.$implicit,h=i.XpG();i.Y8G("ngClass",i.eq3(6,v,"segment-type-"+p.type)),i.R7$(),i.Y8G("ngClass",i.l_i(8,M,h.isExpandable(p),p.expanded)),i.R7$(),i.Y8G("ngIf",h.isExpandable(p)),i.R7$(2),i.JRh(p.key),i.R7$(3),i.Y8G("ngIf",!p.expanded||!h.isExpandable(p)),i.R7$(),i.Y8G("ngIf",p.expanded&&h.isExpandable(p))}}let N=(()=>{class d{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),"object"==typeof this.json?Object.keys(this.json).forEach(p=>{this.segments.push(this.parseKeyValue(p,this.json[p]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(p){return"object"===p.type||"array"===p.type}toggle(p){this.isExpandable(p)&&(p.expanded=!p.expanded)}parseKeyValue(p,h){const m={key:p,value:h,type:void 0,description:""+h,expanded:this.isExpanded()};switch(typeof m.value){case"number":m.type="number";break;case"boolean":m.type="boolean";break;case"function":m.type="function";break;case"string":m.type="string",m.description='"'+m.value+'"';break;case"undefined":m.type="undefined",m.description="undefined";break;case"object":null===m.value?(m.type="null",m.description="null"):Array.isArray(m.value)?(m.type="array",m.description="Array["+m.value.length+"] "+JSON.stringify(m.value)):m.value instanceof Date?m.type="date":(m.type="object",m.description="Object "+JSON.stringify(m.value))}return m}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(p){const h=new WeakMap;return function m(E,W){let J,_;return"object"!=typeof E||null===E||E instanceof Boolean||E instanceof Date||E instanceof Number||E instanceof RegExp||E instanceof String?E:(J=h.get(E),void 0!==J?{$ref:J}:(h.set(E,W),Array.isArray(E)?(_=[],E.forEach(function(Q,t){_[t]=m(Q,W+"["+t+"]")})):(_={}
1,Object.keys(E).forEach(function(Q){_[Q]=m(E[Q],W+"["+JSON.stringify(Q)+"]")})),_))}(p,"$")}}return d.\u0275fac=function(p){return new(p||d)},d.\u0275cmp=i.VBU({type:d,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},standalone:!1,features:[i.OA$],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"click","ngClass"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(p,h){1&p&&(i.j41(0,"section",0),i.DNE(1,L,9,11,"section",1),i.k0s()),2&p&&(i.R7$(),i.Y8G("ngForOf",h.segments))},dependencies:[C.YU,C.Sq,C.bT,d],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .segment-separator[_ng
1content-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%]   .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%]   .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%]   .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),d})(),D=(()=>{class d{}return d.\u0275fac=function(p){return new(p||d)},d.\u0275mod=i.$C({type:d}),d.\u0275inj=r.G2t({imports:[C.MD]}),d})(),V=(()=>{class d{json;jsonString;expanded=!0;data;ngOnChanges(p){this.data=this.json||JSON.parse(this.jsonString||"{}")}static \u0275fac=function(h){return new(h||d)};static \u0275cmp=i.VBU({type:d,selectors:[["app-json-viewer"]],inputs:{json:"json",jsonString:"jsonString",expanded:"expanded"},features:[i.OA$],decls:1,vars:2,consts:[[3,"json","expanded"]],template:function(h,m){1&h&&i.nrm(0,"ngx-json-viewer",0),2&h&&i.Y8G("json",m.data)("expanded",m.expanded)},dependencies:[D,N],styles:[".segment-type-string>.segment-main.expanded>.segment-value{color:var(--text-primary)!important}  .segment-type-number>.segment-main.expanded>.segment-value{color:var(--text-primary)!important}  .segment-type-boolean>.segment-main.expanded>.segment-value{color:var(--text-primary)!important}  .segment-type-date>.segment-main.expanded>.segment-value{color:var(--text-primary)!important}  .segment-type-array>.segment-main.expanded>.segment-value{color:var(--text-primary)!important}  .segment-type-object>.segment-main.expanded>.segment-value{color:var(--text-primary)!important}  .segment-type-function>.segment-main.expanded>.segment-value{color:var(--text-primary)!important}  .segment-type-null>.segment-main.expanded>.segment-value{color:#fff!important}  .segment-type-undefined>.segment-main.expanded>.segment-value{color:#fff!important}  .segment-key{color:var(--bg-secondary)!important}"],changeDetection:0})}return d})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.