Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / xdr / index.js
index 8a974f8..3efaa9f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5224=['info','XDR\x20DISABLED','Asterisk\x20disabled\x20on\x20localhost','./agents.controller','./calls.controller','./queues.controller','./recordings.controller','./members.controller','./dials.controller','./core.controller','connect','shutdown','fullybooted','error','close','managerevent','devicestatechange','debug','format','[%s][index][devicestatechange]','device','agentcalled','uniqueid','agentringnoanswer','[%s][index][agentringnoanswer]','agentconnect','[%s][index][agentconnect]','agentcomplete','[%s][index][agentcomplete]','queuecallerabandon','[%s][index][queuecallerabandon]','[%s][index][queuecallerjoin]','queuecallerjoin','queuecallerleave','[%s][index][queuecallerleave]','musiconholdstart','musiconholdstop','[%s][index][musiconholdstop]','newstate','[%s][index][newstate]','hangup','[%s][index][hangup]','[%s][index][cdr]','cdr','[%s][index][blindtransfer]','blindtransfer','attendedtransfer','[%s][index][attendedtransfer]','origtransfereruniqueid','[%s][index][varset]','varset','newexten','[%s][index][newexten]','[%s][index][newchannel]','[%s][index][dialbegin]','[%s]dialbegin','dialend','[%s][index][dialend]','asterisk-manager','../../config/environment','xdr','disabled','env','local','asterisk','port','username','password','keepConnected'];(function(_0x189745,_0x6a76ee){var _0x4ac5ac=function(_0x76d621){while(--_0x76d621){_0x189745['push'](_0x189745['shift']());}};_0x4ac5ac(++_0x6a76ee);}(_0x5224,0x7f));var _0x4522=function(_0xdb4e73,_0x30b446){_0xdb4e73=_0xdb4e73-0x0;var _0x4578b4=_0x5224[_0xdb4e73];return _0x4578b4;};var AsteriskManager=require(_0x4522('0x0'));var config=require(_0x4522('0x1'));var utils=require('./utils');var util=require('util');var isXDREnabled=config[_0x4522('0x2')]&&config['xdr'][_0x4522('0x3')]?!config[_0x4522('0x2')]['disabled']:!![];var isProduction=config[_0x4522('0x4')]==='production'||![];var isLocalAsterisk=config[_0x4522('0x2')]&&config[_0x4522('0x2')][_0x4522('0x5')]===!![]||![];var ami=new AsteriskManager(config[_0x4522('0x6')][_0x4522('0x7')],config[_0x4522('0x6')]['ip'],config[_0x4522('0x6')][_0x4522('0x8')],config['asterisk'][_0x4522('0x9')],!![]);ami[_0x4522('0xa')]();if(!isXDREnabled){utils[_0x4522('0xb')](_0x4522('0xc'));}else if(!isProduction&&!isLocalAsterisk){utils['info'](_0x4522('0xd'));}else{var agents=require(_0x4522('0xe'));var calls=require(_0x4522('0xf'));var queues=require(_0x4522('0x10'));var recordings=require(_0x4522('0x11'));var members=require(_0x4522('0x12'));var dials=require(_0x4522('0x13'));var transfers=require('./transfers.controller');var core=require(_0x4522('0x14'));ami['on'](_0x4522('0x15'),core[_0x4522('0x15')]);ami['on'](_0x4522('0x16'),core['shutdown']);ami['on'](_0x4522('0x17'),core[_0x4522('0x17')]);ami['on'](_0x4522('0x18'),core['error']);ami['on'](_0x4522('0x19'),core['close']);ami['on'](_0x4522('0x1a'),core[_0x4522('0x1a')]);ami['on'](_0x4522('0x1b'),function(_0x9b3a95){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x1e'),_0x9b3a95[_0x4522('0x1f')]),_0x9b3a95);members[_0x4522('0x1b')](_0x9b3a95);}catch(_0x378444){utils[_0x4522('0x18')](util[_0x4522('0x1d')]('[%s][index][devicestatechange]',_0x9b3a95['device']),_0x378444);}});ami['on'](_0x4522('0x20'),function(_0x5abfae){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')]('[%s][index][agentcalled]',_0x5abfae[_0x4522('0x21')]),_0x5abfae);agents[_0x4522('0x20')](_0x5abfae);}catch(_0x34daea){utils['error'](util[_0x4522('0x1d')]('[%s][index][agentcalled]',_0x5abfae[_0x4522('0x21')]),_0x34daea);}});ami['on'](_0x4522('0x22'),function(_0xe4deee){try{utils[_0x4522('0x1c')](util['format'](_0x4522('0x23'),_0xe4deee[_0x4522('0x21')]),_0xe4deee);agents['agentringnoanswer'](_0xe4deee);}catch(_0x5ba30c){utils[_0x4522('0x18')](util[_0x4522('0x1d')]('[%s][index][agentringnoanswer]',_0xe4deee['uniqueid']),_0x5ba30c);}});ami['on'](_0x4522('0x24'),function(_0x42f5dc){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x25'),_0x42f5dc['uniqueid']),_0x42f5dc);agents[_0x4522('0x24')](_0x42f5dc);queues[_0x4522('0x24')](_0x42f5dc);}catch(_0x4f5eeb){utils[_0x4522('0x18')](util[_0x4522('0x1d')](_0x4522('0x25'),_0x42f5dc['uniqueid']),_0x4f5eeb);}});ami['on'](_0x4522('0x26'),function(_0x4d6699){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x27'),_0x4d6699['uniqueid']),_0x4d6699);agents['agentcomplete'](_0x4d6699);queues['agentcomplete'](_0x4d6699);members['agentcomplete'](_0x4d6699);}catch(_0x4d3806){utils['error'](util[_0x4522('0x1d')](_0x4522('0x27'),_0x4d6699[_0x4522('0x21')]),_0x4d3806);}});ami['on']('queuecallerabandon',function(_0x2f44a3){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')]('[%s][index][queuecallerabandon]',_0x2f44a3[_0x4522('0x21')]),_0x2f44a3);agents[_0x4522('0x28')](_0x2f44a3);queues[_0x4522('0x28')](_0x2f44a3);}catch(_0x35b8bc){utils[_0x4522('0x18')](util[_0x4522('0x1d')](_0x4522('0x29'),_0x2f44a3[_0x4522('0x21')]),_0x35b8bc);}});ami['on']('queuecallerjoin',function(_0x4dbdf0){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x2a'),_0x4dbdf0[_0x4522('0x21')]),_0x4dbdf0);queues[_0x4522('0x2b')](_0x4dbdf0);recordings[_0x4522('0x2b')](_0x4dbdf0);}catch(_0xa39d78){utils['error'](util[_0x4522('0x1d')](_0x4522('0x2a'),_0x4dbdf0['uniqueid']),_0xa39d78);}});ami['on'](_0x4522('0x2c'),function(_0x291ae9){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')]('[%s][index][queuecallerleave]',_0x291ae9[_0x4522('0x21')]),_0x291ae9);queues[_0x4522('0x2c')](_0x291ae9);}catch(_0x2dd010){utils['error'](util[_0x4522('0x1d')](_0x4522('0x2d'),_0x291ae9[_0x4522('0x21')]),_0x2dd010);}});ami['on'](_0x4522('0x2e'),function(_0x2f8a28){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')]('[%s][index][musiconholdstart]',_0x2f8a28[_0x4522('0x21')]),_0x2f8a28);queues[_0x4522('0x2e')](_0x2f8a28);calls[_0x4522('0x2e')](_0x2f8a28);}catch(_0x1cd652){utils['error'](util['format']('[%s][index][musiconholdstart]',_0x2f8a28[_0x4522('0x21')]),_0x1cd652);}});ami['on'](_0x4522('0x2f'),function(_0x1ac345){try{utils['debug'](util[_0x4522('0x1d')]('[%s][index][musiconholdstop]',_0x1ac345[_0x4522('0x21')]),_0x1ac345);queues[_0x4522('0x2f')](_0x1ac345);calls[_0x4522('0x2f')](_0x1ac345);}catch(_0x3dd3ed){utils['error'](util['format'](_0x4522('0x30'),_0x1ac345[_0x4522('0x21')]),_0x3dd3ed);}});ami['on'](_0x4522('0x31'),function(_0x5ab57b){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x32'),_0x5ab57b[_0x4522('0x21')]),_0x5ab57b);calls[_0x4522('0x31')](_0x5ab57b);recordings[_0x4522('0x31')](_0x5ab57b);}catch(_0x12b5c9){utils['error'](util[_0x4522('0x1d')](_0x4522('0x32'),_0x5ab57b[_0x4522('0x21')]),_0x12b5c9);}});ami['on'](_0x4522('0x33'),function(_0x18c486){try{utils[_0x4522('0x1c')](util['format'](_0x4522('0x34'),_0x18c486[_0x4522('0x21')]),_0x18c486);calls[_0x4522('0x33')](_0x18c486);recordings[_0x4522('0x33')](_0x18c486);dials[_0x4522('0x33')](_0x18c486);agents[_0x4522('0x33')](_0x18c486);queues[_0x4522('0x33')](_0x18c486);}catch(_0x1347d0){utils[_0x4522('0x18')](util[_0x4522('0x1d')](_0x4522('0x34'),_0x18c486[_0x4522('0x21')]),_0x1347d0);}});ami['on']('cdr',function(_0x55b861){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x35'),_0x55b861[_0x4522('0x21')]),_0x55b861);members[_0x4522('0x36')](_0x55b861);}catch(_0x5be984){utils[_0x4522('0x18')](util[_0x4522('0x1d')](_0x4522('0x35'),_0x55b861[_0x4522('0x21')]),_0x5be984);}});ami['on']('blindtransfer',function(_0x5bdf35){try{utils[_0x4522('0x1c')](util['format'](_0x4522('0x37'),_0x5bdf35[_0x4522('0x21')]),_0x5bdf35);queues['blindtransfer'](_0x5bdf35);agents[_0x4522('0x38')](_0x5bdf35);transfers[_0x4522('0x38')](_0x5bdf35);recordings[_0x4522('0x38')](_0x5bdf35);}catch(_0x18e4bd){utils['error'](util[_0x4522('0x1d')](_0x4522('0x37'),_0x5bdf35['uniqueid']),_0x18e4bd);}});ami['on'](_0x4522('0x39'),function(_0x49f8a1){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x3a'),_0x49f8a1['origtransfereruniqueid']),_0x49f8a1);queues[_0x4522('0x39')](_0x49f8a1);transfers[_0x4522('0x39')](_0x49f8a1);agents[_0x4522('0x39')](_0x49f8a1);calls['attendedtransfer'](_0x49f8a1);}catch(_0x426463){utils[_0x4522('0x18')](util[_0x4522('0x1d')]('[%s][index][attendedtransfer]',_0x49f8a1[_0x4522('0x3b')]),_0x426463);}});ami['on']('varset',function(_0x166ec8){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x3c'),_0x166ec8[_0x4522('0x21')]),_0x166ec8);queues[_0x4522('0x3d')](_0x166ec8);recordings[_0x4522('0x3d')](_0x166ec8);calls[_0x4522('0x3d')](_0x166ec8);dials[_0x4522('0x3d')](_0x166ec8);}catch(_0x1b40ad){utils[_0x4522('0x18')](util[_0x4522('0x1d')]('[%s][index][varset]',_0x166ec8[_0x4522('0x21')]),_0x1b40ad);}});ami['on']('newexten',function(_0xfb0598){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')]('[%s][index][newexten]',_0xfb0598[_0x4522('0x21')]),_0xfb0598);calls[_0x4522('0x3e')](_0xfb0598);recordings['newexten'](_0xfb0598);dials[_0x4522('0x3e')](_0xfb0598);}catch(_0x2a6782){utils[_0x4522('0x18')](util[_0x4522('0x1d')](_0x4522('0x3f'),_0xfb0598['uniqueid']),_0x2a6782);}});ami['on']('newchannel',function(_0x21af73){try{utils['debug'](util[_0x4522('0x1d')]('[%s][index][newchannel]',_0x21af73[_0x4522('0x21')]),_0x21af73);calls['newchannel'](_0x21af73);recordings['newchannel'](_0x21af73);}catch(_0x7232dd){utils[_0x4522('0x18')](util[_0x4522('0x1d')](_0x4522('0x40'),_0x21af73[_0x4522('0x21')]),_0x7232dd);}});ami['on']('dialbegin',function(_0x4a6de5){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x41'),_0x4a6de5[_0x4522('0x21')]),_0x4a6de5);dials['dialbegin'](_0x4a6de5);}catch(_0x108f54){utils[_0x4522('0x18')](util[_0x4522('0x1d')](_0x4522('0x42'),_0x4a6de5[_0x4522('0x21')]),_0x108f54);}});ami['on'](_0x4522('0x43'),function(_0x45a834){try{utils[_0x4522('0x1c')](util[_0x4522('0x1d')](_0x4522('0x44'),_0x45a834[_0x4522('0x21')]),_0x45a834);dials[_0x4522('0x43')](_0x45a834);}catch(_0x591302){utils[_0x4522('0x18')](util[_0x4522('0x1d')](_0x4522('0x44'),_0x45a834[_0x4522('0x21')]),_0x591302);}});}
\ No newline at end of file
+var _0x3034=['attendedtransfer','origtransfereruniqueid','varset','[%s][index][varset]','newexten','[%s][index][newexten]','newchannel','[%s][index][newchannel]','[%s][index][dialbegin]','dialend','[%s][index][dialend]','../../config/environment','./utils','util','xdr','disabled','asterisk','username','keepConnected','XDR\x20DISABLED','info','./queues.controller','./recordings.controller','./members.controller','./dials.controller','./transfers.controller','connect','shutdown','fullybooted','error','close','managerevent','devicestatechange','debug','format','[%s][index][devicestatechange]','device','[%s][index][agentcalled]','uniqueid','agentcalled','[%s][index][agentringnoanswer]','agentringnoanswer','agentconnect','[%s][index][agentconnect]','agentcomplete','[%s][index][agentcomplete]','queuecallerabandon','[%s][index][queuecallerabandon]','queuecallerjoin','[%s][index][queuecallerjoin]','queuecallerleave','[%s][index][queuecallerleave]','[%s][index][musiconholdstart]','musiconholdstart','[%s][index][musiconholdstop]','newstate','hangup','[%s][index][hangup]','[%s][index][cdr]','cdr','[%s][index][blindtransfer]','blindtransfer','[%s][index][attendedtransfer]'];(function(_0x111032,_0x3a75d6){var _0x1a0a9b=function(_0x33c71f){while(--_0x33c71f){_0x111032['push'](_0x111032['shift']());}};_0x1a0a9b(++_0x3a75d6);}(_0x3034,0x107));var _0x4303=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x3034[_0x2641f9];return _0x585741;};var AsteriskManager=require('asterisk-manager');var config=require(_0x4303('0x0'));var utils=require(_0x4303('0x1'));var util=require(_0x4303('0x2'));var isXDREnabled=config['xdr']&&config[_0x4303('0x3')][_0x4303('0x4')]?!config['xdr'][_0x4303('0x4')]:!![];var isProduction=config['env']==='production'||![];var isLocalAsterisk=config[_0x4303('0x3')]&&config[_0x4303('0x3')]['local']===!![]||![];var ami=new AsteriskManager(config[_0x4303('0x5')]['port'],config[_0x4303('0x5')]['ip'],config[_0x4303('0x5')][_0x4303('0x6')],config[_0x4303('0x5')]['password'],!![]);ami[_0x4303('0x7')]();if(!isXDREnabled){utils['info'](_0x4303('0x8'));}else if(!isProduction&&!isLocalAsterisk){utils[_0x4303('0x9')]('Asterisk\x20disabled\x20on\x20localhost');}else{var agents=require('./agents.controller');var calls=require('./calls.controller');var queues=require(_0x4303('0xa'));var recordings=require(_0x4303('0xb'));var members=require(_0x4303('0xc'));var dials=require(_0x4303('0xd'));var transfers=require(_0x4303('0xe'));var core=require('./core.controller');ami['on'](_0x4303('0xf'),core[_0x4303('0xf')]);ami['on'](_0x4303('0x10'),core[_0x4303('0x10')]);ami['on'](_0x4303('0x11'),core[_0x4303('0x11')]);ami['on'](_0x4303('0x12'),core[_0x4303('0x12')]);ami['on'](_0x4303('0x13'),core[_0x4303('0x13')]);ami['on'](_0x4303('0x14'),core[_0x4303('0x14')]);ami['on'](_0x4303('0x15'),function(_0x2df8bc){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x18'),_0x2df8bc[_0x4303('0x19')]),_0x2df8bc);members[_0x4303('0x15')](_0x2df8bc);}catch(_0x29fa7c){utils[_0x4303('0x12')](util[_0x4303('0x17')]('[%s][index][devicestatechange]',_0x2df8bc[_0x4303('0x19')]),_0x29fa7c);}});ami['on']('agentcalled',function(_0x1ba007){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x1a'),_0x1ba007[_0x4303('0x1b')]),_0x1ba007);agents[_0x4303('0x1c')](_0x1ba007);}catch(_0x528c65){utils['error'](util['format']('[%s][index][agentcalled]',_0x1ba007[_0x4303('0x1b')]),_0x528c65);}});ami['on']('agentringnoanswer',function(_0x2487d3){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x1d'),_0x2487d3['uniqueid']),_0x2487d3);agents[_0x4303('0x1e')](_0x2487d3);}catch(_0x495957){utils[_0x4303('0x12')](util[_0x4303('0x17')](_0x4303('0x1d'),_0x2487d3['uniqueid']),_0x495957);}});ami['on'](_0x4303('0x1f'),function(_0x13d515){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x20'),_0x13d515['uniqueid']),_0x13d515);agents[_0x4303('0x1f')](_0x13d515);queues[_0x4303('0x1f')](_0x13d515);}catch(_0x204711){utils[_0x4303('0x12')](util[_0x4303('0x17')]('[%s][index][agentconnect]',_0x13d515[_0x4303('0x1b')]),_0x204711);}});ami['on'](_0x4303('0x21'),function(_0x110052){try{utils[_0x4303('0x16')](util['format'](_0x4303('0x22'),_0x110052[_0x4303('0x1b')]),_0x110052);agents[_0x4303('0x21')](_0x110052);queues[_0x4303('0x21')](_0x110052);members[_0x4303('0x21')](_0x110052);}catch(_0x50db98){utils['error'](util[_0x4303('0x17')](_0x4303('0x22'),_0x110052[_0x4303('0x1b')]),_0x50db98);}});ami['on'](_0x4303('0x23'),function(_0x650c7b){try{utils['debug'](util['format'](_0x4303('0x24'),_0x650c7b[_0x4303('0x1b')]),_0x650c7b);agents[_0x4303('0x23')](_0x650c7b);queues[_0x4303('0x23')](_0x650c7b);}catch(_0x30bb83){utils[_0x4303('0x12')](util[_0x4303('0x17')]('[%s][index][queuecallerabandon]',_0x650c7b[_0x4303('0x1b')]),_0x30bb83);}});ami['on'](_0x4303('0x25'),function(_0x80c27c){try{utils[_0x4303('0x16')](util['format'](_0x4303('0x26'),_0x80c27c['uniqueid']),_0x80c27c);queues['queuecallerjoin'](_0x80c27c);recordings['queuecallerjoin'](_0x80c27c);}catch(_0x85810){utils[_0x4303('0x12')](util[_0x4303('0x17')]('[%s][index][queuecallerjoin]',_0x80c27c[_0x4303('0x1b')]),_0x85810);}});ami['on'](_0x4303('0x27'),function(_0x3800b7){try{utils['debug'](util[_0x4303('0x17')](_0x4303('0x28'),_0x3800b7[_0x4303('0x1b')]),_0x3800b7);queues[_0x4303('0x27')](_0x3800b7);}catch(_0x33e92c){utils[_0x4303('0x12')](util[_0x4303('0x17')](_0x4303('0x28'),_0x3800b7[_0x4303('0x1b')]),_0x33e92c);}});ami['on']('musiconholdstart',function(_0xe784ce){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x29'),_0xe784ce['uniqueid']),_0xe784ce);queues[_0x4303('0x2a')](_0xe784ce);calls[_0x4303('0x2a')](_0xe784ce);}catch(_0x349601){utils[_0x4303('0x12')](util[_0x4303('0x17')](_0x4303('0x29'),_0xe784ce[_0x4303('0x1b')]),_0x349601);}});ami['on']('musiconholdstop',function(_0x1e7153){try{utils[_0x4303('0x16')](util['format'](_0x4303('0x2b'),_0x1e7153[_0x4303('0x1b')]),_0x1e7153);queues['musiconholdstop'](_0x1e7153);calls['musiconholdstop'](_0x1e7153);}catch(_0x1dadc8){utils['error'](util[_0x4303('0x17')](_0x4303('0x2b'),_0x1e7153['uniqueid']),_0x1dadc8);}});ami['on']('newstate',function(_0x995c87){try{utils[_0x4303('0x16')](util[_0x4303('0x17')]('[%s][index][newstate]',_0x995c87[_0x4303('0x1b')]),_0x995c87);calls[_0x4303('0x2c')](_0x995c87);recordings[_0x4303('0x2c')](_0x995c87);}catch(_0x485fb9){utils['error'](util[_0x4303('0x17')]('[%s][index][newstate]',_0x995c87['uniqueid']),_0x485fb9);}});ami['on'](_0x4303('0x2d'),function(_0xd702de){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x2e'),_0xd702de[_0x4303('0x1b')]),_0xd702de);calls[_0x4303('0x2d')](_0xd702de);recordings[_0x4303('0x2d')](_0xd702de);dials[_0x4303('0x2d')](_0xd702de);agents[_0x4303('0x2d')](_0xd702de);queues[_0x4303('0x2d')](_0xd702de);}catch(_0x1af65e){utils[_0x4303('0x12')](util[_0x4303('0x17')](_0x4303('0x2e'),_0xd702de[_0x4303('0x1b')]),_0x1af65e);}});ami['on']('cdr',function(_0x34abc1){try{utils[_0x4303('0x16')](util['format'](_0x4303('0x2f'),_0x34abc1[_0x4303('0x1b')]),_0x34abc1);members[_0x4303('0x30')](_0x34abc1);}catch(_0x340820){utils[_0x4303('0x12')](util[_0x4303('0x17')]('[%s][index][cdr]',_0x34abc1[_0x4303('0x1b')]),_0x340820);}});ami['on']('blindtransfer',function(_0x1266c5){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x31'),_0x1266c5[_0x4303('0x1b')]),_0x1266c5);queues[_0x4303('0x32')](_0x1266c5);agents[_0x4303('0x32')](_0x1266c5);transfers['blindtransfer'](_0x1266c5);}catch(_0x426480){utils[_0x4303('0x12')](util[_0x4303('0x17')](_0x4303('0x31'),_0x1266c5[_0x4303('0x1b')]),_0x426480);}});ami['on']('attendedtransfer',function(_0x151a2c){try{utils[_0x4303('0x16')](util['format'](_0x4303('0x33'),_0x151a2c['origtransfereruniqueid']),_0x151a2c);queues[_0x4303('0x34')](_0x151a2c);transfers[_0x4303('0x34')](_0x151a2c);agents['attendedtransfer'](_0x151a2c);calls['attendedtransfer'](_0x151a2c);}catch(_0x52799e){utils['error'](util[_0x4303('0x17')](_0x4303('0x33'),_0x151a2c[_0x4303('0x35')]),_0x52799e);}});ami['on'](_0x4303('0x36'),function(_0x51a451){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x37'),_0x51a451[_0x4303('0x1b')]),_0x51a451);queues[_0x4303('0x36')](_0x51a451);recordings[_0x4303('0x36')](_0x51a451);calls[_0x4303('0x36')](_0x51a451);dials[_0x4303('0x36')](_0x51a451);}catch(_0x1496c9){utils[_0x4303('0x12')](util[_0x4303('0x17')](_0x4303('0x37'),_0x51a451[_0x4303('0x1b')]),_0x1496c9);}});ami['on'](_0x4303('0x38'),function(_0x22db57){try{utils[_0x4303('0x16')](util['format'](_0x4303('0x39'),_0x22db57[_0x4303('0x1b')]),_0x22db57);calls[_0x4303('0x38')](_0x22db57);recordings[_0x4303('0x38')](_0x22db57);dials['newexten'](_0x22db57);}catch(_0x45d942){utils['error'](util[_0x4303('0x17')](_0x4303('0x39'),_0x22db57[_0x4303('0x1b')]),_0x45d942);}});ami['on'](_0x4303('0x3a'),function(_0x2242a2){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x3b'),_0x2242a2[_0x4303('0x1b')]),_0x2242a2);calls[_0x4303('0x3a')](_0x2242a2);recordings[_0x4303('0x3a')](_0x2242a2);}catch(_0x16ae20){utils['error'](util[_0x4303('0x17')](_0x4303('0x3b'),_0x2242a2[_0x4303('0x1b')]),_0x16ae20);}});ami['on']('dialbegin',function(_0x4d3b6a){try{utils['debug'](util[_0x4303('0x17')](_0x4303('0x3c'),_0x4d3b6a[_0x4303('0x1b')]),_0x4d3b6a);dials['dialbegin'](_0x4d3b6a);}catch(_0x20de3a){utils[_0x4303('0x12')](util[_0x4303('0x17')]('[%s]dialbegin',_0x4d3b6a[_0x4303('0x1b')]),_0x20de3a);}});ami['on'](_0x4303('0x3d'),function(_0x4e7039){try{utils[_0x4303('0x16')](util[_0x4303('0x17')](_0x4303('0x3e'),_0x4e7039[_0x4303('0x1b')]),_0x4e7039);dials[_0x4303('0x3d')](_0x4e7039);}catch(_0x31c705){utils[_0x4303('0x12')](util[_0x4303('0x17')](_0x4303('0x3e'),_0x4e7039[_0x4303('0x1b')]),_0x31c705);}});}
\ No newline at end of file