Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / services / xdr / index.js
index 33ab562..522fc64 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x43a1=['[%s][index][blindtransfer]','attendedtransfer','[%s][index][attendedtransfer]','origtransfereruniqueid','varset','[%s][index][varset]','newexten','[%s][index][newexten]','[%s][index][newchannel]','newchannel','dialbegin','[%s]dialbegin','[%s][index][dialend]','dialend','asterisk-manager','../../config/environment','./utils','util','asterisk','username','password','keepConnected','xdr','disabled','info','XDR\x20DISABLED','./agents.controller','./calls.controller','./members.controller','./dials.controller','./core.controller','connect','shutdown','fullybooted','error','close','managerevent','devicestatechange','debug','device','format','[%s][index][devicestatechange]','agentcalled','[%s][index][agentcalled]','uniqueid','[%s][index][agentringnoanswer]','agentringnoanswer','agentconnect','[%s][index][agentconnect]','agentcomplete','[%s][index][agentcomplete]','queuecallerabandon','queuecallerjoin','[%s][index][queuecallerjoin]','queuecallerleave','[%s][index][queuecallerleave]','musiconholdstart','[%s][index][musiconholdstart]','musiconholdstop','[%s][index][musiconholdstop]','newstate','[%s][index][newstate]','hangup','[%s][index][hangup]','cdr','[%s][index][cdr]','blindtransfer'];(function(_0x5921fe,_0x10318f){var _0x514bfb=function(_0x9e3355){while(--_0x9e3355){_0x5921fe['push'](_0x5921fe['shift']());}};_0x514bfb(++_0x10318f);}(_0x43a1,0x94));var _0x143a=function(_0x2e5a33,_0x2e768c){_0x2e5a33=_0x2e5a33-0x0;var _0x1f5221=_0x43a1[_0x2e5a33];return _0x1f5221;};var AsteriskManager=require(_0x143a('0x0'));var config=require(_0x143a('0x1'));var utils=require(_0x143a('0x2'));var util=require(_0x143a('0x3'));var ami=new AsteriskManager(config[_0x143a('0x4')]['port'],config[_0x143a('0x4')]['ip'],config[_0x143a('0x4')][_0x143a('0x5')],config[_0x143a('0x4')][_0x143a('0x6')],!![]);ami[_0x143a('0x7')]();if(config[_0x143a('0x8')]&&config[_0x143a('0x8')][_0x143a('0x9')]){utils[_0x143a('0xa')](_0x143a('0xb'));}else{var agents=require(_0x143a('0xc'));var calls=require(_0x143a('0xd'));var queues=require('./queues.controller');var recordings=require('./recordings.controller');var members=require(_0x143a('0xe'));var dials=require(_0x143a('0xf'));var transfers=require('./transfers.controller');var core=require(_0x143a('0x10'));ami['on'](_0x143a('0x11'),core['connect']);ami['on']('shutdown',core[_0x143a('0x12')]);ami['on'](_0x143a('0x13'),core[_0x143a('0x13')]);ami['on'](_0x143a('0x14'),core[_0x143a('0x14')]);ami['on'](_0x143a('0x15'),core['close']);ami['on'](_0x143a('0x16'),core['managerevent']);ami['on'](_0x143a('0x17'),function(_0x17f6ac){try{utils[_0x143a('0x18')](util['format']('[%s][index][devicestatechange]',_0x17f6ac[_0x143a('0x19')]),_0x17f6ac);members[_0x143a('0x17')](_0x17f6ac);}catch(_0x51b7c6){utils[_0x143a('0x14')](util[_0x143a('0x1a')](_0x143a('0x1b'),_0x17f6ac[_0x143a('0x19')]),_0x51b7c6);}});ami['on'](_0x143a('0x1c'),function(_0x43e54a){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')](_0x143a('0x1d'),_0x43e54a[_0x143a('0x1e')]),_0x43e54a);agents[_0x143a('0x1c')](_0x43e54a);}catch(_0x202b29){utils[_0x143a('0x14')](util[_0x143a('0x1a')]('[%s][index][agentcalled]',_0x43e54a['uniqueid']),_0x202b29);}});ami['on']('agentringnoanswer',function(_0x5e3d2f){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')](_0x143a('0x1f'),_0x5e3d2f[_0x143a('0x1e')]),_0x5e3d2f);agents[_0x143a('0x20')](_0x5e3d2f);}catch(_0x46deb9){utils[_0x143a('0x14')](util[_0x143a('0x1a')](_0x143a('0x1f'),_0x5e3d2f['uniqueid']),_0x46deb9);}});ami['on']('agentconnect',function(_0x18e361){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')]('[%s][index][agentconnect]',_0x18e361[_0x143a('0x1e')]),_0x18e361);agents[_0x143a('0x21')](_0x18e361);queues['agentconnect'](_0x18e361);}catch(_0x41900e){utils['error'](util['format'](_0x143a('0x22'),_0x18e361[_0x143a('0x1e')]),_0x41900e);}});ami['on'](_0x143a('0x23'),function(_0x343972){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')](_0x143a('0x24'),_0x343972[_0x143a('0x1e')]),_0x343972);agents['agentcomplete'](_0x343972);queues[_0x143a('0x23')](_0x343972);members[_0x143a('0x23')](_0x343972);}catch(_0x3ab3c6){utils['error'](util[_0x143a('0x1a')](_0x143a('0x24'),_0x343972[_0x143a('0x1e')]),_0x3ab3c6);}});ami['on'](_0x143a('0x25'),function(_0x199dec){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')]('[%s][index][queuecallerabandon]',_0x199dec[_0x143a('0x1e')]),_0x199dec);agents[_0x143a('0x25')](_0x199dec);queues[_0x143a('0x25')](_0x199dec);}catch(_0x4973a3){utils[_0x143a('0x14')](util[_0x143a('0x1a')]('[%s][index][queuecallerabandon]',_0x199dec[_0x143a('0x1e')]),_0x4973a3);}});ami['on'](_0x143a('0x26'),function(_0x10922d){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')]('[%s][index][queuecallerjoin]',_0x10922d[_0x143a('0x1e')]),_0x10922d);queues['queuecallerjoin'](_0x10922d);recordings[_0x143a('0x26')](_0x10922d);}catch(_0x42c372){utils[_0x143a('0x14')](util[_0x143a('0x1a')](_0x143a('0x27'),_0x10922d[_0x143a('0x1e')]),_0x42c372);}});ami['on'](_0x143a('0x28'),function(_0x1f7160){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')](_0x143a('0x29'),_0x1f7160[_0x143a('0x1e')]),_0x1f7160);queues['queuecallerleave'](_0x1f7160);}catch(_0x5a822a){utils[_0x143a('0x14')](util[_0x143a('0x1a')](_0x143a('0x29'),_0x1f7160[_0x143a('0x1e')]),_0x5a822a);}});ami['on'](_0x143a('0x2a'),function(_0x4a8b54){try{utils[_0x143a('0x18')](util['format'](_0x143a('0x2b'),_0x4a8b54[_0x143a('0x1e')]),_0x4a8b54);queues[_0x143a('0x2a')](_0x4a8b54);calls[_0x143a('0x2a')](_0x4a8b54);}catch(_0x4d5e96){utils[_0x143a('0x14')](util[_0x143a('0x1a')]('[%s][index][musiconholdstart]',_0x4a8b54['uniqueid']),_0x4d5e96);}});ami['on'](_0x143a('0x2c'),function(_0x344dca){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')](_0x143a('0x2d'),_0x344dca[_0x143a('0x1e')]),_0x344dca);queues[_0x143a('0x2c')](_0x344dca);calls['musiconholdstop'](_0x344dca);}catch(_0x174172){utils[_0x143a('0x14')](util[_0x143a('0x1a')]('[%s][index][musiconholdstop]',_0x344dca[_0x143a('0x1e')]),_0x174172);}});ami['on'](_0x143a('0x2e'),function(_0x107dbd){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')](_0x143a('0x2f'),_0x107dbd[_0x143a('0x1e')]),_0x107dbd);calls[_0x143a('0x2e')](_0x107dbd);recordings[_0x143a('0x2e')](_0x107dbd);}catch(_0x244304){utils[_0x143a('0x14')](util[_0x143a('0x1a')](_0x143a('0x2f'),_0x107dbd['uniqueid']),_0x244304);}});ami['on'](_0x143a('0x30'),function(_0x4a6bac){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')](_0x143a('0x31'),_0x4a6bac[_0x143a('0x1e')]),_0x4a6bac);calls[_0x143a('0x30')](_0x4a6bac);recordings[_0x143a('0x30')](_0x4a6bac);dials[_0x143a('0x30')](_0x4a6bac);agents[_0x143a('0x30')](_0x4a6bac);queues[_0x143a('0x30')](_0x4a6bac);}catch(_0x322909){utils[_0x143a('0x14')](util['format'](_0x143a('0x31'),_0x4a6bac[_0x143a('0x1e')]),_0x322909);}});ami['on'](_0x143a('0x32'),function(_0x53a037){try{utils[_0x143a('0x18')](util['format'](_0x143a('0x33'),_0x53a037[_0x143a('0x1e')]),_0x53a037);members[_0x143a('0x32')](_0x53a037);}catch(_0x5dae6d){utils[_0x143a('0x14')](util['format'](_0x143a('0x33'),_0x53a037[_0x143a('0x1e')]),_0x5dae6d);}});ami['on'](_0x143a('0x34'),function(_0x141d85){try{utils[_0x143a('0x18')](util['format'](_0x143a('0x35'),_0x141d85[_0x143a('0x1e')]),_0x141d85);queues['blindtransfer'](_0x141d85);agents['blindtransfer'](_0x141d85);transfers[_0x143a('0x34')](_0x141d85);}catch(_0x95cbb1){utils['error'](util[_0x143a('0x1a')](_0x143a('0x35'),_0x141d85[_0x143a('0x1e')]),_0x95cbb1);}});ami['on'](_0x143a('0x36'),function(_0x586b9f){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')](_0x143a('0x37'),_0x586b9f['origtransfereruniqueid']),_0x586b9f);queues[_0x143a('0x36')](_0x586b9f);transfers['attendedtransfer'](_0x586b9f);agents[_0x143a('0x36')](_0x586b9f);calls['attendedtransfer'](_0x586b9f);}catch(_0x130cf1){utils['error'](util[_0x143a('0x1a')](_0x143a('0x37'),_0x586b9f[_0x143a('0x38')]),_0x130cf1);}});ami['on'](_0x143a('0x39'),function(_0x2a5794){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')](_0x143a('0x3a'),_0x2a5794[_0x143a('0x1e')]),_0x2a5794);queues[_0x143a('0x39')](_0x2a5794);recordings['varset'](_0x2a5794);calls['varset'](_0x2a5794);dials[_0x143a('0x39')](_0x2a5794);}catch(_0x266a49){utils['error'](util[_0x143a('0x1a')](_0x143a('0x3a'),_0x2a5794[_0x143a('0x1e')]),_0x266a49);}});ami['on'](_0x143a('0x3b'),function(_0x368b95){try{utils[_0x143a('0x18')](util['format'](_0x143a('0x3c'),_0x368b95[_0x143a('0x1e')]),_0x368b95);calls['newexten'](_0x368b95);recordings[_0x143a('0x3b')](_0x368b95);dials[_0x143a('0x3b')](_0x368b95);}catch(_0x3d3d4d){utils[_0x143a('0x14')](util[_0x143a('0x1a')]('[%s][index][newexten]',_0x368b95['uniqueid']),_0x3d3d4d);}});ami['on']('newchannel',function(_0x270052){try{utils['debug'](util['format'](_0x143a('0x3d'),_0x270052[_0x143a('0x1e')]),_0x270052);calls[_0x143a('0x3e')](_0x270052);recordings[_0x143a('0x3e')](_0x270052);}catch(_0x32b196){utils['error'](util[_0x143a('0x1a')](_0x143a('0x3d'),_0x270052[_0x143a('0x1e')]),_0x32b196);}});ami['on'](_0x143a('0x3f'),function(_0x2770db){try{utils[_0x143a('0x18')](util[_0x143a('0x1a')]('[%s][index][dialbegin]',_0x2770db['uniqueid']),_0x2770db);dials[_0x143a('0x3f')](_0x2770db);}catch(_0x56aca7){utils[_0x143a('0x14')](util[_0x143a('0x1a')](_0x143a('0x40'),_0x2770db[_0x143a('0x1e')]),_0x56aca7);}});ami['on']('dialend',function(_0xcf3962){try{utils[_0x143a('0x18')](util['format'](_0x143a('0x41'),_0xcf3962[_0x143a('0x1e')]),_0xcf3962);dials[_0x143a('0x42')](_0xcf3962);}catch(_0x58ef0d){utils[_0x143a('0x14')](util['format']('[%s][index][dialend]',_0xcf3962[_0x143a('0x1e')]),_0x58ef0d);}});}
\ No newline at end of file
+var _0x7343=['username','password','info','XDR\x20DISABLED','./queues.controller','./recordings.controller','./members.controller','./dials.controller','./transfers.controller','./core.controller','connect','shutdown','fullybooted','error','close','managerevent','format','device','devicestatechange','agentcalled','[%s][index][agentcalled]','uniqueid','agentringnoanswer','debug','[%s][index][agentringnoanswer]','agentconnect','[%s][index][agentconnect]','agentcomplete','[%s][index][agentcomplete]','queuecallerabandon','[%s][index][queuecallerabandon]','queuecallerjoin','[%s][index][queuecallerjoin]','queuecallerleave','[%s][index][queuecallerleave]','musiconholdstart','musiconholdstop','[%s][index][musiconholdstop]','newstate','[%s][index][newstate]','hangup','[%s][index][hangup]','[%s][index][cdr]','cdr','blindtransfer','[%s][index][blindtransfer]','attendedtransfer','[%s][index][attendedtransfer]','origtransfereruniqueid','varset','[%s][index][varset]','[%s][index][newexten]','newexten','newchannel','[%s][index][newchannel]','dialbegin','[%s][index][dialbegin]','[%s]dialbegin','dialend','[%s][index][dialend]','./utils','util','asterisk','port'];(function(_0x2338fa,_0x80579a){var _0x42df9b=function(_0x13fe56){while(--_0x13fe56){_0x2338fa['push'](_0x2338fa['shift']());}};_0x42df9b(++_0x80579a);}(_0x7343,0xbc));var _0x3734=function(_0x1687fa,_0x33c7eb){_0x1687fa=_0x1687fa-0x0;var _0x201deb=_0x7343[_0x1687fa];return _0x201deb;};var AsteriskManager=require('asterisk-manager');var config=require('../../config/environment');var utils=require(_0x3734('0x0'));var util=require(_0x3734('0x1'));var ami=new AsteriskManager(config[_0x3734('0x2')][_0x3734('0x3')],config['asterisk']['ip'],config[_0x3734('0x2')][_0x3734('0x4')],config[_0x3734('0x2')][_0x3734('0x5')],!![]);ami['keepConnected']();if(config['xdr']&&config['xdr']['disabled']){utils[_0x3734('0x6')](_0x3734('0x7'));}else{var agents=require('./agents.controller');var calls=require('./calls.controller');var queues=require(_0x3734('0x8'));var recordings=require(_0x3734('0x9'));var members=require(_0x3734('0xa'));var dials=require(_0x3734('0xb'));var transfers=require(_0x3734('0xc'));var core=require(_0x3734('0xd'));ami['on']('connect',core[_0x3734('0xe')]);ami['on'](_0x3734('0xf'),core['shutdown']);ami['on'](_0x3734('0x10'),core[_0x3734('0x10')]);ami['on'](_0x3734('0x11'),core[_0x3734('0x11')]);ami['on']('close',core[_0x3734('0x12')]);ami['on'](_0x3734('0x13'),core['managerevent']);ami['on']('devicestatechange',function(_0x933063){try{utils['debug'](util[_0x3734('0x14')]('[%s][index][devicestatechange]',_0x933063[_0x3734('0x15')]),_0x933063);members[_0x3734('0x16')](_0x933063);}catch(_0x291dee){utils[_0x3734('0x11')](util[_0x3734('0x14')]('[%s][index][devicestatechange]',_0x933063['device']),_0x291dee);}});ami['on'](_0x3734('0x17'),function(_0x4eca70){try{utils['debug'](util[_0x3734('0x14')](_0x3734('0x18'),_0x4eca70[_0x3734('0x19')]),_0x4eca70);agents[_0x3734('0x17')](_0x4eca70);}catch(_0x449674){utils[_0x3734('0x11')](util[_0x3734('0x14')]('[%s][index][agentcalled]',_0x4eca70[_0x3734('0x19')]),_0x449674);}});ami['on'](_0x3734('0x1a'),function(_0x2a7d59){try{utils[_0x3734('0x1b')](util['format'](_0x3734('0x1c'),_0x2a7d59[_0x3734('0x19')]),_0x2a7d59);agents['agentringnoanswer'](_0x2a7d59);}catch(_0x58892c){utils[_0x3734('0x11')](util[_0x3734('0x14')]('[%s][index][agentringnoanswer]',_0x2a7d59[_0x3734('0x19')]),_0x58892c);}});ami['on'](_0x3734('0x1d'),function(_0x48179b){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x1e'),_0x48179b[_0x3734('0x19')]),_0x48179b);agents[_0x3734('0x1d')](_0x48179b);queues[_0x3734('0x1d')](_0x48179b);}catch(_0x1efeff){utils[_0x3734('0x11')](util['format']('[%s][index][agentconnect]',_0x48179b[_0x3734('0x19')]),_0x1efeff);}});ami['on'](_0x3734('0x1f'),function(_0x18bc0c){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x20'),_0x18bc0c['uniqueid']),_0x18bc0c);agents[_0x3734('0x1f')](_0x18bc0c);queues[_0x3734('0x1f')](_0x18bc0c);members[_0x3734('0x1f')](_0x18bc0c);}catch(_0x1d10c5){utils[_0x3734('0x11')](util[_0x3734('0x14')]('[%s][index][agentcomplete]',_0x18bc0c['uniqueid']),_0x1d10c5);}});ami['on'](_0x3734('0x21'),function(_0x47f619){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x22'),_0x47f619[_0x3734('0x19')]),_0x47f619);agents[_0x3734('0x21')](_0x47f619);queues[_0x3734('0x21')](_0x47f619);}catch(_0x43330b){utils['error'](util[_0x3734('0x14')](_0x3734('0x22'),_0x47f619['uniqueid']),_0x43330b);}});ami['on'](_0x3734('0x23'),function(_0x1c1e49){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x24'),_0x1c1e49[_0x3734('0x19')]),_0x1c1e49);queues[_0x3734('0x23')](_0x1c1e49);recordings[_0x3734('0x23')](_0x1c1e49);}catch(_0x35a426){utils[_0x3734('0x11')](util['format'](_0x3734('0x24'),_0x1c1e49[_0x3734('0x19')]),_0x35a426);}});ami['on'](_0x3734('0x25'),function(_0x46e949){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x26'),_0x46e949[_0x3734('0x19')]),_0x46e949);queues[_0x3734('0x25')](_0x46e949);}catch(_0x321ede){utils[_0x3734('0x11')](util[_0x3734('0x14')](_0x3734('0x26'),_0x46e949[_0x3734('0x19')]),_0x321ede);}});ami['on'](_0x3734('0x27'),function(_0x53ea3d){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')]('[%s][index][musiconholdstart]',_0x53ea3d[_0x3734('0x19')]),_0x53ea3d);queues[_0x3734('0x27')](_0x53ea3d);calls[_0x3734('0x27')](_0x53ea3d);}catch(_0x404e5f){utils[_0x3734('0x11')](util[_0x3734('0x14')]('[%s][index][musiconholdstart]',_0x53ea3d[_0x3734('0x19')]),_0x404e5f);}});ami['on'](_0x3734('0x28'),function(_0x2c165e){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x29'),_0x2c165e['uniqueid']),_0x2c165e);queues[_0x3734('0x28')](_0x2c165e);calls['musiconholdstop'](_0x2c165e);}catch(_0x24295a){utils[_0x3734('0x11')](util[_0x3734('0x14')]('[%s][index][musiconholdstop]',_0x2c165e[_0x3734('0x19')]),_0x24295a);}});ami['on'](_0x3734('0x2a'),function(_0x5122c5){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')]('[%s][index][newstate]',_0x5122c5['uniqueid']),_0x5122c5);calls[_0x3734('0x2a')](_0x5122c5);recordings['newstate'](_0x5122c5);}catch(_0x2b87b6){utils[_0x3734('0x11')](util[_0x3734('0x14')](_0x3734('0x2b'),_0x5122c5[_0x3734('0x19')]),_0x2b87b6);}});ami['on'](_0x3734('0x2c'),function(_0x2ed2c3){try{utils[_0x3734('0x1b')](util['format'](_0x3734('0x2d'),_0x2ed2c3[_0x3734('0x19')]),_0x2ed2c3);calls[_0x3734('0x2c')](_0x2ed2c3);recordings[_0x3734('0x2c')](_0x2ed2c3);dials[_0x3734('0x2c')](_0x2ed2c3);agents[_0x3734('0x2c')](_0x2ed2c3);queues['hangup'](_0x2ed2c3);}catch(_0x5af123){utils['error'](util[_0x3734('0x14')](_0x3734('0x2d'),_0x2ed2c3[_0x3734('0x19')]),_0x5af123);}});ami['on']('cdr',function(_0x5da86d){try{utils['debug'](util[_0x3734('0x14')](_0x3734('0x2e'),_0x5da86d['uniqueid']),_0x5da86d);members[_0x3734('0x2f')](_0x5da86d);}catch(_0x529a54){utils[_0x3734('0x11')](util[_0x3734('0x14')]('[%s][index][cdr]',_0x5da86d['uniqueid']),_0x529a54);}});ami['on'](_0x3734('0x30'),function(_0x40504b){try{utils['debug'](util[_0x3734('0x14')]('[%s][index][blindtransfer]',_0x40504b[_0x3734('0x19')]),_0x40504b);queues['blindtransfer'](_0x40504b);agents['blindtransfer'](_0x40504b);transfers[_0x3734('0x30')](_0x40504b);recordings[_0x3734('0x30')](_0x40504b);}catch(_0x5d3ea0){utils['error'](util[_0x3734('0x14')](_0x3734('0x31'),_0x40504b['uniqueid']),_0x5d3ea0);}});ami['on'](_0x3734('0x32'),function(_0x3b1576){try{utils[_0x3734('0x1b')](util['format'](_0x3734('0x33'),_0x3b1576[_0x3734('0x34')]),_0x3b1576);queues['attendedtransfer'](_0x3b1576);transfers['attendedtransfer'](_0x3b1576);agents['attendedtransfer'](_0x3b1576);calls[_0x3734('0x32')](_0x3b1576);}catch(_0x1a44dd){utils['error'](util['format'](_0x3734('0x33'),_0x3b1576[_0x3734('0x34')]),_0x1a44dd);}});ami['on'](_0x3734('0x35'),function(_0x50f554){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x36'),_0x50f554['uniqueid']),_0x50f554);queues[_0x3734('0x35')](_0x50f554);recordings[_0x3734('0x35')](_0x50f554);calls[_0x3734('0x35')](_0x50f554);dials[_0x3734('0x35')](_0x50f554);}catch(_0x54a260){utils[_0x3734('0x11')](util['format'](_0x3734('0x36'),_0x50f554[_0x3734('0x19')]),_0x54a260);}});ami['on']('newexten',function(_0x155ae1){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x37'),_0x155ae1[_0x3734('0x19')]),_0x155ae1);calls[_0x3734('0x38')](_0x155ae1);recordings[_0x3734('0x38')](_0x155ae1);dials['newexten'](_0x155ae1);}catch(_0x4b2f8f){utils[_0x3734('0x11')](util[_0x3734('0x14')]('[%s][index][newexten]',_0x155ae1[_0x3734('0x19')]),_0x4b2f8f);}});ami['on'](_0x3734('0x39'),function(_0x4eb1df){try{utils['debug'](util['format'](_0x3734('0x3a'),_0x4eb1df[_0x3734('0x19')]),_0x4eb1df);calls[_0x3734('0x39')](_0x4eb1df);recordings['newchannel'](_0x4eb1df);}catch(_0x5b7274){utils['error'](util[_0x3734('0x14')](_0x3734('0x3a'),_0x4eb1df['uniqueid']),_0x5b7274);}});ami['on'](_0x3734('0x3b'),function(_0x492d52){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x3c'),_0x492d52['uniqueid']),_0x492d52);dials[_0x3734('0x3b')](_0x492d52);}catch(_0x29ceb3){utils[_0x3734('0x11')](util[_0x3734('0x14')](_0x3734('0x3d'),_0x492d52[_0x3734('0x19')]),_0x29ceb3);}});ami['on'](_0x3734('0x3e'),function(_0x244b44){try{utils[_0x3734('0x1b')](util[_0x3734('0x14')](_0x3734('0x3f'),_0x244b44['uniqueid']),_0x244b44);dials[_0x3734('0x3e')](_0x244b44);}catch(_0x346c99){utils['error'](util['format'](_0x3734('0x3f'),_0x244b44[_0x3734('0x19')]),_0x346c99);}});}
\ No newline at end of file