Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / services / xdr / index.js
index f29ea94..ab0febd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xabff=['newexten','[%s][index][newexten]','newchannel','[%s][index][newchannel]','dialbegin','[%s][index][dialbegin]','[%s]dialbegin','[%s][index][dialend]','dialend','../../config/environment','./utils','util','port','asterisk','password','keepConnected','xdr','./agents.controller','./calls.controller','./queues.controller','./recordings.controller','./members.controller','./transfers.controller','connect','shutdown','fullybooted','error','close','managerevent','devicestatechange','debug','[%s][index][devicestatechange]','device','format','agentcalled','uniqueid','[%s][index][agentcalled]','[%s][index][agentringnoanswer]','agentringnoanswer','agentconnect','[%s][index][agentconnect]','agentcomplete','[%s][index][agentcomplete]','[%s][index][queuecallerabandon]','queuecallerabandon','queuecallerjoin','queuecallerleave','[%s][index][queuecallerleave]','[%s][index][musiconholdstart]','musiconholdstart','musiconholdstop','[%s][index][musiconholdstop]','newstate','[%s][index][newstate]','[%s][index][hangup]','hangup','cdr','blindtransfer','[%s][index][blindtransfer]','attendedtransfer','[%s][index][attendedtransfer]','origtransfereruniqueid','varset','[%s][index][varset]'];(function(_0xb487c6,_0x3bbbc1){var _0x17773d=function(_0x5a4b13){while(--_0x5a4b13){_0xb487c6['push'](_0xb487c6['shift']());}};_0x17773d(++_0x3bbbc1);}(_0xabff,0x109));var _0xfabf=function(_0x39187b,_0x2a6214){_0x39187b=_0x39187b-0x0;var _0x2cf25f=_0xabff[_0x39187b];return _0x2cf25f;};var AsteriskManager=require('asterisk-manager');var config=require(_0xfabf('0x0'));var utils=require(_0xfabf('0x1'));var util=require(_0xfabf('0x2'));var ami=new AsteriskManager(config['asterisk'][_0xfabf('0x3')],config[_0xfabf('0x4')]['ip'],config[_0xfabf('0x4')]['username'],config[_0xfabf('0x4')][_0xfabf('0x5')],!![]);ami[_0xfabf('0x6')]();if(config[_0xfabf('0x7')]&&config[_0xfabf('0x7')]['disabled']){utils['info']('XDR\x20DISABLED');}else{var agents=require(_0xfabf('0x8'));var calls=require(_0xfabf('0x9'));var queues=require(_0xfabf('0xa'));var recordings=require(_0xfabf('0xb'));var members=require(_0xfabf('0xc'));var dials=require('./dials.controller');var transfers=require(_0xfabf('0xd'));var core=require('./core.controller');ami['on'](_0xfabf('0xe'),core[_0xfabf('0xe')]);ami['on'](_0xfabf('0xf'),core['shutdown']);ami['on']('fullybooted',core[_0xfabf('0x10')]);ami['on'](_0xfabf('0x11'),core[_0xfabf('0x11')]);ami['on'](_0xfabf('0x12'),core['close']);ami['on'](_0xfabf('0x13'),core[_0xfabf('0x13')]);ami['on'](_0xfabf('0x14'),function(_0xce36ae){try{utils[_0xfabf('0x15')](util['format'](_0xfabf('0x16'),_0xce36ae[_0xfabf('0x17')]),_0xce36ae);members[_0xfabf('0x14')](_0xce36ae);}catch(_0x22ef2b){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x16'),_0xce36ae[_0xfabf('0x17')]),_0x22ef2b);}});ami['on'](_0xfabf('0x19'),function(_0xc4ae0f){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')]('[%s][index][agentcalled]',_0xc4ae0f[_0xfabf('0x1a')]),_0xc4ae0f);agents['agentcalled'](_0xc4ae0f);}catch(_0x5906f9){utils[_0xfabf('0x11')](util['format'](_0xfabf('0x1b'),_0xc4ae0f[_0xfabf('0x1a')]),_0x5906f9);}});ami['on']('agentringnoanswer',function(_0x439efa){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')](_0xfabf('0x1c'),_0x439efa[_0xfabf('0x1a')]),_0x439efa);agents[_0xfabf('0x1d')](_0x439efa);}catch(_0x370dc2){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x1c'),_0x439efa[_0xfabf('0x1a')]),_0x370dc2);}});ami['on'](_0xfabf('0x1e'),function(_0x5abaa0){try{utils['debug'](util[_0xfabf('0x18')](_0xfabf('0x1f'),_0x5abaa0[_0xfabf('0x1a')]),_0x5abaa0);agents['agentconnect'](_0x5abaa0);queues[_0xfabf('0x1e')](_0x5abaa0);}catch(_0x19fe72){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x1f'),_0x5abaa0[_0xfabf('0x1a')]),_0x19fe72);}});ami['on'](_0xfabf('0x20'),function(_0x518ed1){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')]('[%s][index][agentcomplete]',_0x518ed1[_0xfabf('0x1a')]),_0x518ed1);agents[_0xfabf('0x20')](_0x518ed1);queues[_0xfabf('0x20')](_0x518ed1);members[_0xfabf('0x20')](_0x518ed1);}catch(_0x2047a2){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x21'),_0x518ed1[_0xfabf('0x1a')]),_0x2047a2);}});ami['on']('queuecallerabandon',function(_0x6545d6){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')](_0xfabf('0x22'),_0x6545d6[_0xfabf('0x1a')]),_0x6545d6);agents[_0xfabf('0x23')](_0x6545d6);queues[_0xfabf('0x23')](_0x6545d6);}catch(_0x30d2b1){utils[_0xfabf('0x11')](util['format'](_0xfabf('0x22'),_0x6545d6[_0xfabf('0x1a')]),_0x30d2b1);}});ami['on']('queuecallerjoin',function(_0x4f0f10){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')]('[%s][index][queuecallerjoin]',_0x4f0f10[_0xfabf('0x1a')]),_0x4f0f10);queues[_0xfabf('0x24')](_0x4f0f10);recordings['queuecallerjoin'](_0x4f0f10);}catch(_0x1e4cf1){utils[_0xfabf('0x11')](util[_0xfabf('0x18')]('[%s][index][queuecallerjoin]',_0x4f0f10['uniqueid']),_0x1e4cf1);}});ami['on'](_0xfabf('0x25'),function(_0x521665){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')]('[%s][index][queuecallerleave]',_0x521665[_0xfabf('0x1a')]),_0x521665);queues[_0xfabf('0x25')](_0x521665);}catch(_0x30cef7){utils[_0xfabf('0x11')](util['format'](_0xfabf('0x26'),_0x521665[_0xfabf('0x1a')]),_0x30cef7);}});ami['on']('musiconholdstart',function(_0x3f42f2){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')](_0xfabf('0x27'),_0x3f42f2[_0xfabf('0x1a')]),_0x3f42f2);queues['musiconholdstart'](_0x3f42f2);calls[_0xfabf('0x28')](_0x3f42f2);}catch(_0x43ee6a){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x27'),_0x3f42f2['uniqueid']),_0x43ee6a);}});ami['on'](_0xfabf('0x29'),function(_0x2dcf40){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')](_0xfabf('0x2a'),_0x2dcf40[_0xfabf('0x1a')]),_0x2dcf40);queues[_0xfabf('0x29')](_0x2dcf40);calls['musiconholdstop'](_0x2dcf40);}catch(_0x34ccea){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x2a'),_0x2dcf40[_0xfabf('0x1a')]),_0x34ccea);}});ami['on'](_0xfabf('0x2b'),function(_0x56af62){try{utils['debug'](util[_0xfabf('0x18')](_0xfabf('0x2c'),_0x56af62['uniqueid']),_0x56af62);calls[_0xfabf('0x2b')](_0x56af62);recordings[_0xfabf('0x2b')](_0x56af62);}catch(_0x40cdc5){utils[_0xfabf('0x11')](util['format']('[%s][index][newstate]',_0x56af62[_0xfabf('0x1a')]),_0x40cdc5);}});ami['on']('hangup',function(_0x3cb330){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')](_0xfabf('0x2d'),_0x3cb330['uniqueid']),_0x3cb330);calls['hangup'](_0x3cb330);recordings[_0xfabf('0x2e')](_0x3cb330);dials[_0xfabf('0x2e')](_0x3cb330);agents[_0xfabf('0x2e')](_0x3cb330);queues['hangup'](_0x3cb330);}catch(_0x1f261a){utils[_0xfabf('0x11')](util['format'](_0xfabf('0x2d'),_0x3cb330['uniqueid']),_0x1f261a);}});ami['on'](_0xfabf('0x2f'),function(_0x3a470c){try{utils[_0xfabf('0x15')](util['format']('[%s][index][cdr]',_0x3a470c['uniqueid']),_0x3a470c);members[_0xfabf('0x2f')](_0x3a470c);}catch(_0x31ea3e){utils['error'](util[_0xfabf('0x18')]('[%s][index][cdr]',_0x3a470c[_0xfabf('0x1a')]),_0x31ea3e);}});ami['on'](_0xfabf('0x30'),function(_0x9ce428){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')](_0xfabf('0x31'),_0x9ce428[_0xfabf('0x1a')]),_0x9ce428);queues['blindtransfer'](_0x9ce428);agents[_0xfabf('0x30')](_0x9ce428);transfers[_0xfabf('0x30')](_0x9ce428);recordings[_0xfabf('0x30')](_0x9ce428);}catch(_0x58400a){utils[_0xfabf('0x11')](util['format'](_0xfabf('0x31'),_0x9ce428[_0xfabf('0x1a')]),_0x58400a);}});ami['on'](_0xfabf('0x32'),function(_0x3a2cb3){try{utils[_0xfabf('0x15')](util[_0xfabf('0x18')](_0xfabf('0x33'),_0x3a2cb3[_0xfabf('0x34')]),_0x3a2cb3);queues['attendedtransfer'](_0x3a2cb3);transfers[_0xfabf('0x32')](_0x3a2cb3);agents[_0xfabf('0x32')](_0x3a2cb3);calls[_0xfabf('0x32')](_0x3a2cb3);}catch(_0x267ff6){utils[_0xfabf('0x11')](util['format'](_0xfabf('0x33'),_0x3a2cb3[_0xfabf('0x34')]),_0x267ff6);}});ami['on'](_0xfabf('0x35'),function(_0x5e892b){try{utils[_0xfabf('0x15')](util['format'](_0xfabf('0x36'),_0x5e892b[_0xfabf('0x1a')]),_0x5e892b);queues['varset'](_0x5e892b);recordings['varset'](_0x5e892b);calls[_0xfabf('0x35')](_0x5e892b);dials[_0xfabf('0x35')](_0x5e892b);}catch(_0x2bdc12){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x36'),_0x5e892b[_0xfabf('0x1a')]),_0x2bdc12);}});ami['on'](_0xfabf('0x37'),function(_0xa478b1){try{utils[_0xfabf('0x15')](util['format'](_0xfabf('0x38'),_0xa478b1[_0xfabf('0x1a')]),_0xa478b1);calls[_0xfabf('0x37')](_0xa478b1);recordings['newexten'](_0xa478b1);dials[_0xfabf('0x37')](_0xa478b1);}catch(_0x30923f){utils['error'](util[_0xfabf('0x18')](_0xfabf('0x38'),_0xa478b1[_0xfabf('0x1a')]),_0x30923f);}});ami['on'](_0xfabf('0x39'),function(_0x19c439){try{utils['debug'](util[_0xfabf('0x18')]('[%s][index][newchannel]',_0x19c439[_0xfabf('0x1a')]),_0x19c439);calls['newchannel'](_0x19c439);recordings[_0xfabf('0x39')](_0x19c439);}catch(_0x1b5e26){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x3a'),_0x19c439['uniqueid']),_0x1b5e26);}});ami['on'](_0xfabf('0x3b'),function(_0x203a00){try{utils[_0xfabf('0x15')](util['format'](_0xfabf('0x3c'),_0x203a00['uniqueid']),_0x203a00);dials['dialbegin'](_0x203a00);}catch(_0x4a44bc){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x3d'),_0x203a00[_0xfabf('0x1a')]),_0x4a44bc);}});ami['on']('dialend',function(_0x5da545){try{utils[_0xfabf('0x15')](util['format'](_0xfabf('0x3e'),_0x5da545['uniqueid']),_0x5da545);dials[_0xfabf('0x3f')](_0x5da545);}catch(_0x5a263f){utils[_0xfabf('0x11')](util[_0xfabf('0x18')](_0xfabf('0x3e'),_0x5da545['uniqueid']),_0x5a263f);}});}
\ No newline at end of file
+var _0x37ed=['[%s][index][agentcalled]','uniqueid','agentringnoanswer','[%s][index][agentringnoanswer]','agentconnect','[%s][index][agentconnect]','agentcomplete','[%s][index][agentcomplete]','queuecallerabandon','[%s][index][queuecallerabandon]','queuecallerjoin','[%s][index][queuecallerjoin]','queuecallerleave','[%s][index][queuecallerleave]','musiconholdstart','[%s][index][musiconholdstart]','musiconholdstop','[%s][index][newstate]','newstate','hangup','[%s][index][hangup]','cdr','[%s][index][cdr]','blindtransfer','[%s][index][blindtransfer]','attendedtransfer','[%s][index][attendedtransfer]','origtransfereruniqueid','varset','[%s][index][varset]','newexten','[%s][index][newexten]','newchannel','[%s][index][newchannel]','dialbegin','[%s][index][dialbegin]','[%s]dialbegin','[%s][index][dialend]','dialend','asterisk-manager','util','xdr','env','local','asterisk','username','password','keepConnected','info','XDR\x20DISABLED','Asterisk\x20disabled\x20on\x20localhost','./calls.controller','./recordings.controller','./members.controller','./dials.controller','./transfers.controller','./core.controller','connect','shutdown','fullybooted','error','close','managerevent','devicestatechange','debug','format','[%s][index][devicestatechange]','agentcalled'];(function(_0x550d12,_0x5384bd){var _0x12103d=function(_0x2a9834){while(--_0x2a9834){_0x550d12['push'](_0x550d12['shift']());}};_0x12103d(++_0x5384bd);}(_0x37ed,0xf3));var _0xd37e=function(_0x3dc7dd,_0x45cd61){_0x3dc7dd=_0x3dc7dd-0x0;var _0x40bbfa=_0x37ed[_0x3dc7dd];return _0x40bbfa;};var AsteriskManager=require(_0xd37e('0x0'));var config=require('../../config/environment');var utils=require('./utils');var util=require(_0xd37e('0x1'));var isXDREnabled=config['xdr']&&config[_0xd37e('0x2')]['disabled']?!config[_0xd37e('0x2')]['disabled']:!![];var isProduction=config[_0xd37e('0x3')]==='production'||![];var isLocalAsterisk=config[_0xd37e('0x2')]&&config['xdr'][_0xd37e('0x4')]===!![]||![];var ami=new AsteriskManager(config[_0xd37e('0x5')]['port'],config[_0xd37e('0x5')]['ip'],config[_0xd37e('0x5')][_0xd37e('0x6')],config[_0xd37e('0x5')][_0xd37e('0x7')],!![]);ami[_0xd37e('0x8')]();if(!isXDREnabled){utils[_0xd37e('0x9')](_0xd37e('0xa'));}else if(!isProduction&&!isLocalAsterisk){utils[_0xd37e('0x9')](_0xd37e('0xb'));}else{var agents=require('./agents.controller');var calls=require(_0xd37e('0xc'));var queues=require('./queues.controller');var recordings=require(_0xd37e('0xd'));var members=require(_0xd37e('0xe'));var dials=require(_0xd37e('0xf'));var transfers=require(_0xd37e('0x10'));var core=require(_0xd37e('0x11'));ami['on'](_0xd37e('0x12'),core[_0xd37e('0x12')]);ami['on'](_0xd37e('0x13'),core[_0xd37e('0x13')]);ami['on'](_0xd37e('0x14'),core[_0xd37e('0x14')]);ami['on'](_0xd37e('0x15'),core[_0xd37e('0x15')]);ami['on'](_0xd37e('0x16'),core[_0xd37e('0x16')]);ami['on'](_0xd37e('0x17'),core[_0xd37e('0x17')]);ami['on'](_0xd37e('0x18'),function(_0x55a682){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')](_0xd37e('0x1b'),_0x55a682['device']),_0x55a682);members[_0xd37e('0x18')](_0x55a682);}catch(_0x204c34){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')]('[%s][index][devicestatechange]',_0x55a682['device']),_0x204c34);}});ami['on'](_0xd37e('0x1c'),function(_0x3bbc6c){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')](_0xd37e('0x1d'),_0x3bbc6c[_0xd37e('0x1e')]),_0x3bbc6c);agents['agentcalled'](_0x3bbc6c);}catch(_0x2d6541){utils['error'](util['format'](_0xd37e('0x1d'),_0x3bbc6c[_0xd37e('0x1e')]),_0x2d6541);}});ami['on'](_0xd37e('0x1f'),function(_0x43e967){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')](_0xd37e('0x20'),_0x43e967['uniqueid']),_0x43e967);agents[_0xd37e('0x1f')](_0x43e967);}catch(_0x14d78c){utils[_0xd37e('0x15')](util['format'](_0xd37e('0x20'),_0x43e967[_0xd37e('0x1e')]),_0x14d78c);}});ami['on'](_0xd37e('0x21'),function(_0x23bf44){try{utils['debug'](util['format'](_0xd37e('0x22'),_0x23bf44[_0xd37e('0x1e')]),_0x23bf44);agents[_0xd37e('0x21')](_0x23bf44);queues['agentconnect'](_0x23bf44);}catch(_0x530231){utils['error'](util[_0xd37e('0x1a')](_0xd37e('0x22'),_0x23bf44[_0xd37e('0x1e')]),_0x530231);}});ami['on'](_0xd37e('0x23'),function(_0x1fdf14){try{utils['debug'](util['format'](_0xd37e('0x24'),_0x1fdf14[_0xd37e('0x1e')]),_0x1fdf14);agents['agentcomplete'](_0x1fdf14);queues[_0xd37e('0x23')](_0x1fdf14);members[_0xd37e('0x23')](_0x1fdf14);}catch(_0x51adf0){utils['error'](util[_0xd37e('0x1a')](_0xd37e('0x24'),_0x1fdf14[_0xd37e('0x1e')]),_0x51adf0);}});ami['on'](_0xd37e('0x25'),function(_0x141e37){try{utils[_0xd37e('0x19')](util['format'](_0xd37e('0x26'),_0x141e37[_0xd37e('0x1e')]),_0x141e37);agents[_0xd37e('0x25')](_0x141e37);queues[_0xd37e('0x25')](_0x141e37);}catch(_0x2c6d16){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')](_0xd37e('0x26'),_0x141e37[_0xd37e('0x1e')]),_0x2c6d16);}});ami['on'](_0xd37e('0x27'),function(_0x5ede85){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')](_0xd37e('0x28'),_0x5ede85[_0xd37e('0x1e')]),_0x5ede85);queues[_0xd37e('0x27')](_0x5ede85);recordings[_0xd37e('0x27')](_0x5ede85);}catch(_0x5bfbb1){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')](_0xd37e('0x28'),_0x5ede85['uniqueid']),_0x5bfbb1);}});ami['on']('queuecallerleave',function(_0x551259){try{utils['debug'](util[_0xd37e('0x1a')]('[%s][index][queuecallerleave]',_0x551259['uniqueid']),_0x551259);queues[_0xd37e('0x29')](_0x551259);}catch(_0x462d6f){utils[_0xd37e('0x15')](util['format'](_0xd37e('0x2a'),_0x551259[_0xd37e('0x1e')]),_0x462d6f);}});ami['on'](_0xd37e('0x2b'),function(_0x3b2852){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')]('[%s][index][musiconholdstart]',_0x3b2852[_0xd37e('0x1e')]),_0x3b2852);queues[_0xd37e('0x2b')](_0x3b2852);calls[_0xd37e('0x2b')](_0x3b2852);}catch(_0x1a8c31){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')](_0xd37e('0x2c'),_0x3b2852[_0xd37e('0x1e')]),_0x1a8c31);}});ami['on'](_0xd37e('0x2d'),function(_0x5670e9){try{utils[_0xd37e('0x19')](util['format']('[%s][index][musiconholdstop]',_0x5670e9[_0xd37e('0x1e')]),_0x5670e9);queues['musiconholdstop'](_0x5670e9);calls['musiconholdstop'](_0x5670e9);}catch(_0x389680){utils['error'](util[_0xd37e('0x1a')]('[%s][index][musiconholdstop]',_0x5670e9['uniqueid']),_0x389680);}});ami['on']('newstate',function(_0x33797a){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')](_0xd37e('0x2e'),_0x33797a[_0xd37e('0x1e')]),_0x33797a);calls[_0xd37e('0x2f')](_0x33797a);recordings[_0xd37e('0x2f')](_0x33797a);}catch(_0x16f43b){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')](_0xd37e('0x2e'),_0x33797a[_0xd37e('0x1e')]),_0x16f43b);}});ami['on'](_0xd37e('0x30'),function(_0x33de3e){try{utils['debug'](util[_0xd37e('0x1a')](_0xd37e('0x31'),_0x33de3e[_0xd37e('0x1e')]),_0x33de3e);calls[_0xd37e('0x30')](_0x33de3e);recordings['hangup'](_0x33de3e);dials[_0xd37e('0x30')](_0x33de3e);agents['hangup'](_0x33de3e);queues['hangup'](_0x33de3e);}catch(_0x5abb7a){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')](_0xd37e('0x31'),_0x33de3e[_0xd37e('0x1e')]),_0x5abb7a);}});ami['on'](_0xd37e('0x32'),function(_0x113498){try{utils[_0xd37e('0x19')](util['format']('[%s][index][cdr]',_0x113498[_0xd37e('0x1e')]),_0x113498);members['cdr'](_0x113498);}catch(_0x109450){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')](_0xd37e('0x33'),_0x113498[_0xd37e('0x1e')]),_0x109450);}});ami['on'](_0xd37e('0x34'),function(_0x457c4f){try{utils['debug'](util['format'](_0xd37e('0x35'),_0x457c4f['uniqueid']),_0x457c4f);queues[_0xd37e('0x34')](_0x457c4f);agents['blindtransfer'](_0x457c4f);transfers['blindtransfer'](_0x457c4f);recordings[_0xd37e('0x34')](_0x457c4f);}catch(_0x2c8ce6){utils['error'](util[_0xd37e('0x1a')]('[%s][index][blindtransfer]',_0x457c4f['uniqueid']),_0x2c8ce6);}});ami['on'](_0xd37e('0x36'),function(_0x16649e){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')](_0xd37e('0x37'),_0x16649e['origtransfereruniqueid']),_0x16649e);queues[_0xd37e('0x36')](_0x16649e);transfers['attendedtransfer'](_0x16649e);agents[_0xd37e('0x36')](_0x16649e);calls[_0xd37e('0x36')](_0x16649e);}catch(_0x48383d){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')]('[%s][index][attendedtransfer]',_0x16649e[_0xd37e('0x38')]),_0x48383d);}});ami['on'](_0xd37e('0x39'),function(_0x380188){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')]('[%s][index][varset]',_0x380188[_0xd37e('0x1e')]),_0x380188);queues[_0xd37e('0x39')](_0x380188);recordings['varset'](_0x380188);calls[_0xd37e('0x39')](_0x380188);dials[_0xd37e('0x39')](_0x380188);}catch(_0x23a704){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')](_0xd37e('0x3a'),_0x380188[_0xd37e('0x1e')]),_0x23a704);}});ami['on'](_0xd37e('0x3b'),function(_0x3ead3d){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')](_0xd37e('0x3c'),_0x3ead3d[_0xd37e('0x1e')]),_0x3ead3d);calls[_0xd37e('0x3b')](_0x3ead3d);recordings[_0xd37e('0x3b')](_0x3ead3d);dials[_0xd37e('0x3b')](_0x3ead3d);}catch(_0xe31f68){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')](_0xd37e('0x3c'),_0x3ead3d['uniqueid']),_0xe31f68);}});ami['on'](_0xd37e('0x3d'),function(_0x3dd5e4){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')](_0xd37e('0x3e'),_0x3dd5e4[_0xd37e('0x1e')]),_0x3dd5e4);calls['newchannel'](_0x3dd5e4);recordings[_0xd37e('0x3d')](_0x3dd5e4);}catch(_0x3c230b){utils['error'](util['format']('[%s][index][newchannel]',_0x3dd5e4[_0xd37e('0x1e')]),_0x3c230b);}});ami['on'](_0xd37e('0x3f'),function(_0x2daf1b){try{utils[_0xd37e('0x19')](util[_0xd37e('0x1a')](_0xd37e('0x40'),_0x2daf1b[_0xd37e('0x1e')]),_0x2daf1b);dials[_0xd37e('0x3f')](_0x2daf1b);}catch(_0xd0cbb9){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')](_0xd37e('0x41'),_0x2daf1b[_0xd37e('0x1e')]),_0xd0cbb9);}});ami['on']('dialend',function(_0x57a60c){try{utils[_0xd37e('0x19')](util['format'](_0xd37e('0x42'),_0x57a60c[_0xd37e('0x1e')]),_0x57a60c);dials[_0xd37e('0x43')](_0x57a60c);}catch(_0x4862c1){utils[_0xd37e('0x15')](util[_0xd37e('0x1a')]('[%s][index][dialend]',_0x57a60c['uniqueid']),_0x4862c1);}});}
\ No newline at end of file