Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / services / xdr / index.js
index 460c7e9..87866e9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x01cf=['close','managerevent','debug','format','device','devicestatechange','[%s][index][devicestatechange]','agentcalled','[%s][index][agentcalled]','agentringnoanswer','[%s][index][agentringnoanswer]','uniqueid','agentconnect','[%s][index][agentconnect]','agentcomplete','[%s][index][agentcomplete]','queuecallerabandon','[%s][index][queuecallerabandon]','[%s][index][queuecallerjoin]','queuecallerjoin','queuecallerleave','[%s][index][queuecallerleave]','musiconholdstart','[%s][index][musiconholdstart]','[%s][index][musiconholdstop]','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','[%s][index][newchannel]','newchannel','[%s][index][dialbegin]','dialbegin','[%s]dialbegin','dialend','[%s][index][dialend]','asterisk-manager','../../config/environment','./utils','util','asterisk','port','password','keepConnected','xdr','disabled','XDR\x20DISABLED','./calls.controller','./queues.controller','./recordings.controller','./members.controller','./transfers.controller','./core.controller','connect','shutdown','fullybooted','error'];(function(_0x1d8a99,_0x29e4b3){var _0x408677=function(_0x3d18a2){while(--_0x3d18a2){_0x1d8a99['push'](_0x1d8a99['shift']());}};_0x408677(++_0x29e4b3);}(_0x01cf,0xff));var _0xf01c=function(_0x58286d,_0x467c8d){_0x58286d=_0x58286d-0x0;var _0x313959=_0x01cf[_0x58286d];return _0x313959;};var AsteriskManager=require(_0xf01c('0x0'));var config=require(_0xf01c('0x1'));var utils=require(_0xf01c('0x2'));var util=require(_0xf01c('0x3'));var ami=new AsteriskManager(config[_0xf01c('0x4')][_0xf01c('0x5')],config[_0xf01c('0x4')]['ip'],config[_0xf01c('0x4')]['username'],config['asterisk'][_0xf01c('0x6')],!![]);ami[_0xf01c('0x7')]();if(config[_0xf01c('0x8')]&&config[_0xf01c('0x8')][_0xf01c('0x9')]){utils['info'](_0xf01c('0xa'));}else{var agents=require('./agents.controller');var calls=require(_0xf01c('0xb'));var queues=require(_0xf01c('0xc'));var recordings=require(_0xf01c('0xd'));var members=require(_0xf01c('0xe'));var dials=require('./dials.controller');var transfers=require(_0xf01c('0xf'));var core=require(_0xf01c('0x10'));ami['on'](_0xf01c('0x11'),core[_0xf01c('0x11')]);ami['on'](_0xf01c('0x12'),core[_0xf01c('0x12')]);ami['on']('fullybooted',core[_0xf01c('0x13')]);ami['on'](_0xf01c('0x14'),core[_0xf01c('0x14')]);ami['on'](_0xf01c('0x15'),core['close']);ami['on'](_0xf01c('0x16'),core[_0xf01c('0x16')]);ami['on']('devicestatechange',function(_0x3ca5be){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')]('[%s][index][devicestatechange]',_0x3ca5be[_0xf01c('0x19')]),_0x3ca5be);members[_0xf01c('0x1a')](_0x3ca5be);}catch(_0x2ed57b){utils['error'](util[_0xf01c('0x18')](_0xf01c('0x1b'),_0x3ca5be['device']),_0x2ed57b);}});ami['on'](_0xf01c('0x1c'),function(_0x2255e9){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x1d'),_0x2255e9['uniqueid']),_0x2255e9);agents[_0xf01c('0x1c')](_0x2255e9);}catch(_0x2cc9a3){utils[_0xf01c('0x14')](util[_0xf01c('0x18')](_0xf01c('0x1d'),_0x2255e9['uniqueid']),_0x2cc9a3);}});ami['on'](_0xf01c('0x1e'),function(_0x45e9e1){try{utils['debug'](util[_0xf01c('0x18')]('[%s][index][agentringnoanswer]',_0x45e9e1['uniqueid']),_0x45e9e1);agents['agentringnoanswer'](_0x45e9e1);}catch(_0x28d957){utils[_0xf01c('0x14')](util[_0xf01c('0x18')](_0xf01c('0x1f'),_0x45e9e1[_0xf01c('0x20')]),_0x28d957);}});ami['on'](_0xf01c('0x21'),function(_0x3eb1c6){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x22'),_0x3eb1c6[_0xf01c('0x20')]),_0x3eb1c6);agents[_0xf01c('0x21')](_0x3eb1c6);queues[_0xf01c('0x21')](_0x3eb1c6);}catch(_0x578b49){utils[_0xf01c('0x14')](util[_0xf01c('0x18')]('[%s][index][agentconnect]',_0x3eb1c6[_0xf01c('0x20')]),_0x578b49);}});ami['on'](_0xf01c('0x23'),function(_0x593a02){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x24'),_0x593a02['uniqueid']),_0x593a02);agents[_0xf01c('0x23')](_0x593a02);queues[_0xf01c('0x23')](_0x593a02);members[_0xf01c('0x23')](_0x593a02);}catch(_0x56ce53){utils['error'](util[_0xf01c('0x18')]('[%s][index][agentcomplete]',_0x593a02[_0xf01c('0x20')]),_0x56ce53);}});ami['on']('queuecallerabandon',function(_0x9f56c3){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')]('[%s][index][queuecallerabandon]',_0x9f56c3[_0xf01c('0x20')]),_0x9f56c3);agents[_0xf01c('0x25')](_0x9f56c3);queues[_0xf01c('0x25')](_0x9f56c3);}catch(_0x3a5d00){utils[_0xf01c('0x14')](util[_0xf01c('0x18')](_0xf01c('0x26'),_0x9f56c3['uniqueid']),_0x3a5d00);}});ami['on']('queuecallerjoin',function(_0x13f7ef){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x27'),_0x13f7ef[_0xf01c('0x20')]),_0x13f7ef);queues[_0xf01c('0x28')](_0x13f7ef);recordings[_0xf01c('0x28')](_0x13f7ef);}catch(_0x26ccc0){utils[_0xf01c('0x14')](util[_0xf01c('0x18')](_0xf01c('0x27'),_0x13f7ef[_0xf01c('0x20')]),_0x26ccc0);}});ami['on'](_0xf01c('0x29'),function(_0x605d19){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')]('[%s][index][queuecallerleave]',_0x605d19[_0xf01c('0x20')]),_0x605d19);queues[_0xf01c('0x29')](_0x605d19);}catch(_0x1bd5fb){utils[_0xf01c('0x14')](util['format'](_0xf01c('0x2a'),_0x605d19['uniqueid']),_0x1bd5fb);}});ami['on'](_0xf01c('0x2b'),function(_0x29467d){try{utils[_0xf01c('0x17')](util['format'](_0xf01c('0x2c'),_0x29467d[_0xf01c('0x20')]),_0x29467d);queues[_0xf01c('0x2b')](_0x29467d);calls[_0xf01c('0x2b')](_0x29467d);}catch(_0x53e8b6){utils[_0xf01c('0x14')](util['format'](_0xf01c('0x2c'),_0x29467d[_0xf01c('0x20')]),_0x53e8b6);}});ami['on']('musiconholdstop',function(_0x10b190){try{utils['debug'](util[_0xf01c('0x18')](_0xf01c('0x2d'),_0x10b190[_0xf01c('0x20')]),_0x10b190);queues[_0xf01c('0x2e')](_0x10b190);calls['musiconholdstop'](_0x10b190);}catch(_0x2b5c53){utils['error'](util[_0xf01c('0x18')](_0xf01c('0x2d'),_0x10b190[_0xf01c('0x20')]),_0x2b5c53);}});ami['on'](_0xf01c('0x2f'),function(_0x1b5ad1){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x30'),_0x1b5ad1[_0xf01c('0x20')]),_0x1b5ad1);calls['newstate'](_0x1b5ad1);recordings[_0xf01c('0x2f')](_0x1b5ad1);}catch(_0x2c73fe){utils[_0xf01c('0x14')](util['format'](_0xf01c('0x30'),_0x1b5ad1[_0xf01c('0x20')]),_0x2c73fe);}});ami['on'](_0xf01c('0x31'),function(_0x2782cd){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')]('[%s][index][hangup]',_0x2782cd[_0xf01c('0x20')]),_0x2782cd);calls['hangup'](_0x2782cd);recordings[_0xf01c('0x31')](_0x2782cd);dials[_0xf01c('0x31')](_0x2782cd);agents[_0xf01c('0x31')](_0x2782cd);queues['hangup'](_0x2782cd);}catch(_0x4afc3d){utils['error'](util[_0xf01c('0x18')](_0xf01c('0x32'),_0x2782cd['uniqueid']),_0x4afc3d);}});ami['on'](_0xf01c('0x33'),function(_0x41be3f){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x34'),_0x41be3f[_0xf01c('0x20')]),_0x41be3f);members[_0xf01c('0x33')](_0x41be3f);}catch(_0x4a2a9e){utils['error'](util['format'](_0xf01c('0x34'),_0x41be3f[_0xf01c('0x20')]),_0x4a2a9e);}});ami['on'](_0xf01c('0x35'),function(_0x12d75c){try{utils['debug'](util[_0xf01c('0x18')]('[%s][index][blindtransfer]',_0x12d75c[_0xf01c('0x20')]),_0x12d75c);queues[_0xf01c('0x35')](_0x12d75c);agents[_0xf01c('0x35')](_0x12d75c);transfers[_0xf01c('0x35')](_0x12d75c);}catch(_0x594b20){utils[_0xf01c('0x14')](util[_0xf01c('0x18')](_0xf01c('0x36'),_0x12d75c['uniqueid']),_0x594b20);}});ami['on'](_0xf01c('0x37'),function(_0xaebd11){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x38'),_0xaebd11['origtransfereruniqueid']),_0xaebd11);queues[_0xf01c('0x37')](_0xaebd11);transfers[_0xf01c('0x37')](_0xaebd11);agents[_0xf01c('0x37')](_0xaebd11);calls['attendedtransfer'](_0xaebd11);}catch(_0x546443){utils[_0xf01c('0x14')](util[_0xf01c('0x18')](_0xf01c('0x38'),_0xaebd11[_0xf01c('0x39')]),_0x546443);}});ami['on'](_0xf01c('0x3a'),function(_0x3dc5cc){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')]('[%s][index][varset]',_0x3dc5cc[_0xf01c('0x20')]),_0x3dc5cc);queues[_0xf01c('0x3a')](_0x3dc5cc);recordings['varset'](_0x3dc5cc);calls[_0xf01c('0x3a')](_0x3dc5cc);dials[_0xf01c('0x3a')](_0x3dc5cc);}catch(_0x276cde){utils[_0xf01c('0x14')](util['format'](_0xf01c('0x3b'),_0x3dc5cc['uniqueid']),_0x276cde);}});ami['on']('newexten',function(_0x1cca7d){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x3c'),_0x1cca7d[_0xf01c('0x20')]),_0x1cca7d);calls[_0xf01c('0x3d')](_0x1cca7d);recordings[_0xf01c('0x3d')](_0x1cca7d);dials['newexten'](_0x1cca7d);}catch(_0x3b410d){utils[_0xf01c('0x14')](util[_0xf01c('0x18')](_0xf01c('0x3c'),_0x1cca7d[_0xf01c('0x20')]),_0x3b410d);}});ami['on']('newchannel',function(_0x795380){try{utils[_0xf01c('0x17')](util['format'](_0xf01c('0x3e'),_0x795380[_0xf01c('0x20')]),_0x795380);calls[_0xf01c('0x3f')](_0x795380);recordings['newchannel'](_0x795380);}catch(_0x447608){utils['error'](util[_0xf01c('0x18')]('[%s][index][newchannel]',_0x795380[_0xf01c('0x20')]),_0x447608);}});ami['on']('dialbegin',function(_0x26dafc){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x40'),_0x26dafc['uniqueid']),_0x26dafc);dials[_0xf01c('0x41')](_0x26dafc);}catch(_0x5722ea){utils[_0xf01c('0x14')](util[_0xf01c('0x18')](_0xf01c('0x42'),_0x26dafc[_0xf01c('0x20')]),_0x5722ea);}});ami['on'](_0xf01c('0x43'),function(_0x288463){try{utils[_0xf01c('0x17')](util[_0xf01c('0x18')](_0xf01c('0x44'),_0x288463[_0xf01c('0x20')]),_0x288463);dials[_0xf01c('0x43')](_0x288463);}catch(_0x1678ce){utils[_0xf01c('0x14')](util[_0xf01c('0x18')](_0xf01c('0x44'),_0x288463['uniqueid']),_0x1678ce);}});}
\ No newline at end of file
+var _0x8cde=['XDR\x20DISABLED','./agents.controller','./calls.controller','./queues.controller','./recordings.controller','./members.controller','./dials.controller','connect','shutdown','fullybooted','error','close','managerevent','debug','format','devicestatechange','[%s][index][devicestatechange]','device','[%s][index][agentcalled]','uniqueid','agentcalled','agentringnoanswer','[%s][index][agentconnect]','agentconnect','[%s][index][agentcomplete]','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','[%s][index][blindtransfer]','attendedtransfer','origtransfereruniqueid','[%s][index][attendedtransfer]','[%s][index][varset]','varset','newexten','[%s][index][newexten]','newchannel','[%s][index][newchannel]','[%s][index][dialbegin]','[%s]dialbegin','dialend','[%s][index][dialend]','asterisk-manager','../../config/environment','./utils','asterisk','port','username','password','keepConnected','xdr'];(function(_0x5f4331,_0x1f7ee6){var _0x1cfaee=function(_0x36a231){while(--_0x36a231){_0x5f4331['push'](_0x5f4331['shift']());}};_0x1cfaee(++_0x1f7ee6);}(_0x8cde,0x13c));var _0xe8cd=function(_0x1305e3,_0x43a724){_0x1305e3=_0x1305e3-0x0;var _0x1068e9=_0x8cde[_0x1305e3];return _0x1068e9;};var AsteriskManager=require(_0xe8cd('0x0'));var config=require(_0xe8cd('0x1'));var utils=require(_0xe8cd('0x2'));var util=require('util');var ami=new AsteriskManager(config[_0xe8cd('0x3')][_0xe8cd('0x4')],config[_0xe8cd('0x3')]['ip'],config[_0xe8cd('0x3')][_0xe8cd('0x5')],config['asterisk'][_0xe8cd('0x6')],!![]);ami[_0xe8cd('0x7')]();if(config[_0xe8cd('0x8')]&&config[_0xe8cd('0x8')]['disabled']){utils['info'](_0xe8cd('0x9'));}else{var agents=require(_0xe8cd('0xa'));var calls=require(_0xe8cd('0xb'));var queues=require(_0xe8cd('0xc'));var recordings=require(_0xe8cd('0xd'));var members=require(_0xe8cd('0xe'));var dials=require(_0xe8cd('0xf'));var transfers=require('./transfers.controller');var core=require('./core.controller');ami['on'](_0xe8cd('0x10'),core[_0xe8cd('0x10')]);ami['on'](_0xe8cd('0x11'),core[_0xe8cd('0x11')]);ami['on'](_0xe8cd('0x12'),core[_0xe8cd('0x12')]);ami['on'](_0xe8cd('0x13'),core[_0xe8cd('0x13')]);ami['on'](_0xe8cd('0x14'),core[_0xe8cd('0x14')]);ami['on'](_0xe8cd('0x15'),core[_0xe8cd('0x15')]);ami['on']('devicestatechange',function(_0x436eb9){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')]('[%s][index][devicestatechange]',_0x436eb9['device']),_0x436eb9);members[_0xe8cd('0x18')](_0x436eb9);}catch(_0xa2d70f){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x19'),_0x436eb9[_0xe8cd('0x1a')]),_0xa2d70f);}});ami['on']('agentcalled',function(_0x205220){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')](_0xe8cd('0x1b'),_0x205220[_0xe8cd('0x1c')]),_0x205220);agents[_0xe8cd('0x1d')](_0x205220);}catch(_0x154c4f){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x1b'),_0x205220[_0xe8cd('0x1c')]),_0x154c4f);}});ami['on'](_0xe8cd('0x1e'),function(_0xbdda49){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')]('[%s][index][agentringnoanswer]',_0xbdda49[_0xe8cd('0x1c')]),_0xbdda49);agents['agentringnoanswer'](_0xbdda49);}catch(_0xb70f2b){utils[_0xe8cd('0x13')](util['format']('[%s][index][agentringnoanswer]',_0xbdda49[_0xe8cd('0x1c')]),_0xb70f2b);}});ami['on']('agentconnect',function(_0x21e5c9){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')](_0xe8cd('0x1f'),_0x21e5c9[_0xe8cd('0x1c')]),_0x21e5c9);agents[_0xe8cd('0x20')](_0x21e5c9);queues[_0xe8cd('0x20')](_0x21e5c9);}catch(_0xd8381f){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')]('[%s][index][agentconnect]',_0x21e5c9[_0xe8cd('0x1c')]),_0xd8381f);}});ami['on']('agentcomplete',function(_0x98f998){try{utils['debug'](util[_0xe8cd('0x17')](_0xe8cd('0x21'),_0x98f998['uniqueid']),_0x98f998);agents[_0xe8cd('0x22')](_0x98f998);queues[_0xe8cd('0x22')](_0x98f998);members[_0xe8cd('0x22')](_0x98f998);}catch(_0x21b5ff){utils['error'](util['format'](_0xe8cd('0x21'),_0x98f998['uniqueid']),_0x21b5ff);}});ami['on'](_0xe8cd('0x23'),function(_0x2000ca){try{utils['debug'](util[_0xe8cd('0x17')]('[%s][index][queuecallerabandon]',_0x2000ca['uniqueid']),_0x2000ca);agents[_0xe8cd('0x23')](_0x2000ca);queues[_0xe8cd('0x23')](_0x2000ca);}catch(_0x269841){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')]('[%s][index][queuecallerabandon]',_0x2000ca[_0xe8cd('0x1c')]),_0x269841);}});ami['on'](_0xe8cd('0x24'),function(_0x3c3534){try{utils[_0xe8cd('0x16')](util['format'](_0xe8cd('0x25'),_0x3c3534[_0xe8cd('0x1c')]),_0x3c3534);queues[_0xe8cd('0x24')](_0x3c3534);recordings[_0xe8cd('0x24')](_0x3c3534);}catch(_0x4dcae0){utils['error'](util[_0xe8cd('0x17')](_0xe8cd('0x25'),_0x3c3534[_0xe8cd('0x1c')]),_0x4dcae0);}});ami['on'](_0xe8cd('0x26'),function(_0x5b5402){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')](_0xe8cd('0x27'),_0x5b5402[_0xe8cd('0x1c')]),_0x5b5402);queues[_0xe8cd('0x26')](_0x5b5402);}catch(_0x1b8edb){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x27'),_0x5b5402[_0xe8cd('0x1c')]),_0x1b8edb);}});ami['on'](_0xe8cd('0x28'),function(_0x23ef70){try{utils[_0xe8cd('0x16')](util['format'](_0xe8cd('0x29'),_0x23ef70[_0xe8cd('0x1c')]),_0x23ef70);queues[_0xe8cd('0x28')](_0x23ef70);calls[_0xe8cd('0x28')](_0x23ef70);}catch(_0x420d09){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x29'),_0x23ef70[_0xe8cd('0x1c')]),_0x420d09);}});ami['on'](_0xe8cd('0x2a'),function(_0x33a183){try{utils['debug'](util[_0xe8cd('0x17')](_0xe8cd('0x2b'),_0x33a183['uniqueid']),_0x33a183);queues[_0xe8cd('0x2a')](_0x33a183);calls[_0xe8cd('0x2a')](_0x33a183);}catch(_0x3b2cee){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')]('[%s][index][musiconholdstop]',_0x33a183[_0xe8cd('0x1c')]),_0x3b2cee);}});ami['on'](_0xe8cd('0x2c'),function(_0x1f200e){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')](_0xe8cd('0x2d'),_0x1f200e[_0xe8cd('0x1c')]),_0x1f200e);calls[_0xe8cd('0x2c')](_0x1f200e);recordings[_0xe8cd('0x2c')](_0x1f200e);}catch(_0x142e30){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x2d'),_0x1f200e[_0xe8cd('0x1c')]),_0x142e30);}});ami['on'](_0xe8cd('0x2e'),function(_0x35ab81){try{utils[_0xe8cd('0x16')](util['format'](_0xe8cd('0x2f'),_0x35ab81[_0xe8cd('0x1c')]),_0x35ab81);calls[_0xe8cd('0x2e')](_0x35ab81);recordings[_0xe8cd('0x2e')](_0x35ab81);dials['hangup'](_0x35ab81);agents[_0xe8cd('0x2e')](_0x35ab81);queues[_0xe8cd('0x2e')](_0x35ab81);}catch(_0x12c3dc){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x2f'),_0x35ab81[_0xe8cd('0x1c')]),_0x12c3dc);}});ami['on'](_0xe8cd('0x30'),function(_0x383b51){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')]('[%s][index][cdr]',_0x383b51['uniqueid']),_0x383b51);members[_0xe8cd('0x30')](_0x383b51);}catch(_0x49871b){utils[_0xe8cd('0x13')](util['format'](_0xe8cd('0x31'),_0x383b51['uniqueid']),_0x49871b);}});ami['on'](_0xe8cd('0x32'),function(_0x403268){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')](_0xe8cd('0x33'),_0x403268[_0xe8cd('0x1c')]),_0x403268);queues[_0xe8cd('0x32')](_0x403268);agents['blindtransfer'](_0x403268);transfers[_0xe8cd('0x32')](_0x403268);}catch(_0x583ab7){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x33'),_0x403268[_0xe8cd('0x1c')]),_0x583ab7);}});ami['on'](_0xe8cd('0x34'),function(_0x46a63e){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')]('[%s][index][attendedtransfer]',_0x46a63e[_0xe8cd('0x35')]),_0x46a63e);queues[_0xe8cd('0x34')](_0x46a63e);transfers[_0xe8cd('0x34')](_0x46a63e);agents['attendedtransfer'](_0x46a63e);calls[_0xe8cd('0x34')](_0x46a63e);}catch(_0x43d285){utils['error'](util[_0xe8cd('0x17')](_0xe8cd('0x36'),_0x46a63e['origtransfereruniqueid']),_0x43d285);}});ami['on']('varset',function(_0x518f67){try{utils[_0xe8cd('0x16')](util[_0xe8cd('0x17')](_0xe8cd('0x37'),_0x518f67['uniqueid']),_0x518f67);queues[_0xe8cd('0x38')](_0x518f67);recordings[_0xe8cd('0x38')](_0x518f67);calls['varset'](_0x518f67);dials['varset'](_0x518f67);}catch(_0xd967e4){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x37'),_0x518f67[_0xe8cd('0x1c')]),_0xd967e4);}});ami['on'](_0xe8cd('0x39'),function(_0x3a4e6e){try{utils[_0xe8cd('0x16')](util['format'](_0xe8cd('0x3a'),_0x3a4e6e[_0xe8cd('0x1c')]),_0x3a4e6e);calls[_0xe8cd('0x39')](_0x3a4e6e);recordings[_0xe8cd('0x39')](_0x3a4e6e);dials[_0xe8cd('0x39')](_0x3a4e6e);}catch(_0x1ad756){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x3a'),_0x3a4e6e['uniqueid']),_0x1ad756);}});ami['on'](_0xe8cd('0x3b'),function(_0x45a49c){try{utils['debug'](util[_0xe8cd('0x17')]('[%s][index][newchannel]',_0x45a49c[_0xe8cd('0x1c')]),_0x45a49c);calls[_0xe8cd('0x3b')](_0x45a49c);recordings[_0xe8cd('0x3b')](_0x45a49c);}catch(_0x1e4cc3){utils['error'](util[_0xe8cd('0x17')](_0xe8cd('0x3c'),_0x45a49c[_0xe8cd('0x1c')]),_0x1e4cc3);}});ami['on']('dialbegin',function(_0x5e1d72){try{utils[_0xe8cd('0x16')](util['format'](_0xe8cd('0x3d'),_0x5e1d72['uniqueid']),_0x5e1d72);dials['dialbegin'](_0x5e1d72);}catch(_0x25c7a2){utils[_0xe8cd('0x13')](util['format'](_0xe8cd('0x3e'),_0x5e1d72[_0xe8cd('0x1c')]),_0x25c7a2);}});ami['on'](_0xe8cd('0x3f'),function(_0x4168ad){try{utils['debug'](util[_0xe8cd('0x17')](_0xe8cd('0x40'),_0x4168ad[_0xe8cd('0x1c')]),_0x4168ad);dials[_0xe8cd('0x3f')](_0x4168ad);}catch(_0x8991bd){utils[_0xe8cd('0x13')](util[_0xe8cd('0x17')](_0xe8cd('0x40'),_0x4168ad[_0xe8cd('0x1c')]),_0x8991bd);}});}
\ No newline at end of file