Built motion from commit 1efd3d96.|2.6.31
[motion2.git] / server / services / agi / channel.js
index 7503316..e8de504 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf19c=['join','setContext','SET\x20CONTEXT\x20%s','SET\x20EXTENSION\x20%s','SET\x20PRIORITY\x20%s','HANGUP','isBoolean','isNumber','toString','SET\x20VARIABLE\x20%s\x20\x22%s\x22','SAY\x20NUMBER\x20%s\x20%s','sayDigits','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','extension','setExtension','setPriority','getVariable','GET\x20VARIABLE\x20\x22%s\x22','recordFile','BEEP','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','streamFile','agi','exec','AGI','wait','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','exports','util','lodash','events','./reply','./error','call','utf8','setTimeout','setEncoding','headers','emit','ready','line','toLowerCase','hangup','substring','search','520\x20End\x20of\x20proper','function','no\x20code','replace','result=','indexOf','substr','startsWith','split','length','match','error','code','E_AGI_SOCKET_CLOSE','timeout','E_AGI_SOCKET_TIMEOUT','destroy','write','close','sendRequest','command','sync','prototype','answer','getData','beep','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','noop','VERBOSE\x20\x22%s\x22','isArray','EXEC\x20%s\x20%s'];(function(_0x3a6c2b,_0x27c53b){var _0x34e25f=function(_0x353537){while(--_0x353537){_0x3a6c2b['push'](_0x3a6c2b['shift']());}};_0x34e25f(++_0x27c53b);}(_0xf19c,0x10b));var _0xcf19=function(_0x43ec3b,_0x182f2a){_0x43ec3b=_0x43ec3b-0x0;var _0x47acc5=_0xf19c[_0x43ec3b];return _0x47acc5;};'use strict';var util=require(_0xcf19('0x0'));var _=require(_0xcf19('0x1'));var EventEmitter=require(_0xcf19('0x2'))['EventEmitter'];var AGIReply=require(_0xcf19('0x3'));var AGIError=require(_0xcf19('0x4'));function AGIChannel(_0x5e6003){var _0x1fa8dc=this,_0x2addca=new AGIReply(),_0x460b4f=![],_0x87534f={};EventEmitter[_0xcf19('0x5')](_0x1fa8dc);_0x5e6003['setEncoding'](_0xcf19('0x6'));_0x5e6003[_0xcf19('0x7')](0x8*0x3c*0x3c*0x3e8);_0x2addca[_0xcf19('0x8')](_0xcf19('0x6'));_0x2addca['on'](_0xcf19('0x9'),function(_0x22c4bf){for(var _0x5e0540 in _0x22c4bf){_0x1fa8dc[_0x5e0540]=_0x22c4bf[_0x5e0540];}_0x1fa8dc[_0xcf19('0xa')](_0xcf19('0xb'));});_0x2addca['on'](_0xcf19('0xc'),function(_0x257184){if(_0x257184[_0xcf19('0xd')]()==_0xcf19('0xe')){_0x1fa8dc[_0xcf19('0xa')](_0xcf19('0xe'));return;}if(_0x257184[_0xcf19('0xf')](0x0,0xb)=='520-Invalid'){_0x460b4f=!![];}if(_0x460b4f){_0x87534f['rx']+=_0x257184+'\x0a';if(_0x257184[_0xcf19('0x10')](_0xcf19('0x11'))!=-0x1){_0x460b4f=![];}}else{_0x87534f['rx']=_0x257184;}if(_0x460b4f){return;}if(typeof _0x87534f['cb']==_0xcf19('0x12')){var _0x1d6396=_0x87534f['rx'][_0xcf19('0xf')](0x0,0x3),_0x226339=null,_0x241547=null;_0x1d6396=parseInt(_0x1d6396);if(isNaN(_0x1d6396)){_0x87534f['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0xcf19('0x13')});return;}if(_0x1d6396!=0xc8){_0x87534f['cb'](null,{'code':_0x1d6396,'result':-0x1,'extra':'KO'});return;}_0x226339=_0x87534f['rx'][_0xcf19('0xf')](0x4)[_0xcf19('0x14')](_0xcf19('0x15'),'');if(_0x226339[_0xcf19('0x16')]('\x20')!=-0x1){_0x226339=_0x226339[_0xcf19('0x17')](0x0,_0x226339[_0xcf19('0x16')]('\x20'));}if(_[_0xcf19('0x18')](_0x226339,'-1')){_0x226339=parseInt(_0x226339);}_0x241547=_0x87534f['rx'][_0xcf19('0x19')]('\x20');if(_0x241547['length']==0x3){_0x241547=_0x241547[0x2]['substring'](0x1,_0x241547[0x2][_0xcf19('0x1a')]-0x1);}else if(_0x241547[_0xcf19('0x1a')]>0x3){var _0x41cf03=/\((.+)\)/;var _0x409e41=_0x87534f['rx'][_0xcf19('0x1b')](_0x41cf03);if(_0x409e41){_0x241547=_0x409e41[0x1];}else{_0x241547=null;}}else{_0x241547=null;}_0x87534f['cb'](null,{'code':_0x1d6396,'result':_0x226339,'extra':_0x241547});}});_0x5e6003['on'](_0xcf19('0x1c'),function(_0x5f3fc0){_0x1fa8dc[_0xcf19('0xa')](_0xcf19('0x1c'),new AGIError('E_AGI_SOCKET_ERROR',_0x5f3fc0[_0xcf19('0x1d')]));});_0x5e6003['on']('close',function(){_0x1fa8dc[_0xcf19('0xa')]('close',new AGIError(_0xcf19('0x1e')));});_0x5e6003['on'](_0xcf19('0x1f'),function(){_0x1fa8dc[_0xcf19('0xa')](_0xcf19('0x1f'),new AGIError(_0xcf19('0x20')));_0x5e6003[_0xcf19('0x21')]();});_0x5e6003['pipe'](_0x2addca);this['command']=function(_0x37f1ae,_0x1deb93){var _0x37f1ae=_0x37f1ae||'',_0x1deb93=typeof _0x1deb93==_0xcf19('0x12')?_0x1deb93:new Function();_0x87534f={'tx':_0x37f1ae,'rx':'','cb':_0x1deb93};_0x5e6003[_0xcf19('0x22')](_0x37f1ae+'\x0a');},this[_0xcf19('0x23')]=function(){_0x5e6003[_0xcf19('0x21')]();};}util['inherits'](AGIChannel,EventEmitter);AGIChannel['prototype'][_0xcf19('0x24')]=function(_0x381dfa){return this[_0xcf19('0x25')][_0xcf19('0x26')](this,_0x381dfa);};AGIChannel[_0xcf19('0x27')][_0xcf19('0x28')]=function(){return this[_0xcf19('0x24')]('ANSWER');};AGIChannel['prototype'][_0xcf19('0x29')]=function(_0x3c3c44,_0xa84e33,_0x982593){_0x3c3c44=_0x3c3c44===undefined?_0xcf19('0x2a'):_0x3c3c44;_0xa84e33=_0xa84e33===undefined?'5':_0xa84e33;_0x982593=_0x982593===undefined?'1':_0x982593;return this[_0xcf19('0x24')](util[_0xcf19('0x2b')](_0xcf19('0x2c'),_0x3c3c44,_0xa84e33*0x3e8,_0x982593));};AGIChannel[_0xcf19('0x27')][_0xcf19('0x2d')]=function(_0x552b9f){_0x552b9f=_0x552b9f||'NO\x20MESSAGE';return this[_0xcf19('0x24')](util['format'](_0xcf19('0x2e'),_0x552b9f));};AGIChannel[_0xcf19('0x27')]['exec']=function(_0x1c96ab,_0x1a47a1){if(_[_0xcf19('0x2f')](_0x1a47a1)){return this['sendRequest'](util['format'](_0xcf19('0x30'),_0x1c96ab,_0x1a47a1[_0xcf19('0x31')](',')));}return this[_0xcf19('0x24')](util[_0xcf19('0x2b')]('EXEC\x20%s\x20%s',_0x1c96ab,_0x1a47a1));};AGIChannel[_0xcf19('0x27')][_0xcf19('0x32')]=function(_0x4f075f){return this[_0xcf19('0x24')](util[_0xcf19('0x2b')](_0xcf19('0x33'),_0x4f075f));};AGIChannel[_0xcf19('0x27')]['setExtension']=function(_0x4b58ca){return this[_0xcf19('0x24')](util['format'](_0xcf19('0x34'),_0x4b58ca));};AGIChannel[_0xcf19('0x27')]['setPriority']=function(_0x101722){return this[_0xcf19('0x24')](util[_0xcf19('0x2b')](_0xcf19('0x35'),_0x101722));};AGIChannel[_0xcf19('0x27')][_0xcf19('0xe')]=function(){return this[_0xcf19('0x24')](_0xcf19('0x36'));};AGIChannel[_0xcf19('0x27')]['setVariable']=function(_0x82cc06,_0x5ea0bd){var _0x199114=_[_0xcf19('0x37')](_0x5ea0bd)||_[_0xcf19('0x38')](_0x5ea0bd)?_0x5ea0bd[_0xcf19('0x39')]():_0x5ea0bd;return this['sendRequest'](util[_0xcf19('0x2b')](_0xcf19('0x3a'),_0x82cc06,_0x199114?_0x199114[_0xcf19('0x39')]()[_0xcf19('0x14')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0xcf19('0x27')]['sayNumber']=function(_0x4f77ad,_0x53b01e){return this['sendRequest'](util[_0xcf19('0x2b')](_0xcf19('0x3b'),_0x4f77ad,_0x53b01e));};AGIChannel[_0xcf19('0x27')][_0xcf19('0x3c')]=function(_0x3a2226,_0x53e83b){return this['sendRequest'](util['format']('SAY\x20DIGITS\x20%s\x20%s',_0x3a2226,_0x53e83b));};AGIChannel['prototype']['sayPhonetic']=function(_0x19668a,_0x322a54){return this[_0xcf19('0x24')](util[_0xcf19('0x2b')](_0xcf19('0x3d'),_0x19668a,_0x322a54));};AGIChannel[_0xcf19('0x27')][_0xcf19('0x3e')]=function(_0x77c67b,_0x5e7e65,_0x554a3f){_0x5e7e65=_0x5e7e65||this[_0xcf19('0x3f')];_0x554a3f=_0x554a3f||0x1;this[_0xcf19('0x32')](_0x77c67b);this[_0xcf19('0x40')](_0x5e7e65);this[_0xcf19('0x41')](_0x554a3f);return this['noop'](util['format']('GOTO\x20%s\x20%s\x20%s',_0x77c67b,_0x5e7e65,_0x554a3f));};AGIChannel[_0xcf19('0x27')][_0xcf19('0x42')]=function(_0x4b0880){return this[_0xcf19('0x24')](util[_0xcf19('0x2b')](_0xcf19('0x43'),_0x4b0880));};AGIChannel[_0xcf19('0x27')][_0xcf19('0x44')]=function(_0x10d79f,_0x11d67f,_0x535f89,_0xcca645,_0x4072be,_0x9a5dcb){_0x11d67f=_0x11d67f||'wav';_0x535f89=_0x535f89||'';_0xcca645=_0xcca645===undefined?-0x1:_0xcca645==='-1'?-0x1:_0xcca645*0x3e8;_0x4072be=_0x4072be===undefined?'':'s='+_0x4072be;_0x9a5dcb=_0x9a5dcb?_0xcf19('0x45'):'';return this[_0xcf19('0x24')](util['format'](_0xcf19('0x46'),_0x10d79f,_0x11d67f,_0x535f89,_0xcca645,_0x9a5dcb,_0x4072be));};AGIChannel[_0xcf19('0x27')][_0xcf19('0x47')]=function(_0x6a770d,_0x210b27){_0x210b27=_0x210b27||'';return this['sendRequest'](util[_0xcf19('0x2b')]('STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22',_0x6a770d,_0x210b27));};AGIChannel[_0xcf19('0x27')][_0xcf19('0x48')]=function(_0x3b0108){return this[_0xcf19('0x49')](_0xcf19('0x4a'),_0x3b0108);};AGIChannel['prototype'][_0xcf19('0x4b')]=function(_0x50c40c){return this[_0xcf19('0x49')](_0xcf19('0x4c'),_0x50c40c);};AGIChannel[_0xcf19('0x27')][_0xcf19('0x1c')]=function(_0x35cd1c,_0x59c910){this['noop'](util['format'](_0xcf19('0x4d'),_0x35cd1c['id'],_0x35cd1c['label'],_0x59c910));return{'code':0x1f4,'result':'-1','extra':''};};module[_0xcf19('0x4e')]=AGIChannel;
\ No newline at end of file
+var _0xe4bd=['utf8','headers','ready','toLowerCase','emit','hangup','substring','520-Invalid','520\x20End\x20of\x20proper','function','replace','result=','substr','indexOf','startsWith','split','length','match','error','code','close','E_AGI_SOCKET_CLOSE','timeout','E_AGI_SOCKET_TIMEOUT','destroy','pipe','command','prototype','sendRequest','sync','answer','ANSWER','beep','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','noop','NO\x20MESSAGE','VERBOSE\x20\x22%s\x22','exec','isArray','EXEC\x20%s\x20%s','join','setContext','setExtension','SET\x20EXTENSION\x20%s','SET\x20PRIORITY\x20%s','isBoolean','isNumber','toString','SAY\x20NUMBER\x20%s\x20%s','sayDigits','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','extension','setPriority','GOTO\x20%s\x20%s\x20%s','getVariable','recordFile','wav','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','agi','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','label','exports','util','lodash','EventEmitter','./reply','setEncoding'];(function(_0x2891d1,_0x2ddd3e){var _0x486948=function(_0x13fa0f){while(--_0x13fa0f){_0x2891d1['push'](_0x2891d1['shift']());}};_0x486948(++_0x2ddd3e);}(_0xe4bd,0x89));var _0xde4b=function(_0x164951,_0x4c2c5d){_0x164951=_0x164951-0x0;var _0x448187=_0xe4bd[_0x164951];return _0x448187;};'use strict';var util=require(_0xde4b('0x0'));var _=require(_0xde4b('0x1'));var EventEmitter=require('events')[_0xde4b('0x2')];var AGIReply=require(_0xde4b('0x3'));var AGIError=require('./error');function AGIChannel(_0x565732){var _0x2a9809=this,_0x4cf2dc=new AGIReply(),_0x4d4e99=![],_0x1cfb8f={};EventEmitter['call'](_0x2a9809);_0x565732[_0xde4b('0x4')](_0xde4b('0x5'));_0x565732['setTimeout'](0x8*0x3c*0x3c*0x3e8);_0x4cf2dc[_0xde4b('0x4')](_0xde4b('0x5'));_0x4cf2dc['on'](_0xde4b('0x6'),function(_0x5d9e62){for(var _0x56c3f7 in _0x5d9e62){_0x2a9809[_0x56c3f7]=_0x5d9e62[_0x56c3f7];}_0x2a9809['emit'](_0xde4b('0x7'));});_0x4cf2dc['on']('line',function(_0x5e34e5){if(_0x5e34e5[_0xde4b('0x8')]()=='hangup'){_0x2a9809[_0xde4b('0x9')](_0xde4b('0xa'));return;}if(_0x5e34e5[_0xde4b('0xb')](0x0,0xb)==_0xde4b('0xc')){_0x4d4e99=!![];}if(_0x4d4e99){_0x1cfb8f['rx']+=_0x5e34e5+'\x0a';if(_0x5e34e5['search'](_0xde4b('0xd'))!=-0x1){_0x4d4e99=![];}}else{_0x1cfb8f['rx']=_0x5e34e5;}if(_0x4d4e99){return;}if(typeof _0x1cfb8f['cb']==_0xde4b('0xe')){var _0x19d383=_0x1cfb8f['rx'][_0xde4b('0xb')](0x0,0x3),_0x645911=null,_0x54939c=null;_0x19d383=parseInt(_0x19d383);if(isNaN(_0x19d383)){_0x1cfb8f['cb'](null,{'code':0x1f4,'result':-0x1,'extra':'no\x20code'});return;}if(_0x19d383!=0xc8){_0x1cfb8f['cb'](null,{'code':_0x19d383,'result':-0x1,'extra':'KO'});return;}_0x645911=_0x1cfb8f['rx'][_0xde4b('0xb')](0x4)[_0xde4b('0xf')](_0xde4b('0x10'),'');if(_0x645911['indexOf']('\x20')!=-0x1){_0x645911=_0x645911[_0xde4b('0x11')](0x0,_0x645911[_0xde4b('0x12')]('\x20'));}if(_[_0xde4b('0x13')](_0x645911,'-1')){_0x645911=parseInt(_0x645911);}_0x54939c=_0x1cfb8f['rx'][_0xde4b('0x14')]('\x20');if(_0x54939c[_0xde4b('0x15')]==0x3){_0x54939c=_0x54939c[0x2]['substring'](0x1,_0x54939c[0x2][_0xde4b('0x15')]-0x1);}else if(_0x54939c['length']>0x3){var _0x3ad061=/\((.+)\)/;var _0x3f35e2=_0x1cfb8f['rx'][_0xde4b('0x16')](_0x3ad061);if(_0x3f35e2){_0x54939c=_0x3f35e2[0x1];}else{_0x54939c=null;}}else{_0x54939c=null;}_0x1cfb8f['cb'](null,{'code':_0x19d383,'result':_0x645911,'extra':_0x54939c});}});_0x565732['on'](_0xde4b('0x17'),function(_0x95fe82){_0x2a9809[_0xde4b('0x9')](_0xde4b('0x17'),new AGIError('E_AGI_SOCKET_ERROR',_0x95fe82[_0xde4b('0x18')]));});_0x565732['on'](_0xde4b('0x19'),function(){_0x2a9809[_0xde4b('0x9')](_0xde4b('0x19'),new AGIError(_0xde4b('0x1a')));});_0x565732['on'](_0xde4b('0x1b'),function(){_0x2a9809['emit'](_0xde4b('0x1b'),new AGIError(_0xde4b('0x1c')));_0x565732[_0xde4b('0x1d')]();});_0x565732[_0xde4b('0x1e')](_0x4cf2dc);this[_0xde4b('0x1f')]=function(_0x46afeb,_0x1bbf6f){var _0x46afeb=_0x46afeb||'',_0x1bbf6f=typeof _0x1bbf6f=='function'?_0x1bbf6f:new Function();_0x1cfb8f={'tx':_0x46afeb,'rx':'','cb':_0x1bbf6f};_0x565732['write'](_0x46afeb+'\x0a');},this[_0xde4b('0x19')]=function(){_0x565732[_0xde4b('0x1d')]();};}util['inherits'](AGIChannel,EventEmitter);AGIChannel[_0xde4b('0x20')][_0xde4b('0x21')]=function(_0x1d195a){return this['command'][_0xde4b('0x22')](this,_0x1d195a);};AGIChannel[_0xde4b('0x20')][_0xde4b('0x23')]=function(){return this['sendRequest'](_0xde4b('0x24'));};AGIChannel[_0xde4b('0x20')]['getData']=function(_0x4bf43e,_0x35adc9,_0x377a51){_0x4bf43e=_0x4bf43e===undefined?_0xde4b('0x25'):_0x4bf43e;_0x35adc9=_0x35adc9===undefined?'5':_0x35adc9;_0x377a51=_0x377a51===undefined?'1':_0x377a51;return this[_0xde4b('0x21')](util[_0xde4b('0x26')](_0xde4b('0x27'),_0x4bf43e,_0x35adc9*0x3e8,_0x377a51));};AGIChannel['prototype'][_0xde4b('0x28')]=function(_0x35a6ac){_0x35a6ac=_0x35a6ac||_0xde4b('0x29');return this[_0xde4b('0x21')](util[_0xde4b('0x26')](_0xde4b('0x2a'),_0x35a6ac));};AGIChannel['prototype'][_0xde4b('0x2b')]=function(_0x3b12ad,_0x53cd5c){if(_[_0xde4b('0x2c')](_0x53cd5c)){return this[_0xde4b('0x21')](util[_0xde4b('0x26')](_0xde4b('0x2d'),_0x3b12ad,_0x53cd5c[_0xde4b('0x2e')](',')));}return this[_0xde4b('0x21')](util[_0xde4b('0x26')](_0xde4b('0x2d'),_0x3b12ad,_0x53cd5c));};AGIChannel[_0xde4b('0x20')][_0xde4b('0x2f')]=function(_0x19f217){return this['sendRequest'](util[_0xde4b('0x26')]('SET\x20CONTEXT\x20%s',_0x19f217));};AGIChannel[_0xde4b('0x20')][_0xde4b('0x30')]=function(_0xab1e35){return this[_0xde4b('0x21')](util[_0xde4b('0x26')](_0xde4b('0x31'),_0xab1e35));};AGIChannel[_0xde4b('0x20')]['setPriority']=function(_0x54828b){return this[_0xde4b('0x21')](util['format'](_0xde4b('0x32'),_0x54828b));};AGIChannel[_0xde4b('0x20')][_0xde4b('0xa')]=function(){return this['sendRequest']('HANGUP');};AGIChannel[_0xde4b('0x20')]['setVariable']=function(_0x2783e2,_0x33b45d){var _0x4507ac=_[_0xde4b('0x33')](_0x33b45d)||_[_0xde4b('0x34')](_0x33b45d)?_0x33b45d[_0xde4b('0x35')]():_0x33b45d;return this[_0xde4b('0x21')](util[_0xde4b('0x26')]('SET\x20VARIABLE\x20%s\x20\x22%s\x22',_0x2783e2,_0x4507ac?_0x4507ac[_0xde4b('0x35')]()[_0xde4b('0xf')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0xde4b('0x20')]['sayNumber']=function(_0x1406bb,_0x163a4d){return this[_0xde4b('0x21')](util['format'](_0xde4b('0x36'),_0x1406bb,_0x163a4d));};AGIChannel[_0xde4b('0x20')][_0xde4b('0x37')]=function(_0x57f2a1,_0x15e08b){return this['sendRequest'](util[_0xde4b('0x26')]('SAY\x20DIGITS\x20%s\x20%s',_0x57f2a1,_0x15e08b));};AGIChannel[_0xde4b('0x20')]['sayPhonetic']=function(_0x1483ef,_0x3c974e){return this[_0xde4b('0x21')](util[_0xde4b('0x26')](_0xde4b('0x38'),_0x1483ef,_0x3c974e));};AGIChannel[_0xde4b('0x20')][_0xde4b('0x39')]=function(_0x4f6c2f,_0x1a73d7,_0x5d769f){_0x1a73d7=_0x1a73d7||this[_0xde4b('0x3a')];_0x5d769f=_0x5d769f||0x1;this['setContext'](_0x4f6c2f);this[_0xde4b('0x30')](_0x1a73d7);this[_0xde4b('0x3b')](_0x5d769f);return this[_0xde4b('0x28')](util[_0xde4b('0x26')](_0xde4b('0x3c'),_0x4f6c2f,_0x1a73d7,_0x5d769f));};AGIChannel[_0xde4b('0x20')][_0xde4b('0x3d')]=function(_0x38efaf){return this[_0xde4b('0x21')](util[_0xde4b('0x26')]('GET\x20VARIABLE\x20\x22%s\x22',_0x38efaf));};AGIChannel['prototype'][_0xde4b('0x3e')]=function(_0x28b587,_0x373b0b,_0x1fe118,_0x5f108f,_0x2791e5,_0x336c74){_0x373b0b=_0x373b0b||_0xde4b('0x3f');_0x1fe118=_0x1fe118||'';_0x5f108f=_0x5f108f===undefined?-0x1:_0x5f108f==='-1'?-0x1:_0x5f108f*0x3e8;_0x2791e5=_0x2791e5===undefined?'':'s='+_0x2791e5;_0x336c74=_0x336c74?'BEEP':'';return this[_0xde4b('0x21')](util[_0xde4b('0x26')](_0xde4b('0x40'),_0x28b587,_0x373b0b,_0x1fe118,_0x5f108f,_0x336c74,_0x2791e5));};AGIChannel[_0xde4b('0x20')]['streamFile']=function(_0x37a92e,_0x5e211d){_0x5e211d=_0x5e211d||'';return this['sendRequest'](util[_0xde4b('0x26')](_0xde4b('0x41'),_0x37a92e,_0x5e211d));};AGIChannel[_0xde4b('0x20')][_0xde4b('0x42')]=function(_0x34816f){return this[_0xde4b('0x2b')]('AGI',_0x34816f);};AGIChannel[_0xde4b('0x20')]['wait']=function(_0x146e4c){return this[_0xde4b('0x2b')](_0xde4b('0x43'),_0x146e4c);};AGIChannel[_0xde4b('0x20')]['error']=function(_0x5e1fbb,_0x5977b1){this[_0xde4b('0x28')](util[_0xde4b('0x26')](_0xde4b('0x44'),_0x5e1fbb['id'],_0x5e1fbb[_0xde4b('0x45')],_0x5977b1));return{'code':0x1f4,'result':'-1','extra':''};};module[_0xde4b('0x46')]=AGIChannel;
\ No newline at end of file