PageSourceSearch

https://danray.org/3195.0a714c8179bc2c09.js

js danray.org collected 2026-10-06 19:16:55 UTC 21,574 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[3195],{90394(Q,R,o){o.d(R,{e:()=>B});var y=o(16444),t=o(59882),I=o(85802),x=o(25558),T=o(96697),p=o(1211),m=o(46062),D=o(38601),n=o(33544);let B=(()=>{class A{myPhoneSvc=(0,I.WQX)(y.gx);router=(0,I.WQX)(t.Ix);modalService=(0,I.WQX)(D.B);updateConversation(C){const l=new p.mG3;return l.IdConversation=C.Conversation.IdConversation,l.PrivateName=C.Conversation.PrivateName,l.IsArchived=C.Conversation.IsArchived,l.PublicName=C.Conversation.PublicName,this.myPhoneSvc.get(l)}createExternalConversation(C,l){return this.myPhoneSvc.myPhoneSession.pipe((0,T.s)(1),(0,x.n)(b=>{const g=new p.$RH;return g.Party=`${b.myInfo.Number}:${C}@${l}`,g.PrivateName="",this.myPhoneSvc.get(g)}))}createConversation(C,l){return this.myPhoneSvc.myPhoneSession.pipe((0,T.s)(1),(0,x.n)(b=>{const g=new p.$RH;return g.Party=function L(A,F){const C=F.filter(g=>g.type===m.eE.Extension),l=C.map(g=>(0,n.c)(g)),b=A.myInfo.Number;return C.some(g=>g.phones.extension===b)||l.unshift(b),l.sort(),l.join(":").replace(new RegExp("#","g"),"@")}(b,C),g.PrivateName="",l&&(g.PublicName=l),this.myPhoneSvc.get(g)}))}sendMessage(C,l){return this.createConversation(C.contacts,C.group).pipe((0,T.s)(1),(0,x.n)(b=>{const g=new p.vUS;return g.Message=l,g.IdConversation=b.Conversation.IdConversation,this.myPhoneSvc.get(g)}))}openChat(C){return this.createConversation(C.contacts,C.groupName).pipe((0,T.s)(1)).subscribe({next:l=>{this.openChatById(l.Conversation.IdConversation)},error:l=>this.modalService.error(l)})}openChatById(C,l){this.router.navigate(l?[`/chat/monitor/${C}`]:[`/chat/${C}`])}static \u0275fac=function(l){return new(l||A)};static \u0275prov=I.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},8876(Q,R,o){o.d(R,{c:()=>I});var y=o(35547),t=o(85802);let I=(()=>{class x{el=(0,t.WQX)(y.aKT);id;ngAfterViewInit(){const p=this.el.nativeElement.getElementsByTagName("input")[0];p&&(p.id=this.id,this.el.nativeElement.id="")}static \u0275fac=function(m){return new(m||x)};static \u0275dir=y.FsC({type:x,selectors:[["ng-select","id",""]],inputs:{id:"id"}})}return x})()},26030(Q,R,o){o.d(R,{N:()=>q});var y=o(85802),t=o(35547),I=o(32271),x=o(17705),T=o(44652),p=o(92771),m=o(25558),D=o(84572),n=o(7673),L=o(23294),B=o(88141),A=o(96354),F=o(96697),C=o(70980),l=o(46062),b=o(94681),g=o(33971),W=o(3013),X=o(50644),w=o(72510),k=o(31755),U=o(56998),Y=o(89079),V=o(95604),J=o(8876),j=o(89417),P=o(62175),K=o(47548),H=o(68018),E=o(49769),$=o(9852),e=o(19543),i=o(55645),r=o(1191),s=o(58689),c=o(8516);function G(d,S){if(1&d&&(t.nrm(0,"div",11),t.nI1(1,"contactPhoneType"),t.nI1(2,"async"),t.nI1(3,"userProfile"),t.nI1(4,"async")),2&d){const a=t.XpG(2).item;t.Y8G("truncatedText",t.ai1("",a.number," ",t.bMT(2,6,t.i5U(1,3,a.contact,a.number))||t.bMT(4,10,t.bMT(3,8,a.contact))))}}function h(d,S){if(1&d&&(t.nrm(0,"div",12),t.nI1(1,"translate")),2&d){const a=t.XpG(2).item,v=t.XpG();t.Y8G("truncatedText",t.bMT(1,1,v.isSystemExtension(a)?"_i18n.GroupVoicemail":"_i18n.VoiceMail"))}}function u(d,S){if(1&d){const a=t.RV6();t.j41(0,"div",8),t.bIt("mouseover",function(f){y.eBV(a);const O=t.XpG(2);return y.Njj(!O.autoSelectFirst&&f.stopPropagation())}),t.nrm(1,"app-avatar",9),t.j41(2,"div"),t.nrm(3,"div",10),t.nI1(4,"lforfl"),t.nI1(5,"async"),t.nVh(6,G,5,12,"div",11)(7,h,2,3,"div",12),t.k0s()()}if(2&d){const a=t.XpG().item;t.R7$(),t.Y8G("ext",a.contact),t.R7$(2),t.Y8G("truncatedText",t.bMT(5,6,t.i5U(4,3,a.contact,a.name))),t.R7$(3),t.vxM(a.isVoicemail?7:6)}}function Z(d,S){1&d&&t.nVh(0,u,8,8,"div",7),2&d&&t.vxM(S.item?0:-1)}function _(d,S){}function z(d,S){if(1&d){const a=t.RV6();t.j41(0,"button",13),t.bIt("click",function(f){y.eBV(a);const O=t.XpG();return y.Njj(O.trySearchAndSelectContact(f))}),t.nrm(1,"app-icon",14),t.k0s()}if(2&d){const a=t.XpG();t.HbH(t.VkB("btn btn-border ",a.isNewDesign()?"svg-md":"border-start-0")),t.Y8G("disabled",a.disabled),t.R7$(),t.Y8G("icon",a.addIcon())}}let q=(()=>{class d{runtimeSearch=(0,y.WQX)(W.B);contactSearcher=(0,y.WQX)(T.D);destroy$=(0,y.WQX)(y.abz);el=(0,y.WQX)(t.aKT);isNewDesign=(0,y.WQX)(s.T);id=(0,U.bn)("find-select");showAddButton;autoSelectFirst=!0;disabled;placeholder;searchContext;notFoundText="_i18n.ContactsNotFound";addIcon=(0,I.EW)(()=>this.isNewDesign()?c.FWt:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path 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"/></svg>\n');contactSelected=(0,x.CGW)();ngSelect;searchControl=new j.MJ(null);searchContext$=new p.m(1);searching=(0,y.vPA)(!1);suggestions$=this.searchContext$.pipe((0,L.F)(),(0,B.M)(()=>this.searching.set(!0)),(0,m.n)(a=>(0,D.z)([this.runtimeSearch.getContacts(a),this.runtimeSearch.getCrmContacts(a)])),(0,B.M)(()=>this.searching.set(!1)),(0,A.T)(([a,v])=>a.concat(v.contacts)),(0,X.H9)());searchText="";ngOnChanges(a){a.searchContext&&this.searchContext&&this.searchContext$.next(this.searchContext),a.disabled&&(0,U.TZ)(this.searchControl,!this.disabled)}ngAfterViewInit(){this.el.nativeElement.id=""}isSystemExtension(a){return a.contact?.type===l.eE.SystemExtension}focus(){this.ngSelect.focus()}onItemSelected(a){a&&this.contactSelected.emit(a),this.search("")}search(a){this.searchText=a?.trim()||"",this.searchText||this.searchControl.setValue(null)}trySearchAndSelectContact(a){a.stopImmediatePropagation(),a.stopPropagation();const v=this.searchText;if(!v)return;const f=(0,g.B9)(v);this.suggestions$.pipe((0,m.n)(O=>this.autoSelectFirst?O.length>0?(0,n.of)(O[0]):this.searchContext$.pipe((0,m.n)(N=>f?this.contactSearcher.requestContactByEmail(v,N):this.contactSearcher.requestContactByNumber(v,N)),(0,A.T)(N=>new b.q({name:N.firstNameLastName,number:v,contact:N.isDummy?void 0:N,isEmail:f}))):(0,n.of)(new b.q({number:v,contact:void 0,isEmail:f}))),(0,F.s)(1),(0,C.j)(()=>this.search("")),(0,Y.pQ)(this.destroy$)).subscribe(O=>{this.onItemSelected(O)})}static \u0275fac=function(v){return new(v||d)};static \u0275cmp=t.VBU({type:d,selectors:[["find-contact"]],viewQuery:function(v,f){if(1&v&&t.GBs(w.vr,7),2&v){let O;t.mGM(O=t.lsd())&&(f.ngSelect=O.first)}},hostVars:2,hostBindings:function(v,f){2&v&&t.AVh("form-input",!0)},inputs:{id:"id",showAddButton:"showAddButton",autoSelectFirst:"autoSelectFirst",disabled:"disabled",placeholder:"placeholder",searchContext:"searchContext",notFoundText:"notFoundText"},outputs:{contactSelected:"contactSelected"},features:[t.Jv_([W.B,{provide:k.b,useExisting:d}]),t.OA$],decls:10,vars:18,consts:[[1,"mb-0"],[1,"input-group"],[1,"position-relative","flex-1"],["loadingText","","data-qa","select",3,"search","keydown.enter","change","id","items","notFoundText","placeholder","typeToSearchText","typeahead","clearable","markFirst","formControl"],["ng-option-tmp",""],["ng-label-tmp",""],["type","button","data-qa","add-contact",3,"class","disabled"],["data-qa","contact-suggest-item",1,"d-flex","mw-0","align-items-center","column-gap-2"],["data-qa","contact-suggest-item",1,"d-flex","mw-0","align-items-center","column-gap-2",3,"mouseover"],["size","xs",1,"m-0",3,"ext"],["data-qa","item-name",1,"text-sm",3,"truncatedText"],["data-qa","item-number",1,"form-text","m-0",3,"truncatedText"],["data-qa","item-vmail",1,"form-text","m-0",3,"truncatedText"],["type","button","data-qa","add-contact",3,"click","disabled"],[3,"icon"]],template:function(v,f){1&v&&(t.j41(0,"field-wrapper",0)(1,"div",1)(2,"div",2)(3,"ng-select",3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.nI1(6,"async"),t.bIt("search",function(N){return f.search(N.term)})("keydown.enter",function(N){return f.trySearchAndSelectContact(N)})("change",function(N){return f.onItemSelected(N)}),t.DNE(7,Z,1,1,"ng-template",4)(8,_,0,0,"ng-template",5),t.k0s()(),t.nVh(9,z,2,5,"button",6),t.k0s()()),2&v&&(t.R7$(3),t.Y8G("notFoundText",t.mNQ(t.bMT(4,12,f.searching()?"":f.
1notFoundText)))("typeToSearchText",t.VkB("",t.bMT(5,14,"_i18n.Search"),"..."))("id",f.id)("items",t.bMT(6,16,f.suggestions$))("placeholder",f.placeholder||"")("typeahead",f.runtimeSearch.search$)("clearable",!1)("markFirst",f.autoSelectFirst)("formControl",f.searchControl),t.R7$(6),t.vxM(f.showAddButton?9:-1))},dependencies:[V.z,w.vr,J.c,j.X1,j.BC,j.l_,w.Uq,P.f,K.N,w.ZZ,r.R,H.D9,E.Jj,$._,e.R,i.z],styles:["ng-select[_ngcontent-%COMP%]    {--ng-select-option-height: 36px}ng-select[_ngcontent-%COMP%]     .ng-select-container, ng-select[_ngcontent-%COMP%]     input{cursor:text!important}ng-select[_ngcontent-%COMP%]     .ng-dropdown-panel .ng-dropdown-panel-items{max-height:calc(var(--ng-select-option-height) * 6)}ng-select[_ngcontent-%COMP%]     .ng-arrow-wrapper{width:17px;height:17px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjODA4MDgwIiBkPSJNNTA4LjUgNDY4LjkgMzg3LjEgMzQ3LjVjLTIuMy0yLjMtNS4zLTMuNS04LjUtMy41aC0xMy4yYzMxLjUtMzYuNSA1MC42LTg0IDUwLjYtMTM2QzQxNiA5My4xIDMyMi45IDAgMjA4IDBTMCA5My4xIDAgMjA4czkzLjEgMjA4IDIwOCAyMDhjNTIgMCA5OS41LTE5LjEgMTM2LTUwLjZ2MTMuMmMwIDMuMiAxLjMgNi4yIDMuNSA4LjVsMTIxLjQgMTIxLjRjNC43IDQuNyAxMi4zIDQuNyAxNyAwbDIyLjYtMjIuNmM0LjctNC43IDQuNy0xMi4zIDAtMTd6TTIwOCAzNjhjLTg4LjQgMC0xNjAtNzEuNi0xNjAtMTYwUzExOS42IDQ4IDIwOCA0OHMxNjAgNzEuNiAxNjAgMTYwLTcxLjYgMTYwLTE2MCAxNjB6Ii8+PC9zdmc+);background-size:100% 100%;pointer-events:none!important;cursor:inherit!important;right:6px}ng-select[_ngcontent-%COMP%]     .ng-arrow-wrapper .ng-arrow{display:none}ng-select[_ngcontent-%COMP%]     .ng-input{padding-right:28px!important}ng-select[_ngcontent-%COMP%]     .form-text, ng-select[_ngcontent-%COMP%]     .text-sm{line-height:1.3}"],changeDetection:0})}return d})()},1191(Q,R,o){o.d(R,{R:()=>p});var y=o(8516),t=o(29912),I=o(35547);function x(m,D){if(1&m&&I.nrm(0,"show-svg-images",0),2&m){const n=I.XpG();I.Y8G("svg",n.icon)}}function T(m,D){if(1&m&&I.nrm(0,"lucide-icon",2),2&m){const n=I.XpG();I.AVh("filled",n.fillLucideIcon),I.Y8G("img",n.icon)}}let p=(()=>{class m{icon;fillLucideIcon=!1;static \u0275fac=function(L){return new(L||m)};static \u0275cmp=I.VBU({type:m,selectors:[["app-icon"]],inputs:{icon:"icon",fillLucideIcon:"fillLucideIcon"},decls:2,vars:1,consts:[[3,"svg"],[3,"img","filled"],[3,"img"]],template:function(L,B){1&L&&I.nVh(0,x,1,1,"show-svg-images",0)(1,T,1,3,"lucide-icon",1),2&L&&I.vxM("string"==typeof B.icon?0:B.icon?1:-1)},dependencies:[t.d,y.flO,y.WGl],styles:["[_nghost-%COMP%]{flex-shrink:0;display:inline-block}lucide-icon[_ngcontent-%COMP%]{display:flex}"],changeDetection:0})}return m})()},66029(Q,R,o){o.d(R,{N:()=>H});var y=o(7673),t=o(84572),I=o(44437),x=o(18810),T=o(96697),p=o(25558),m=o(96354),D=o(85802),n=o(1211);class L{pickups=[];diverts=[];transfers=[];drops=[];bargeins=[];unparking=[];parking=[];callReports=[];constructor($,e,i,r){e.forEach(s=>{if(null==s)return;const c=s.CallCapabilitiesMask;0!==c&&((c&n.h3E.CC_Pickup)===n.h3E.CC_Pickup||(s.OwnerType===n.Jhl.IVR||s.OwnerType===n.Jhl.SpecialMenu)&&(c&n.h3E.CC_Transfer)===n.h3E.CC_Transfer?(s.OtherPartyDn!==r&&s.OwnerDn!==r&&this.pickups.push(s),((s.OwnerType===n.Jhl.IVR||s.OwnerType===n.Jhl.SpecialMenu)&&(c&n.h3E.CC_Transfer)===n.h3E.CC_Transfer||(c&n.h3E.CC_Divert)===n.h3E.CC_Divert)&&this.diverts.push(s),(s.OwnerType===n.Jhl.IVR||s.OwnerType===n.Jhl.SpecialMenu)&&this.parking.push(s)):(c&n.h3E.CC_Transfer)===n.h3E.CC_Transfer&&s.OtherPartyType!==n.Jhl.SpecialMenu&&(i&&s.OwnerType===n.Jhl.Parking?(this.unparking.push(s),this.transfers.push(s)):s.OtherPartyType!==n.Jhl.Parking&&s.OtherPartyType!==n.Jhl.IVR&&(this.transfers.push(s),i&&s.OtherPartyDn!==r&&this.parking.push(s))),(c&n.h3E.CC_Quality)===n.h3E.CC_Quality&&this.callReports.push(s),(c&n.h3E.CC_Drop)===n.h3E.CC_Drop&&this.drops.push(s),!$&&(c&n.h3E.CC_BargeIn)===n.h3E.CC_BargeIn&&this.bargeins.push(s))})}}var B=o(16444);class A{activeCall;constructor($){this.activeCall=$}pickupConnection;divertConnection;dropConnection;listenConnection;whisperConnections;bargeInConnection;parkConnections;transferConnections;conferenceCall;recordConnection;stopRecordingConnection;unparkConnection;requestCallReport;hasAnyActions(){return!!(this.pickupConnection||this.divertConnection||this.dropConnection||this.listenConnection||this.whisperConnections?.length||this.bargeInConnection||this.parkConnections?.length||this.transferConnections?.length||this.recordConnection||this.stopRecordingConnection||this.unparkConnection||this.requestCallReport)}}var F=o(38601),C=o(7881),l=o(90558),b=o(22040),g=o(94681),W=o(68018),X=o(20284),w=o(96106),k=o(26030),U=o(96049),Y=o(22972),V=o(54999),J=o(40953),j=o(35606),P=o(35547);let K=(()=>{class E extends Y.m{header;placeholder;searchContext=U.o.default();type="";buttons=V.P.Cancel;dialog;contactSelected(e){this.output={decision:V.R.Ok,payload:e},this.dialog.submit()}static \u0275fac=(()=>{let e;
1return function(r){return(e||(e=P.xGo(E)))(r||E)}})();static \u0275cmp=P.VBU({type:E,selectors:[["find-contact-modal"]],viewQuery:function(i,r){if(1&i&&P.GBs(J.p,7),2&i){let s;P.mGM(s=P.lsd())&&(r.dialog=s.first)}},inputs:{header:"header",placeholder:"placeholder",searchContext:"searchContext",type:"type"},features:[P.Vt3],decls:3,vars:8,consts:[[3,"header","buttons"],["wcAutofocus","",3,"contactSelected","placeholder","searchContext","autoSelectFirst"]],template:function(i,r){1&i&&(P.j41(0,"app-modal-dialog",0)(1,"find-contact",1),P.nI1(2,"translate"),P.bIt("contactSelected",function(c){return r.contactSelected(c)}),P.k0s()()),2&i&&(P.Y8G("header",r.header)("buttons",r.buttons),P.R7$(),P.Y8G("placeholder",P.VkB("",P.bMT(2,6,r.placeholder||"_i18n.SearchOrEnterNumber")," ..."))("searchContext",r.searchContext)("autoSelectFirst",!1))},dependencies:[k.N,J.p,j.J,W.D9],encapsulation:2})}return E})(),H=(()=>{class E{myPhoneService=(0,D.WQX)(B.gx);modalService=(0,D.WQX)(F.B);deviceService=(0,D.WQX)(l.gc);settingsService=(0,D.WQX)(b.h);translate=(0,D.WQX)(W.c$);phoneService=(0,D.WQX)(X.u);getCallActions(e){return this.myPhoneService.myPhoneSession.pipe((0,T.s)(1),(0,p.n)(i=>{const r=e.Connections.map(c=>((new n.pVU).LocalConnectionId=c.Id,(0,w.EK)((0,y.of)([c,i])))),s=i.parkings$.pipe((0,m.T)(c=>c&&c.Items&&c.Items.length>0));return(0,t.z)([s,(0,I.y)(...r),this.deviceService.selectedPhoneDeviceAgent$]).pipe((0,m.T)(([c,M,G])=>{const h=new L(!1,M,c,i.myInfo.Number),u=new A(e);u.pickupConnection=h.pickups.length>0?h.pickups[0]:void 0,u.divertConnection=h.diverts.length>0?h.diverts[0]:void 0,u.requestCallReport=h.callReports.length>0?h.callReports[0]:void 0,u.conferenceCall=!(e.RawState===n.Tll.Connected&&h.transfers.length>0)||e.CalleeType!==n.Jhl.Extension&&e.CalleeType!==n.Jhl.ExternalLine||e.CallerType!==n.Jhl.Extension&&e.CallerType!==n.Jhl.ExternalLine?void 0:e,c?(u.unparkConnection=h.unparking.length>0?h.unparking[0]:void 0,u.parkConnections=h.parking):(u.unparkConnection=void 0,u.parkConnections=[]);const Z=h.transfers.filter(d=>d.OwnerType===n.Jhl.Parking||d.OwnerType===n.Jhl.IVR).length,z=h.transfers.find(d=>d.OwnerType===n.Jhl.Queue);if(void 0!==z&&Object.values(i.queues).filter(S=>S.queueNumber===z.OwnerDn),h.transfers.length>0&&0===Z){const S=h.transfers.find(a=>a.OwnerDn===i.myInfo.Number)||h.transfers[0];S&&(S.OwnerDn===i.myInfo.Number&&!i.myInfo.AllowControlOwnRecordings||(!S.Recording||S.RecordingPaused?u.recordConnection=S:S.Recording&&!S.RecordingPaused&&(u.stopRecordingConnection=S)))}return u.transferConnections=h.transfers,u.dropConnection=h.drops[0],u.bargeInConnection=void 0,u.listenConnection=void 0,u.whisperConnections=[],h.bargeins.length>0&&(1===h.bargeins.length&&h.bargeins[0].OwnerType===n.Jhl.SpecialMenu?u.listenConnection=h.bargeins[0]:(u.listenConnection=h.bargeins[0],u.bargeInConnection=h.bargeins[0],u.whisperConnections=h.bargeins)),u}))}))}listen(e){e&&this.doBargeIn(e,n.cW9.Listen)}whisper(e){this.doBargeIn(e,n.cW9.Whisper)}bargeIn(e){e&&this.doBargeIn(e,n.cW9.BargeIn)}requestCallReport(e){if(!e)return;const i=new n.U9T({ActiveConnection:e.Id});this.myPhoneService.get(i).pipe((0,T.s)(1)).subscribe({error:r=>this.modalService.error(r)})}doBargeIn(e,i){(e.CallCapabilitiesMask&n.h3E.CC_BargeIn)===n.h3E.CC_BargeIn&&this.deviceService.selectedPhoneDevice$.pipe((0,T.s)(1),(0,p.n)(r=>{if((0,l.F0)(r))return this.phoneService.bargeIn$(e.Id,i);{if(!r?.Contact)throw new Error("_i18n.PhoneNotConnected");const s=new n.WS6({LocalConnectionId:e.Id,mode:i,DeviceContact:r.Contact});return this.myPhoneService.get(s)}})).subscribe({error:r=>{"Unspecified"===(0,C.PE)(r)?this.modalService.error("_i18n.OperationCannotBePerformed"):this.modalService.error(r)}})}pickup(e){e&&((e.CallCapabilitiesMask&n.h3E.CC_Pickup)===n.h3E.CC_Pickup?this.deviceService.selectedPhoneDevice$.pipe((0,T.s)(1),(0,p.n)(i=>{if((0,l.F0)(i))return this.phoneService.pickUpNewCall$(e.Id,e.OtherPartyCallerId,!1);{if(!i?.Contact)throw new Error("_i18n.PhoneNotConnected");const r=new n.Q_1({EnableCallControl:!0,LocalConnectionId:e.Id,DeviceID:i.Contact});return this.myPhoneService.get(r)}}
1)).subscribe({error:i=>this.modalService.error(i)}):e.OwnerType===n.Jhl.IVR||e.OwnerType===n.Jhl.SpecialMenu?(e.CallCapabilitiesMask&n.h3E.CC_Transfer)===n.h3E.CC_Transfer&&this.unpark(e):this.modalService.error("_i18n.PickUpPermissionError"))}divert(e,i,r,s=!1){e&&((e.CallCapabilitiesMask&n.h3E.CC_Divert)===n.h3E.CC_Divert||s?this.settingsService.preprocessPhoneNumber(i).pipe((0,p.n)(c=>{const M=new n.Icu;return M.IsLocal=!1,M.LocalConnectionId=e.Id,M.Destination=c,M.vmail=r,this.myPhoneService.get(M)})).subscribe({error:c=>this.modalService.error(c)}):(e.OwnerType===n.Jhl.IVR||e.OwnerType===n.Jhl.SpecialMenu)&&this.transfer(e,i,r))}transfer(e,i,r){(e.CallCapabilitiesMask&n.h3E.CC_Transfer)===n.h3E.CC_Transfer&&this.settingsService.preprocessPhoneNumber(i).pipe((0,p.n)(s=>this.myPhoneService.myPhoneSession.pipe((0,T.s)(1),(0,p.n)(c=>{const M=new n.JoO;return M.IsLocal=!1,M.LocalConnectionId=e.Id,M.Destination=r?c.systemParameters.VmailDialCode+s:s,M.CallScreening=e.CallScreening,c.get(M)})))).subscribe({error:s=>this.modalService.error(s)})}isAttendedTransferAllowedOnConnection(e,i){return e.State===n.Tll.Connected&&(e.CallCapabilitiesMask&n.h3E.CC_BargeIn)!==n.h3E.CC_BargeIn&&this.isNumberInConnection(e,i)}isNumberInConnection(e,i){return e.OwnerType===n.Jhl.Extension&&e.OwnerDn===i||e.OtherPartyType===n.Jhl.Extension&&e.OtherPartyDn===i}doesNumberOwnConnection(e,i){return e.OwnerType===n.Jhl.Extension&&e.OwnerDn===i}attTransfer(e,i,r,s){this.isAttendedTransferAllowedOnConnection(e,r)&&(0,t.z)([this.settingsService.preprocessPhoneNumber(i),this.myPhoneService.myPhoneSession]).pipe((0,T.s)(1),(0,p.n)(([c,M])=>this.makeConnectedCall(e.Id,s?M.systemParameters.VmailDialCode+c:c)),(0,T.s)(1)).subscribe({next:c=>{const[M,G]=c;this.phoneService.requestAttTransfer(M.myCallId,G.myCallId)},error:c=>this.modalService.error(c)})}makeConnectedCall(e,i){return this.phoneService.makeConnectedCall$(e,i)}conference(e){}drop(e,i){e&&(e.CallCapabilitiesMask&n.h3E.CC_Drop)===n.h3E.CC_Drop&&this.myPhoneService.get(new n.roJ({IsLocal:!1,ActionIfRinging:i??n.Os3.RA_Busy,LocalConnectionId:e.Id})).subscribe({error:r=>this.modalService.error(r)})}park(e){this.myPhoneService.myPhoneSession.pipe((0,T.s)(1),(0,p.n)(i=>{const r=i.parkings&&i.parkings.Items?i.parkings.Items.find(c=>c.Number.startsWith("SP")&&(void 0===c.WaitingCalls||void 0===c.WaitingCalls.Items||0===c.WaitingCalls.Items.length)):void 0;if(void 0===r)return(0,x.$)(()=>new Error("_i18n.NoAvailableParkingSlotsFound"));const s=new n.JoO;return s.IsLocal=!1,s.LocalConnectionId=e.Id,s.Destination=r.Number,i.get(s)})).subscribe({error:i=>this.modalService.error(i)})}unpark(e){e&&this.myPhoneService.myPhoneSession.pipe((0,T.s)(1),(0,p.n)(i=>{const r=new n.JoO;return r.IsLocal=!1,r.LocalConnectionId=e.Id,r.Destination=i.myInfo.Number,i.get(r)})).subscribe({error:i=>this.modalService.error(i)})}record(e){e&&(e.CallCapabilitiesMask&n.h3E.CC_Transfer)===n.h3E.CC_Transfer&&(!e.Recording||e.RecordingPaused)&&this.myPhoneService.myPhoneSession.pipe((0,T.s)(1),(0,p.n)(i=>{const r=new n.ODZ;return r.LocalConnectionId=e.Id,r.IsLocal=e.OwnerDn===i.myInfo.Number,r.RecAction=e.Recording?n._rP.Resume:n._rP.Start,r.Folder=i.myInfo.Number,i.get(r)})).subscribe({error:i=>this.modalService.error(i)})}stopRecording(e){e&&(e.CallCapabilitiesMask&n.h3E.CC_Transfer)===n.h3E.CC_Transfer&&e.Recording&&!e.RecordingPaused&&this.myPhoneService.myPhoneSession.pipe((0,T.s)(1),(0,p.n)(i=>{const r=new n.ODZ;return r.LocalConnectionId=e.Id,r.IsLocal=e.OwnerDn===i.myInfo.Number,r.RecAction=n._rP.Pause,r.Folder=i.myInfo.Number,i.get(r)})).subscribe({error:i=>this.modalService.error(i)})}GetOtherPartyPresentationString(e){return e.OtherPartyPresentationString}GetOwnerPresentationString(e){return e.OwnerPresentationString}activeCallInModal;openDivertDialog(e,i){this.activeCallInModal=e,this.openFindContactModal$("_i18n.Divert",i).subscribe(r=>{this.activeCallInModal=void 0,r instanceof g.q&&this.divert(i,r.number,r.isVoicemail)})}openTransferDialog(e,i){this.activeCallInModal=e,this.openFindContactModal$("_i18n.Transfer",i).subscribe(r=>{this.activeCallInModal=void 0,r instanceof g.q&&this.transfer(i,r.number,r.isVoicemail)})}openFindContactModal$(e,i){return this.translate.get(e).pipe((0,m.T)(r=>`${r} ${i.OtherPartyPresentationString}`),(0,p.n)(r=>this.modalService.showDialog(K,{header:r})),(0,m.T)(r=>r.decision===V.R.Ok?r.payload:void 0))}static \u0275fac=function(i){return new(i||E)};static \u0275prov=D.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()}}]);

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.