Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / services / xdr / index.js
index d17fe48..83817f0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb80f=['info','XDR\x20DISABLED','./agents.controller','./calls.controller','./queues.controller','./members.controller','./dials.controller','./core.controller','shutdown','fullybooted','error','close','devicestatechange','format','[%s][index][devicestatechange]','device','agentcalled','[%s][index][agentcalled]','uniqueid','agentringnoanswer','debug','[%s][index][agentringnoanswer]','agentconnect','[%s][index][agentconnect]','agentcomplete','[%s][index][agentcomplete]','[%s][index][queuecallerabandon]','queuecallerabandon','queuecallerjoin','[%s][index][queuecallerjoin]','queuecallerleave','[%s][index][musiconholdstart]','musiconholdstart','musiconholdstop','[%s][index][musiconholdstop]','newstate','[%s][index][newstate]','hangup','[%s][index][hangup]','cdr','[%s][index][cdr]','blindtransfer','[%s][index][blindtransfer]','[%s][index][attendedtransfer]','origtransfereruniqueid','attendedtransfer','varset','[%s][index][varset]','newexten','[%s][index][newexten]','newchannel','[%s][index][newchannel]','dialbegin','[%s][index][dialbegin]','[%s]dialbegin','dialend','[%s][index][dialend]','asterisk-manager','../../config/environment','./utils','asterisk','port','username','password','keepConnected','xdr'];(function(_0x2cf6c2,_0x2d150d){var _0x4ad979=function(_0x45bb5e){while(--_0x45bb5e){_0x2cf6c2['push'](_0x2cf6c2['shift']());}};_0x4ad979(++_0x2d150d);}(_0xb80f,0x7b));var _0xfb80=function(_0x4a6054,_0x3f404f){_0x4a6054=_0x4a6054-0x0;var _0x491d75=_0xb80f[_0x4a6054];return _0x491d75;};var AsteriskManager=require(_0xfb80('0x0'));var config=require(_0xfb80('0x1'));var utils=require(_0xfb80('0x2'));var util=require('util');var ami=new AsteriskManager(config[_0xfb80('0x3')][_0xfb80('0x4')],config[_0xfb80('0x3')]['ip'],config['asterisk'][_0xfb80('0x5')],config[_0xfb80('0x3')][_0xfb80('0x6')],!![]);ami[_0xfb80('0x7')]();if(config[_0xfb80('0x8')]&&config[_0xfb80('0x8')]['disabled']){utils[_0xfb80('0x9')](_0xfb80('0xa'));}else{var agents=require(_0xfb80('0xb'));var calls=require(_0xfb80('0xc'));var queues=require(_0xfb80('0xd'));var recordings=require('./recordings.controller');var members=require(_0xfb80('0xe'));var dials=require(_0xfb80('0xf'));var transfers=require('./transfers.controller');var core=require(_0xfb80('0x10'));ami['on']('connect',core['connect']);ami['on'](_0xfb80('0x11'),core[_0xfb80('0x11')]);ami['on'](_0xfb80('0x12'),core[_0xfb80('0x12')]);ami['on'](_0xfb80('0x13'),core[_0xfb80('0x13')]);ami['on']('close',core[_0xfb80('0x14')]);ami['on']('managerevent',core['managerevent']);ami['on'](_0xfb80('0x15'),function(_0x4177be){try{utils['debug'](util[_0xfb80('0x16')](_0xfb80('0x17'),_0x4177be[_0xfb80('0x18')]),_0x4177be);members[_0xfb80('0x15')](_0x4177be);}catch(_0x41f8f9){utils['error'](util[_0xfb80('0x16')]('[%s][index][devicestatechange]',_0x4177be[_0xfb80('0x18')]),_0x41f8f9);}});ami['on'](_0xfb80('0x19'),function(_0x59b76f){try{utils['debug'](util[_0xfb80('0x16')](_0xfb80('0x1a'),_0x59b76f[_0xfb80('0x1b')]),_0x59b76f);agents[_0xfb80('0x19')](_0x59b76f);}catch(_0x4414d2){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x1a'),_0x59b76f[_0xfb80('0x1b')]),_0x4414d2);}});ami['on'](_0xfb80('0x1c'),function(_0x3d0b21){try{utils[_0xfb80('0x1d')](util[_0xfb80('0x16')](_0xfb80('0x1e'),_0x3d0b21['uniqueid']),_0x3d0b21);agents[_0xfb80('0x1c')](_0x3d0b21);}catch(_0x362e6f){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x1e'),_0x3d0b21['uniqueid']),_0x362e6f);}});ami['on'](_0xfb80('0x1f'),function(_0x3a0b3d){try{utils[_0xfb80('0x1d')](util[_0xfb80('0x16')](_0xfb80('0x20'),_0x3a0b3d[_0xfb80('0x1b')]),_0x3a0b3d);agents[_0xfb80('0x1f')](_0x3a0b3d);queues[_0xfb80('0x1f')](_0x3a0b3d);}catch(_0x534d16){utils['error'](util[_0xfb80('0x16')](_0xfb80('0x20'),_0x3a0b3d[_0xfb80('0x1b')]),_0x534d16);}});ami['on'](_0xfb80('0x21'),function(_0x2b4ec3){try{utils[_0xfb80('0x1d')](util['format'](_0xfb80('0x22'),_0x2b4ec3[_0xfb80('0x1b')]),_0x2b4ec3);agents[_0xfb80('0x21')](_0x2b4ec3);queues[_0xfb80('0x21')](_0x2b4ec3);members[_0xfb80('0x21')](_0x2b4ec3);}catch(_0x2495f9){utils['error'](util[_0xfb80('0x16')](_0xfb80('0x22'),_0x2b4ec3[_0xfb80('0x1b')]),_0x2495f9);}});ami['on']('queuecallerabandon',function(_0x184a50){try{utils[_0xfb80('0x1d')](util[_0xfb80('0x16')](_0xfb80('0x23'),_0x184a50[_0xfb80('0x1b')]),_0x184a50);agents[_0xfb80('0x24')](_0x184a50);queues['queuecallerabandon'](_0x184a50);}catch(_0x457351){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x23'),_0x184a50[_0xfb80('0x1b')]),_0x457351);}});ami['on'](_0xfb80('0x25'),function(_0x3fc0a4){try{utils['debug'](util[_0xfb80('0x16')](_0xfb80('0x26'),_0x3fc0a4[_0xfb80('0x1b')]),_0x3fc0a4);queues['queuecallerjoin'](_0x3fc0a4);recordings['queuecallerjoin'](_0x3fc0a4);}catch(_0x5bf26f){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x26'),_0x3fc0a4[_0xfb80('0x1b')]),_0x5bf26f);}});ami['on'](_0xfb80('0x27'),function(_0x459464){try{utils[_0xfb80('0x1d')](util[_0xfb80('0x16')]('[%s][index][queuecallerleave]',_0x459464[_0xfb80('0x1b')]),_0x459464);queues[_0xfb80('0x27')](_0x459464);}catch(_0x1f7390){utils[_0xfb80('0x13')](util[_0xfb80('0x16')]('[%s][index][queuecallerleave]',_0x459464['uniqueid']),_0x1f7390);}});ami['on']('musiconholdstart',function(_0x5edc5a){try{utils[_0xfb80('0x1d')](util[_0xfb80('0x16')](_0xfb80('0x28'),_0x5edc5a[_0xfb80('0x1b')]),_0x5edc5a);queues[_0xfb80('0x29')](_0x5edc5a);calls[_0xfb80('0x29')](_0x5edc5a);}catch(_0x18c7ae){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x28'),_0x5edc5a[_0xfb80('0x1b')]),_0x18c7ae);}});ami['on'](_0xfb80('0x2a'),function(_0x3cb40d){try{utils['debug'](util[_0xfb80('0x16')](_0xfb80('0x2b'),_0x3cb40d['uniqueid']),_0x3cb40d);queues[_0xfb80('0x2a')](_0x3cb40d);calls[_0xfb80('0x2a')](_0x3cb40d);}catch(_0x3117be){utils[_0xfb80('0x13')](util[_0xfb80('0x16')]('[%s][index][musiconholdstop]',_0x3cb40d[_0xfb80('0x1b')]),_0x3117be);}});ami['on'](_0xfb80('0x2c'),function(_0x5b4303){try{utils[_0xfb80('0x1d')](util[_0xfb80('0x16')](_0xfb80('0x2d'),_0x5b4303[_0xfb80('0x1b')]),_0x5b4303);calls[_0xfb80('0x2c')](_0x5b4303);recordings[_0xfb80('0x2c')](_0x5b4303);}catch(_0xd15dbb){utils['error'](util[_0xfb80('0x16')](_0xfb80('0x2d'),_0x5b4303[_0xfb80('0x1b')]),_0xd15dbb);}});ami['on']('hangup',function(_0x386142){try{utils[_0xfb80('0x1d')](util[_0xfb80('0x16')]('[%s][index][hangup]',_0x386142['uniqueid']),_0x386142);calls['hangup'](_0x386142);recordings[_0xfb80('0x2e')](_0x386142);dials['hangup'](_0x386142);agents[_0xfb80('0x2e')](_0x386142);queues['hangup'](_0x386142);}catch(_0x3e7201){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x2f'),_0x386142[_0xfb80('0x1b')]),_0x3e7201);}});ami['on'](_0xfb80('0x30'),function(_0x1e390a){try{utils['debug'](util[_0xfb80('0x16')](_0xfb80('0x31'),_0x1e390a[_0xfb80('0x1b')]),_0x1e390a);members[_0xfb80('0x30')](_0x1e390a);}catch(_0x556984){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x31'),_0x1e390a[_0xfb80('0x1b')]),_0x556984);}});ami['on'](_0xfb80('0x32'),function(_0xeace29){try{utils[_0xfb80('0x1d')](util['format'](_0xfb80('0x33'),_0xeace29['uniqueid']),_0xeace29);queues[_0xfb80('0x32')](_0xeace29);agents[_0xfb80('0x32')](_0xeace29);transfers[_0xfb80('0x32')](_0xeace29);}catch(_0xdb1bbe){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x33'),_0xeace29[_0xfb80('0x1b')]),_0xdb1bbe);}});ami['on']('attendedtransfer',function(_0x353cb5){try{utils['debug'](util[_0xfb80('0x16')](_0xfb80('0x34'),_0x353cb5[_0xfb80('0x35')]),_0x353cb5);queues['attendedtransfer'](_0x353cb5);transfers['attendedtransfer'](_0x353cb5);agents['attendedtransfer'](_0x353cb5);calls[_0xfb80('0x36')](_0x353cb5);}catch(_0xbf89e7){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x34'),_0x353cb5[_0xfb80('0x35')]),_0xbf89e7);}});ami['on'](_0xfb80('0x37'),function(_0x3eca09){try{utils[_0xfb80('0x1d')](util['format'](_0xfb80('0x38'),_0x3eca09[_0xfb80('0x1b')]),_0x3eca09);queues[_0xfb80('0x37')](_0x3eca09);recordings['varset'](_0x3eca09);calls['varset'](_0x3eca09);dials['varset'](_0x3eca09);}catch(_0x578cd8){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x38'),_0x3eca09[_0xfb80('0x1b')]),_0x578cd8);}});ami['on'](_0xfb80('0x39'),function(_0x67b857){try{utils[_0xfb80('0x1d')](util['format']('[%s][index][newexten]',_0x67b857[_0xfb80('0x1b')]),_0x67b857);calls[_0xfb80('0x39')](_0x67b857);recordings[_0xfb80('0x39')](_0x67b857);dials[_0xfb80('0x39')](_0x67b857);}catch(_0x3b6113){utils[_0xfb80('0x13')](util[_0xfb80('0x16')](_0xfb80('0x3a'),_0x67b857[_0xfb80('0x1b')]),_0x3b6113);}});ami['on'](_0xfb80('0x3b'),function(_0x53fefb){try{utils[_0xfb80('0x1d')](util[_0xfb80('0x16')](_0xfb80('0x3c'),_0x53fefb[_0xfb80('0x1b')]),_0x53fefb);calls[_0xfb80('0x3b')](_0x53fefb);recordings[_0xfb80('0x3b')](_0x53fefb);}catch(_0x23ad82){utils[_0xfb80('0x13')](util['format'](_0xfb80('0x3c'),_0x53fefb[_0xfb80('0x1b')]),_0x23ad82);}});ami['on'](_0xfb80('0x3d'),function(_0x19f32a){try{utils[_0xfb80('0x1d')](util[_0xfb80('0x16')](_0xfb80('0x3e'),_0x19f32a[_0xfb80('0x1b')]),_0x19f32a);dials[_0xfb80('0x3d')](_0x19f32a);}catch(_0xf3ec04){utils[_0xfb80('0x13')](util['format'](_0xfb80('0x3f'),_0x19f32a[_0xfb80('0x1b')]),_0xf3ec04);}});ami['on'](_0xfb80('0x40'),function(_0x82b77e){try{utils[_0xfb80('0x1d')](util['format'](_0xfb80('0x41'),_0x82b77e['uniqueid']),_0x82b77e);dials['dialend'](_0x82b77e);}catch(_0x44ac9a){utils['error'](util['format'](_0xfb80('0x41'),_0x82b77e[_0xfb80('0x1b')]),_0x44ac9a);}});}
\ No newline at end of file
+var _0x45f0=['[%s][index][newchannel]','dialbegin','dialend','[%s][index][dialend]','asterisk-manager','../../config/environment','./utils','asterisk','port','username','password','keepConnected','xdr','disabled','info','XDR\x20DISABLED','./agents.controller','./calls.controller','./members.controller','./dials.controller','./transfers.controller','./core.controller','connect','shutdown','fullybooted','error','close','managerevent','devicestatechange','debug','format','[%s][index][devicestatechange]','device','agentcalled','[%s][index][agentcalled]','uniqueid','[%s][index][agentringnoanswer]','[%s][index][agentconnect]','agentconnect','agentcomplete','[%s][index][agentcomplete]','queuecallerabandon','[%s][index][queuecallerabandon]','[%s][index][queuecallerjoin]','queuecallerjoin','queuecallerleave','musiconholdstart','[%s][index][musiconholdstart]','musiconholdstop','[%s][index][musiconholdstop]','newstate','[%s][index][newstate]','hangup','[%s][index][hangup]','cdr','[%s][index][cdr]','blindtransfer','[%s][index][blindtransfer]','attendedtransfer','[%s][index][attendedtransfer]','origtransfereruniqueid','varset','[%s][index][varset]','[%s][index][newexten]','newexten','newchannel'];(function(_0x126933,_0x4e418e){var _0x40e25c=function(_0x2110c9){while(--_0x2110c9){_0x126933['push'](_0x126933['shift']());}};_0x40e25c(++_0x4e418e);}(_0x45f0,0x10c));var _0x045f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x45f0[_0x3dd15e];return _0x231fd0;};var AsteriskManager=require(_0x045f('0x0'));var config=require(_0x045f('0x1'));var utils=require(_0x045f('0x2'));var util=require('util');var ami=new AsteriskManager(config[_0x045f('0x3')][_0x045f('0x4')],config['asterisk']['ip'],config[_0x045f('0x3')][_0x045f('0x5')],config[_0x045f('0x3')][_0x045f('0x6')],!![]);ami[_0x045f('0x7')]();if(config[_0x045f('0x8')]&&config[_0x045f('0x8')][_0x045f('0x9')]){utils[_0x045f('0xa')](_0x045f('0xb'));}else{var agents=require(_0x045f('0xc'));var calls=require(_0x045f('0xd'));var queues=require('./queues.controller');var recordings=require('./recordings.controller');var members=require(_0x045f('0xe'));var dials=require(_0x045f('0xf'));var transfers=require(_0x045f('0x10'));var core=require(_0x045f('0x11'));ami['on'](_0x045f('0x12'),core[_0x045f('0x12')]);ami['on'](_0x045f('0x13'),core['shutdown']);ami['on'](_0x045f('0x14'),core[_0x045f('0x14')]);ami['on'](_0x045f('0x15'),core['error']);ami['on'](_0x045f('0x16'),core[_0x045f('0x16')]);ami['on']('managerevent',core[_0x045f('0x17')]);ami['on'](_0x045f('0x18'),function(_0x5cd96c){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')]('[%s][index][devicestatechange]',_0x5cd96c['device']),_0x5cd96c);members[_0x045f('0x18')](_0x5cd96c);}catch(_0x443fc1){utils[_0x045f('0x15')](util[_0x045f('0x1a')](_0x045f('0x1b'),_0x5cd96c[_0x045f('0x1c')]),_0x443fc1);}});ami['on'](_0x045f('0x1d'),function(_0x54416a){try{utils['debug'](util[_0x045f('0x1a')](_0x045f('0x1e'),_0x54416a[_0x045f('0x1f')]),_0x54416a);agents[_0x045f('0x1d')](_0x54416a);}catch(_0x3a701b){utils[_0x045f('0x15')](util['format'](_0x045f('0x1e'),_0x54416a[_0x045f('0x1f')]),_0x3a701b);}});ami['on']('agentringnoanswer',function(_0x282649){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')](_0x045f('0x20'),_0x282649[_0x045f('0x1f')]),_0x282649);agents['agentringnoanswer'](_0x282649);}catch(_0x1c6762){utils['error'](util['format'](_0x045f('0x20'),_0x282649[_0x045f('0x1f')]),_0x1c6762);}});ami['on']('agentconnect',function(_0x151980){try{utils['debug'](util[_0x045f('0x1a')](_0x045f('0x21'),_0x151980['uniqueid']),_0x151980);agents[_0x045f('0x22')](_0x151980);queues[_0x045f('0x22')](_0x151980);}catch(_0x1d174d){utils[_0x045f('0x15')](util[_0x045f('0x1a')](_0x045f('0x21'),_0x151980[_0x045f('0x1f')]),_0x1d174d);}});ami['on'](_0x045f('0x23'),function(_0x33b623){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')](_0x045f('0x24'),_0x33b623[_0x045f('0x1f')]),_0x33b623);agents['agentcomplete'](_0x33b623);queues['agentcomplete'](_0x33b623);members[_0x045f('0x23')](_0x33b623);}catch(_0xa92063){utils[_0x045f('0x15')](util[_0x045f('0x1a')](_0x045f('0x24'),_0x33b623[_0x045f('0x1f')]),_0xa92063);}});ami['on'](_0x045f('0x25'),function(_0x1b8fbf){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')](_0x045f('0x26'),_0x1b8fbf[_0x045f('0x1f')]),_0x1b8fbf);agents[_0x045f('0x25')](_0x1b8fbf);queues[_0x045f('0x25')](_0x1b8fbf);}catch(_0x10afee){utils['error'](util['format'](_0x045f('0x26'),_0x1b8fbf['uniqueid']),_0x10afee);}});ami['on']('queuecallerjoin',function(_0x5790b9){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')](_0x045f('0x27'),_0x5790b9[_0x045f('0x1f')]),_0x5790b9);queues[_0x045f('0x28')](_0x5790b9);recordings['queuecallerjoin'](_0x5790b9);}catch(_0x2c6061){utils[_0x045f('0x15')](util[_0x045f('0x1a')]('[%s][index][queuecallerjoin]',_0x5790b9[_0x045f('0x1f')]),_0x2c6061);}});ami['on'](_0x045f('0x29'),function(_0x438713){try{utils['debug'](util[_0x045f('0x1a')]('[%s][index][queuecallerleave]',_0x438713[_0x045f('0x1f')]),_0x438713);queues['queuecallerleave'](_0x438713);}catch(_0x3369f6){utils['error'](util[_0x045f('0x1a')]('[%s][index][queuecallerleave]',_0x438713[_0x045f('0x1f')]),_0x3369f6);}});ami['on'](_0x045f('0x2a'),function(_0x11075c){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')](_0x045f('0x2b'),_0x11075c['uniqueid']),_0x11075c);queues[_0x045f('0x2a')](_0x11075c);calls[_0x045f('0x2a')](_0x11075c);}catch(_0x3e2a00){utils[_0x045f('0x15')](util['format'](_0x045f('0x2b'),_0x11075c['uniqueid']),_0x3e2a00);}});ami['on'](_0x045f('0x2c'),function(_0x347df7){try{utils['debug'](util[_0x045f('0x1a')]('[%s][index][musiconholdstop]',_0x347df7[_0x045f('0x1f')]),_0x347df7);queues[_0x045f('0x2c')](_0x347df7);calls[_0x045f('0x2c')](_0x347df7);}catch(_0x378f51){utils[_0x045f('0x15')](util[_0x045f('0x1a')](_0x045f('0x2d'),_0x347df7['uniqueid']),_0x378f51);}});ami['on'](_0x045f('0x2e'),function(_0x294956){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')](_0x045f('0x2f'),_0x294956['uniqueid']),_0x294956);calls[_0x045f('0x2e')](_0x294956);recordings['newstate'](_0x294956);}catch(_0x5922b9){utils[_0x045f('0x15')](util[_0x045f('0x1a')](_0x045f('0x2f'),_0x294956[_0x045f('0x1f')]),_0x5922b9);}});ami['on'](_0x045f('0x30'),function(_0x542c3f){try{utils['debug'](util[_0x045f('0x1a')](_0x045f('0x31'),_0x542c3f[_0x045f('0x1f')]),_0x542c3f);calls[_0x045f('0x30')](_0x542c3f);recordings[_0x045f('0x30')](_0x542c3f);dials['hangup'](_0x542c3f);agents[_0x045f('0x30')](_0x542c3f);queues[_0x045f('0x30')](_0x542c3f);}catch(_0x2d4f68){utils[_0x045f('0x15')](util[_0x045f('0x1a')](_0x045f('0x31'),_0x542c3f[_0x045f('0x1f')]),_0x2d4f68);}});ami['on'](_0x045f('0x32'),function(_0x3a053c){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')](_0x045f('0x33'),_0x3a053c[_0x045f('0x1f')]),_0x3a053c);members[_0x045f('0x32')](_0x3a053c);}catch(_0x56a854){utils['error'](util[_0x045f('0x1a')]('[%s][index][cdr]',_0x3a053c['uniqueid']),_0x56a854);}});ami['on'](_0x045f('0x34'),function(_0x2c0950){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')](_0x045f('0x35'),_0x2c0950['uniqueid']),_0x2c0950);queues[_0x045f('0x34')](_0x2c0950);agents[_0x045f('0x34')](_0x2c0950);transfers[_0x045f('0x34')](_0x2c0950);}catch(_0xab53f){utils[_0x045f('0x15')](util[_0x045f('0x1a')]('[%s][index][blindtransfer]',_0x2c0950[_0x045f('0x1f')]),_0xab53f);}});ami['on'](_0x045f('0x36'),function(_0x398a10){try{utils[_0x045f('0x19')](util['format'](_0x045f('0x37'),_0x398a10[_0x045f('0x38')]),_0x398a10);queues[_0x045f('0x36')](_0x398a10);transfers[_0x045f('0x36')](_0x398a10);agents['attendedtransfer'](_0x398a10);calls['attendedtransfer'](_0x398a10);}catch(_0x2fe997){utils[_0x045f('0x15')](util[_0x045f('0x1a')]('[%s][index][attendedtransfer]',_0x398a10['origtransfereruniqueid']),_0x2fe997);}});ami['on'](_0x045f('0x39'),function(_0x167472){try{utils['debug'](util['format']('[%s][index][varset]',_0x167472[_0x045f('0x1f')]),_0x167472);queues[_0x045f('0x39')](_0x167472);recordings[_0x045f('0x39')](_0x167472);calls[_0x045f('0x39')](_0x167472);dials[_0x045f('0x39')](_0x167472);}catch(_0x53834f){utils[_0x045f('0x15')](util[_0x045f('0x1a')](_0x045f('0x3a'),_0x167472[_0x045f('0x1f')]),_0x53834f);}});ami['on']('newexten',function(_0x38c370){try{utils['debug'](util[_0x045f('0x1a')](_0x045f('0x3b'),_0x38c370[_0x045f('0x1f')]),_0x38c370);calls[_0x045f('0x3c')](_0x38c370);recordings[_0x045f('0x3c')](_0x38c370);dials[_0x045f('0x3c')](_0x38c370);}catch(_0x10b3b4){utils[_0x045f('0x15')](util[_0x045f('0x1a')](_0x045f('0x3b'),_0x38c370[_0x045f('0x1f')]),_0x10b3b4);}});ami['on'](_0x045f('0x3d'),function(_0x5f4d83){try{utils['debug'](util['format']('[%s][index][newchannel]',_0x5f4d83[_0x045f('0x1f')]),_0x5f4d83);calls[_0x045f('0x3d')](_0x5f4d83);recordings[_0x045f('0x3d')](_0x5f4d83);}catch(_0x5a45de){utils[_0x045f('0x15')](util[_0x045f('0x1a')](_0x045f('0x3e'),_0x5f4d83[_0x045f('0x1f')]),_0x5a45de);}});ami['on']('dialbegin',function(_0x43cb8c){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')]('[%s][index][dialbegin]',_0x43cb8c[_0x045f('0x1f')]),_0x43cb8c);dials[_0x045f('0x3f')](_0x43cb8c);}catch(_0x9044dd){utils[_0x045f('0x15')](util[_0x045f('0x1a')]('[%s]dialbegin',_0x43cb8c[_0x045f('0x1f')]),_0x9044dd);}});ami['on'](_0x045f('0x40'),function(_0x2ded09){try{utils[_0x045f('0x19')](util[_0x045f('0x1a')](_0x045f('0x41'),_0x2ded09[_0x045f('0x1f')]),_0x2ded09);dials['dialend'](_0x2ded09);}catch(_0x80a72){utils['error'](util[_0x045f('0x1a')](_0x045f('0x41'),_0x2ded09['uniqueid']),_0x80a72);}});}
\ No newline at end of file