Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / xdr / calls.controller.js
index df59f7e..1b08a53 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2911=['type','accountcode','source','callerid','getUserByInternal','then','UserId','CreateVoiceCallReport','request','newchannel','linkedid','calleridnum','context','now','DOCUMENTATION','error','stack','isNil','channelstate','systemanswertime','transfer','destinationchannel','answertime','disposition','toNumber','hangup','calleridname','endtime','duration','diffTime','starttime','billableseconds','attendedtransfer','localtwolinkedid','transfereechannel','secondtransfererchannel','userfield','_attended','musiconholdstartAt','musiconholdstop','mohtime','varset','variable','value','destination','\x22\x20<','xmd-callerid-preview','xmd-callerid','xmd-queue','xmcs-queue','lastapplication','Queue','lastdata','queue','xmd-contactid','ContactId','xmd-cdrtype','sipcallid','newexten','application','toLowerCase','set','startsWith','appdata','cdr','substring','lastIndexOf','includes','execif','gotoif','lodash','./utils','NO\x20ANSWER','FAILED','ANSWERED','BUSY','info','format','CALL|%s|%s|%s|%s|%s|%s|%s|%s','uniqueid','channel'];(function(_0x3fc4ed,_0x266718){var _0x41c849=function(_0x30456f){while(--_0x30456f){_0x3fc4ed['push'](_0x3fc4ed['shift']());}};_0x41c849(++_0x266718);}(_0x2911,0x139));var _0x1291=function(_0x531e1e,_0x229b12){_0x531e1e=_0x531e1e-0x0;var _0x16f73a=_0x2911[_0x531e1e];return _0x16f73a;};'use strict';var _=require(_0x1291('0x0'));var util=require('util');var utils=require(_0x1291('0x1'));var dispositions=[_0x1291('0x2'),_0x1291('0x3'),_0x1291('0x3'),_0x1291('0x2'),_0x1291('0x2'),'NO\x20ANSWER',_0x1291('0x4'),_0x1291('0x5'),_0x1291('0x3'),'FAILED',_0x1291('0x3')];var channels={};function writeDB(_0x303400){utils[_0x1291('0x6')](util[_0x1291('0x7')](_0x1291('0x8'),_0x303400[_0x1291('0x9')],_0x303400[_0x1291('0xa')],_0x303400[_0x1291('0xb')],_0x303400[_0x1291('0xc')],_0x303400[_0x1291('0xd')],_0x303400['destination'],_0x303400[_0x1291('0xe')],_0x303400['disposition']));if(_0x303400[_0x1291('0xc')]){utils[_0x1291('0xf')](_0x303400[_0x1291('0xc')])[_0x1291('0x10')](function(_0x25fa5e){if(_0x25fa5e){_0x303400[_0x1291('0x11')]=_0x25fa5e['id'];}utils['request'](_0x1291('0x12'),_0x303400);});}else{utils[_0x1291('0x13')](_0x1291('0x12'),_0x303400);}if(channels[_0x303400[_0x1291('0x9')]]){delete channels[_0x303400[_0x1291('0x9')]];}}exports[_0x1291('0x14')]=function(_0x1d4f20){try{if(_0x1d4f20[_0x1291('0x9')]==_0x1d4f20[_0x1291('0x15')]&&_0x1d4f20[_0x1291('0xa')]!='OutgoingSpoolFailed'){channels[_0x1d4f20[_0x1291('0x9')]]={'uniqueid':_0x1d4f20['uniqueid'],'accountcode':_0x1d4f20[_0x1291('0xc')],'source':_0x1d4f20[_0x1291('0x16')],'destination':_0x1d4f20['exten'],'destinationcontext':_0x1d4f20[_0x1291('0x17')],'channel':_0x1d4f20[_0x1291('0xa')],'starttime':utils[_0x1291('0x18')](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':_0x1291('0x2'),'amaflags':_0x1291('0x19')};}}catch(_0x3ca449){utils[_0x1291('0x1a')](_0x3ca449[_0x1291('0x1b')]);}};exports['newstate']=function(_0x23f5cf){try{if(!_[_0x1291('0x1c')](channels[_0x23f5cf['uniqueid']])&&_0x23f5cf[_0x1291('0x1d')]==0x6){if(_['isNil'](channels[_0x23f5cf['uniqueid']][_0x1291('0x1e')])){channels[_0x23f5cf['uniqueid']][_0x1291('0x1e')]=utils['now']();}}else if(!_[_0x1291('0x1c')](channels[_0x23f5cf[_0x1291('0x15')]])&&_0x23f5cf['channelstate']==0x6&&_0x23f5cf[_0x1291('0x17')]!=_0x1291('0x1f')){channels[_0x23f5cf[_0x1291('0x15')]][_0x1291('0xc')]=_0x23f5cf[_0x1291('0xc')];channels[_0x23f5cf[_0x1291('0x15')]][_0x1291('0x20')]=_0x23f5cf[_0x1291('0xa')];if(_['isNil'](channels[_0x23f5cf[_0x1291('0x15')]][_0x1291('0x21')])){channels[_0x23f5cf[_0x1291('0x15')]]['answertime']=utils[_0x1291('0x18')]();}channels[_0x23f5cf[_0x1291('0x15')]][_0x1291('0x22')]=dispositions[_[_0x1291('0x23')](_0x23f5cf[_0x1291('0x1d')])]||_0x1291('0x4');}}catch(_0x4fd2a4){utils['error'](_0x4fd2a4[_0x1291('0x1b')]);}};exports[_0x1291('0x24')]=function(_0x499e8a){try{if(!_[_0x1291('0x1c')](channels[_0x499e8a[_0x1291('0x9')]])){if(_['isNil'](channels[_0x499e8a['uniqueid']][_0x1291('0xe')])){channels[_0x499e8a[_0x1291('0x9')]]['callerid']=_0x499e8a[_0x1291('0x25')]+'\x20<'+_0x499e8a[_0x1291('0x16')]+'>';}channels[_0x499e8a['uniqueid']][_0x1291('0x26')]=utils[_0x1291('0x18')]();channels[_0x499e8a[_0x1291('0x9')]][_0x1291('0x27')]=utils[_0x1291('0x28')](channels[_0x499e8a[_0x1291('0x9')]][_0x1291('0x26')],channels[_0x499e8a[_0x1291('0x9')]][_0x1291('0x29')]);channels[_0x499e8a[_0x1291('0x9')]][_0x1291('0x2a')]=channels[_0x499e8a[_0x1291('0x9')]][_0x1291('0x21')]?utils['diffTime'](channels[_0x499e8a[_0x1291('0x9')]]['endtime'],channels[_0x499e8a[_0x1291('0x9')]]['answertime']):0x0;writeDB(channels[_0x499e8a[_0x1291('0x9')]]);}}catch(_0x160e87){utils[_0x1291('0x1a')](_0x160e87['stack']);}};exports[_0x1291('0x2b')]=function(_0x28d2f1){try{if(!_[_0x1291('0x1c')](channels[_0x28d2f1['localtwolinkedid']])){if(channels[_0x28d2f1[_0x1291('0x2c')]][_0x1291('0xa')]==_0x28d2f1[_0x1291('0x2d')]){channels[_0x28d2f1[_0x1291('0x2c')]][_0x1291('0x20')]=_0x28d2f1[_0x1291('0x2e')];channels[_0x28d2f1['localtwolinkedid']][_0x1291('0x2f')]=_0x1291('0x30');}else if(channels[_0x28d2f1['localtwolinkedid']][_0x1291('0xa')]=_0x28d2f1['transfertargetchannel']){channels[_0x28d2f1[_0x1291('0x2c')]][_0x1291('0x20')]=_0x28d2f1['origtransfererchannel'];channels[_0x28d2f1[_0x1291('0x2c')]]['userfield']='_attended';}}}catch(_0x733ae7){utils[_0x1291('0x1a')](_0x733ae7[_0x1291('0x1b')]);}};exports['musiconholdstart']=function(_0x1e3242){try{if(!_[_0x1291('0x1c')](channels[_0x1e3242[_0x1291('0x9')]])){channels[_0x1e3242['uniqueid']][_0x1291('0x31')]=utils['now']();}}catch(_0x4308cf){utils[_0x1291('0x1a')](_0x4308cf[_0x1291('0x1b')]);}};exports[_0x1291('0x32')]=function(_0x4e51c6){try{if(!_[_0x1291('0x1c')](channels[_0x4e51c6[_0x1291('0x9')]])){if(!_['isNil'](channels[_0x4e51c6[_0x1291('0x9')]][_0x1291('0x31')])){channels[_0x4e51c6[_0x1291('0x9')]][_0x1291('0x33')]+=utils['diffTime'](utils[_0x1291('0x18')](),channels[_0x4e51c6[_0x1291('0x9')]][_0x1291('0x31')]);delete channels[_0x4e51c6[_0x1291('0x9')]][_0x1291('0x31')];}}}catch(_0x26d736){utils['error'](_0x26d736[_0x1291('0x1b')]);}};exports[_0x1291('0x34')]=function(_0xe8f754){try{if(!_[_0x1291('0x1c')](channels[_0xe8f754[_0x1291('0x9')]])){if(!_[_0x1291('0x1c')](_0xe8f754[_0x1291('0x35')]['xmd-originatecalleridnum'])){channels[_0xe8f754[_0x1291('0x9')]][_0x1291('0xd')]=_0xe8f754[_0x1291('0x36')];}if(!_[_0x1291('0x1c')](_0xe8f754[_0x1291('0x35')]['xmd-phone'])){channels[_0xe8f754['uniqueid']][_0x1291('0x37')]=_0xe8f754[_0x1291('0x36')];channels[_0xe8f754[_0x1291('0x9')]][_0x1291('0xe')]='\x22'+_0xe8f754['value']+_0x1291('0x38')+_0xe8f754['value']+'>';}if(!_[_0x1291('0x1c')](_0xe8f754['variable'][_0x1291('0x39')])||!_[_0x1291('0x1c')](_0xe8f754['variable'][_0x1291('0x3a')])){channels[_0xe8f754[_0x1291('0x9')]][_0x1291('0xe')]=_0xe8f754[_0x1291('0x36')];}if(!_[_0x1291('0x1c')](_0xe8f754[_0x1291('0x35')][_0x1291('0x3b')])||!_[_0x1291('0x1c')](_0xe8f754[_0x1291('0x35')][_0x1291('0x3c')])){channels[_0xe8f754[_0x1291('0x9')]][_0x1291('0x3d')]=_0x1291('0x3e');channels[_0xe8f754[_0x1291('0x9')]][_0x1291('0x3f')]=_0xe8f754[_0x1291('0x36')];channels[_0xe8f754[_0x1291('0x9')]][_0x1291('0x40')]=!![];}if(!_['isNil'](_0xe8f754[_0x1291('0x35')][_0x1291('0x41')])){channels[_0xe8f754['uniqueid']][_0x1291('0x42')]=_0xe8f754['value'];}if(!_[_0x1291('0x1c')](_0xe8f754[_0x1291('0x35')][_0x1291('0x43')])){channels[_0xe8f754[_0x1291('0x9')]]['type']=_0xe8f754['value'];}if(!_[_0x1291('0x1c')](_0xe8f754[_0x1291('0x35')]['outboundrouteid'])){channels[_0xe8f754[_0x1291('0x9')]]['routeid']=_0xe8f754[_0x1291('0x36')];}if(!_[_0x1291('0x1c')](_0xe8f754[_0x1291('0x35')][_0x1291('0x44')])){channels[_0xe8f754[_0x1291('0x9')]][_0x1291('0x44')]=_0xe8f754[_0x1291('0x36')];}}}catch(_0x3146f6){utils[_0x1291('0x1a')](_0x3146f6[_0x1291('0x1b')]);}};exports[_0x1291('0x45')]=function(_0x31f267){try{if(!_['isNil'](channels[_0x31f267['uniqueid']])){if(_0x31f267[_0x1291('0x46')][_0x1291('0x47')]()==_0x1291('0x48')&&_[_0x1291('0x49')](_0x31f267[_0x1291('0x4a')][_0x1291('0x47')](),_0x1291('0x4b'))){var _0x10b247=_0x31f267[_0x1291('0x4a')]['split']('=');var _0x4ff788=_0x10b247[0x0][_0x1291('0x4c')](_0x10b247[0x0][_0x1291('0x4d')]('(')+0x1,_0x10b247[0x0][_0x1291('0x4d')](')'));var _0x119567=_0x10b247[0x1];channels[_0x31f267['uniqueid']][_0x4ff788]=_0x119567;}if(!_[_0x1291('0x4e')]([_0x1291('0x24'),'noop',_0x1291('0x4f'),_0x1291('0x48'),_0x1291('0x50')],_0x31f267[_0x1291('0x46')][_0x1291('0x47')]())){channels[_0x31f267[_0x1291('0x9')]][_0x1291('0x3d')]=_0x31f267[_0x1291('0x46')];channels[_0x31f267[_0x1291('0x9')]][_0x1291('0x3f')]=_0x31f267[_0x1291('0x4a')];}}}catch(_0x3e6496){utils['error'](_0x3e6496[_0x1291('0x1b')]);}};
\ No newline at end of file
+var _0xd4b2=['musiconholdstartAt','varset','xmd-originatecalleridnum','source','value','variable','xmd-phone','xmd-callerid-preview','xmd-callerid','xmd-queue','xmcs-queue','lastapplication','Queue','lastdata','queue','xmd-contactid','xmd-cdrtype','outboundrouteid','routeid','sipcallid','newexten','application','toLowerCase','startsWith','appdata','split','substring','lastIndexOf','includes','noop','gotoif','lodash','util','./utils','NO\x20ANSWER','FAILED','BUSY','info','format','CALL|%s|%s|%s|%s|%s|%s|%s|%s','uniqueid','type','destination','callerid','disposition','accountcode','getUserByInternal','then','UserId','request','CreateVoiceCallReport','newchannel','linkedid','channel','OutgoingSpoolFailed','calleridnum','exten','context','DOCUMENTATION','error','stack','newstate','channelstate','isNil','systemanswertime','now','transfer','destinationchannel','answertime','ANSWERED','calleridname','endtime','duration','diffTime','starttime','billableseconds','attendedtransfer','transfereechannel','localtwolinkedid','secondtransfererchannel','userfield','_attended','transfertargetchannel','origtransfererchannel','musiconholdstart','musiconholdstop','mohtime'];(function(_0x10e31a,_0x6a302d){var _0xa3e8a0=function(_0x581919){while(--_0x581919){_0x10e31a['push'](_0x10e31a['shift']());}};_0xa3e8a0(++_0x6a302d);}(_0xd4b2,0x1d2));var _0x2d4b=function(_0x1a8caa,_0x195483){_0x1a8caa=_0x1a8caa-0x0;var _0x9021fe=_0xd4b2[_0x1a8caa];return _0x9021fe;};'use strict';var _=require(_0x2d4b('0x0'));var util=require(_0x2d4b('0x1'));var utils=require(_0x2d4b('0x2'));var dispositions=[_0x2d4b('0x3'),_0x2d4b('0x4'),_0x2d4b('0x4'),_0x2d4b('0x3'),_0x2d4b('0x3'),_0x2d4b('0x3'),'ANSWERED',_0x2d4b('0x5'),_0x2d4b('0x4'),_0x2d4b('0x4'),'FAILED'];var channels={};function writeDB(_0x1708ca){utils[_0x2d4b('0x6')](util[_0x2d4b('0x7')](_0x2d4b('0x8'),_0x1708ca[_0x2d4b('0x9')],_0x1708ca['channel'],_0x1708ca[_0x2d4b('0xa')],_0x1708ca['accountcode'],_0x1708ca['source'],_0x1708ca[_0x2d4b('0xb')],_0x1708ca[_0x2d4b('0xc')],_0x1708ca[_0x2d4b('0xd')]));if(_0x1708ca[_0x2d4b('0xe')]){utils[_0x2d4b('0xf')](_0x1708ca[_0x2d4b('0xe')])[_0x2d4b('0x10')](function(_0x4d5eba){if(_0x4d5eba){_0x1708ca[_0x2d4b('0x11')]=_0x4d5eba['id'];}utils[_0x2d4b('0x12')](_0x2d4b('0x13'),_0x1708ca);});}else{utils[_0x2d4b('0x12')](_0x2d4b('0x13'),_0x1708ca);}if(channels[_0x1708ca[_0x2d4b('0x9')]]){delete channels[_0x1708ca[_0x2d4b('0x9')]];}}exports[_0x2d4b('0x14')]=function(_0x153da8){try{if(_0x153da8[_0x2d4b('0x9')]==_0x153da8[_0x2d4b('0x15')]&&_0x153da8[_0x2d4b('0x16')]!=_0x2d4b('0x17')){channels[_0x153da8[_0x2d4b('0x9')]]={'uniqueid':_0x153da8[_0x2d4b('0x9')],'accountcode':_0x153da8[_0x2d4b('0xe')],'source':_0x153da8[_0x2d4b('0x18')],'destination':_0x153da8[_0x2d4b('0x19')],'destinationcontext':_0x153da8[_0x2d4b('0x1a')],'channel':_0x153da8[_0x2d4b('0x16')],'starttime':utils['now'](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':_0x2d4b('0x3'),'amaflags':_0x2d4b('0x1b')};}}catch(_0x49b841){utils[_0x2d4b('0x1c')](_0x49b841[_0x2d4b('0x1d')]);}};exports[_0x2d4b('0x1e')]=function(_0x3816f0){try{if(!_['isNil'](channels[_0x3816f0[_0x2d4b('0x9')]])&&_0x3816f0[_0x2d4b('0x1f')]==0x6){if(_[_0x2d4b('0x20')](channels[_0x3816f0['uniqueid']][_0x2d4b('0x21')])){channels[_0x3816f0['uniqueid']][_0x2d4b('0x21')]=utils[_0x2d4b('0x22')]();}}else if(!_[_0x2d4b('0x20')](channels[_0x3816f0[_0x2d4b('0x15')]])&&_0x3816f0[_0x2d4b('0x1f')]==0x6&&_0x3816f0[_0x2d4b('0x1a')]!=_0x2d4b('0x23')){channels[_0x3816f0['linkedid']][_0x2d4b('0xe')]=_0x3816f0[_0x2d4b('0xe')];channels[_0x3816f0[_0x2d4b('0x15')]][_0x2d4b('0x24')]=_0x3816f0[_0x2d4b('0x16')];if(_[_0x2d4b('0x20')](channels[_0x3816f0['linkedid']]['answertime'])){channels[_0x3816f0[_0x2d4b('0x15')]][_0x2d4b('0x25')]=utils[_0x2d4b('0x22')]();}channels[_0x3816f0[_0x2d4b('0x15')]][_0x2d4b('0xd')]=dispositions[_['toNumber'](_0x3816f0[_0x2d4b('0x1f')])]||_0x2d4b('0x26');}}catch(_0x2d2e6c){utils[_0x2d4b('0x1c')](_0x2d2e6c[_0x2d4b('0x1d')]);}};exports['hangup']=function(_0x49da0e){try{if(!_[_0x2d4b('0x20')](channels[_0x49da0e['uniqueid']])){if(_[_0x2d4b('0x20')](channels[_0x49da0e[_0x2d4b('0x9')]][_0x2d4b('0xc')])){channels[_0x49da0e[_0x2d4b('0x9')]]['callerid']=_0x49da0e[_0x2d4b('0x27')]+'\x20<'+_0x49da0e['calleridnum']+'>';}channels[_0x49da0e[_0x2d4b('0x9')]][_0x2d4b('0x28')]=utils[_0x2d4b('0x22')]();channels[_0x49da0e[_0x2d4b('0x9')]][_0x2d4b('0x29')]=utils[_0x2d4b('0x2a')](channels[_0x49da0e[_0x2d4b('0x9')]][_0x2d4b('0x28')],channels[_0x49da0e['uniqueid']][_0x2d4b('0x2b')]);channels[_0x49da0e[_0x2d4b('0x9')]][_0x2d4b('0x2c')]=channels[_0x49da0e[_0x2d4b('0x9')]][_0x2d4b('0x25')]?utils['diffTime'](channels[_0x49da0e[_0x2d4b('0x9')]][_0x2d4b('0x28')],channels[_0x49da0e[_0x2d4b('0x9')]][_0x2d4b('0x25')]):0x0;writeDB(channels[_0x49da0e['uniqueid']]);}}catch(_0x9889c5){utils[_0x2d4b('0x1c')](_0x9889c5[_0x2d4b('0x1d')]);}};exports[_0x2d4b('0x2d')]=function(_0x1ba12b){try{if(!_[_0x2d4b('0x20')](channels[_0x1ba12b['localtwolinkedid']])){if(channels[_0x1ba12b['localtwolinkedid']][_0x2d4b('0x16')]==_0x1ba12b[_0x2d4b('0x2e')]){channels[_0x1ba12b[_0x2d4b('0x2f')]]['destinationchannel']=_0x1ba12b[_0x2d4b('0x30')];channels[_0x1ba12b[_0x2d4b('0x2f')]][_0x2d4b('0x31')]=_0x2d4b('0x32');}else if(channels[_0x1ba12b['localtwolinkedid']][_0x2d4b('0x16')]=_0x1ba12b[_0x2d4b('0x33')]){channels[_0x1ba12b[_0x2d4b('0x2f')]]['destinationchannel']=_0x1ba12b[_0x2d4b('0x34')];channels[_0x1ba12b[_0x2d4b('0x2f')]][_0x2d4b('0x31')]=_0x2d4b('0x32');}}}catch(_0x9545c4){utils[_0x2d4b('0x1c')](_0x9545c4[_0x2d4b('0x1d')]);}};exports[_0x2d4b('0x35')]=function(_0x4148dd){try{if(!_[_0x2d4b('0x20')](channels[_0x4148dd[_0x2d4b('0x9')]])){channels[_0x4148dd[_0x2d4b('0x9')]]['musiconholdstartAt']=utils[_0x2d4b('0x22')]();}}catch(_0x183a44){utils[_0x2d4b('0x1c')](_0x183a44[_0x2d4b('0x1d')]);}};exports[_0x2d4b('0x36')]=function(_0x5b4b5d){try{if(!_[_0x2d4b('0x20')](channels[_0x5b4b5d[_0x2d4b('0x9')]])){if(!_[_0x2d4b('0x20')](channels[_0x5b4b5d[_0x2d4b('0x9')]]['musiconholdstartAt'])){channels[_0x5b4b5d[_0x2d4b('0x9')]][_0x2d4b('0x37')]+=utils[_0x2d4b('0x2a')](utils[_0x2d4b('0x22')](),channels[_0x5b4b5d[_0x2d4b('0x9')]]['musiconholdstartAt']);delete channels[_0x5b4b5d[_0x2d4b('0x9')]][_0x2d4b('0x38')];}}}catch(_0x33587d){utils[_0x2d4b('0x1c')](_0x33587d[_0x2d4b('0x1d')]);}};exports[_0x2d4b('0x39')]=function(_0x29553d){try{if(!_[_0x2d4b('0x20')](channels[_0x29553d[_0x2d4b('0x9')]])){if(!_['isNil'](_0x29553d['variable'][_0x2d4b('0x3a')])){channels[_0x29553d[_0x2d4b('0x9')]][_0x2d4b('0x3b')]=_0x29553d[_0x2d4b('0x3c')];}if(!_[_0x2d4b('0x20')](_0x29553d[_0x2d4b('0x3d')][_0x2d4b('0x3e')])){channels[_0x29553d[_0x2d4b('0x9')]][_0x2d4b('0xb')]=_0x29553d[_0x2d4b('0x3c')];channels[_0x29553d[_0x2d4b('0x9')]][_0x2d4b('0xc')]='\x22'+_0x29553d[_0x2d4b('0x3c')]+'\x22\x20<'+_0x29553d['value']+'>';}if(!_[_0x2d4b('0x20')](_0x29553d[_0x2d4b('0x3d')][_0x2d4b('0x3f')])||!_[_0x2d4b('0x20')](_0x29553d[_0x2d4b('0x3d')][_0x2d4b('0x40')])){channels[_0x29553d[_0x2d4b('0x9')]]['callerid']=_0x29553d[_0x2d4b('0x3c')];}if(!_[_0x2d4b('0x20')](_0x29553d[_0x2d4b('0x3d')][_0x2d4b('0x41')])||!_[_0x2d4b('0x20')](_0x29553d[_0x2d4b('0x3d')][_0x2d4b('0x42')])){channels[_0x29553d[_0x2d4b('0x9')]][_0x2d4b('0x43')]=_0x2d4b('0x44');channels[_0x29553d[_0x2d4b('0x9')]][_0x2d4b('0x45')]=_0x29553d[_0x2d4b('0x3c')];channels[_0x29553d[_0x2d4b('0x9')]][_0x2d4b('0x46')]=!![];}if(!_[_0x2d4b('0x20')](_0x29553d[_0x2d4b('0x3d')][_0x2d4b('0x47')])){channels[_0x29553d[_0x2d4b('0x9')]]['ContactId']=_0x29553d[_0x2d4b('0x3c')];}if(!_[_0x2d4b('0x20')](_0x29553d[_0x2d4b('0x3d')][_0x2d4b('0x48')])){channels[_0x29553d[_0x2d4b('0x9')]]['type']=_0x29553d['value'];}if(!_['isNil'](_0x29553d[_0x2d4b('0x3d')][_0x2d4b('0x49')])){channels[_0x29553d[_0x2d4b('0x9')]][_0x2d4b('0x4a')]=_0x29553d[_0x2d4b('0x3c')];}if(!_[_0x2d4b('0x20')](_0x29553d[_0x2d4b('0x3d')]['sipcallid'])){channels[_0x29553d[_0x2d4b('0x9')]][_0x2d4b('0x4b')]=_0x29553d[_0x2d4b('0x3c')];}}}catch(_0x42d8de){utils[_0x2d4b('0x1c')](_0x42d8de[_0x2d4b('0x1d')]);}};exports[_0x2d4b('0x4c')]=function(_0x143ab2){try{if(!_[_0x2d4b('0x20')](channels[_0x143ab2['uniqueid']])){if(_0x143ab2[_0x2d4b('0x4d')][_0x2d4b('0x4e')]()=='set'&&_[_0x2d4b('0x4f')](_0x143ab2['appdata'][_0x2d4b('0x4e')](),'cdr')){var _0x20ff5a=_0x143ab2[_0x2d4b('0x50')][_0x2d4b('0x51')]('=');var _0x46686d=_0x20ff5a[0x0][_0x2d4b('0x52')](_0x20ff5a[0x0][_0x2d4b('0x53')]('(')+0x1,_0x20ff5a[0x0][_0x2d4b('0x53')](')'));var _0x4e4173=_0x20ff5a[0x1];channels[_0x143ab2[_0x2d4b('0x9')]][_0x46686d]=_0x4e4173;}if(!_[_0x2d4b('0x54')](['hangup',_0x2d4b('0x55'),'execif','set',_0x2d4b('0x56')],_0x143ab2['application'][_0x2d4b('0x4e')]())){channels[_0x143ab2['uniqueid']][_0x2d4b('0x43')]=_0x143ab2[_0x2d4b('0x4d')];channels[_0x143ab2['uniqueid']][_0x2d4b('0x45')]=_0x143ab2['appdata'];}}}catch(_0x1b704a){utils[_0x2d4b('0x1c')](_0x1b704a[_0x2d4b('0x1d')]);}};
\ No newline at end of file