Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / services / ami / report / index.js
index feba4ee..cf20eef 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb852=['custom:voiceDialReport','voiceDialReport','blindtransfer','blindTransfer','findAgent','find','isNil','accountcode','name','format','SIP/%s','length','connectedlinenum','assigned','lastAssignedTo','interface','queuecallercompleteAt','YYYY-MM-DD\x20HH:mm:ss','queuecallerexit','queuecallerexitAt','create','match','destination','exten','type','dialer','lastapplication','lastdata','queue','context','from-voip-provider','callerid','calleridpreview','destinationchannel','channel','calleridnum','originatecalleridnum','disposition','ANSWERED','\x22%s\x22\x20<%s>','transfers','linkedid','transfereelinkedid','uniqueid','monitor','monitors','filename','createdAt','calleridname','connectedlinename','membername','xcally-motion-dialer','isArray','forEach','startsWith','Local','substring','indexOf','mobile','phone','lastIndexOf','attendedTransfer','lodash','moment','util','../../../config/environment','../ami','../rpc/voiceAgentReport','../rpc/voiceDialReport','../rpc/memberReport','../rpc/voiceRecording','../rpc/voiceTransferReport','./voiceQueueReport','./voiceCallReport','./voiceAgentReport','./userReport','realtime','agents','telephones','prototype','xdr','disabled','custom:voiceQueueReport','voiceQueueReport','bind','custom:voiceCallReport','voiceCallReport','custom:voiceAgentReport','voiceAgentReport'];(function(_0x17cb66,_0x4853bc){var _0x436e7a=function(_0x478dd0){while(--_0x478dd0){_0x17cb66['push'](_0x17cb66['shift']());}};_0x436e7a(++_0x4853bc);}(_0xb852,0xf0));var _0x2b85=function(_0x2f1c08,_0x3de51b){_0x2f1c08=_0x2f1c08-0x0;var _0xaf5a5a=_0xb852[_0x2f1c08];return _0xaf5a5a;};'use strict';var _=require(_0x2b85('0x0'));var moment=require(_0x2b85('0x1'));var util=require(_0x2b85('0x2'));var config=require(_0x2b85('0x3'));var ami=require(_0x2b85('0x4'));var RpcVoiceAgentReport=require(_0x2b85('0x5'));var RpcVoiceCallReport=require('../rpc/voiceCallReport');var RpcVoiceDialReport=require(_0x2b85('0x6'));var RpcMemberReport=require(_0x2b85('0x7'));var RpcVoiceQueueReport=require('../rpc/voiceQueueReport');var RpcVoiceRecording=require(_0x2b85('0x8'));var RpcVoiceTransferReport=require(_0x2b85('0x9'));var VoiceQueueReport=require(_0x2b85('0xa'));var VoiceCallReport=require(_0x2b85('0xb'));var VoiceAgentReport=require(_0x2b85('0xc'));var VoiceDialReport=require('./voiceDialReport');var UserReport=require(_0x2b85('0xd'));function Report(_0x1e241c){this[_0x2b85('0xe')]=_0x1e241c;this[_0x2b85('0xf')]=_0x1e241c[_0x2b85('0xf')];this['telephones']=_0x1e241c[_0x2b85('0x10')];}Report[_0x2b85('0x11')]['sync']=function(_0xe0cd9a){var _0x200c40=new VoiceQueueReport(this['realtime']);var _0x3ca83d=new VoiceAgentReport(this[_0x2b85('0xe')]);var _0x47cc98=new VoiceDialReport(this[_0x2b85('0xe')]);var _0x543f25=new VoiceCallReport(this['realtime']);var _0xb387b4=new UserReport(this[_0x2b85('0xe')]);if(config[_0x2b85('0x12')]&&config['xdr'][_0x2b85('0x13')]){ami['on'](_0x2b85('0x14'),this[_0x2b85('0x15')][_0x2b85('0x16')](this));ami['on'](_0x2b85('0x17'),this[_0x2b85('0x18')]['bind'](this));ami['on'](_0x2b85('0x19'),this[_0x2b85('0x1a')][_0x2b85('0x16')](this));ami['on'](_0x2b85('0x1b'),this[_0x2b85('0x1c')][_0x2b85('0x16')](this));ami['on'](_0x2b85('0x1d'),this[_0x2b85('0x1e')][_0x2b85('0x16')](this));ami['on']('attendedtransfer',this['attendedTransfer'][_0x2b85('0x16')](this));}};Report['prototype'][_0x2b85('0x1f')]=function(_0xb2520d){var _0x2f37f8;_0x2f37f8=_[_0x2b85('0x20')](this['agents'],function(_0x1f324c){return _0x1f324c['accountcode']==_0xb2520d||_0x1f324c['name']==_0xb2520d;});if(_[_0x2b85('0x21')](_0x2f37f8)){var _0x1ff782=_[_0x2b85('0x20')](this[_0x2b85('0x10')],function(_0xd8329f){return _0xd8329f[_0x2b85('0x22')]==_0xb2520d||_0xd8329f[_0x2b85('0x23')]==_0xb2520d;});if(_0x1ff782){_0x2f37f8=_[_0x2b85('0x20')](this['agents'],function(_0x10d26c){return _0x10d26c['interface']==util[_0x2b85('0x24')](_0x2b85('0x25'),_0x1ff782['name']);});}}return _0x2f37f8;};Report[_0x2b85('0x11')][_0x2b85('0x15')]=function(_0x1f3729){for(var _0x526a64=0x0;_0x526a64<_0x1f3729[_0x2b85('0x26')];_0x526a64+=0x1){var _0x55ccb6=this[_0x2b85('0x1f')](_0x1f3729[_0x526a64][_0x2b85('0x27')]);if(_0x55ccb6){_0x1f3729[_0x526a64][_0x2b85('0x22')]=_0x55ccb6['accountcode'];_0x1f3729[_0x526a64][_0x2b85('0x28')]=!![];_0x1f3729[_0x526a64][_0x2b85('0x29')]=_0x55ccb6['name'];_0x1f3729[_0x526a64][_0x2b85('0x2a')]=_['isNil'](_0x55ccb6[_0x2b85('0x2a')])?util[_0x2b85('0x24')](_0x2b85('0x25'),_0x55ccb6[_0x2b85('0x23')]):_0x55ccb6[_0x2b85('0x2a')];if(_0x1f3729[_0x526a64]['queuecallercomplete']){_0x1f3729[_0x526a64][_0x2b85('0x2b')]=moment()['format'](_0x2b85('0x2c'));}if(_0x1f3729[_0x526a64][_0x2b85('0x2d')]){_0x1f3729[_0x526a64][_0x2b85('0x2e')]=moment()[_0x2b85('0x24')]('YYYY-MM-DD\x20HH:mm:ss');}RpcMemberReport[_0x2b85('0x15')](_0x1f3729[_0x526a64]);}RpcVoiceQueueReport[_0x2b85('0x2f')](_0x1f3729[_0x526a64]);}};function extractCalleridNumber(_0x5da470){var _0x143fa4=_0x5da470[_0x2b85('0x30')](/<(.*?)>/);return _0x143fa4?_0x143fa4[0x1]:_0x5da470;}Report[_0x2b85('0x11')][_0x2b85('0x18')]=function(_0x3bafed){_0x3bafed[_0x2b85('0x31')]=_0x3bafed[_0x2b85('0x31')]||_0x3bafed[_0x2b85('0x32')];if(_0x3bafed[_0x2b85('0x33')]==_0x2b85('0x34')){_0x3bafed[_0x2b85('0x35')]='queue';_0x3bafed[_0x2b85('0x36')]=_0x3bafed[_0x2b85('0x37')];if(_0x3bafed[_0x2b85('0x38')]==_0x2b85('0x39')){_0x3bafed[_0x2b85('0x22')]='';_0x3bafed[_0x2b85('0x31')]=extractCalleridNumber(_0x3bafed[_0x2b85('0x3a')]);}else if(_0x3bafed[_0x2b85('0x38')]=='from-sip'){if(_0x3bafed['destination']=='xcally-motion-preview'){_0x3bafed[_0x2b85('0x31')]=extractCalleridNumber(_0x3bafed[_0x2b85('0x3b')]);_0x3bafed['calleridnum']=_0x3bafed['originatecalleridnum'];_0x3bafed[_0x2b85('0x3c')]=[_0x3bafed[_0x2b85('0x3d')],_0x3bafed['channel']=_0x3bafed['destinationchannel']][0x0];_0x3bafed[_0x2b85('0x3a')]=_0x3bafed[_0x2b85('0x3b')];}else{_0x3bafed[_0x2b85('0x31')]=_0x3bafed[_0x2b85('0x3e')];_0x3bafed['calleridnum']=_0x3bafed[_0x2b85('0x3f')];if(_0x3bafed[_0x2b85('0x40')]==_0x2b85('0x41')){_0x3bafed['accountcode']=_0x3bafed['connectedlinenum'];}else{_0x3bafed['accountcode']='';}}}}else{_0x3bafed[_0x2b85('0x3a')]=util[_0x2b85('0x24')](_0x2b85('0x42'),_0x3bafed['calleridname'],_0x3bafed[_0x2b85('0x3e')]);}if(RpcVoiceTransferReport[_0x2b85('0x43')][_0x3bafed[_0x2b85('0x44')]]){var _0x2bf050=RpcVoiceTransferReport[_0x2b85('0x43')][_0x3bafed[_0x2b85('0x44')]];_0x2bf050[_0x2b85('0x45')]=_0x3bafed[_0x2b85('0x46')];RpcVoiceTransferReport['blindTransfer'](_0x2bf050);delete RpcVoiceTransferReport[_0x2b85('0x43')][_0x3bafed['linkedid']];}RpcVoiceCallReport['create'](_0x3bafed);if(_0x3bafed[_0x2b85('0x47')]){for(var _0x247ec0=0x0;_0x247ec0<_0x3bafed[_0x2b85('0x48')][_0x2b85('0x26')];_0x247ec0+=0x1){_0x3bafed['monitorFilename']=_0x3bafed[_0x2b85('0x48')][_0x247ec0][_0x2b85('0x49')];_0x3bafed[_0x2b85('0x4a')]=_0x3bafed['monitors'][_0x247ec0][_0x2b85('0x4a')];if(_0x3bafed[_0x2b85('0x32')]=='xcally-motion-preview'){_0x3bafed[_0x2b85('0x3e')]=_0x3bafed['connectedlinenum'];_0x3bafed[_0x2b85('0x4b')]=_0x3bafed['connectedlinename'];_0x3bafed[_0x2b85('0x27')]=_0x3bafed[_0x2b85('0x22')];_0x3bafed[_0x2b85('0x4c')]=_0x3bafed[_0x2b85('0x4d')];_0x3bafed[_0x2b85('0x32')]=_0x3bafed[_0x2b85('0x3f')];}else if(_0x3bafed['exten']==_0x2b85('0x4e')){_0x3bafed['calleridnum']=_0x3bafed['destination'];_0x3bafed[_0x2b85('0x32')]=_0x3bafed['originatecalleridnum'];}RpcVoiceRecording[_0x2b85('0x2f')](_0x3bafed);}}};Report[_0x2b85('0x11')]['voiceAgentReport']=function(_0x5f0e80){if(_[_0x2b85('0x4f')](_0x5f0e80)){_0x5f0e80[_0x2b85('0x50')](function(_0x4431e8){RpcVoiceAgentReport['create'](_0x4431e8);});}else{RpcVoiceAgentReport[_0x2b85('0x2f')](_0x5f0e80);}};Report['prototype'][_0x2b85('0x1c')]=function(_0x421afb){RpcVoiceDialReport['create'](_0x421afb);var _0xffa6a1;var _0x5709b8;var _0x1f7759=_0x421afb[_0x2b85('0x3d')];if(_[_0x2b85('0x51')](_0x1f7759,_0x2b85('0x52'))){_0x5709b8=_0x1f7759[_0x2b85('0x53')](_0x1f7759[_0x2b85('0x54')]('/')+0x1,_0x1f7759['indexOf']('@'));_0xffa6a1=_[_0x2b85('0x20')](this[_0x2b85('0xf')],function(_0x49ca64){return _0x49ca64[_0x2b85('0x55')]==_0x5709b8||_0x49ca64[_0x2b85('0x56')]==_0x5709b8||_0x49ca64[_0x2b85('0x22')]==_0x5709b8;});}else{_0x5709b8=_0x1f7759[_0x2b85('0x53')](_0x1f7759['indexOf']('/')+0x1,_0x1f7759[_0x2b85('0x57')]('-'));_0xffa6a1=this[_0x2b85('0x1f')](_0x5709b8);}if(_0xffa6a1){_0x421afb[_0x2b85('0x2a')]=_[_0x2b85('0x21')](_0xffa6a1['interface'])?util[_0x2b85('0x24')](_0x2b85('0x25'),_0xffa6a1[_0x2b85('0x23')]):_0xffa6a1[_0x2b85('0x2a')];_0x421afb['membername']=_0xffa6a1[_0x2b85('0x23')];_0x421afb[_0x2b85('0x22')]=_0xffa6a1['accountcode'];RpcMemberReport[_0x2b85('0x1c')](_0x421afb);}};Report[_0x2b85('0x11')][_0x2b85('0x1e')]=function(_0x31a9ca){RpcVoiceTransferReport[_0x2b85('0x43')][_0x31a9ca['transfererlinkedid']]=_0x31a9ca;};Report['prototype']['attendedTransfer']=function(_0x4d9cdd){RpcVoiceTransferReport[_0x2b85('0x58')](_0x4d9cdd);};module['exports']=Report;
\ No newline at end of file
+var _0x7314=['xcally-motion-dialer','voiceAgentReport','isArray','forEach','startsWith','substring','indexOf','mobile','lastIndexOf','membername','transfererlinkedid','attendedTransfer','lodash','moment','util','../../../config/environment','../ami','../rpc/voiceAgentReport','../rpc/voiceCallReport','../rpc/voiceDialReport','../rpc/memberReport','../rpc/voiceQueueReport','../rpc/voiceRecording','../rpc/voiceTransferReport','./voiceCallReport','./voiceDialReport','./userReport','agents','telephones','prototype','sync','realtime','xdr','bind','voiceDialReport','blindtransfer','blindTransfer','attendedtransfer','findAgent','find','name','isNil','accountcode','interface','format','SIP/%s','voiceQueueReport','connectedlinenum','assigned','queuecallercomplete','YYYY-MM-DD\x20HH:mm:ss','queuecallerexit','queuecallerexitAt','create','match','voiceCallReport','destination','exten','type','dialer','lastapplication','queue','context','from-voip-provider','xcally-motion-preview','calleridnum','originatecalleridnum','destinationchannel','channel','callerid','calleridpreview','disposition','ANSWERED','\x22%s\x22\x20<%s>','calleridname','linkedid','transfers','uniqueid','monitor','monitors','length','monitorFilename','createdAt'];(function(_0x1654d1,_0x2a3258){var _0x111373=function(_0x47ed08){while(--_0x47ed08){_0x1654d1['push'](_0x1654d1['shift']());}};_0x111373(++_0x2a3258);}(_0x7314,0xb2));var _0x4731=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x7314[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0x4731('0x0'));var moment=require(_0x4731('0x1'));var util=require(_0x4731('0x2'));var config=require(_0x4731('0x3'));var ami=require(_0x4731('0x4'));var RpcVoiceAgentReport=require(_0x4731('0x5'));var RpcVoiceCallReport=require(_0x4731('0x6'));var RpcVoiceDialReport=require(_0x4731('0x7'));var RpcMemberReport=require(_0x4731('0x8'));var RpcVoiceQueueReport=require(_0x4731('0x9'));var RpcVoiceRecording=require(_0x4731('0xa'));var RpcVoiceTransferReport=require(_0x4731('0xb'));var VoiceQueueReport=require('./voiceQueueReport');var VoiceCallReport=require(_0x4731('0xc'));var VoiceAgentReport=require('./voiceAgentReport');var VoiceDialReport=require(_0x4731('0xd'));var UserReport=require(_0x4731('0xe'));function Report(_0x34ee9e){this['realtime']=_0x34ee9e;this[_0x4731('0xf')]=_0x34ee9e['agents'];this['telephones']=_0x34ee9e[_0x4731('0x10')];}Report[_0x4731('0x11')][_0x4731('0x12')]=function(_0x4c0c45){var _0x455d78=new VoiceQueueReport(this['realtime']);var _0x467319=new VoiceAgentReport(this['realtime']);var _0x282866=new VoiceDialReport(this[_0x4731('0x13')]);var _0x39295d=new VoiceCallReport(this['realtime']);var _0x200dbe=new UserReport(this[_0x4731('0x13')]);if(config[_0x4731('0x14')]&&config['xdr']['disabled']){ami['on']('custom:voiceQueueReport',this['voiceQueueReport'][_0x4731('0x15')](this));ami['on']('custom:voiceCallReport',this['voiceCallReport'][_0x4731('0x15')](this));ami['on']('custom:voiceAgentReport',this['voiceAgentReport'][_0x4731('0x15')](this));ami['on']('custom:voiceDialReport',this[_0x4731('0x16')][_0x4731('0x15')](this));ami['on'](_0x4731('0x17'),this[_0x4731('0x18')][_0x4731('0x15')](this));ami['on'](_0x4731('0x19'),this['attendedTransfer']['bind'](this));}};Report['prototype'][_0x4731('0x1a')]=function(_0x5639d7){var _0x1b3528;_0x1b3528=_[_0x4731('0x1b')](this[_0x4731('0xf')],function(_0x50797b){return _0x50797b['accountcode']==_0x5639d7||_0x50797b[_0x4731('0x1c')]==_0x5639d7;});if(_[_0x4731('0x1d')](_0x1b3528)){var _0x4ac510=_[_0x4731('0x1b')](this['telephones'],function(_0x49bddb){return _0x49bddb[_0x4731('0x1e')]==_0x5639d7||_0x49bddb['name']==_0x5639d7;});if(_0x4ac510){_0x1b3528=_['find'](this['agents'],function(_0x5ec0f2){return _0x5ec0f2[_0x4731('0x1f')]==util[_0x4731('0x20')](_0x4731('0x21'),_0x4ac510['name']);});}}return _0x1b3528;};Report['prototype'][_0x4731('0x22')]=function(_0x3ba5f4){for(var _0x416a47=0x0;_0x416a47<_0x3ba5f4['length'];_0x416a47+=0x1){var _0x28ddb3=this[_0x4731('0x1a')](_0x3ba5f4[_0x416a47][_0x4731('0x23')]);if(_0x28ddb3){_0x3ba5f4[_0x416a47]['accountcode']=_0x28ddb3[_0x4731('0x1e')];_0x3ba5f4[_0x416a47][_0x4731('0x24')]=!![];_0x3ba5f4[_0x416a47]['lastAssignedTo']=_0x28ddb3[_0x4731('0x1c')];_0x3ba5f4[_0x416a47]['interface']=_[_0x4731('0x1d')](_0x28ddb3[_0x4731('0x1f')])?util[_0x4731('0x20')](_0x4731('0x21'),_0x28ddb3[_0x4731('0x1c')]):_0x28ddb3[_0x4731('0x1f')];if(_0x3ba5f4[_0x416a47][_0x4731('0x25')]){_0x3ba5f4[_0x416a47]['queuecallercompleteAt']=moment()[_0x4731('0x20')](_0x4731('0x26'));}if(_0x3ba5f4[_0x416a47][_0x4731('0x27')]){_0x3ba5f4[_0x416a47][_0x4731('0x28')]=moment()[_0x4731('0x20')]('YYYY-MM-DD\x20HH:mm:ss');}RpcMemberReport['voiceQueueReport'](_0x3ba5f4[_0x416a47]);}RpcVoiceQueueReport[_0x4731('0x29')](_0x3ba5f4[_0x416a47]);}};function extractCalleridNumber(_0x4f0d0f){var _0x2749e2=_0x4f0d0f[_0x4731('0x2a')](/<(.*?)>/);return _0x2749e2?_0x2749e2[0x1]:_0x4f0d0f;}Report[_0x4731('0x11')][_0x4731('0x2b')]=function(_0x2d59ce){_0x2d59ce[_0x4731('0x2c')]=_0x2d59ce[_0x4731('0x2c')]||_0x2d59ce[_0x4731('0x2d')];if(_0x2d59ce[_0x4731('0x2e')]==_0x4731('0x2f')){_0x2d59ce[_0x4731('0x30')]='queue';_0x2d59ce['lastdata']=_0x2d59ce[_0x4731('0x31')];if(_0x2d59ce[_0x4731('0x32')]==_0x4731('0x33')){_0x2d59ce[_0x4731('0x1e')]='';_0x2d59ce['destination']=extractCalleridNumber(_0x2d59ce['callerid']);}else if(_0x2d59ce[_0x4731('0x32')]=='from-sip'){if(_0x2d59ce['destination']==_0x4731('0x34')){_0x2d59ce[_0x4731('0x2c')]=extractCalleridNumber(_0x2d59ce['calleridpreview']);_0x2d59ce[_0x4731('0x35')]=_0x2d59ce[_0x4731('0x36')];_0x2d59ce[_0x4731('0x37')]=[_0x2d59ce[_0x4731('0x38')],_0x2d59ce[_0x4731('0x38')]=_0x2d59ce[_0x4731('0x37')]][0x0];_0x2d59ce[_0x4731('0x39')]=_0x2d59ce[_0x4731('0x3a')];}else{_0x2d59ce[_0x4731('0x2c')]=_0x2d59ce[_0x4731('0x35')];_0x2d59ce[_0x4731('0x35')]=_0x2d59ce[_0x4731('0x36')];if(_0x2d59ce[_0x4731('0x3b')]==_0x4731('0x3c')){_0x2d59ce[_0x4731('0x1e')]=_0x2d59ce[_0x4731('0x23')];}else{_0x2d59ce[_0x4731('0x1e')]='';}}}}else{_0x2d59ce['callerid']=util[_0x4731('0x20')](_0x4731('0x3d'),_0x2d59ce[_0x4731('0x3e')],_0x2d59ce[_0x4731('0x35')]);}if(RpcVoiceTransferReport['transfers'][_0x2d59ce[_0x4731('0x3f')]]){var _0x5c234e=RpcVoiceTransferReport[_0x4731('0x40')][_0x2d59ce[_0x4731('0x3f')]];_0x5c234e['transfereelinkedid']=_0x2d59ce[_0x4731('0x41')];RpcVoiceTransferReport[_0x4731('0x18')](_0x5c234e);delete RpcVoiceTransferReport[_0x4731('0x40')][_0x2d59ce[_0x4731('0x3f')]];}RpcVoiceCallReport[_0x4731('0x29')](_0x2d59ce);if(_0x2d59ce[_0x4731('0x42')]){for(var _0x17533d=0x0;_0x17533d<_0x2d59ce[_0x4731('0x43')][_0x4731('0x44')];_0x17533d+=0x1){_0x2d59ce[_0x4731('0x45')]=_0x2d59ce[_0x4731('0x43')][_0x17533d]['filename'];_0x2d59ce['createdAt']=_0x2d59ce[_0x4731('0x43')][_0x17533d][_0x4731('0x46')];if(_0x2d59ce['exten']=='xcally-motion-preview'){_0x2d59ce[_0x4731('0x35')]=_0x2d59ce[_0x4731('0x23')];_0x2d59ce[_0x4731('0x3e')]=_0x2d59ce['connectedlinename'];_0x2d59ce[_0x4731('0x23')]=_0x2d59ce[_0x4731('0x1e')];_0x2d59ce['connectedlinename']=_0x2d59ce['membername'];_0x2d59ce['exten']=_0x2d59ce['originatecalleridnum'];}else if(_0x2d59ce[_0x4731('0x2d')]==_0x4731('0x47')){_0x2d59ce['calleridnum']=_0x2d59ce[_0x4731('0x2c')];_0x2d59ce['exten']=_0x2d59ce[_0x4731('0x36')];}RpcVoiceRecording[_0x4731('0x29')](_0x2d59ce);}}};Report[_0x4731('0x11')][_0x4731('0x48')]=function(_0x4c5a99){if(_[_0x4731('0x49')](_0x4c5a99)){_0x4c5a99[_0x4731('0x4a')](function(_0x1a9092){RpcVoiceAgentReport[_0x4731('0x29')](_0x1a9092);});}else{RpcVoiceAgentReport[_0x4731('0x29')](_0x4c5a99);}};Report[_0x4731('0x11')][_0x4731('0x16')]=function(_0x7b16e){RpcVoiceDialReport[_0x4731('0x29')](_0x7b16e);var _0x1b4198;var _0x2437b6;var _0xba6146=_0x7b16e[_0x4731('0x38')];if(_[_0x4731('0x4b')](_0xba6146,'Local')){_0x2437b6=_0xba6146[_0x4731('0x4c')](_0xba6146[_0x4731('0x4d')]('/')+0x1,_0xba6146[_0x4731('0x4d')]('@'));_0x1b4198=_[_0x4731('0x1b')](this[_0x4731('0xf')],function(_0xd5c1c9){return _0xd5c1c9[_0x4731('0x4e')]==_0x2437b6||_0xd5c1c9['phone']==_0x2437b6||_0xd5c1c9['accountcode']==_0x2437b6;});}else{_0x2437b6=_0xba6146[_0x4731('0x4c')](_0xba6146[_0x4731('0x4d')]('/')+0x1,_0xba6146[_0x4731('0x4f')]('-'));_0x1b4198=this[_0x4731('0x1a')](_0x2437b6);}if(_0x1b4198){_0x7b16e['interface']=_[_0x4731('0x1d')](_0x1b4198[_0x4731('0x1f')])?util[_0x4731('0x20')]('SIP/%s',_0x1b4198[_0x4731('0x1c')]):_0x1b4198[_0x4731('0x1f')];_0x7b16e[_0x4731('0x50')]=_0x1b4198[_0x4731('0x1c')];_0x7b16e[_0x4731('0x1e')]=_0x1b4198[_0x4731('0x1e')];RpcMemberReport[_0x4731('0x16')](_0x7b16e);}};Report[_0x4731('0x11')][_0x4731('0x18')]=function(_0xc914e7){RpcVoiceTransferReport[_0x4731('0x40')][_0xc914e7[_0x4731('0x51')]]=_0xc914e7;};Report[_0x4731('0x11')][_0x4731('0x52')]=function(_0x3ce5a4){RpcVoiceTransferReport[_0x4731('0x52')](_0x3ce5a4);};module['exports']=Report;
\ No newline at end of file