PageSourceSearch

https://ldospandemicedition.org/9504.bbd78ac8ee07cb42.js

js ldospandemicedition.org collected 2026-10-04 10:10:04 UTC 46,603 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[9504],{29504(A,C,n){n.d(C,{RecordingsListComponent:()=>Xe});var r=n(85802),m=n(17705),u=n(38601),i=n(89417),T=n(54999),s=n(22972),d=n(6205),y=n(13961),l=n(96354),g=n(41029),I=n(89479),D=n(59053),E=n(92996),k=n(56998),$=n(25843),G=n(89079),N=n(40953),X=n(84460),J=n(70312),Y=n(24708),f=n(72788),F=n(534),v=n(19781),h=n(68018),b=n(62564),e=n(35547);const S=c=>({size:c}),B=c=>({p1:c});function x(c,R){1&c&&(e.EFF(0),e.nI1(1,"translate")),2&c&&e.JRh(e.bMT(1,1,"_i18n.LocationSpecify"))}function L(c,R){if(1&c&&(e.EFF(0),e.nI1(1,"fileSize"),e.nI1(2,"translate")),2&c){const t=e.XpG();e.SpI(" ",e.i5U(2,3,"_i18n.AllowedDiskSpace",e.eq3(6,B,e.bMT(1,1,(null==t.recordingRepositorySettings?null:t.recordingRepositorySettings.RecordingDiskSpace)*t.GB)))," ")}}let U=(()=>{class c extends s.m{recordingsApiService=(0,r.WQX)(d.Y);xapiErrorService=(0,r.WQX)(g.Ko);modalService=(0,r.WQX)(u.B);cd=(0,r.WQX)(m.gRc);destroy$=(0,r.WQX)(r.abz);recordingRepositorySettings;sub=new y.yU;buttons=T.P.OkCancel;recordingsSettingsForm=new i.gE({RecordingPath:new i.MJ("",{nonNullable:!0,validators:[i.k0.required]}),RecordingsQuota:new i.MJ(0,{nonNullable:!0,validators:(0,D.YX)(0,this.recordingRepositorySettings?.RecordingDiskSpace??1e5)}),AutoDeleteRecordingEnabled:new i.MJ(!0,{nonNullable:!0}),AutoDeleteRecordingDays:new i.MJ(0,{nonNullable:!0,validators:(0,D.YX)(0,1e4)})});constructor(){const t=(0,r.WQX)(E.Z);super(),this.sub.add((0,k.jA)(t.myToken$.pipe((0,l.T)(a=>a.machineAdmin)),[this.recordingsSettingsForm.controls.RecordingPath]))}validateBeforeSubmit=this.createDialogValidate(this.recordingsSettingsForm,this.cd);get recordingsSettingsControls(){return this.recordingsSettingsForm.controls}get availableSpace(){return this.recordingRepositorySettings?.RecordingUsedSpace??0}get isRecordingArchiveEnabled(){return!!this.recordingRepositorySettings?.IsRecordingArchiveEnabled}ngOnInit(){this.recordingsSettingsForm.setValue({RecordingPath:this.recordingRepositorySettings?.RecordingPath??"",RecordingsQuota:this.recordingRepositorySettings?.RecordingsQuota??0,AutoDeleteRecordingEnabled:this.recordingRepositorySettings?.AutoDeleteRecordingEnabled??!0,AutoDeleteRecordingDays:this.recordingRepositorySettings?.AutoDeleteRecordingDays??0},{emitEvent:!1}),(0,k.TZ)(this.recordingsSettingsControls.AutoDeleteRecordingEnabled,!this.recordingRepositorySettings?.IsRecordingArchiveEnabled),(0,k.TZ)(this.recordingsSettingsControls.AutoDeleteRecordingDays,!this.recordingRepositorySettings?.IsRecordingArchiveEnabled);const{AutoDeleteRecordingEnabled:t}=this.recordingsSettingsControls;(0,k.XP)(t).pipe((0,G.pQ)(this.destroy$)).subscribe(a=>{(0,k.TZ)(this.recordingsSettingsControls.AutoDeleteRecordingDays,a)})}openLocalDirectoryPicker(){this.modalService.showComponent(I.x,{initialState:{path:this.recordingsSettingsControls.RecordingPath.value??""}}).subscribe({next:t=>{t.decision===T.R.Ok&&this.recordingsSettingsControls.RecordingPath.patchValue(t.payload??"")}})}submit$=()=>this.recordingsApiService.setRecordingRepositorySettings({recordingsSetRecordingRepositorySettingsRequestBody:{settings:{...this.recordingsSettingsForm.value}}}).pipe(this.handleError(this.xapiErrorService,this.cd,this.recordingsSettingsForm));getPayload(){return this.recordingsSettingsForm.value}ngOnDestroy(){this.sub.unsubscribe()}GB=$.GB;static \u0275fac=function(a){return new(a||c)};static \u0275cmp=e.VBU({type:c,selectors:[["app-recordings-settings-modal"]],hostVars:2,hostBindings:function(a,o){2&a&&e.AVh("modal-lg",!0)},inputs:{recordingRepositorySettings:"recordingRepositorySettings"},features:[e.Vt3],decls:20,vars:24,consts:[["header","_i18n.Settings",3,"submitted","buttons","formGroup","validateBeforeSubmit","submit$","waitRecalculationsBeforeSave"],[1,"pb-2"],[1,"row"],["formControlName","RecordingPath","label","_i18n.LocalRecordingsFolder",1,"col-lg-6",3,"readonly"],["type","button","data-qa","select-gb-path",1,"btn","btn-border",3,"click","disabled","title"],["app-ellipsis-h-regular-icon","",1,"svg-sm"],["controlName","RecordingPath"],["valError","required"],["label","_i18n.RecordingQuotaLabel","formControlName","RecordingsQuota",1,"col-lg-6",3,"units"],["controlName","RecordingsQuota"],["valError","range"],[1,"d-flex","flex-row","align-items-center","gap-2","mb-3"],[1,"d-flex","align-items-center","gap-2",3,"tooltip"],["formControlName","AutoDeleteRecordingEnabled","label","_i18n.RecordingAutoCleaning",1,"mb-0"],["units","_i18n.Days","formControlName","AutoDeleteRecordingDays",1,"mb-0",3,"min","max"],["controlName","AutoDeleteRecordingDays"]],template:function(a,o){1&a&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return o.onSubmit()}),e.j41(1,"fieldset",1)(2,"div",2)(3,"field-input",3)(4,"button",4),e.nI1(5,"translate"),e.bIt("click",function(){return o.openLocalDirectoryPicker()}),e.nrm(6,"span",5),e.k0s(),e.j41(7,"val-errors",6),e.DNE(8,x,2,3,"ng-template",7),e.k0s()(),e.j41(9,"field-input-number",8),e.nI1(10,"fileSize"),e.nI1(11,"translate"),e.j41(12,"val-errors",9),e.DNE(13,L,3,8,"ng-template",10),e.k0s()()(),e.j41(14,"div",11)(15,"div",12),e.nI1(16,"translate"),e.nrm(17,"f
1ield-checkbox",13),e.j41(18,"field-input-number",14),e.nrm(19,"val-errors",15),e.k0s()()()()()),2&a&&(e.Y8G("buttons",o.buttons)("formGroup",o.recordingsSettingsForm)("validateBeforeSubmit",o.validateBeforeSubmit)("submit$",o.submit$)("waitRecalculationsBeforeSave",!0),e.R7$(3),e.Y8G("readonly",!0),e.R7$(),e.Y8G("disabled",o.recordingsSettingsControls.RecordingPath.disabled)("title",e.bMT(5,13,"_i18n.SelectDirectory")),e.R7$(5),e.Y8G("units",e.mNQ(e.i5U(11,17,"_i18n.UsedSpace",e.eq3(22,S,e.bMT(10,15,o.availableSpace))))),e.R7$(6),e.Y8G("tooltip",null!=o.recordingRepositorySettings&&o.recordingRepositorySettings.IsRecordingArchiveEnabled?e.bMT(16,20,"_i18n.RemoteArchivingConfigured"):""),e.R7$(3),e.Y8G("min",0)("max",1e4))},dependencies:[N.p,i.X1,i.BC,i.cb,i.j4,i.JD,X.m,J.S,Y.IH,Y.VI,f.B,F.dg,v.t,h.D9,b.s],styles:[".buttons[_ngcontent-%COMP%]{display:flex;gap:var(--spacer-s);flex-direction:row;flex-wrap:wrap;flex-basis:max-content}.buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:var(--input-height)}"]})}return c})();var z=n(18530),M=n(25558),te=n(59030),ne=n(19724),ie=n(12498),Q=n(983),oe=n(7673),re=n(27468),Z=n(59882),se=n(4801),ae=n(69340),H=n(87019),K=n(38357),q=n(42610),le=n(12426),j=function(c){return c.All="All",c.InternalCalls="InternalCalls",c.ExternalCalls="ExternalCalls",c.IncomingExternalCalls="IncomingExternalCalls",c.OutgoingExternalCalls="OutgoingExternalCalls",c}(j||{}),O=function(c){return c.All="All",c.Archived="Archived",c.Local="Local",c}(O||{});let de=(()=>{class c{recordingsApiService=(0,r.WQX)(d.Y);localStorageService=(0,r.WQX)(le.sj);getStoredPageSize(){const t=this.localStorageService.retrieve(q.Hh.RecordingsPageSize);return t?+t:H.z9}setStoredPageSize(t){this.localStorageService.store(q.Hh.RecordingsPageSize,t)}resolveData(t=1,a=H.z9,o="",p=""){return this.recordingsApiService.listRecording({$skip:(t-1)*a,$search:(0,K.Bj)(o),...p?{$filter:p}:{},$select:["Id","IsArchived","Transcription","FromDidNumber","FromDn","FromCallerNumber","FromDisplayName","StartTime","ToDnType","ToDidNumber","ToDisplayName","ToDn","SentimentScore","Summary","IsTranscribed","TranscriptionResult","CanBeTranscribed"],$orderby:["StartTime desc"],$top:a,$count:!0}).pipe((0,l.T)(_=>({value:_.value,totalItems:_["@odata.count"]})))}static \u0275fac=function(a){return new(a||c)};static \u0275prov=r.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();var pe=n(83188),ue=n(48643),me=n(57786),he=n(99437),ge=n(60240),P=function(c){return c.LocalRecordings="LocalRecordings",c.RemoteArchiveRecordings="RemoteArchiveRecordings",c.Everything="Everything",c.MoveAllRecordingsArchive="MoveAllRecordingsArchive",c}(P||{});let fe=(()=>{class c extends s.m{recordingsApiService=(0,r.WQX)(d.Y);modalService=(0,r.WQX)(u.B);buttons=T.P.OkCancel;purgeRecordingsOptions=P;form=new i.gE({purgeOption:new i.MJ(P.LocalRecordings,{nonNullable:!0})});allPurgeOptions=[{label:"_i18n.DeleteLocalRecordings",value:P.LocalRecordings},{label:"_i18n.DeleteRemoteArchiveRecordings",value:P.RemoteArchiveRecordings},{label:"_i18n.DeleteEverything",value:P.Everything},{label:"_i18n.MoveAllRecordingsArchive",value:P.MoveAllRecordingsArchive}];submit$=()=>this.purgeAction().pipe((0,he.W)(t=>(this.modalService.error(t),Q.w)));purgeAction(){switch(this.form.value.purgeOption){case P.LocalRecordings:return this.recordingsApiService.purgeLocal();case P.RemoteArchiveRecordings:return this.recordingsApiService.purgeArchive();case P.Everything:return(0,me.h)(this.recordingsApiService.purgeArchive(),this.recordingsApiService.purgeLocal());case P.MoveAllRecordingsArchive:return this.recordingsApiService.archive();default:return Q.w}}getPayload(){return this.form.value.purgeOption}static \u0275fac=(()=>{let t;return function(o){return(t||(t=e.xGo(c)))(o||c)}})();static \u0275cmp=e.VBU({type:c,selectors:[["app-recordings-purge-modal"]],features:[e.Vt3],decls:5,vars:7,consts:[["header","_i18n.Purge",3,"submitted","formGroup","submit$","buttons"],["data-qa","auto-record-calls-external-only","formControlName","purgeOption",1,"ps-3",3,"options"]],template:function(a,o){1&a&&(e.j41(0,"app-modal-dialog",0),e.bIt("submitted",function(){return o.onSubmit()}),e.j41(1,"p"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"field-radio-group",1),e.k0s()),2&a&&(e.Y8G("formGroup",o.form)("submit$",o.submit$)("buttons",o.buttons),e.R7$(2),e.JRh(e.bMT(3,5,"_i18n.DeleteRecordingsDialogInfo")),e.R7$(2),e.Y8G("options",o.allPurgeOptions))},dependencies:[N.p,i.X1,i.BC,i.cb,i.j4,i.JD,ge.u,h.D9],encapsulation:2})}return c})();var V=n(96106),ee=n(75215),ve=n(62329),be=n(45678);class W{label;queryParam;key;pureValue="";constructor(R,t,a="text"){this.label=R,this.queryParam=t,this.key=a}getDisplayValue(R){return this.value[this.key]}getDisplayValueForPrint(R){return this.getDisplayValue(R)}get value(){return{[this.key]:this.pureValue}}set value(R){this.pureValue=R[this.key]||""}static deserialize(R,t,a,o,p="text"){const _=new W(t,a,p);return o&&(_.value=o),a in R&&"string"==typeof R[a]&&(_.pureValue=R[a]),_}deserialize(R){return W.deserialize(R,this.label,this.queryParam,this.value,this.key)}serialize(){return{[this.queryParam]:this.value[this.key]}}validate(){return null}}var ye=n(74005),Re=n(47429),Te=n(76415),Se=n(43748);let Ce=(()=>{class c extends Se.F{placeholder;constructor(){super(new i.MJ("",{nonNullable:!0}))}static \u0275fac=function(a){return new(a||c)};static \u0275cmp=e.VBU({type:c,selectors:[["app-text-filter"]],inputs:{placeholder:"placeholder"},features:[e.Jv_([{provide:i.kq,multi:!0,useExisting:c},{provide:i.cz,multi:!0,useExisting:c}]),e.Vt3],decls:5,vars:5,consts:[["data-qa","text-filter",1,"d-flex","gap-3"],[1,"filter-label"],[3,"formControl","placeholder"]],template:function(a,o){1&a&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"field-input",2),e.k0s()),2&a&&(e.R7$(2),e.JRh(e.bMT(3,3,o.value.label)),e.R7$(2),e.Y8G("formControl",o.control)("placeholder",o.placeholder))},dependencies:[i.X1,i.BC,i.l_,X.m,h.D9],encapsulation:2,changeDetection:0})}return c})();var De=n(62049),_e=n(52101),Ie=n(23294),Fe=n(82207),ke=n(36623),Ee=n(38969),Ae=n(76747),$e=n(74536),Me=n(32732),Pe=n(54172),je=n(7707),Le=n(29325),Be=n(62382),Ve=n(64631),we=n(49769),xe=n(56344);function Oe(c,R){1&c&&e.nrm(0,"app-archive-solid-icon",18)}function Ge(c,R){if(1&c){const t=e.RV6();e.j41(0,"button",46),e.nI1(1,"translate"),e.bIt("click",function(o){r.eBV(t);const p=e.XpG().$implicit;return e.XpG().summary(p),o.stopPropagation(),r.Njj(o.preventDefault())}),e.k0s()}2&c&&e.Y8G("title",e.bMT(1,1,"_i18n.Summary"))}function Ne(c,R){if(1&c){const t=e.RV6();e.j41(0,"tr",29),e.bIt("click",function(){const o=r.eBV(t).$implicit,p=e.XpG();
1return r.Njj(p.selector.toggle(o))}),e.j41(1,"td")(2,"app-checker",30),e.bIt("ngModelChange",function(o){const p=r.eBV(t).$implicit,_=e.XpG();return r.Njj(_.selector.setSelected(p,o))})("checkerClick",function(o){const p=r.eBV(t).$implicit,_=e.XpG();return r.Njj(_.selector.handleCheckerClick(p,o))}),e.k0s()(),e.j41(3,"td"),e.nVh(4,Oe,1,0,"app-archive-solid-icon",18),e.k0s(),e.j41(5,"td",31),e.EFF(6),e.k0s(),e.j41(7,"td",31),e.EFF(8),e.nI1(9,"amLocal"),e.nI1(10,"amDateFormat"),e.k0s(),e.j41(11,"td")(12,"span",32),e.EFF(13),e.k0s()(),e.j41(14,"td",31),e.EFF(15),e.k0s(),e.j41(16,"td",33),e.EFF(17),e.k0s(),e.j41(18,"td")(19,"span",32),e.EFF(20),e.k0s()(),e.j41(21,"td",23),e.EFF(22),e.k0s(),e.j41(23,"td",34),e.bIt("click",function(o){const p=r.eBV(t).$implicit;return e.XpG().transcription(p),o.stopPropagation(),r.Njj(o.preventDefault())}),e.j41(24,"span",32),e.EFF(25),e.k0s()(),e.j41(26,"td",35),e.nVh(27,Ge,2,3,"button",36),e.j41(28,"row-action-button",37)(29,"li",38)(30,"button",39),e.bIt("click",function(){const o=r.eBV(t).$implicit,p=e.XpG();return r.Njj(p.archive(o))}),e.k0s()(),e.j41(31,"li",38)(32,"button",40),e.bIt("click",function(){const o=r.eBV(t).$implicit,p=e.XpG();return r.Njj(p.download(o))}),e.k0s()(),e.j41(33,"li",38)(34,"button",41),e.bIt("click",function(){const o=r.eBV(t).$implicit,p=e.XpG();return r.Njj(p.copyDownloadUrl(o))}),e.k0s()(),e.j41(35,"li",38)(36,"button",42),e.bIt("click",function(){const o=r.eBV(t).$implicit,p=e.XpG();return r.Njj(p.delete(o))}),e.k0s()(),e.j41(37,"li",38)(38,"button",43),e.bIt("click",function(){const o=r.eBV(t).$implicit,p=e.XpG();return r.Njj(p.transcribe(o))}),e.k0s()(),e.j41(39,"li",38)(40,"button",44),e.bIt("click",function(){const o=r.eBV(t).$implicit,p=e.XpG();return r.Njj(p.transcription(o))}),e.k0s()(),e.j41(41,"li",38)(42,"button",45),e.bIt("click",function(){const o=r.eBV(t).$implicit,p=e.XpG();return r.Njj(p.summary(o))}),e.k0s()()()()()}if(2&c){const t=R.$implicit,a=e.XpG();e.R7$(2),e.Y8G("ngModel",a.selector.isRowSelected(t)),e.R7$(2),e.vxM(t.IsArchived?4:-1),e.R7$(2),e.JRh(t.Id),e.R7$(2),e.JRh(e.i5U(10,33,e.bMT(9,31,t.StartTime),"L LT")),e.R7$(5),e.JRh(t.FromDisplayName),e.R7$(2),e.JRh(t.FromDidNumber),e.R7$(2),e.JRh(t.FromCallerNumber),e.R7$(3),e.JRh(t.ToDisplayName+a.toDisplayNameAdditionalInfo(t)),e.R7$(2),e.JRh(t.SentimentScore),e.R7$(3),e.JRh(t.Transcription),e.R7$(2),e.vxM(t.Summary&&!a.isSummaryNotApplicable(t)?27:-1),e.R7$(),e.Y8G("isLarge",!0),e.R7$(),e.AVh("disabled",!(null!=a.archiveSettings&&a.archiveSettings.IsRecordingArchiveEnabled)||t.IsArchived),e.R7$(),e.Y8G("disabled",!(null!=a.archiveSettings&&a.archiveSettings.IsRecordingArchiveEnabled)||t.IsArchived)("translate","_i18n.Archive"),e.R7$(2),e.Y8G("translate","_i18n.Download"),e.R7$(2),e.Y8G("translate","_i18n.CopyDownloadUrl"),e.R7$(2),e.Y8G("translate","_i18n.Delete"),e.R7$(),e.AVh("disabled",!a.canBeTranscribed(t)||a.isTranscriptionEngineDisabled),e.R7$(),e.Y8G("translate","_i18n.Transcribe")("disabled",!a.canBeTranscribed(t)||a.isTranscriptionEngineDisabled),e.R7$(),e.AVh("disabled",!t.Transcription),e.R7$(),e.Y8G("disabled",!t.Transcription)("translate","_i18n.Transcription"),e.R7$(),e.AVh("disabled",!t.Summary||a.isSummaryNotApplicable(t)),e.R7$(),e.Y8G("disabled",!t.Summary||a.isSummaryNotApplicable(t))("translate","_i18n.Summary")}}function We(c,R){1&c&&(e.j41(0,"tr")(1,"td",27),e.nrm(2,"div",47),e.k0s()())}let Xe=(()=>{class c{modalService=(0,r.WQX)(u.B);resolver=(0,r.WQX)(de);transcrService=(0,r.WQX)(Fe.I);recordingsApiService=(0,r.WQX)(d.Y);fileDownloadService=(0,r.WQX)(ue.y);cd=(0,r.WQX)(m.gRc);destroy$=(0,r.WQX)(r.abz);route=(0,r.WQX)(Z.nX);pager;selector;data=[];archiveSettings;callTypeOptions=[{value:j.All,label:"_i18n.AllCalls"},{value:j.InternalCalls,label:"_i18n.InternalCalls"},{value:j.ExternalCalls,label:"_i18n.ExternalCalls"},{value:j.IncomingExternalCalls,label:"_i18n.IncomingExternalCalls"},{value:j.OutgoingExternalCalls,label:"_i18n.OutgoingExternalCalls"}];locationTypeOptions=[{value:O.All,label:"_i18n.RecordingsLocationTypeAll"},{value:O.Archived,label:"_i18n.RecordingsLocationTypeArchived"},{value:O.Local,label:"_i18n.RecordingsLocationTypeLocal"}];filter=new i.gE({callType:new i.MJ(new ee.L("_i18n.ReportsCalls","callType",this.callTypeOptions),{nonNullable:!0}),dateRange:new i.MJ(new ve.J({periodType:be.ci.Today},!1),{nonNullable:!0}),from:new i.MJ(new W("_i18n.Caller","from"),{nonNullable:!0}),to:new i.MJ(new W("_i18n.Callee","to"),{nonNullable:!0}),locationType:new i.MJ(new ee.L("_i18n.Location","locationType",this.locationTypeOptions),{nonNullable:!0})});pagerFilter$=new z.B;
1transcriptionEngine=this.route.snapshot.data.transcriptionEngine||{};isEnterprise=this.route.snapshot.data.isEnterprise??!1;isRemoving=!1;isRetrievingSettings=!1;constructor(){const t=(0,r.WQX)(Z.nX),a=this.resolver,o=this.cd,p=this.destroy$;this.archiveSettings=t.snapshot.data.archiveSettings,this.pager=new se.f(p,a,void 0,a.getStoredPageSize(),void 0,!0),this.selector=new De.a({cd:o,keySelector:w=>w.Id}),this.pager.pagedItems$.pipe((0,V.Tg)(this.modalService),(0,G.pQ)(this.destroy$)).subscribe(w=>this.updateItems(w)),this.pagerFilter$.pipe((0,Ie.F)(),(0,G.pQ)(this.destroy$)).subscribe(w=>{this.pager.filterChanged(w)})}get isTranscriptionEngineDisabled(){return!this.isEnterprise||this.transcriptionEngine===ae.u.None}get isBatchTranscriptionEnabled(){return this.selector.selectedValues.some(t=>this.canBeTranscribed(t))}get isUnarchivedSelected(){return this.selector.selectedValues.some(t=>!t.IsArchived&&t.Id)}canBeTranscribed(t){return t.Id&&t.CanBeTranscribed}onPageSizeChange(t){this.resolver.setStoredPageSize(t),this.pager.pageSizeChanged(t)}filterSubmit(){const{dateRange:t,from:a,to:o,callType:p,locationType:_}=this.filter.value,Ye=function ce(c){if(!c)return"";const R=[];if(c.callType)switch(c.callType){case j.InternalCalls:R.push("CallType eq 'Local'");break;
1case j.ExternalCalls:R.push("(CallType eq 'InboundExternal' or CallType eq 'OutboundExternal')");break;case j.IncomingExternalCalls:R.push("CallType eq 'InboundExternal'");break;case j.OutgoingExternalCalls:R.push("CallType eq 'OutboundExternal'")}if(c.locationType)switch(c.locationType){case O.Archived:R.push("IsArchived eq true");break;case O.Local:R.push("IsArchived eq false")}if(c.periodFromTo){const t=c.periodFromTo[0].toISOString(),a=c.periodFromTo[1].toISOString();R.push(`(StartTime ge ${t} and StartTime lt ${a})`)}if(c.from){const t=(0,K.Y)(c.from,!0);R.push(`(contains(tolower(FromCallerNumber), '${t}') or\n                    contains(tolower(FromCrmContact),'${t}') or\n                    contains(tolower(FromDidNumber),'${t}') or\n                    contains(tolower(FromDn), '${t}') or\n                    contains(tolower(FromDisplayName), '${t}'))`)}if(c.to){const t=(0,K.Y)(c.to,!0);R.push(`(contains(tolower(ToCallerNumber), '${t}') or\n                    contains(tolower(ToCrmContact),'${t}') or\n                    contains(tolower(ToDidNumber),'${t}') or\n                    contains(tolower(ToDn), '${t}') or\n                    contains(tolower(ToDisplayName), '${t}'))`)}return R.length>1?R.join(" and "):1===R.length?R[0]:""}({...t.value,from:a.value.text,to:o.value.text,callType:p.value.selectedValue,locationType:_.value.selectedValue});this.pagerFilter$.next(Ye)}download(t){const a=this.selector.selectedKeys;if(!t&&a.length>1){const p=new FormData;for(const _ of a)p.append("ids",String(_));return void this.fileDownloadService.downloadWithPost("/Recordings/DownloadRecordings",p)}const o=t??this.selector.firstSelected;o&&o.Id&&this.fileDownloadService.download(this.recordingsApiService.downloadRecordingQuery({recId:o.Id}),{dryRun:!0})}transcribe(t){const o=(void 0!==t?.Id?[t]:this.selector.selectedValues).filter(p=>this.canBeTranscribed(p));this.modalService.confirmation("_i18n.TranscribeRecordings").pipe((0,M.n)(()=>this.recordingsApiService.transcribeRecordings({recordingsTranscribeRecordingsRequestBody:{ids:o.map(p=>p.Id)}})),(0,V.Tg)(this.modalService)).subscribe(()=>this.pager.refresh$.next())}copyDownloadUrl(t){const a=this.recordingsApiService.downloadRecordingQuery({recId:t.Id});this.fileDownloadService.getDownloadLink$(a,{dryRun:!0}).pipe((0,V.Tg)(this.modalService),(0,l.T)(o=>new URL(o,(0,xe.T)()).href),(0,M.n)(o=>(0,te.v)(()=>(0,ne.H)(navigator.clipboard.writeText(o))).pipe((0,ie.L)({count:1,delay:()=>this.modalService.confirmRetryAfterError("_i18n.CopyToClipboardRetry")}))),(0,V.ee)("Recording url share")).subscribe()}initialLoading=!0;updateItems(t){this.initialLoading=!1,this.data=t.value||[],this.selector.onDataChanged(this.data),this.cd.markForCheck()}purge(){this.recordingsApiService.getRecordingRepositorySettings().pipe((0,M.n)(t=>t.IsRecordingArchiveEnabled?this.modalService.showComponent(fe).pipe((0,M.n)(a=>a.decision===T.R.Cancel?Q.w:(0,oe.of)(a))):this.modalService.confirmDangerAction("_i18n.PurgeRecordings").pipe((0,M.n)(()=>(0,re.p)([this.recordingsApiService.purgeArchive(),this.recordingsApiService.purgeLocal()])))),(0,V.Tg)(this.modalService)).subscribe(()=>{this.selector.resetAll(),this.pager.refresh$.next()})}settings(){this.isRetrievingSettings||(this.isRetrievingSettings=!0,this.recordingsApiService.getRecordingRepositorySettings().pipe((0,M.n)(t=>this.modalService.showComponent(U,{initialState:{recordingRepositorySettings:t}}))).subscribe({next:t=>{t.decision===T.R.Ok&&(this.archiveSettings=t.payload)},error:t=>{this.modalService.error(t)},complete:()=>{this.isRetrievingSettings=!1,this.cd.markForCheck()}}))}transcription(t){t.Transcription&&this.transcrService.showTranscription(t.Transcription)}isSummaryNotApplicable(t){return"N/A"===t.Summary?.trim()}summary(t){!t.Summary||this.isSummaryNotApplicable(t)||this.transcrService.showTranscription(t.Summary,"_i18n.Summary")}archive(t){const a=void 0!==t?.Id?[t]:this.selector.selectedValues;this.modalService.confirmation("_i18n.ArchiveRecordings").pipe((0,M.n)(()=>this.recordingsApiService.bulkRecordingsArchive({recordingsBulkRecordingsArchiveRequestBody:{ids:a.map(o=>o.Id)}})),(0,V.Tg)(this.modalService)).subscribe(()=>this.pager.refresh$.next())}delete(t){if(this.isRemoving)return;this.isRemoving=!0;const a=void 0!==t?.Id?[t]:this.selector.selectedValues;(a.length>1?(0,_e.zq)(this.modalService):this.modalService.confirmDeletion("_i18n.Recording_DeleteConfirmMessage")).pipe((0,M.n)(()=>this.recordingsApiService.bulkRecordingsDelete({recordingsBulkRecordingsDeleteRequestBody:{ids:a.map(p=>p.Id)}})),(0,V.Tg)(this.modalService)).subscribe({next:()=>{t?.Id?this.selector.resetSingle(t.Id):this.selector.resetAll(),this.pager.refresh$.next()},complete:()=>{this.isRemoving=!1,this.selector.resetAll()}})}toDisplayNameAdditionalInfo(t){const a=(1===t.ToDnType?null:t.ToDn)??t.ToDidNumber;return a?" ("+a+")":""}static \u0275fac=function(a){return new(a||c)};static \u0275cmp=e.VBU({type:c,selectors:[["app-recordings-list"]],decls:81,vars:69,consts:[["header","_i18n.Recordings",3,"helpUrl"],["top-bar","",1,"button-group"],["data-qa","download","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","transcribe","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","delete","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","archive","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","purge","type","button",1,"btn","btn-primary",3,"click","disabled"],["data-qa","settings","type","button",1,"btn","btn-primary",3,"click","disabled"],["top-bar","",3,"filterChanged","search","filterForm","formGroup","forceSearchEmit"],["formControlName","callType"],["formControlName","dateRange"],["formControlName","from","placeholder","_i18n.EnterNumberOrCustomerName"],["formControlName","to","placeholder","_i18n.EnterNumberOrCustomerName"],["formControlName","locationType"],["full-width","",1,"scrollable-table"],[1,"checker"],[3,"ngModelChange","ngModel"],[1,"small-icon"],[1,"customSVGIcons","svg-sm"],[1,"md-visible"],["nowrap","",1,"minw-px-150"],[1,"lg-visible"],[1,"minw-px-150"],[1,"xl-visible"],[1,"xl-visible","w-50"],[1,"actions"],[1,"clickable"],["colspan","12"],[3,"pageChanged","itemsPerPageChanged","currentPage","itemsPerPage","totalItems","showBoundaryLinks","showPageSizes"],[1,"clickable",3,"click"],[3,"ngModelChange","checkerClick","ngModel"],["nowrap","",1,"md-visible"],[1,"line-clamp-1"],["nowrap","",1,"lg-visible"],[1,"xl-visible",3,"click"],["data-qa","actions","nowrap","",1,"actions"],["data-qa","transcription","type","button","app-waveform-lines-solid-icon","",1,"btn","btn-plain",3,"title"],[3,"isLarge"],["role","menuitem"],["type","button","data-qa","archive",1,"dropdown-item",3,"click","disabled","translate"],["type","button","data-qa","download",1,"dropdown-item",3,"click","translate"],["type","button","data-qa","copy-download-url",1,"dropdown-item",3,"click","translate"],["type","button","data-qa","delete",1,"dropdown-item",3,"click","translate"],["type","button","data-qa","transcribe",1,"dropdown-item",3,"click","translate","disabled"],["type","button","data-qa","transcription",1,"dropdown-item",3,"click","disabled","translate"],["type","button","data-qa","summary",1,"dropdown-item",3,"click","disabled","translate"],["data-qa","transcription","type","button","app-waveform-lines-solid-icon","",1,"btn","btn-plain",3,"click","title"],[1,"loader"]],template:function(a,o){1&a&&(e.j41(0,"app-page",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return o.download()}),e.nrm(3,"app-download-solid-icon"),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"button",3),e.bIt("click",function(){return o.transcribe()}),e.nrm(8,"app-align-left-solid-icon"),e.j41(9,"span"),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"button",4),e.bIt("click",function(){return o.delete()}),e.nrm(13,"app-trash-alt-solid-icon"),e.j41(14,"span"),e.EFF(15),e.nI1(16,"translate"),e.k0s()(),e.j41(17,"button",5),e.bIt("click",function(){return o.archive()}),e.nrm(18,"app-archive-solid-icon"),e.j41(19,"span"),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.j41(22,"button",6),e.bIt("click",function(){return o.purge()}),e.nrm(23,"app-trash-alt-solid-icon"),e.j41(24,"span"),e.EFF(25),e.nI1(26,"translate"),e.k0s()(),e.j41(27,"button",7),e.bIt("click",function(){return o.settings()}),e.nrm(28,"app-cog-solid-icon"),e.j41(29,"span"),e.EFF(30),e.nI1(31,"translate"),e.k0s()()(),e.j41(32,"app-complex-filter",8),e.bIt("filterChanged",function(){return o.filterSubmit()}),e.nrm(33,"app-enum-filter",9)(34,"app-date-range-filter",10)(35,"app-text-filter",11)(36,"app-text-filter",12)(37,"app-enum-filter",13),e.k0s(),e.j41(38,"table",14)(39,"thead")(40,"tr")(41,"th",15)(42,"app-checker",16),e.bIt("ngModelChange",function(_){return o.selector.setSelectAll(_)}
1),e.k0s()(),e.j41(43,"th",17),e.nrm(44,"app-archive-solid-icon",18),e.k0s(),e.j41(45,"th",19),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.j41(48,"th",19),e.EFF(49),e.nI1(50,"translate"),e.k0s(),e.j41(51,"th",20),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"th",19),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.j41(57,"th",21),e.EFF(58),e.nI1(59,"translate"),e.k0s(),e.j41(60,"th",22),e.EFF(61),e.nI1(62,"translate"),e.k0s(),e.j41(63,"th",23),e.EFF(64),e.nI1(65,"translate"),e.k0s(),e.j41(66,"th",24),e.EFF(67),e.nI1(68,"translate"),e.k0s(),e.nrm(69,"th",25),e.k0s()(),e.j41(70,"tbody"),e.Z7z(71,Ne,43,36,"tr",26,e.fX1),e.k0s(),e.j41(73,"tfoot"),e.nVh(74,We,3,0,"tr"),e.j41(75,"tr")(76,"td",27)(77,"app-paging",28),e.nI1(78,"async"),e.nI1(79,"async"),e.nI1(80,"async"),e.bIt("pageChanged",function(_){return o.pager.pageChanged(_)})("itemsPerPageChanged",function(_){return o.onPageSizeChange(_)}),e.k0s()()()()()()),2&a&&(e.Y8G("helpUrl","_i18n.RecordingsUri"),e.R7$(2),e.Y8G("disabled",!o.selector.isAnySelected),e.R7$(3),e.Lme("",e.bMT(6,35,"_i18n.Download"),"",o.selector.selectedCountLabel),e.R7$(2),e.Y8G("disabled",!o.selector.isAnySelected||o.isTranscriptionEngineDisabled||!o.isBatchTranscriptionEnabled),e.R7$(3),e.Lme("",e.bMT(11,37,"_i18n.Transcribe"),"",o.selector.selectedCountLabel),e.R7$(2),e.Y8G("disabled",!o.selector.isAnySelected||o.isRemoving),e.R7$(3),e.Lme("",e.bMT(16,39,"_i18n.Delete"),"",o.selector.selectedCountLabel),e.R7$(2),e.Y8G("disabled",!(null!=o.archiveSettings&&o.archiveSettings.IsRecordingArchiveEnabled&&o.isUnarchivedSelected)),e.R7$(3),e.JRh(e.bMT(21,41,"_i18n.Archive")),e.R7$(2),e.Y8G("disabled",o.isRemoving),e.R7$(3),e.JRh(e.bMT(26,43,"_i18n.Purge")),e.R7$(2),e.Y8G("disabled",o.isRetrievingSettings),e.R7$(3),e.JRh(e.bMT(31,45,"_i18n.Settings")),e.R7$(2),e.Y8G("search",o.pager.search)("filterForm",o.filter)("formGroup",o.filter)("forceSearchEmit",!0),e.R7$(10),e.Y8G("ngModel",o.selector.isAnySelected),e.R7$(4),e.JRh(e.bMT(47,47,"_i18n.ID")),e.R7$(3),e.JRh(e.bMT(50,49,"_i18n.ReportsDate")),e.R7$(3),e.JRh(e.bMT(53,51,"_i18n.DisplayName")),e.R7$(3),e.JRh(e.bMT(56,53,"_i18n.DID")),e.R7$(3),e.JRh(e.bMT(59,55,"_i18n.Caller")),e.R7$(3),e.JRh(e.bMT(62,57,"_i18n.Callee")),e.R7$(3),e.JRh(e.bMT(65,59,"_i18n.Sentiment")),e.R7$(3),e.JRh(e.bMT(68,61,"_i18n.Transcription")),e.R7$(4),e.Dyx(o.data),e.R7$(3),e.vxM(o.initialLoading?74:-1),e.R7$(3),e.Y8G("currentPage",e.bMT(78,63,o.pager.currentPage$))("itemsPerPage",e.bMT(79,65,o.pager.pageSize$))("totalItems",e.bMT(80,67,o.pager.totalCount$))("showBoundaryLinks",!0)("showPageSizes",!0))},dependencies:[pe.H,ke.e,Ee.d,Ae.U,$e.Z,ye.M,i.X1,i.BC,i.cb,i.j4,i.JD,Re.j,Te.B,Ce,je.$,i.YN,i.vS,Me.O,Le.I,h.Mm,H.u4,Pe.w,Be.a,Ve.h,we.Jj,h.D9],encapsulation:2})}return c})()},43636(A,C,n){n.d(C,{s:()=>r});class r{cd;disabled=!1;touched=!1;onChange=u=>{};onTouched=()=>{};constructor(u){this.cd=u}registerOnChange(u){this.onChange=u}registerOnTouched(u){this.onTouched=u}markAsTouched(u=!1){(!this.touched||u)&&(this.onTouched(),this.touched=!0),this.cd.markForCheck()}setDisabledState(u){this.disabled=u,this.cd.markForCheck()}onBlur(u){this.markAsTouched(!0)}}},89479(A,C,n){n.d(C,{x:()=>Y});var r=n(22972),m=n(40953),u=n(99421),i=n(85802),T=n(17705),s=n(89417),d=n(43636),y=n(4499),l=n(35547);let g=(()=>{class f extends y.d{getDirectoryInfo(v,h="body"){const b=v?.actionImportGetDirectoryInfoRequestBody;if(null==b)throw new Error("Required parameter actionImportGetDirectoryInfoRequestBody was null or undefined when calling getDirectoryInfo.");let e=this.defaultHeaders;e=this.configuration.addCredentialToHeaders("Application","Authorization",e,"Bearer ");const S=this.configuration.selectHeaderAccept(["application/json"]);void 0!==S&&(e=e.set("Accept",S));const x=this.configuration.selectHeaderContentType(["application/json"]);void 0!==x&&(e=e.set("Content-Type",x));let L="json";S&&(L=S.startsWith("text")?"text":this.configuration.isJsonMime(S)?"json":"blob");const{basePath:z,withCredentials:M}=this.configuration;return this.httpClient.request("post",`${z}/GetDirectoryInfo`,{body:b,responseType:L,...M?{withCredentials:M}:{},headers:e,observe:h})}getDirectoryInfoQuery(v,h="body",b=!1,e){if(null==v.actionImportGetDirectoryInfoRequestBody)throw new Error("Required parameter actionImportGetDirectoryInfoRequestBody was null or undefined when calling getDirectoryInfo.");return"/GetDirectoryInfo"}static \u0275fac=(()=>{let v;return function(b){return(v||(v=l.xGo(f)))(b||f)}})();static \u0275prov=i.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();var I=n(68018);function D(f,F){if(1&f){const v=l.RV6();l.j41(0,"li",5)(1,"a",6),l.bIt("click",function(b){const e=i.eBV(v),S=e.$implicit,B=e.$index,x=e.$count,L=l.XpG();return i.Njj(L.goToPath(b,S,B===x-1))}),l.EFF(2),l.k0s()()}if(2&f){const v=F.$implicit;l.AVh("active",F.$index===F.$count-1),l.R7$(2),l.JRh(v.crumb)}}function E(f,F){if(1&f&&(l.j41(0,"option",3),l.EFF(1),l.k0s()),2&f){const v=F.$implicit;l.Y8G("ngValue",v),l.R7$(),l.JRh(v)}}function k(f,F){1&f&&(l.j41(0,"p",4),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&f&&(l.R7$(),l.JRh(l.bMT(2,1,"_i18n.ErrorUnableToReadDirectory")))}function $(f){let F=f.replace(/\\/g,"/");for(;F.endsWith("/")&&F.length>1;)F=F.substring(0,F.length-1);return F}function N(f,F){return"."!==F&&".."!==F&&F?f?`${function G(f){return`${f}${f.endsWith("/")||f.endsWith("\\")?"":"/"}`}(f)}${F}`:F:f}let X=(()=>{class f extends d.s{directoriesApiService=(0,i.WQX)(g);basePath;breadCrumbs=[];filesystem;json;dir="";dirs=[""];error;constructor(){super((0,i.WQX)(T.gRc))}updateBreadcrumbs(){const v=this.basePath??"",h=v.includes("/")?"/":"\\",b=v.split(h).filter(S=>!!S),e=b.map((S,B)=>({path:b.slice(0,B+1).join(h),crumb:S}));e.unshift({crumb:"..",path:""}),this.breadCrumbs=e,this.cd.markForCheck()}goToPath(v,h,b){v.preventDefault(),!b&&this.readDirectories(h.path)}readDirectories(v){this.directoriesApiService.getDirectoryInfo({actionImportGetDirectoryInfoRequestBody:{parameters:{Path:v,Filesystem:this.filesystem,Json:this.json}}}).subscribe({next:h=>{this.error=!1,this.basePath=$(h.Path??""),h.Dirs?.sort(),""!==this.basePath?(h.Dirs?.unshift(".."),this.dir=".."):this.filesystem===u.C.GoogleBucket||this.filesystem===u.C.SharePoint?(h.Dirs?.unshift("/"),this.dir="/"):this.dir=h.Dirs?h.Dirs[0]:"",this.dirs=h.Dirs??[],this.valueChanged(),this.updateBreadcrumbs()},error:()=>{this.error=!0,this.cd.markForCheck()}})}onKeyDown(v,h){v.stopPropagation(),"Enter"===v.code&&this.onDirectoryDblClick(h)}onDirectoryDblClick(v){let h;h=".."===v?this.basePath.substring(0,this.basePath.lastIndexOf("/"))+"/":N(this.basePath,v),this.readDirectories(h)}writeValue(v){null!=v&&(this.basePath=$(v),this.readDirectories(this.basePath),this.dir="",this.cd.markForCheck())}valueChanged(){this.onChange(N(this.basePath,this.dir))}static \u0275fac=function(h){return new(h||f)};static \u0275cmp=l.VBU({type:f,selectors:[["app-location-path"]],inputs:{filesystem:"filesystem",json:"json"},features:[l.Jv_([{provide:s.kq,useExisting:f,multi:!0}]),l.Vt3],decls:7,vars:2,consts:[[1,"breadcrumb"],[1,"breadcrumb-item",3,"active"],["size","10",1,"form-select","list-box","w-100",3,"dblclick","ngModelChange","keydown","ngModel"],[3,"ngValue"],[1,"val-errors"],[1,"breadcrumb-item"],["href","#","type","button",3,"click"]],template:function(h,b){1&h&&(l.j41(0,"ol",0),l.Z7z(1,D,3,3,"li",1,l.fX1),l.k0s(),l.j41(3,"select",2),l.bIt("dblclick",function(){return b.onDirectoryDblClick(b.dir)}),l.mxI("ngModelChange",function(S){return l.DH7(b.dir,S)||(b.dir=S),S}),l.bIt("ngModelChange",function(){return b.valueChanged()})("keydown",function(S){return b.onKeyDown(S,b.dir)}),l.Z7z(4,E,2,2,"option",3,l.fX1),l.k0s(),l.nVh(6,k,3,3,"p",4)),2&h&&(l.R7$(),l.Dyx(b.breadCrumbs),l.R7$(2),l.R50("ngModel",b.dir),l.R7$(),l.Dyx(b.dirs),l.R7$(2),l.vxM(b.error?6:-1))},dependencies:[s.YN,s.xH,s.y7,s.wz,s.BC,s.vS,I.D9],encapsulation:2,changeDetection:0})}return f})();var J=n(54999);let Y=(()=>{class f extends r.m{buttons=J.P.Ok;fileSystem=u.C.Local;path="";json;getPayload(){return this.path}static \u0275fac=(()=>{let v;return function(b){return(v||(v=l.xGo(f)))(b||f)}})();static \u0275cmp=l.VBU({type:f,selectors:[["ng-component"]],inputs:{fileSystem:"fileSystem",path:"path",json:"json"},features:[l.Vt3],decls:2,vars:4,consts:[["header","_i18n.SelectDirectory",3,"submitted","buttons"],[3,"ngModelChange","ngModel","json","filesystem"]],template:function(h,b){1&h&&(l.j41(0,"app-modal-dialog",0),l.bIt("submitted",function(){return b.onSubmit()}),l.j41(1,"app-location-path",1),l.mxI("ngModelChange",function(S){return l.DH7(b.path,S)||(b.path=S),S}),l.k0s()()),2&h&&(l.Y8G("buttons",b.buttons),l.R7$(),l.R50("ngModel",b.path),l.Y8G("json",b.json)("filesystem",b.fileSystem))},dependencies:[m.p,X,s.YN,s.BC,s.vS],encapsulation:2,changeDetection:0})}return f})()},62329(A,C,n){n.d(C,{J:()=>i});var r=n(45678),m=n(96794),u=n(39993);class i{includeTime;referenceDate=new Date;_pureValue;label="_i18n.ReportsRange";constructor(s={periodType:r.ci.Today},d=!0){this.includeTime=d,this._pureValue={periodType:s.periodType,periodFromTo:"periodFromTo"in s?s.periodFromTo:null,firstWeekDay:"firstWeekDay"in s?s.firstWeekDay:null}}get isTimeIncluded(){return(0,m.Pr)(this._pureValue.periodType)||this.includeTime}getDisplayValue(s){const{periodType:d,firstWeekDay:y,periodFromTo:l}=this.pureValue;return d===r.ci.Custom?(0,m.t5)(l,this.isTimeIncluded):`${s.instant((0,m.Yy)(d))}${d===r.ci.LastWeek&&null!==y?` (${s.instant((0,m.Uz)(y))})`:""}`}getDisplayValueForPrint(s){const{periodType:d,firstWeekDay:y,periodFromTo:l}=this.pureValue,g=(0,m.t5)(l,this.isTimeIncluded);return`${s.instant((0,m.Yy)(d))}${d===r.ci.LastWeek&&null!==y?` - ${s.instant((0,m.Uz)(y))}`:""}${g?` (${g})`:""}`}
1get pureValue(){let{periodFromTo:s,periodType:d,firstWeekDay:y}=this.validate()?{periodType:null,periodFromTo:null,firstWeekDay:null}:this._pureValue;d??=r.ci.Today,y??=(0,u.m)(),s??=(0,m.ZB)(d,y,this.referenceDate,this.includeTime);let[l,g]=s;return l>g&&([l,g]=[g,l]),{periodType:d,periodFromTo:this.isTimeIncluded?s:[new Date(l.getFullYear(),l.getMonth(),l.getDate()),new Date(g.getFullYear(),g.getMonth(),g.getDate())],firstWeekDay:y}}set pureValue(s){this._pureValue={periodType:s.periodType,periodFromTo:s.periodType===r.ci.Custom&&"periodFromTo"in s?s.periodFromTo:null,firstWeekDay:"firstWeekDay"in s?s.firstWeekDay:null}}get value(){const{periodType:s,periodFromTo:d,firstWeekDay:y}=this.pureValue,[l,g]=d;return{periodType:s,periodFromTo:[l,this.isTimeIncluded?g:new Date(g.setDate(g.getDate()+1))],firstWeekDay:y}}set value(s){this.pureValue=s}deserialize(s){let d=r.ci.Today,y=null,l=null,g=this.referenceDate;const I=this.includeTime;"periodType"in s&&(0,m.Wl)(s.periodType)&&(d=s.periodType);const D=I||(0,m.Pr)(d);if("firstWeekDay"in s&&(0,m.OE)(s.firstWeekDay)&&(l=s.firstWeekDay),d===r.ci.Custom&&"periodFromTo"in s&&(0,m.Yu)(s.periodFromTo)){const k=(0,m.xo)(s.periodFromTo[0],D),$=(0,m.xo)(s.periodFromTo[1],D,!0);k&&$&&(y=k<=$?[k,$]:[$,k])}if(r.tc in s&&"string"==typeof s[r.tc]){const k=(0,m.xo)(s[r.tc],!1);k&&(g=k)}const E=new i({periodType:d,periodFromTo:y,firstWeekDay:l},I);return E.referenceDate=g,E}serialize(){const{periodFromTo:s,periodType:d,firstWeekDay:y}=this.pureValue;return{periodType:d,periodFromTo:d===r.ci.Custom?s.map(l=>(0,m.Cg)(l,this.includeTime)):void 0,firstWeekDay:d===r.ci.LastWeek?y:void 0}}validate(){const{periodFromTo:s,periodType:d}=this._pureValue;if(d===r.ci.Custom){if(!s)return{periodFromTo:{required:!0}};if(!s.every(Boolean))return{periodFromTo:{invalid:!0}}}return null}}},47429(A,C,n){n.d(C,{j:()=>d});var r=n(85802),m=n(89417),u=n(43748),i=n(68018),T=n(66300),s=n(35547);let d=(()=>{class y extends u.F{translate=(0,r.WQX)(i.c$);searchable=!1;sortOptions;options;constructor(){super(new m.MJ(null))}writeValue(g){super.writeValue(g),this.options=this.sortOptions?g.options.slice().map(I=>({...I,label:this.translate.instant(I.label)})).sort((I,D)=>-1===I.value||-1===D.value?0:I.label.localeCompare(D.label)):g.options}static \u0275fac=function(I){return new(I||y)};static \u0275cmp=s.VBU({type:y,selectors:[["app-enum-filter"]],inputs:{searchable:"searchable",sortOptions:"sortOptions"},features:[s.Jv_([{provide:m.kq,multi:!0,useExisting:y},{provide:m.cz,multi:!0,useExisting:y}]),s.Vt3],decls:5,vars:8,consts:[["data-qa","enum-filter",1,"d-flex","gap-3"],[1,"filter-label"],[3,"formControl","options","searchable"]],template:function(I,D){1&I&&(s.j41(0,"div",0)(1,"label",1),s.EFF(2),s.nI1(3,"translate"),s.k0s(),s.nrm(4,"field-select",2),s.k0s()),2&I&&(s.R7$(),s.AVh("disabled",D.disabled),s.R7$(),s.JRh(s.bMT(3,6,D.value.label)),s.R7$(2),s.Y8G("formControl",D.control)("options",D.value.options)("searchable",D.searchable))},dependencies:[T.q,m.X1,m.BC,m.l_,i.D9],encapsulation:2,changeDetection:0})}return y})()},75215(A,C,n){n.d(C,{L:()=>r});class r{label;queryParam;options;key;omitDefaultInValue;defaultOption;pureValue;constructor(u,i,T,s="selectedValue",d=!1,y=null){this.label=u,this.queryParam=i,this.options=T,this.key=s,this.omitDefaultInValue=d,this.defaultOption=y,this.pureValue=this.defaultValue}get defaultValue(){return this.defaultOption??this.options[0].value}get value(){return{[this.key]:this.omitDefaultInValue&&this.pureValue===this.defaultValue?null:this.pureValue}}set value(u){this.pureValue=u[this.key]??this.defaultValue}deserialize(u){const i=this.value,T=new r(this.label,this.queryParam,this.options,this.key,this.omitDefaultInValue,this.defaultOption);return i&&(T.value=i),r.updateFromSerializedFilter(T,u)}getDisplayValue(u){return u.instant(this.options.find(i=>i.value===this.pureValue).label)}getDisplayValueForPrint(u){return this.getDisplayValue(u)}serialize(){return this.pureValue===this.defaultValue||null==this.pureValue?{}:{[this.queryParam]:this.pureValue}}validate(){return null}static updateFromSerializedFilter(u,i){return u.queryParam in i&&u.options.some(T=>T.value===i[u.queryParam])&&(u.pureValue=i[u.queryParam]),u}}},52101(A,C,n){function r(T){T.warning("_i18n.RestartOfServicesRequired",{link:"#/office/dashboard/services"})}function u(T){return T.confirmDangerAction("_i18n.AllEntriesDeletedPermanently","_i18n.DeleteSelected",{},"_i18n.Delete")}function i(T){return T.confirmDeletion("_i18n.EntryDeletedPermanently")}n.d(C,{fb:()=>r,qq:()=>i,zq:()=>u})},54172(A,C,n){n.d(C,{w:()=>u});var r=n(35547),m=n(85802);let u=(()=>
1{class i{static \u0275fac=function(d){return new(d||i)};static \u0275cmp=r.VBU({type:i,selectors:[["app-align-left-solid-icon"],["","app-align-left-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M288 64c0 17.7-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32L32 352c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]],template:function(d,y){1&d&&(m.qSk(),r.rj2(0,"svg",0),r.Hgh(1,"path",1),r.eux())},encapsulation:2})}return i})()},74536(A,C,n){n.d(C,{Z:()=>u});var r=n(35547),m=n(85802);let u=(()=>{class i{static \u0275fac=function(d){return new(d||i)};static \u0275cmp=r.VBU({type:i,selectors:[["app-cog-solid-icon"],["","app-cog-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","m487.4 315.7-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]],template:function(d,y){1&d&&(m.qSk(),r.rj2(0,"svg",0),r.Hgh(1,"path",1),r.eux())},encapsulation:2})}return i})()},70312(A,C,n){n.d(C,{S:()=>u});var r=n(35547),m=n(85802);let u=(()=>{class i{static \u0275fac=function(d){return new(d||i)};static \u0275cmp=r.VBU({type:i,selectors:[["app-ellipsis-h-regular-icon"],["","app-ellipsis-h-regular-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"]],template:function(d,y){1&d&&(m.qSk(),r.rj2(0,"svg",0),r.Hgh(1,"path",1),r.eux())},encapsulation:2})}return i})()},32732(A,C,n){n.d(C,{O:()=>u});var r=n(35547),m=n(85802);let u=(()=>{class i{static \u0275fac=function(d){return new(d||i)};static \u0275cmp=r.VBU({type:i,selectors:[["app-waveform-lines-solid-icon"],["","app-waveform-lines-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M352 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V480c0 17.7 14.3 32 32 32s32-14.3 32-32V32zM544 96c0-17.7-14.3-32-32-32s-32 14.3-32 32V416c0 17.7 14.3 32 32 32s32-14.3 32-32V96zM256 128c0-17.7-14.3-32-32-32s-32 14.3-32 32V384c0 17.7 14.3 32 32 32s32-14.3 32-32V128zm192 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V352c0 17.7 14.3 32 32 32s32-14.3 32-32V160zM160 224c0-17.7-14.3-32-32-32s-32 14.3-32 32v64c0 17.7 14.3 32 32 32s32-14.3 32-32V224zM0 256a32 32 0 1 0 64 0A32 32 0 1 0 0 256zm576 0a32 32 0 1 0 64 0 32 32 0 1 0 -64 0z"]],template:function(d,y){1&d&&(m.qSk(),r.rj2(0,"svg",0),r.Hgh(1,"path",1),r.eux())},encapsulation:2})}return i})()},82207(A,C,n){n.d(C,{I:()=>l});var r=n(85802),m=n(50779),u=n(68018),i=n(35547);let T=(()=>{class g{bsModalRef=(0,r.WQX)(m.Y$);header="_i18n.Transcription";text;static \u0275fac=function(E){return new(E||g)};static \u0275cmp=i.VBU({type:g,selectors:[["app-transcription-modal"]],inputs:{header:"header",text:"text"},decls:10,vars:5,consts:[[1,"modal-header"],["data-qa","modal-title",1,"modal-title",3,"translate"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body","text-keep-lines",2,"max-height","400px","overflow-y","auto"],[1,"modal-footer"],["id","btnOk","type","button",1,"btn","btn-primary",3,"click"]],template:function(E,k){1&E&&(i.j41(0,"div",0)(1,"h4",1),i.EFF(2,"Transcription"),i.k0s(),i.j41(3,"button",2),i.bIt("click",function(){return k.bsModalRef.hide()}),i.k0s()(),i.j41(4,"div",3),i.EFF(5),i.k0s(),i.j41(6,"div",4)(7,"button",5),i.bIt("click",function(){return k.bsModalRef.hide()}),i.EFF(8),i.nI1(9,"translate"),i.k0s()()),2&E&&(i.R7$(),i.Y8G("translate",k.header),i.R7$(4),i.SpI(" ",k.text," "),i.R7$(3),i.SpI("",i.bMT(9,3,"_i18n.OK")," "))},dependencies:[u.Mm,u.D9],encapsulation:2})}return g})();var s=n(16444),d=n(1211),y=n(38601);let l=(()=>{class g{myPhoneService=(0,r.WQX)(s.gx);modalService=(0,r.WQX)(y.B);bsModalService=(0,r.WQX)(m.I8);showTranscription(D,E="_i18n.Transcription"){this.bsModalService.show(T,{initialState:{header:E,text:D}})}requestRecordingTranscription(D){this.myPhoneService.get(new d.Kt_({Id:D})).subscribe({next:E=>{this.showTranscription(E.Transcription)},error:E=>this.modalService.error(E)})}static \u0275fac=function(E){return new(E||g)};static \u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},99421(A,C,n){n.d(C,{C:()=>r});const r={Local:"Local",Ftp:"Ftp",GoogleDrive:"GoogleDrive",NetworkShare:"NetworkShare",Logs:"Logs",Sftp:"Sftp",GoogleBucket:"GoogleBucket",SharePoint:"SharePoint",AmazonS3:"AmazonS3"}}}]);

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.