PageSourceSearch

https://touchstargroup.com/plantronics.5345f050c3126320.js

js touchstargroup.com collected 2026-10-04 12:58:58 UTC 34,163 bytes, 1 lines download raw bytes

1(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[7530],{59620(D,p,h){"use strict";h.r(p),h.d(p,{PlantronicsService:()=>_,PlantronicsTitle:()=>w});var V=h(7673),f=h(983),T=h(39974),s=h(54360),N=h(58750),v=h(1807),c=h(12498),l=h(92771),o=h(71985),m=h(40605),A=h(96354),E=h(99437),b=h(96697),I=h(99172),O=h(25558),L=h(97647),y=h(88141),g=h(62087),n=h(36342),e=h(97992),t=h(83082),a=h(87263),i=h(7881),d=h(85802);const J=5e3,w="Plantronics -";function G(M){return new n.SpokesContact({MobilePhone:M.otherPartyNumber,Name:M.otherPartyDisplayname})}let _=(()=>{class M{diagnostics$;spokes;spokesPluginName$;actionChain=Promise.resolve();headsetEvents$;isMuted=!1;constructor(){this.spokes=new n.Spokes("https://127.0.0.1:32018/Spokes"),this.diagnostics$=this.spokesGetDevice$().pipe((0,A.T)(u=>new t.j({alertClass:"success",text:u.ProductName})),(0,E.W)(u=>(0,V.of)(new t.j({alertClass:"danger",text:(0,i.PE)(u)}))),(0,b.s)(1),function r(M){let u,U=1/0;return null!=M&&("object"==typeof M?({count:U=1/0,delay:u}=M):U=M),U<=0?()=>f.w:(0,T.N)((k,S)=>{let P,C=0;const $=()=>{if(P?.unsubscribe(),P=null,null!=u){const H="number"==typeof u?(0,v.O)(u):(0,N.Tg)(u(C)),x=(0,s._)(S,()=>{x.unsubscribe(),F()});H.subscribe(x)}else F()},F=()=>{let H=!1;P=k.subscribe((0,s._)(S,void 0,()=>{++C<U?P?$():H=!0:S.complete()})),H&&$()};F()})}({delay:5e3}),(0,I.Z)(t.j.Progress)),this.spokesPluginName$=this.spokesGetDevice$().pipe((0,O.n)(u=>this.spokesAttachDevice$(u)),(0,O.n)(u=>this.spokesRegisterPlugin$(u)),(0,E.W)(u=>{throw"string"==typeof u&&u.startsWith("_i18n.")||(0,a.Vg)(w,u),u}),(0,c.L)({delay:4e3}),(0,L.u)({connector:()=>new l.m(1)})),this.headsetEvents$=this.spokesPluginName$.pipe((0,O.n)(u=>this.spokesGetPluginEvents(u)),(0,y.M)(u=>(0,a.Vv)(w,`Headset Command Fired ${e.T[u.Action]} (Value:${u.Value}) with CallId ${u.CallId}`)))}processHeadsetFuncResult(u){u.isError&&console.error(u.Err.Description)}incomingCall(u,k){(0,a.Vv)(w,`pbx call command: incomingCall (${u})`),this.spokesPluginName$.pipe((0,g.w)(J),(0,b.s)(1)).subscribe({next:S=>{S&&this.next(C=>{(0,a.Vv)(w,`Send command "incomingCall" to headset  on Call Id ${u} `),this.spokes.Plugin.incomingCall(S,new n.SpokesCallId({Id:""+u}),G(k),"Unknown","ToHeadset",P=>{this.processHeadsetFuncResult(P),C()})})},error:()=>{}})}outgoingCall(u,k){(0,a.Vv)(w,`pbx call command: outgoingCall (${u})`),this.spokesPluginName$.pipe((0,g.w)(J),(0,b.s)(1)).subscribe({next:S=>{this.next(C=>{(0,a.Vv)(w,`Send command "outgoingCall" to headset  on Call Id ${u} `),this.spokes.Plugin.outgoingCall(S,new n.SpokesCallId({Id:""+u}),G(k),"ToHeadset",P=>{this.processHeadsetFuncResult(P),C()})})},error:()=>{}})}incomingCallAccepted(u){(0,a.Vv)(w,`pbx call command: incomingCallAccepted (${u})`),this.spokesPluginName$.pipe((0,g.w)(J),(0,b.s)(1)).subscribe({next:k=>{this.next(S=>{(0,a.Vv)(w,`Send command "answerCall" to headset on Call Id ${u} `),this.spokes.Plugin.answerCall(k,new n.SpokesCallId({Id:""+u}),C=>{this.processHeadsetFuncResult(C),S()})})},error:()=>{}})}terminateCall(u){(0,a.Vv)(w,`pbx call command: terminateCall (${u})`),this.spokesPluginName$.pipe((0,g.w)(J),(0,b.s)(1)).subscribe({next:k=>{this.next(S=>{(0,a.Vv)(w,`Send command "terminateCall" to headset on Call Id ${u} `),this.spokes.Plugin.terminateCall(k,new n.SpokesCallId({Id:""+u}),C=>{this.processHeadsetFuncResult(C),S()})})},error:()=>{}})}holdCall(u){(0,a.Vv)(w,`pbx call command: holdCall (${u})`),this.spokesPluginName$.pipe((0,g.w)(J),(0,b.s)(1)).subscribe({next:k=>{this.next(S=>{(0,a.Vv)(w,`Send command "holdCall" to headset on Call Id ${u} `),this.spokes.Plugin.holdCall(k,new n.SpokesCallId({Id:""+u}),C=>{this.processHeadsetFuncResult(C),S()})})},error:()=>{}})}resumeCall(u){(0,a.Vv)(w,`pbx call command: resumeCall (${u})`),this.spokesPluginName$.pipe((0,g.w)(J),(0,b.s)(1)).subscribe({next:k=>{this.next(S=>{(0,a.Vv)(w,`Send command "resumeCall" to headset on Call Id ${u} `),this.spokes.Plugin.resumeCall(k,new n.SpokesCallId({Id:""+u}),C=>{this.processHeadsetFuncResult(C),S()})})},error:()=>{}})}outgoingCallAccepted(u){}mute(u,k){}spokesGetDevice$(){return new o.c(u=>{const k=new n.Spokes("https://127.0.0.1:32018/Spokes");this.next(S=>{k.Device.deviceInfo(C=>{C.isError?"There are no supported devices"===C.Err.Description?u.error("_i18n.AttachPlantronicsHeadsetToPc"):((0,a.Vg)(w,`Error received from Plantronics Hub while acquiring device information. Type:${C.Err.Type}
1, Code: ${C.Err.Error_Code}, Description: ${C.Err.Description}.`),u.error("_i18n.ErrorConnectingToPlantronics")):C.Result?((0,a.Vv)(w,`Device active with name "${C.Result?.ProductName}"`),u.next(C.Result)):u.error("_i18n.ErrorDeviceWasNullOnConnectingToSpokes"),S()})})})}spokesAttachDevice$(u){return new o.c(k=>(this.next(S=>{this.spokes.Device.attach(u.Uid,C=>{C.isError?((0,a.Vg)(w,`Error received from Plantronics Hub while attaching device. Type:${C.Err.Type}, Code: ${C.Err.Error_Code}, Description: ${C.Err.Description}.`),k.error(C.Err.Description)):k.next(u),S()})}),()=>{this.next(S=>{this.spokes.Device.release(()=>{S()})})}))}spokesRegisterPlugin$(u){const k="3CX"+Math.random().toString(36).slice(2);return new o.c(S=>(this.next(C=>{this.spokes.Plugin.register(k,P=>{P.isError?((0,a.Vg)(w,`Error received from Plantronics Hub while registering plugin. Type:${P.Err.Type}, Code: ${P.Err.Error_Code}, Description: ${P.Err.Description}.`),S.error(P.Err.Description)):((0,a.Vv)(w,`Plugin registered with name (${k})`),S.next(k)),C()})}),()=>{this.next(C=>{this.spokes.Plugin.unRegister(k,()=>{C()})})}))}spokesGetPluginEvents(u){return(0,m.Y)(1e3).pipe((0,O.n)(()=>new o.c(k=>{this.next(S=>{this.spokes.Plugin.callEvents(u,C=>{C.isError?((0,a.Vg)(w,`Error received from Plantronics Hub. Type:${C.Err.Type}, Code: ${C.Err.Error_Code}, Description: ${C.Err.Description}.`),k.error(C.Err.Description)):C.Result&&(C.Result.length>0&&(0,a.Vv)(w,"Received actions:",C.Result.map(P=>`Call Id ${P.CallId.Id}: ${n.SessionCallState.Lookup[P.Action]}`).join(", ")),C.Result.forEach(P=>{let $;switch(n.SessionCallState.Lookup[P.Action]){case"AcceptCall":$=e.T.AcceptCall;break;case"TerminateCall":$=e.T.TerminateCall;break;case"RejectCall":$=e.T.RejectCall;break;case"HoldCall":$=e.T.HoldCall;break;case"Resumecall":$=e.T.ResumeCall}void 0!==$&&k.next({CallId:P.CallId.Id,Action:$})})),S()})})})))}next(u){this.actionChain=this.actionChain.then(()=>new Promise(k=>{u(()=>k(void 0))}))}connectDevice(){}static \u0275fac=function(k){return new(k||M)};static \u0275prov=d.jDH({token:M,factory:M.\u0275fac})}return M})()},37882(D,p,h){var V=h(8908)("jsonp");D.exports=function s(N,v,r){"function"==typeof v&&(r=v,v={}),v||(v={});var b,I,l=v.name||(v.prefix||"__jp")+f++,o=v.param||"callback",m=null!=v.timeout?v.timeout:6e4,A=encodeURIComponent,E=document.getElementsByTagName("script")[0]||document.head;function O(){b.parentNode&&b.parentNode.removeChild(b),window[l]=T,I&&clearTimeout(I)}return m&&(I=setTimeout(function(){O(),r&&r(new Error("Timeout"))},m)),window[l]=function(y){V("jsonp got",y),O(),r&&r(null,y)},N=(N+=(~N.indexOf("?")?"&":"?")+o+"="+A(l)).replace("?&","?"),V('jsonp req "%s"',N),(b=document.createElement("script")).src=N,E.parentNode.insertBefore(b,E),function L(){window[l]&&O()}};var f=0;function T(){}},8908(D,p,h){function N(){var r;try{r=p.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=process.env.DEBUG),r}(p=D.exports=h(49583)).log=function T(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},p.formatArgs=function f(r){var c=this.useColors;if(r[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+r[0]+(c?"%c ":" ")+"+"+p.humanize(this.diff),c){var l="color: "+this.color;r.splice(1,0,l,"color: inherit");var o=0,m=0;r[0].replace(/%[a-zA-Z%]/g,function(A){"%%"!==A&&(o++,"%c"===A&&(m=o))}),r.splice(m,0,l)}},p.save=function s(r){try{null==r?p.storage.removeItem("debug"):p.storage.debug=r}catch{}},p.load=N,p.useColors=function V(){return!!(typeof window<"u"&&window.process&&"renderer"===window.process.type)||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},p.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function v(){try{return window.localStorage}catch{}}(),p.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],p.formatters.j=function(r){try{return JSON.stringify(r)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}},p.enable(N())},49583(D,p,h){var V;function T(c){function l(){if(l.enabled){var o=l,m=+new Date;o.diff=m-(V||m),o.prev=V,o.curr=m,V=m;for(var E=new Array(arguments.length),b=0;b<E.length;b++)E[b]=arguments[b];E[0]=p.coerce(E[0]),"string"!=typeof E[0]&&E.unshift("%O");var I=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,function(L,y){if("%%"===L)return L;I++;var g=p.formatters[y];return"function"==typeof g&&(L=g.call(o,E[I]),E.splice(I,1),I--),L}),p.formatArgs.call(o,E),(l.log||p.log||console.log.bind(console)).apply(o,E)}}return l.namespace=c,l.enabled=p.enabled(c),l.useColors=p.useColors(),l.color=function f(c){var o,l=0;for(o in c)l=(l<<5)-l+c.charCodeAt(o),l|=0;return p.colors[Math.abs(l)%p.colors.length]}(c),"function"==typeof p.init&&p.init(l),l}(p=D.exports=T.debug=T.default=T).coerce=function r(c){return c instanceof Error?c.stack||c.message:c},p.disable=function N(){p.enable("")},p.enable=function s(c){p.save(c),p.names=[],p.skips=[];for(var l=("string"==typeof c?c:"").split(/[\s,]+/),o=l.length,m=0;m<o;m++)l[m]&&("-"===(c=l[m].replace(/\*/g,".*?"))[0]?p.skips.push(new RegExp("^"+c.substr(1)+"$")):p.names.push(new RegExp("^"+c+"$")))},p.enabled=function v(c){var l,o;for(l=0,o=p.skips.length;l<o;l++)if(p.skips[l].test(c))return!1;for(l=0,o=p.names.length;l<o;l++)if(p.names[l].test(c))return!0;return!1},p.humanize=h(29090),p.names=[],p.skips=[],p.formatters={}},29090(D){var p=1e3,h=60*p,V=60*h,f=24*V;function r(c,l,o){if(!(c<l))return c<1.5*l?Math.floor(c/l)+" "+o:Math.ceil(c/l)+" "+o+"s"}D.exports=function(c,l){l=l||{};var o=typeof c;if("string"===o&&c.length>0)return function s(c){if(!((c=String(c)).length>100)){var l=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(l){var o=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"days":case"day":case"d":return o*f;case"hours":case"hour":case"hrs":case"hr":case"h":return o*V;case"minutes":case"minute":case"mins":case"min":case"m":return o*h;case"seconds":case"second":case"secs":case"sec":case"s":return o*p;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(c);if("number"===o&&!1===isNaN(c))return l.long?function v(c){return r(c,f,"day")||r(c,V,"hour")||r(c,h,"minute")||r(c,p,"second")||c+" ms"}(c):function N(c){return c>=f?Math.round(c/f)+"d":c>=V?Math.round(c/V)+"h":c>=h?Math.round(c/h)+"m":c>=p?Math.round(c/p)+"s":c+"ms"}(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},40605(D,p,h){"use strict";h.d(p,{Y:()=>T});var V=h(43236),f=h(1807);function T(s=0,N=V.E){return s<0&&(s=0),(0,f.O)(s,s,N)}},36342(D,p,h){var V=h(37882),f_getJSON=function(n,e){V(n.replace(/(&|\?)callback=\?/,""),function(t,a){t||e(a)})};function T(n){var e=0;if(-1==n.constructor.toString().indexOf("Array"))return n;for(var t=0;t<n.length;t++)"number"==typeof n[t]&&n[t]>0&&(e|=n[t]);return e}function s(n){this.Age=0,this.Callback=n,this.isValid=!0}function v(n){this.Path=n,this.Device_Id="",this.Sess_Id="",this.isAttached=!1}function r(){}function c(){}function l(){}function o(n){if(this.Type=n.Type,this.Type_Name=n.Type_Name,this.Description=n.Description,this.isError=n.isError,this.isValid=!0,this.Err=null,this.Result=null,this.isError)this.Err=new I(n.Err);else switch(this.Type){case l.Bool:case l.Integer:case l.SessionHash:case l.String:case l.CallManagerState:this.Result=n.Result;break;case l.DeviceInfo:this.Result=new m(n.Result);break;case l.DeviceInfoArray:var t=n.Result;this.Result=new Array;for(var e=0;e<t.length;e++)this.Result[e]=new m(t[e]);break;case l.DeviceEventArray:for(t=n.Result,this.Result=new Array,e=0;e<t.length;e++)this.Result[e]=new E(t[e]);break;case l.CallStateArray:case l.StringArray:for(t=n.Result,this.Result=new Array,e=0;e<t.length;e++)this.Result[e]=t[e];break;case l.ContactArray:for(t=n.Result,this.Result=new Array,e=0;e<t.length;e++)this.Result[e]=new O(t[e]);break;default:alert("Invalid object type sent")}}function m(n){this.Uid=n.Uid,this.DevicePath=n.DevicePath,this.InternalName=n.InternalName,this.IsAttached=n.IsAttached,this.ManufacturerName=n.ManufacturerName,this.ProductId=n.ProductId,this.ProductName=n.ProductName,this.SerialNumber=n.SerialNumber,this.VendorId=n.VendorId,this.VersionNumber=n.VersionNumber,this.USBVersionNumber=n.USBVersionNumber,this.BaseFirmwareVersion=n.BaseFirmwareVersion,this.BluetoothFirmwareVersion=n.BluetoothFirmwareVersion,this.RemoteFirmwareVersion=n.RemoteFirmwareVersion,this.BaseSerialNumber=n.BaseSerialNumber,this.HeadsetSerialNumber=n.HeadsetSerialNumber}function A(){}function E(n){this.Event_Log_Type_Name=n.Event_Log_Type_Name,this.Event_Log_Type_Id=n.Event_Log_Type_Id,this.Event_Name=n.Event_Name,this.Event_Id=n.Event_Id,this.Timestamp=n.Timestamp,this.Age=n.Age}function b(){}function I(n){this.Type=n.Type,this.Description=n.Description,this.Error_Co
1de=n.Error_Code}function O(n){this.Id=n.Id,this.Name=n.Name,this.Email=n.Email,this.Phone=n.Phone,this.SipUri=n.SipUri,this.WorkPhone=n.WorkPhone,this.HomePhone=n.HomePhone,this.MobilePhone=n.MobilePhone,this.FriendlyName=n.FriendlyName}function L(n){this.Id=n.Id,this.InConference=n.InConference,this.ConferenceId=n.ConferenceId}function y(n){this.Path=n,this.Sess_Id="",this.isAttached=!1}function g(n){this.Path=n}s.Action_List=new Array,window.originalSetInterval(function(){for(var e=s.Action_List.length-1;e>=0;e--){var t=s.Action_List[e];t.Age++,t.Age>4&&(s.Action_List.splice(e,1),t.isValid&&"function"==typeof t.Callback&&t.Callback(new o({Description:"",Err:{Description:"No response.  Server appears to be offline.",Error_Code:0,Type:4},Result:null,Type:0,Type_Name:"Unknown",isError:!0})))}},2e3),v.prototype.attach=function(n,e){var t=new s(e);s.Action_List.unshift(t);const a=this;return f_getJSON(this.Path+"/DeviceServices/Attach?uid="+n+"&callback=?",function(i){var d=new o(i);d.Type!=l.SessionHash&&(d.isValid=!1),d.isValid&&!d.isError&&(a.Sess_Id=d.Result,a.isAttached=!0),t.isValid=!1,"function"==typeof t.Callback&&t.Callback(d)}),!0},v.prototype.release=function(n){if(0==this.isAttached)return!1;var e=new s(n);s.Action_List.unshift(e);const t=this;return f_getJSON(this.Path+"/DeviceServices/Release?sess="+this.Sess_Id+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.Sess_Id="",t.isAttached=!1,e.isValid=!1,"function"==typeof e.Callback&&e.Callback(i)}),!0},v.prototype.deviceInfo=function(n){if(null==n||null==n)return!1;var e=new s(n);s.Action_List.unshift(e);const t=this;return f_getJSON(this.Path+"/DeviceServices/Info?callback=?",function(a){var i=new o(a);i.Type!=l.DeviceInfo&&(i.isValid=!1),i.isValid&&!i.isError&&(t.Device_Id=i.Result.Uid),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(i)}),!0},v.prototype.atdMobileCallerId=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/DeviceServices/ATDMobileCallerId?sess="+this.Sess_Id+"&callback=?",function(t){var a=new o(t);a.Type!=l.String&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},v.prototype.proximity=function(n,e){if("boolean"!=typeof n)return!1;var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/DeviceServices/Proximity?sess="+this.Sess_Id+"&enabled="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.String&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},v.prototype.events=function(n,e){if(null==e&&"function"==typeof n&&(e=n,n=0),n=T(n),null==e||null==e)return!1;var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/DeviceServices/Events?sess="+this.Sess_Id+"&queue="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.DeviceEventArray&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},v.prototype.headsetEvents=function(n){return this.events(A.HeadsetButtonPressed|A.HeadsetStateChange,n)},v.prototype.baseEvents=function(n){return this.events(A.BaseButtonPressed|A.BaseStateChange,n)},v.prototype.atdEvents=function(n){return this.events(A.ATDStateChange,n)},v.prototype.ring=function(n,e){if("boolean"!=typeof n)return!1;var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/DeviceServices/Ring?enabled="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},v.prototype.audioState=function(n,e){if("number"!=typeof n)return!1;var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/DeviceServices/AudioState?state="+(n=c.Lookup[n])+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},v.prototype.getEventRegistry=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/EventManager/GetRegistry?sess="+this.Sess_Id+"&callback=?",function(t){var a=new o(t);a.Type!=l.Integer&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},v.prototype.setEventRegistry=function(n,e){n=T(n);var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/EventManager/SetRegistry?sess="+this.Sess_Id+"&queue="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Integer&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},v.prototype.addEventRegistry=function(n,e){n=T(n);var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/EventManager/AddRegistry?sess="+this.Sess_Id+"&queue="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Integer&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},v.prototype.removeEventRegistry=function(n,e){n=T(n);var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/EventManager/RemoveRegistry?sess="+this.Sess_Id+"&queue="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Integer&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},v.prototype.setGlobalTTL=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/EventManager/GlobalTTL?sess="+this.Sess_Id+"&ttl="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Integer&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},v.prototype.setGlobalMaxEvents=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/EventManager/GlobalMaxCount?sess="+this.Sess_Id+"&max="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Integer&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},v.prototype.setQueueTTL=function(n,e,t){n=T(n);var a=new s(t);return s.Action_List.unshift(a),f_getJSON(this.Path+"/EventManager/TTL?sess="+this.Sess_Id+"&queue="+n+"&ttl="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Integer&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0},v.prototype.setQueueMaxEvents=function(n,e,t){n=T(n);var a=new s(t);return s.Action_List.unshift(a),f_getJSON(this.Path+"/EventManager/MaxCount?sess="+this.Sess_Id+"&queue="+n+"&max="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Integer&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0},r.Unknown=0,r.AcceptCall=1,r.TerminateCall=2,r.HoldCall=3,r.Resumecall=4,r.Flash=5,r.CallInProgress=6,r.CallRinging=7,r.CallEnded=8,r.TransferToHeadSet=9,r.TransferToSpeaker=10,r.MuteON=11,r.MuteOFF=12,r.MobileCallRinging=13,r.MobileCallInProgress=14,r.MobileCallEnded=15,r.Don=16,r.Doff=17,r.CallIdle=18,r.Play=19,r.Pause=20,r.
1Stop=21,r.DTMFKey=22,r.RejectCall=23,(r.Lookup=Array())[r.Unknown]="Unknown",r.Lookup[r.AcceptCall]="AcceptCall",r.Lookup[r.TerminateCall]="TerminateCall",r.Lookup[r.HoldCall]="HoldCall",r.Lookup[r.Resumecall]="Resumecall",r.Lookup[r.Flash]="Flash",r.Lookup[r.CallInProgress]="CallInProgress",r.Lookup[r.CallRinging]="CallRinging",r.Lookup[r.CallEnded]="CallEnded",r.Lookup[r.TransferToHeadSet]="TransferToHeadSet",r.Lookup[r.TransferToSpeaker]="TransferToSpeaker",r.Lookup[r.MuteON]="MuteON",r.Lookup[r.MuteOFF]="MuteOFF",r.Lookup[r.MobileCallRinging]="MobileCallRinging",r.Lookup[r.MobileCallInProgress]="MobileCallInProgress",r.Lookup[r.MobileCallEnded]="MobileCallEnded",r.Lookup[r.Don]="Don",r.Lookup[r.Doff]="Doff",r.Lookup[r.CallIdle]="CallIdle",r.Lookup[r.Play]="Play",r.Lookup[r.Pause]="Pause",r.Lookup[r.Stop]="Stop",r.Lookup[r.DTMFKey]="DTMFKey",r.Lookup[r.RejectCall]="RejectCall",c.MonoOn=1,c.MonoOff=2,c.StereoOn=3,c.StereoOff=4,c.MonoOnWait=5,c.StereoOnWait=6,(c.Lookup=Array())[c.MonoOn]="MonoOn",c.Lookup[c.MonoOff]="MonoOff",c.Lookup[c.StereoOn]="StereoOn",c.Lookup[c.StereoOff]="StereoOff",c.Lookup[c.MonoOnWait]="MonoOnWait",c.Lookup[c.StereoOnWait]="StereoOnWait",l.Unknown=0,l.Error=1,l.Bool=2,l.Integer=3,l.DeviceInfo=4,l.DeviceInfoArray=5,l.DeviceEventArray=6,l.SessionHash=7,l.String=8,l.CallManagerState=9,l.CallStateArray=10,l.ContactArray=11,l.StringArray=12,A.DeviceStateChange=1,A.HeadsetStateChange=2,A.HeadsetButtonPressed=4,A.BaseStateChange=8,A.BaseButtonPressed=16,A.CallStateChange=32,A.ATDStateChange=64,b.Unknown=0,b.Invalid_Uid=1,b.Exception=2,b.Invalid_Session=3,b.Server_Offline=4,y.prototype.pluginList=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/SessionManager/PluginList?callback=?",function(t){var a=new o(t);a.Type!=l.StringArray&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},y.prototype.register=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/SessionManager/Register?name="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},y.prototype.unRegister=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/SessionManager/UnRegister?name="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},y.prototype.isActive=function(n,e,t){var a=new s(t);return s.Action_List.unshift(a),f_getJSON(this.Path+"/SessionManager/IsActive?name="+n+"&active="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Bool&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0},y.prototype.callManagerState=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/CallServices/CallManagerState?callback=?",function(t){var a=new o(t);a.Type!=l.CallManagerState&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},y.prototype.sessionEvents=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/CallServices/Events?callback=?",function(t){var a=new o(t);a.Type!=l.StringArray&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},y.prototype.sessionCallEvents=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/CallServices/SessionManagerCallEvents?name="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.StringArray&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},y.prototype.callEvents=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/CallServices/CallEvents?name="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.CallStateArray&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},y.prototype.callRequests=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/CallServices/CallRequests?name="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.ContactArray&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},y.prototype.incomingCall=function(n,e,t,a,i,d){var R=new s(d);return s.Action_List.unshift(R),e instanceof L&&t instanceof O&&(e=JSON.stringify(e),t=JSON.stringify(t),f_getJSON(this.Path+"/CallServices/IncomingCall?name="+n+"&callID="+e+"&contact="+t+"&tones="+a+"&route="+i+"&callback=?",function(J){var B=new o(J);B.Type!=l.Bool&&(B.isValid=!1),R.isValid=!1,null!=R.Callback&&null!=R.Callback&&R.Callback(B)}),!0)},y.prototype.outgoingCall=function(n,e,t,a,i){var d=new s(i);return s.Action_List.unshift(d),e instanceof L&&t instanceof O&&(e=JSON.stringify(e),t=JSON.stringify(t),f_getJSON(this.Path+"/CallServices/OutgoingCall?name="+n+"&callID="+e+"&contact="+t+"&route="+a+"&callback=?",function(R){var J=new o(R);J.Type!=l.Bool&&(J.isValid=!1),d.isValid=!1,null!=d.Callback&&null!=d.Callback&&d.Callback(J)}),!0)},y.prototype.terminateCall=function(n,e,t){var a=new s(t);return s.Action_List.unshift(a),e instanceof L&&(e=JSON.stringify(e),f_getJSON(this.Path+"/CallServices/TerminateCall?name="+n+"&callID="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Bool&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0)},y.prototype.answerCall=function(n,e,t){var a=new s(t);return s.Action_List.unshift(a),e instanceof L&&(e=JSON.stringify(e),f_getJSON(this.Path+"/CallServices/AnswerCall?name="+n+"&callID="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Bool&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0)},y.prototype.holdCall=function(n,e,t){var a=new s(t);return s.Action_List.unshift(a),e instanceof L&&(e=JSON.stringify(e),f_getJSON(this.Path+"/CallServices/HoldCall?name="+n+"&callID="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Bool&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0)},y.prototype.resumeCall=function(n,e,t){var a=new s(t);return s.Action_List.unshift(a),e instanceof L&&(e=JSON.stringify(e),f_getJSON(this.Path+"/CallServices/ResumeCall?name="+n+"&callID="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Bool&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0)},y.prototype.muteCall=function(n,e,t){var a=new s(t);return s.Action_List.unshift(a),f_getJSON(this.Path+"/CallServices/MuteCall?name="+n+"&muted="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Bool&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0},y.prototype.insertCall=function(n,e,t,a){var i=new s(a);return s.Action_List.unshift(i),e instanceof L&&t instanceof O&&(e=JSON.stringify(e),t=JSON.stringify(t),f_getJSON(this.Path+"/CallServices/InsertCall?name="+n+"&callID="+e+"&contact="+t+"&callback=?",function(d){var R=new o(d);R.Type!=l.Bool&&(R.isValid=!1),i.isValid=!1,null!=i.Callback&&null!=i.Callback&&i.Callback(R)}),!0)},y.prototype.setAudioRoute=function(n,e,t,a){var i=new s(a);return s.Action_List.unshift(i),e instanceof L&&(e=JSON.stringify(e),f_getJSON(this.Path+"/CallServices/SetAudioRoute?name="+n+"&callID="+e+"&route="+t+"&callback=?",function(d){var R=new o(d);R.Type!=l.Bool&&(R.isValid=!1),i.isValid=!1,null!=i.Callback&&null!=i.Callback&&i.Callback(R)}),!0)},y.prototype.setConferenceId=function(n,e,t){var a=new s(t);return s.Action_List.unshift(a),e instanceof L&&(e=JSON.stringify(e),f_getJSON(this.Path+"/CallServices/SetConferenceId?name="+n+"&callID="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Bool&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0)},y.prototype.makeCall=function(n,e,t){var a=new s(t);return s.Action_List.unshift(a),e instanceof O&&(e=JSON.stringify(e),f_getJSON(this.Path+"/CallServices/MakeCall?name="+n+"&contact="+e+"&callback=?",function(i){var d=new o(i);d.Type!=l.Bool&&(d.isValid=!1),a.isValid=!1,null!=a.Callback&&null!=a.Callback&&a.Callback(d)}),!0)},g.prototype.getDefaultSoftphone=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/UserPreference/GetDefaultSoftPhone?callback=?",function(t){var a=new o(t);a.Type!=l.String&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},g.prototype.getEscalateToVoiceSoftPhone=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/UserPreference/GetEscalateToVoiceSoftPhone?callback=?",function(t){var a=new o(t);a.Type!=l.String&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},g.prototype.getMediaPlayerActionIncomingCall=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/UserPreference/GetMediaPlayerActionIncomingCall?callback=?",function(t){var a=new o(t);a.Type!=l.String&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},g.prototype.getMediaPlayerActionEndedCall=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/UserPreference/GetMediaPlayerActionEndedCall?callback=?",function(t){var a=new o(t);a.Type!=l.String&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},g.prototype.getAutoPresence=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/UserPreference/GetAutoPresence?callback=?",function(t){var a=new o(t);a.Type!=l.Bool&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},g.prototype.getDoffAction=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/UserPreference/GetDoffAction?callback=?",function(t){var a=new o(t);a.Type!=l.String&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},g.prototype.getDonAction=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/UserPreference/GetDonAction?callback=?",function(t){var a=new o(t);a.Type!=l.String&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},g.prototype.getKeepLinkUp=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/UserPreference/GetKeepLinkUp?callback=?",function(t){var a=new o(t);a.Type!=l.Bool&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},g.prototype.getRingPCAndHS=function(n){var e=new s(n);return s.Action_List.unshift(e),f_getJSON(this.Path+"/UserPreference/GetRingPCAndHS?callback=?",function(t){var a=new o(t);a.Type!=l.Bool&&(a.isValid=!1),e.isValid=!1,null!=e.Callback&&null!=e.Callback&&e.Callback(a)}),!0},g.prototype.setDefaultSoftphone=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/UserPreference/SetDefaultSoftPhone?name="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},g.prototype.setEscalateToVoiceSoftPhone=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/UserPreference/SetEscalateToVoiceSoftPhone?name="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},g.prototype.setMediaPlayerActionIncomingCall=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/UserPreference/SetMediaPlayerActionIncomingCall?actionIncoming="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},g.prototype.setMediaPlayerActionEndedCall=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/UserPreference/SetMediaPlayerActionEndedCall?actionEnded="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},g.prototype.setAutoPresence=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/UserPreference/SetAutoPresence?autoPresence="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},g.prototype.setDoffAction=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/UserPreference/SetDoffAction?doffAction="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},g.prototype.setDonAction=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/UserPreference/SetDonAction?donAction="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},g.prototype.setKeepLinkUp=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/UserPreference/SetKeepLinkUp?keepLinkUp="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},g.prototype.setRingPCAndHS=function(n,e){var t=new s(e);return s.Action_List.unshift(t),f_getJSON(this.Path+"/UserPreference/SetRingPCAndHS?ringPcAndHS="+n+"&callback=?",function(a){var i=new o(a);i.Type!=l.Bool&&(i.isValid=!1),t.isValid=!1,null!=t.Callback&&null!=t.Callback&&t.Callback(i)}),!0},D.exports={Spokes:function N(n){this.Path=typeof n>"u"||null==n?"https://127.0.0.1:32018":n,this.Device=new v(this.Path),this.Plugin=new y(this.Path),this.UserPreference=new g(this.Path)},SpokesCallId:L,SpokesContact:O,SessionCallState:r}}}]);

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.