Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / services / ami / report / index.js
index c29ac9d..063ce51 100644 (file)
@@ -1 +1 @@
-const a1257_0x1d01=['accountcode','uniqueid','indexOf','monitorFilename','exten','createdAt','../rpc/voiceTransferReport','create','isArray','findAgent','../ami','format','realtime','blindTransfer','custom:voiceDialReport','custom:voiceCallReport','from-sip','prototype','lastAssignedTo','disposition','assigned','context','util','../rpc/voiceDialReport','voiceCallReport','../rpc/voiceCallReport','calleridpreview','substring','forEach','find','membername','lastdata','connectedlinenum','xcally-motion-dialer','transfererlinkedid','disabled','calleridname','blindtransfer','destinationchannel','queuecallercompleteAt','YYYY-MM-DD\x20HH:mm:ss','ANSWERED','voiceQueueReport','type','from-voip-provider','originatecalleridnum','agents','monitors','filename','calleridnum','custom:voiceQueueReport','voiceDialReport','voiceAgentReport','isNil','bind','monitor','xdr','../../../config/environment','phone','transfers','transfereelinkedid','linkedid','telephones','custom:voiceAgentReport','attendedTransfer','../rpc/voiceAgentReport','length','destination','xcally-motion-preview','SIP/%s','queuecallerexitAt','callerid','sync','moment','channel','name','interface'];(function(_0xf4319d,_0x58751f){const _0x1d01d8=function(_0x5a9058){while(--_0x5a9058){_0xf4319d['push'](_0xf4319d['shift']());}};_0x1d01d8(++_0x58751f);}(a1257_0x1d01,0xaf));const a1257_0x5a90=function(_0xf4319d,_0x58751f){_0xf4319d=_0xf4319d-0x111;let _0x1d01d8=a1257_0x1d01[_0xf4319d];return _0x1d01d8;};const a1257_0x895286=a1257_0x5a90;'use strict';const _=require('lodash'),moment=require(a1257_0x895286(0x145)),util=require(a1257_0x895286(0x112)),config=require(a1257_0x895286(0x135)),ami=require(a1257_0x895286(0x153)),RpcVoiceAgentReport=require(a1257_0x895286(0x13d)),RpcVoiceCallReport=require(a1257_0x895286(0x115)),RpcVoiceDialReport=require(a1257_0x895286(0x113)),RpcMemberReport=require('../rpc/memberReport'),RpcVoiceQueueReport=require('../rpc/voiceQueueReport'),RpcVoiceRecording=require('../rpc/voiceRecording'),RpcVoiceTransferReport=require(a1257_0x895286(0x14f));function Report(_0x5c83f8){const _0x353900=a1257_0x895286;this[_0x353900(0x155)]=_0x5c83f8,this[_0x353900(0x12a)]=_0x5c83f8[_0x353900(0x12a)],this[_0x353900(0x13a)]=_0x5c83f8[_0x353900(0x13a)];}Report[a1257_0x895286(0x15a)][a1257_0x895286(0x144)]=function(){const _0x2a8cf9=a1257_0x895286;config[_0x2a8cf9(0x134)]&&config[_0x2a8cf9(0x134)][_0x2a8cf9(0x11f)]&&(ami['on'](_0x2a8cf9(0x12e),this[_0x2a8cf9(0x126)][_0x2a8cf9(0x132)](this)),ami['on'](_0x2a8cf9(0x158),this[_0x2a8cf9(0x114)][_0x2a8cf9(0x132)](this)),ami['on'](_0x2a8cf9(0x13b),this[_0x2a8cf9(0x130)]['bind'](this)),ami['on'](_0x2a8cf9(0x157),this[_0x2a8cf9(0x12f)][_0x2a8cf9(0x132)](this)),ami['on'](_0x2a8cf9(0x121),this[_0x2a8cf9(0x156)][_0x2a8cf9(0x132)](this)),ami['on']('attendedtransfer',this[_0x2a8cf9(0x13c)][_0x2a8cf9(0x132)](this)));},Report['prototype'][a1257_0x895286(0x152)]=function(_0x4629cd){const _0x58e741=a1257_0x895286;let _0x10f815=undefined;_0x10f815=_[_0x58e741(0x119)](this['agents'],function(_0x256451){const _0x14515d=_0x58e741;return _0x256451[_0x14515d(0x149)]==_0x4629cd||_0x256451['name']==_0x4629cd;});if(_[_0x58e741(0x131)](_0x10f815)){const _0x28bf88=_[_0x58e741(0x119)](this['telephones'],function(_0x36b157){const _0x4765e5=_0x58e741;return _0x36b157[_0x4765e5(0x149)]==_0x4629cd||_0x36b157[_0x4765e5(0x147)]==_0x4629cd;});_0x28bf88&&(_0x10f815=_[_0x58e741(0x119)](this[_0x58e741(0x12a)],function(_0x4b0ccb){const _0x5eac04=_0x58e741;return _0x4b0ccb['interface']==util[_0x5eac04(0x154)]('SIP/%s',_0x28bf88[_0x5eac04(0x147)]);}));}return _0x10f815;},Report[a1257_0x895286(0x15a)][a1257_0x895286(0x126)]=function(_0x249ec4){const _0x129e0e=a1257_0x895286;for(let _0x4f4410=0x0;_0x4f4410<_0x249ec4['length'];_0x4f4410+=0x1){const _0x55bc64=this[_0x129e0e(0x152)](_0x249ec4[_0x4f4410][_0x129e0e(0x11c)]);_0x55bc64&&(_0x249ec4[_0x4f4410]['accountcode']=_0x55bc64[_0x129e0e(0x149)],_0x249ec4[_0x4f4410][_0x129e0e(0x15d)]=!![],_0x249ec4[_0x4f4410][_0x129e0e(0x15b)]=_0x55bc64[_0x129e0e(0x147)],_0x249ec4[_0x4f4410][_0x129e0e(0x148)]=_['isNil'](_0x55bc64[_0x129e0e(0x148)])?util[_0x129e0e(0x154)]('SIP/%s',_0x55bc64['name']):_0x55bc64[_0x129e0e(0x148)],_0x249ec4[_0x4f4410]['queuecallercomplete']&&(_0x249ec4[_0x4f4410][_0x129e0e(0x123)]=moment()[_0x129e0e(0x154)](_0x129e0e(0x124))),_0x249ec4[_0x4f4410]['queuecallerexit']&&(_0x249ec4[_0x4f4410][_0x129e0e(0x142)]=moment()[_0x129e0e(0x154)](_0x129e0e(0x124))),RpcMemberReport[_0x129e0e(0x126)](_0x249ec4[_0x4f4410])),RpcVoiceQueueReport['create'](_0x249ec4[_0x4f4410]);}};function extractCalleridNumber(_0x95a453){const _0x42b029=_0x95a453['match'](/<(.*?)>/);return _0x42b029?_0x42b029[0x1]:_0x95a453;}Report['prototype']['voiceCallReport']=function(_0x58008c){const _0x2eae04=a1257_0x895286;_0x58008c[_0x2eae04(0x13f)]=_0x58008c['destination']||_0x58008c[_0x2eae04(0x14d)];if(_0x58008c[_0x2eae04(0x127)]=='dialer'){_0x58008c['lastapplication']='queue',_0x58008c[_0x2eae04(0x11b)]=_0x58008c['queue'];if(_0x58008c[_0x2eae04(0x111)]==_0x2eae04(0x128))_0x58008c[_0x2eae04(0x149)]='',_0x58008c['destination']=extractCalleridNumber(_0x58008c[_0x2eae04(0x143)]);else _0x58008c[_0x2eae04(0x111)]==_0x2eae04(0x159)&&(_0x58008c['destination']==_0x2eae04(0x140)?(_0x58008c['destination']=extractCalleridNumber(_0x58008c[_0x2eae04(0x116)]),_0x58008c[_0x2eae04(0x12d)]=_0x58008c[_0x2eae04(0x129)],_0x58008c[_0x2eae04(0x122)]=[_0x58008c[_0x2eae04(0x146)],_0x58008c['channel']=_0x58008c[_0x2eae04(0x122)]][0x0],_0x58008c[_0x2eae04(0x143)]=_0x58008c[_0x2eae04(0x116)]):(_0x58008c[_0x2eae04(0x13f)]=_0x58008c['calleridnum'],_0x58008c[_0x2eae04(0x12d)]=_0x58008c['originatecalleridnum'],_0x58008c[_0x2eae04(0x15c)]==_0x2eae04(0x125)?_0x58008c[_0x2eae04(0x149)]=_0x58008c[_0x2eae04(0x11c)]:_0x58008c[_0x2eae04(0x149)]=''));}else _0x58008c[_0x2eae04(0x143)]=util[_0x2eae04(0x154)]('\x22%s\x22\x20<%s>',_0x58008c['calleridname'],_0x58008c[_0x2eae04(0x12d)]);if(RpcVoiceTransferReport['transfers'][_0x58008c[_0x2eae04(0x139)]]){const _0x20205d=RpcVoiceTransferReport[_0x2eae04(0x137)][_0x58008c[_0x2eae04(0x139)]];_0x20205d[_0x2eae04(0x138)]=_0x58008c[_0x2eae04(0x14a)],RpcVoiceTransferReport[_0x2eae04(0x156)](_0x20205d),delete RpcVoiceTransferReport[_0x2eae04(0x137)][_0x58008c[_0x2eae04(0x139)]];}RpcVoiceCallReport['create'](_0x58008c);if(_0x58008c[_0x2eae04(0x133)])for(let _0x21fa3e=0x0;_0x21fa3e<_0x58008c['monitors'][_0x2eae04(0x13e)];_0x21fa3e+=0x1){_0x58008c[_0x2eae04(0x14c)]=_0x58008c[_0x2eae04(0x12b)][_0x21fa3e][_0x2eae04(0x12c)],_0x58008c[_0x2eae04(0x14e)]=_0x58008c[_0x2eae04(0x12b)][_0x21fa3e][_0x2eae04(0x14e)];if(_0x58008c[_0x2eae04(0x14d)]==_0x2eae04(0x140))_0x58008c[_0x2eae04(0x12d)]=_0x58008c[_0x2eae04(0x11c)],_0x58008c[_0x2eae04(0x120)]=_0x58008c['connectedlinename'],_0x58008c[_0x2eae04(0x11c)]=_0x58008c[_0x2eae04(0x149)],_0x58008c['connectedlinename']=_0x58008c[_0x2eae04(0x11a)],_0x58008c[_0x2eae04(0x14d)]=_0x58008c['originatecalleridnum'];else _0x58008c[_0x2eae04(0x14d)]==_0x2eae04(0x11d)&&(_0x58008c['calleridnum']=_0x58008c[_0x2eae04(0x13f)],_0x58008c[_0x2eae04(0x14d)]=_0x58008c[_0x2eae04(0x129)]);RpcVoiceRecording[_0x2eae04(0x150)](_0x58008c);}},Report[a1257_0x895286(0x15a)][a1257_0x895286(0x130)]=function(_0x1ab678){const _0x1ffeab=a1257_0x895286;_[_0x1ffeab(0x151)](_0x1ab678)?_0x1ab678[_0x1ffeab(0x118)](function(_0x33e6cb){RpcVoiceAgentReport['create'](_0x33e6cb);}):RpcVoiceAgentReport['create'](_0x1ab678);},Report[a1257_0x895286(0x15a)]['voiceDialReport']=function(_0x35a547){const _0x5ba20c=a1257_0x895286;RpcVoiceDialReport['create'](_0x35a547);let _0x1ac410=undefined;const _0x38303d=_0x35a547['channel'];if(_['startsWith'](_0x38303d,'Local')){const _0x230143=_0x38303d[_0x5ba20c(0x117)](_0x38303d['indexOf']('/')+0x1,_0x38303d[_0x5ba20c(0x14b)]('@'));_0x1ac410=_[_0x5ba20c(0x119)](this['agents'],function(_0x370fc2){const _0x253fff=_0x5ba20c;return _0x370fc2['mobile']==_0x230143||_0x370fc2[_0x253fff(0x136)]==_0x230143||_0x370fc2['accountcode']==_0x230143;});}else{const _0x491679=_0x38303d['substring'](_0x38303d['indexOf']('/')+0x1,_0x38303d['lastIndexOf']('-'));_0x1ac410=this[_0x5ba20c(0x152)](_0x491679);}_0x1ac410&&(_0x35a547[_0x5ba20c(0x148)]=_[_0x5ba20c(0x131)](_0x1ac410[_0x5ba20c(0x148)])?util[_0x5ba20c(0x154)](_0x5ba20c(0x141),_0x1ac410[_0x5ba20c(0x147)]):_0x1ac410[_0x5ba20c(0x148)],_0x35a547[_0x5ba20c(0x11a)]=_0x1ac410['name'],_0x35a547[_0x5ba20c(0x149)]=_0x1ac410[_0x5ba20c(0x149)],RpcMemberReport[_0x5ba20c(0x12f)](_0x35a547));},Report[a1257_0x895286(0x15a)][a1257_0x895286(0x156)]=function(_0x1ff59a){const _0x42ef02=a1257_0x895286;RpcVoiceTransferReport[_0x42ef02(0x137)][_0x1ff59a[_0x42ef02(0x11e)]]=_0x1ff59a;},Report[a1257_0x895286(0x15a)]['attendedTransfer']=function(_0x17a856){const _0x19cb03=a1257_0x895286;RpcVoiceTransferReport[_0x19cb03(0x13c)](_0x17a856);},module['exports']=Report;
\ No newline at end of file
+const a1261_0x2fde=['from-voip-provider','context','disposition','lastapplication','blindtransfer','linkedid','xdr','voiceQueueReport','lastdata','../ami','voiceDialReport','custom:voiceDialReport','attendedTransfer','blindTransfer','assigned','dialer','destination','originatecalleridnum','create','prototype','findAgent','isNil','filename','lastIndexOf','length','util','transfers','forEach','../rpc/voiceRecording','phone','name','lodash','queuecallerexitAt','calleridname','agents','accountcode','YYYY-MM-DD\x20HH:mm:ss','destinationchannel','telephones','exports','find','channel','transfererlinkedid','../rpc/voiceTransferReport','disabled','queuecallerexit','mobile','substring','moment','monitors','calleridpreview','voiceCallReport','calleridnum','Local','custom:voiceCallReport','callerid','membername','SIP/%s','../rpc/voiceQueueReport','sync','match','uniqueid','from-sip','queue','queuecallercomplete','indexOf','exten','interface','voiceAgentReport','connectedlinenum','bind','monitor','format','../rpc/voiceDialReport','xcally-motion-preview','../rpc/voiceAgentReport'];(function(_0x2545eb,_0x311487){const _0x2fde33=function(_0x1cbf89){while(--_0x1cbf89){_0x2545eb['push'](_0x2545eb['shift']());}};_0x2fde33(++_0x311487);}(a1261_0x2fde,0x17f));const a1261_0x1cbf=function(_0x2545eb,_0x311487){_0x2545eb=_0x2545eb-0x160;let _0x2fde33=a1261_0x2fde[_0x2545eb];return _0x2fde33;};const a1261_0x53fddd=a1261_0x1cbf;'use strict';const _=require(a1261_0x53fddd(0x17c)),moment=require(a1261_0x53fddd(0x18d)),util=require(a1261_0x53fddd(0x176)),config=require('../../../config/environment'),ami=require(a1261_0x53fddd(0x166)),RpcVoiceAgentReport=require(a1261_0x53fddd(0x1a8)),RpcVoiceCallReport=require('../rpc/voiceCallReport'),RpcVoiceDialReport=require(a1261_0x53fddd(0x1a6)),RpcMemberReport=require('../rpc/memberReport'),RpcVoiceQueueReport=require(a1261_0x53fddd(0x197)),RpcVoiceRecording=require(a1261_0x53fddd(0x179)),RpcVoiceTransferReport=require(a1261_0x53fddd(0x188));function Report(_0x510cc1){const _0x1e71be=a1261_0x53fddd;this['realtime']=_0x510cc1,this['agents']=_0x510cc1[_0x1e71be(0x17f)],this[_0x1e71be(0x183)]=_0x510cc1[_0x1e71be(0x183)];}Report['prototype'][a1261_0x53fddd(0x198)]=function(){const _0x1455ac=a1261_0x53fddd;config['xdr']&&config[_0x1455ac(0x163)][_0x1455ac(0x189)]&&(ami['on']('custom:voiceQueueReport',this[_0x1455ac(0x164)][_0x1455ac(0x1a3)](this)),ami['on'](_0x1455ac(0x193),this[_0x1455ac(0x190)][_0x1455ac(0x1a3)](this)),ami['on']('custom:voiceAgentReport',this[_0x1455ac(0x1a1)][_0x1455ac(0x1a3)](this)),ami['on'](_0x1455ac(0x168),this[_0x1455ac(0x167)][_0x1455ac(0x1a3)](this)),ami['on'](_0x1455ac(0x161),this['blindTransfer'][_0x1455ac(0x1a3)](this)),ami['on']('attendedtransfer',this[_0x1455ac(0x169)][_0x1455ac(0x1a3)](this)));},Report[a1261_0x53fddd(0x170)][a1261_0x53fddd(0x171)]=function(_0x43f1bb){const _0x6c4d14=a1261_0x53fddd;let _0x51003f;_0x51003f=_['find'](this['agents'],function(_0x5b1965){const _0x54169a=a1261_0x1cbf;return _0x5b1965['accountcode']==_0x43f1bb||_0x5b1965[_0x54169a(0x17b)]==_0x43f1bb;});if(_[_0x6c4d14(0x172)](_0x51003f)){const _0x5928c6=_['find'](this['telephones'],function(_0xc0a97f){const _0x10d247=_0x6c4d14;return _0xc0a97f[_0x10d247(0x180)]==_0x43f1bb||_0xc0a97f[_0x10d247(0x17b)]==_0x43f1bb;});_0x5928c6&&(_0x51003f=_['find'](this[_0x6c4d14(0x17f)],function(_0x118e0d){const _0x1991bc=_0x6c4d14;return _0x118e0d[_0x1991bc(0x1a0)]==util[_0x1991bc(0x1a5)]('SIP/%s',_0x5928c6[_0x1991bc(0x17b)]);}));}return _0x51003f;},Report[a1261_0x53fddd(0x170)][a1261_0x53fddd(0x164)]=function(_0x2e21e7){const _0x2a780b=a1261_0x53fddd;for(let _0x224e9b=0x0;_0x224e9b<_0x2e21e7['length'];_0x224e9b+=0x1){const _0x1b857b=this[_0x2a780b(0x171)](_0x2e21e7[_0x224e9b]['connectedlinenum']);_0x1b857b&&(_0x2e21e7[_0x224e9b][_0x2a780b(0x180)]=_0x1b857b['accountcode'],_0x2e21e7[_0x224e9b][_0x2a780b(0x16b)]=!![],_0x2e21e7[_0x224e9b]['lastAssignedTo']=_0x1b857b[_0x2a780b(0x17b)],_0x2e21e7[_0x224e9b][_0x2a780b(0x1a0)]=_[_0x2a780b(0x172)](_0x1b857b['interface'])?util[_0x2a780b(0x1a5)](_0x2a780b(0x196),_0x1b857b['name']):_0x1b857b['interface'],_0x2e21e7[_0x224e9b][_0x2a780b(0x19d)]&&(_0x2e21e7[_0x224e9b]['queuecallercompleteAt']=moment()[_0x2a780b(0x1a5)](_0x2a780b(0x181))),_0x2e21e7[_0x224e9b][_0x2a780b(0x18a)]&&(_0x2e21e7[_0x224e9b][_0x2a780b(0x17d)]=moment()[_0x2a780b(0x1a5)](_0x2a780b(0x181))),RpcMemberReport['voiceQueueReport'](_0x2e21e7[_0x224e9b])),RpcVoiceQueueReport[_0x2a780b(0x16f)](_0x2e21e7[_0x224e9b]);}};function extractCalleridNumber(_0x5ddf77){const _0x46e484=a1261_0x53fddd,_0x19bfbb=_0x5ddf77[_0x46e484(0x199)](/<(.*?)>/);return _0x19bfbb?_0x19bfbb[0x1]:_0x5ddf77;}Report[a1261_0x53fddd(0x170)][a1261_0x53fddd(0x190)]=function(_0x2bf151){const _0x1031bc=a1261_0x53fddd;_0x2bf151['destination']=_0x2bf151[_0x1031bc(0x16d)]||_0x2bf151[_0x1031bc(0x19f)];if(_0x2bf151['type']==_0x1031bc(0x16c)){_0x2bf151[_0x1031bc(0x160)]=_0x1031bc(0x19c),_0x2bf151[_0x1031bc(0x165)]=_0x2bf151[_0x1031bc(0x19c)];if(_0x2bf151[_0x1031bc(0x1aa)]==_0x1031bc(0x1a9))_0x2bf151[_0x1031bc(0x180)]='',_0x2bf151[_0x1031bc(0x16d)]=extractCalleridNumber(_0x2bf151[_0x1031bc(0x194)]);else _0x2bf151[_0x1031bc(0x1aa)]==_0x1031bc(0x19b)&&(_0x2bf151[_0x1031bc(0x16d)]==_0x1031bc(0x1a7)?(_0x2bf151[_0x1031bc(0x16d)]=extractCalleridNumber(_0x2bf151[_0x1031bc(0x18f)]),_0x2bf151['calleridnum']=_0x2bf151[_0x1031bc(0x16e)],_0x2bf151[_0x1031bc(0x182)]=[_0x2bf151['channel'],_0x2bf151[_0x1031bc(0x186)]=_0x2bf151[_0x1031bc(0x182)]][0x0],_0x2bf151['callerid']=_0x2bf151[_0x1031bc(0x18f)]):(_0x2bf151[_0x1031bc(0x16d)]=_0x2bf151['calleridnum'],_0x2bf151[_0x1031bc(0x191)]=_0x2bf151[_0x1031bc(0x16e)],_0x2bf151[_0x1031bc(0x1ab)]=='ANSWERED'?_0x2bf151[_0x1031bc(0x180)]=_0x2bf151[_0x1031bc(0x1a2)]:_0x2bf151[_0x1031bc(0x180)]=''));}else _0x2bf151[_0x1031bc(0x194)]=util[_0x1031bc(0x1a5)]('\x22%s\x22\x20<%s>',_0x2bf151[_0x1031bc(0x17e)],_0x2bf151[_0x1031bc(0x191)]);if(RpcVoiceTransferReport['transfers'][_0x2bf151['linkedid']]){const _0x3d81a9=RpcVoiceTransferReport[_0x1031bc(0x177)][_0x2bf151[_0x1031bc(0x162)]];_0x3d81a9['transfereelinkedid']=_0x2bf151[_0x1031bc(0x19a)],RpcVoiceTransferReport[_0x1031bc(0x16a)](_0x3d81a9),delete RpcVoiceTransferReport[_0x1031bc(0x177)][_0x2bf151[_0x1031bc(0x162)]];}RpcVoiceCallReport[_0x1031bc(0x16f)](_0x2bf151);if(_0x2bf151[_0x1031bc(0x1a4)])for(let _0x42a87e=0x0;_0x42a87e<_0x2bf151['monitors'][_0x1031bc(0x175)];_0x42a87e+=0x1){_0x2bf151['monitorFilename']=_0x2bf151[_0x1031bc(0x18e)][_0x42a87e][_0x1031bc(0x173)],_0x2bf151['createdAt']=_0x2bf151[_0x1031bc(0x18e)][_0x42a87e]['createdAt'];if(_0x2bf151[_0x1031bc(0x19f)]==_0x1031bc(0x1a7))_0x2bf151[_0x1031bc(0x191)]=_0x2bf151[_0x1031bc(0x1a2)],_0x2bf151[_0x1031bc(0x17e)]=_0x2bf151['connectedlinename'],_0x2bf151[_0x1031bc(0x1a2)]=_0x2bf151[_0x1031bc(0x180)],_0x2bf151['connectedlinename']=_0x2bf151[_0x1031bc(0x195)],_0x2bf151[_0x1031bc(0x19f)]=_0x2bf151[_0x1031bc(0x16e)];else _0x2bf151['exten']=='xcally-motion-dialer'&&(_0x2bf151[_0x1031bc(0x191)]=_0x2bf151['destination'],_0x2bf151['exten']=_0x2bf151[_0x1031bc(0x16e)]);RpcVoiceRecording[_0x1031bc(0x16f)](_0x2bf151);}},Report['prototype']['voiceAgentReport']=function(_0x2b981e){const _0x27bbdb=a1261_0x53fddd;_['isArray'](_0x2b981e)?_0x2b981e[_0x27bbdb(0x178)](function(_0x255a2d){const _0x5506b1=_0x27bbdb;RpcVoiceAgentReport[_0x5506b1(0x16f)](_0x255a2d);}):RpcVoiceAgentReport['create'](_0x2b981e);},Report['prototype']['voiceDialReport']=function(_0x204d79){const _0x329840=a1261_0x53fddd;RpcVoiceDialReport[_0x329840(0x16f)](_0x204d79);let _0x56eb41,_0x234e89;const _0x5e94c8=_0x204d79[_0x329840(0x186)];_['startsWith'](_0x5e94c8,_0x329840(0x192))?(_0x234e89=_0x5e94c8[_0x329840(0x18c)](_0x5e94c8['indexOf']('/')+0x1,_0x5e94c8[_0x329840(0x19e)]('@')),_0x56eb41=_[_0x329840(0x185)](this[_0x329840(0x17f)],function(_0x2d073f){const _0x303b80=_0x329840;return _0x2d073f[_0x303b80(0x18b)]==_0x234e89||_0x2d073f[_0x303b80(0x17a)]==_0x234e89||_0x2d073f[_0x303b80(0x180)]==_0x234e89;})):(_0x234e89=_0x5e94c8[_0x329840(0x18c)](_0x5e94c8[_0x329840(0x19e)]('/')+0x1,_0x5e94c8[_0x329840(0x174)]('-')),_0x56eb41=this['findAgent'](_0x234e89)),_0x56eb41&&(_0x204d79['interface']=_[_0x329840(0x172)](_0x56eb41[_0x329840(0x1a0)])?util['format'](_0x329840(0x196),_0x56eb41[_0x329840(0x17b)]):_0x56eb41[_0x329840(0x1a0)],_0x204d79[_0x329840(0x195)]=_0x56eb41[_0x329840(0x17b)],_0x204d79[_0x329840(0x180)]=_0x56eb41[_0x329840(0x180)],RpcMemberReport[_0x329840(0x167)](_0x204d79));},Report[a1261_0x53fddd(0x170)][a1261_0x53fddd(0x16a)]=function(_0x4ce3fd){const _0x876c9d=a1261_0x53fddd;RpcVoiceTransferReport[_0x876c9d(0x177)][_0x4ce3fd[_0x876c9d(0x187)]]=_0x4ce3fd;},Report[a1261_0x53fddd(0x170)]['attendedTransfer']=function(_0x2374b3){RpcVoiceTransferReport['attendedTransfer'](_0x2374b3);},module[a1261_0x53fddd(0x184)]=Report;
\ No newline at end of file