Built motion from commit 1fd437e9.|2.6.19
[motion2.git] / server / services / agi / channel.js
index 11ad4f1..d78e210 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8a9a=['SET\x20VARIABLE\x20%s\x20\x22%s\x22','SAY\x20NUMBER\x20%s\x20%s','sayDigits','continueAt','extension','setContext','GET\x20VARIABLE\x20\x22%s\x22','recordFile','wav','BEEP','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','streamFile','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','agi','AGI','wait','label','exports','lodash','events','EventEmitter','./reply','./error','call','setEncoding','setTimeout','utf8','headers','emit','line','hangup','substring','search','520\x20End\x20of\x20proper','function','no\x20code','replace','substr','indexOf','startsWith','length','match','error','code','close','E_AGI_SOCKET_CLOSE','timeout','E_AGI_SOCKET_TIMEOUT','destroy','pipe','command','write','sync','answer','sendRequest','ANSWER','prototype','getData','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','noop','VERBOSE\x20\x22%s\x22','exec','EXEC\x20%s\x20%s','SET\x20CONTEXT\x20%s','setExtension','SET\x20EXTENSION\x20%s','setPriority','SET\x20PRIORITY\x20%s','HANGUP','setVariable','isBoolean','isNumber'];(function(_0x583057,_0x5546cd){var _0x19aecf=function(_0x1a08fe){while(--_0x1a08fe){_0x583057['push'](_0x583057['shift']());}};_0x19aecf(++_0x5546cd);}(_0x8a9a,0x17f));var _0xa8a9=function(_0x1caf6a,_0x26a5bf){_0x1caf6a=_0x1caf6a-0x0;var _0x1bf493=_0x8a9a[_0x1caf6a];return _0x1bf493;};'use strict';var util=require('util');var _=require(_0xa8a9('0x0'));var EventEmitter=require(_0xa8a9('0x1'))[_0xa8a9('0x2')];var AGIReply=require(_0xa8a9('0x3'));var AGIError=require(_0xa8a9('0x4'));function AGIChannel(_0x16c7af){var _0x2d782d=this,_0x9570dc=new AGIReply(),_0x3fcb8c=![],_0xe5e64b={};EventEmitter[_0xa8a9('0x5')](_0x2d782d);_0x16c7af[_0xa8a9('0x6')]('utf8');_0x16c7af[_0xa8a9('0x7')](0x8*0x3c*0x3c*0x3e8);_0x9570dc['setEncoding'](_0xa8a9('0x8'));_0x9570dc['on'](_0xa8a9('0x9'),function(_0x1477b0){for(var _0x3b1f45 in _0x1477b0){_0x2d782d[_0x3b1f45]=_0x1477b0[_0x3b1f45];}_0x2d782d[_0xa8a9('0xa')]('ready');});_0x9570dc['on'](_0xa8a9('0xb'),function(_0x50071a){if(_0x50071a['toLowerCase']()==_0xa8a9('0xc')){_0x2d782d['emit'](_0xa8a9('0xc'));return;}if(_0x50071a[_0xa8a9('0xd')](0x0,0xb)=='520-Invalid'){_0x3fcb8c=!![];}if(_0x3fcb8c){_0xe5e64b['rx']+=_0x50071a+'\x0a';if(_0x50071a[_0xa8a9('0xe')](_0xa8a9('0xf'))!=-0x1){_0x3fcb8c=![];}}else{_0xe5e64b['rx']=_0x50071a;}if(_0x3fcb8c){return;}if(typeof _0xe5e64b['cb']==_0xa8a9('0x10')){var _0x28d881=_0xe5e64b['rx']['substring'](0x0,0x3),_0x35b204=null,_0x248774=null;_0x28d881=parseInt(_0x28d881);if(isNaN(_0x28d881)){_0xe5e64b['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0xa8a9('0x11')});return;}if(_0x28d881!=0xc8){_0xe5e64b['cb'](null,{'code':_0x28d881,'result':-0x1,'extra':'KO'});return;}_0x35b204=_0xe5e64b['rx'][_0xa8a9('0xd')](0x4)[_0xa8a9('0x12')]('result=','');if(_0x35b204['indexOf']('\x20')!=-0x1){_0x35b204=_0x35b204[_0xa8a9('0x13')](0x0,_0x35b204[_0xa8a9('0x14')]('\x20'));}if(_[_0xa8a9('0x15')](_0x35b204,'-1')){_0x35b204=parseInt(_0x35b204);}_0x248774=_0xe5e64b['rx']['split']('\x20');if(_0x248774[_0xa8a9('0x16')]==0x3){_0x248774=_0x248774[0x2][_0xa8a9('0xd')](0x1,_0x248774[0x2]['length']-0x1);}else if(_0x248774['length']>0x3){var _0x1039c9=/\((.+)\)/;var _0x15d58c=_0xe5e64b['rx'][_0xa8a9('0x17')](_0x1039c9);if(_0x15d58c){_0x248774=_0x15d58c[0x1];}else{_0x248774=null;}}else{_0x248774=null;}_0xe5e64b['cb'](null,{'code':_0x28d881,'result':_0x35b204,'extra':_0x248774});}});_0x16c7af['on'](_0xa8a9('0x18'),function(_0x46a89d){_0x2d782d[_0xa8a9('0xa')]('error',new AGIError('E_AGI_SOCKET_ERROR',_0x46a89d[_0xa8a9('0x19')]));});_0x16c7af['on']('close',function(){_0x2d782d['emit'](_0xa8a9('0x1a'),new AGIError(_0xa8a9('0x1b')));});_0x16c7af['on'](_0xa8a9('0x1c'),function(){_0x2d782d[_0xa8a9('0xa')](_0xa8a9('0x1c'),new AGIError(_0xa8a9('0x1d')));_0x16c7af[_0xa8a9('0x1e')]();});_0x16c7af[_0xa8a9('0x1f')](_0x9570dc);this[_0xa8a9('0x20')]=function(_0x59d315,_0x102301){var _0x59d315=_0x59d315||'',_0x102301=typeof _0x102301=='function'?_0x102301:new Function();_0xe5e64b={'tx':_0x59d315,'rx':'','cb':_0x102301};_0x16c7af[_0xa8a9('0x21')](_0x59d315+'\x0a');},this[_0xa8a9('0x1a')]=function(){_0x16c7af['destroy']();};}util['inherits'](AGIChannel,EventEmitter);AGIChannel['prototype']['sendRequest']=function(_0xcca967){return this['command'][_0xa8a9('0x22')](this,_0xcca967);};AGIChannel['prototype'][_0xa8a9('0x23')]=function(){return this[_0xa8a9('0x24')](_0xa8a9('0x25'));};AGIChannel[_0xa8a9('0x26')][_0xa8a9('0x27')]=function(_0x34d84a,_0x489159,_0x3c210b){_0x34d84a=_0x34d84a===undefined?'beep':_0x34d84a;_0x489159=_0x489159===undefined?'5':_0x489159;_0x3c210b=_0x3c210b===undefined?'1':_0x3c210b;return this[_0xa8a9('0x24')](util[_0xa8a9('0x28')](_0xa8a9('0x29'),_0x34d84a,_0x489159*0x3e8,_0x3c210b));};AGIChannel[_0xa8a9('0x26')][_0xa8a9('0x2a')]=function(_0x343c80){_0x343c80=_0x343c80||'NO\x20MESSAGE';return this[_0xa8a9('0x24')](util[_0xa8a9('0x28')](_0xa8a9('0x2b'),_0x343c80));};AGIChannel['prototype'][_0xa8a9('0x2c')]=function(_0x3f2f30,_0x4af312){if(_['isArray'](_0x4af312)){return this['sendRequest'](util['format'](_0xa8a9('0x2d'),_0x3f2f30,_0x4af312['join'](',')));}return this[_0xa8a9('0x24')](util[_0xa8a9('0x28')](_0xa8a9('0x2d'),_0x3f2f30,_0x4af312));};AGIChannel[_0xa8a9('0x26')]['setContext']=function(_0x5365f1){return this[_0xa8a9('0x24')](util[_0xa8a9('0x28')](_0xa8a9('0x2e'),_0x5365f1));};AGIChannel['prototype'][_0xa8a9('0x2f')]=function(_0x70e02d){return this[_0xa8a9('0x24')](util[_0xa8a9('0x28')](_0xa8a9('0x30'),_0x70e02d));};AGIChannel['prototype'][_0xa8a9('0x31')]=function(_0x209258){return this[_0xa8a9('0x24')](util['format'](_0xa8a9('0x32'),_0x209258));};AGIChannel['prototype']['hangup']=function(){return this['sendRequest'](_0xa8a9('0x33'));};AGIChannel['prototype'][_0xa8a9('0x34')]=function(_0xaf9b6b,_0x1c065e){var _0x4ee5a8=_[_0xa8a9('0x35')](_0x1c065e)||_[_0xa8a9('0x36')](_0x1c065e)?_0x1c065e['toString']():_0x1c065e;return this['sendRequest'](util[_0xa8a9('0x28')](_0xa8a9('0x37'),_0xaf9b6b,_0x4ee5a8?_0x4ee5a8['toString']()[_0xa8a9('0x12')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0xa8a9('0x26')]['sayNumber']=function(_0xef7228,_0x3545ea){return this[_0xa8a9('0x24')](util['format'](_0xa8a9('0x38'),_0xef7228,_0x3545ea));};AGIChannel[_0xa8a9('0x26')][_0xa8a9('0x39')]=function(_0x555e9d,_0x280b9d){return this['sendRequest'](util[_0xa8a9('0x28')]('SAY\x20DIGITS\x20%s\x20%s',_0x555e9d,_0x280b9d));};AGIChannel[_0xa8a9('0x26')]['sayPhonetic']=function(_0x2c9e79,_0x1144d3){return this['sendRequest'](util[_0xa8a9('0x28')]('SAY\x20PHONETIC\x20\x22%s\x22\x20%s',_0x2c9e79,_0x1144d3));};AGIChannel[_0xa8a9('0x26')][_0xa8a9('0x3a')]=function(_0x475a0a,_0x1aaeda,_0xb2534b){_0x1aaeda=_0x1aaeda||this[_0xa8a9('0x3b')];_0xb2534b=_0xb2534b||0x1;this[_0xa8a9('0x3c')](_0x475a0a);this['setExtension'](_0x1aaeda);this[_0xa8a9('0x31')](_0xb2534b);return this[_0xa8a9('0x2a')](util[_0xa8a9('0x28')]('GOTO\x20%s\x20%s\x20%s',_0x475a0a,_0x1aaeda,_0xb2534b));};AGIChannel['prototype']['getVariable']=function(_0x38b323){return this[_0xa8a9('0x24')](util[_0xa8a9('0x28')](_0xa8a9('0x3d'),_0x38b323));};AGIChannel[_0xa8a9('0x26')][_0xa8a9('0x3e')]=function(_0x7eb45,_0x2f5650,_0x4cbc17,_0xdaa921,_0x2368c7,_0xaa92f1){_0x2f5650=_0x2f5650||_0xa8a9('0x3f');_0x4cbc17=_0x4cbc17||'';_0xdaa921=_0xdaa921===undefined?-0x1:_0xdaa921==='-1'?-0x1:_0xdaa921*0x3e8;_0x2368c7=_0x2368c7===undefined?'':'s='+_0x2368c7;_0xaa92f1=_0xaa92f1?_0xa8a9('0x40'):'';return this[_0xa8a9('0x24')](util['format'](_0xa8a9('0x41'),_0x7eb45,_0x2f5650,_0x4cbc17,_0xdaa921,_0xaa92f1,_0x2368c7));};AGIChannel[_0xa8a9('0x26')][_0xa8a9('0x42')]=function(_0x5a218a,_0x18b8b1){_0x18b8b1=_0x18b8b1||'';return this[_0xa8a9('0x24')](util[_0xa8a9('0x28')](_0xa8a9('0x43'),_0x5a218a,_0x18b8b1));};AGIChannel['prototype'][_0xa8a9('0x44')]=function(_0x5ccba7){return this[_0xa8a9('0x2c')](_0xa8a9('0x45'),_0x5ccba7);};AGIChannel[_0xa8a9('0x26')][_0xa8a9('0x46')]=function(_0x38b9c0){return this[_0xa8a9('0x2c')]('WAIT',_0x38b9c0);};AGIChannel[_0xa8a9('0x26')][_0xa8a9('0x18')]=function(_0x4f6786,_0x319fd7){this['noop'](util[_0xa8a9('0x28')]('ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s',_0x4f6786['id'],_0x4f6786[_0xa8a9('0x47')],_0x319fd7));return{'code':0x1f4,'result':'-1','extra':''};};module[_0xa8a9('0x48')]=AGIChannel;
\ No newline at end of file
+var _0xb296=['SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','extension','setPriority','GOTO\x20%s\x20%s\x20%s','GET\x20VARIABLE\x20\x22%s\x22','recordFile','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','streamFile','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','events','EventEmitter','./reply','./error','call','utf8','setTimeout','setEncoding','headers','emit','ready','line','toLowerCase','hangup','substring','520-Invalid','search','function','replace','indexOf','substr','startsWith','split','length','error','E_AGI_SOCKET_ERROR','code','close','timeout','destroy','pipe','write','prototype','command','sync','answer','sendRequest','ANSWER','getData','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','SET\x20CONTEXT\x20%s','setExtension','HANGUP','setVariable','isNumber','SET\x20VARIABLE\x20%s\x20\x22%s\x22','toString','sayNumber','SAY\x20NUMBER\x20%s\x20%s'];(function(_0x826da3,_0x1eedfd){var _0x442c47=function(_0x57e53a){while(--_0x57e53a){_0x826da3['push'](_0x826da3['shift']());}};_0x442c47(++_0x1eedfd);}(_0xb296,0xa3));var _0x6b29=function(_0x5600d8,_0xc2ed6b){_0x5600d8=_0x5600d8-0x0;var _0x35ea60=_0xb296[_0x5600d8];return _0x35ea60;};'use strict';var util=require(_0x6b29('0x0'));var _=require(_0x6b29('0x1'));var EventEmitter=require(_0x6b29('0x2'))[_0x6b29('0x3')];var AGIReply=require(_0x6b29('0x4'));var AGIError=require(_0x6b29('0x5'));function AGIChannel(_0x2c502e){var _0x48e967=this,_0x3ff65c=new AGIReply(),_0x5c1cf5=![],_0x50a1ba={};EventEmitter[_0x6b29('0x6')](_0x48e967);_0x2c502e['setEncoding'](_0x6b29('0x7'));_0x2c502e[_0x6b29('0x8')](0x8*0x3c*0x3c*0x3e8);_0x3ff65c[_0x6b29('0x9')](_0x6b29('0x7'));_0x3ff65c['on'](_0x6b29('0xa'),function(_0x4e4dd4){for(var _0x533b28 in _0x4e4dd4){_0x48e967[_0x533b28]=_0x4e4dd4[_0x533b28];}_0x48e967[_0x6b29('0xb')](_0x6b29('0xc'));});_0x3ff65c['on'](_0x6b29('0xd'),function(_0x1eb87c){if(_0x1eb87c[_0x6b29('0xe')]()==_0x6b29('0xf')){_0x48e967[_0x6b29('0xb')]('hangup');return;}if(_0x1eb87c[_0x6b29('0x10')](0x0,0xb)==_0x6b29('0x11')){_0x5c1cf5=!![];}if(_0x5c1cf5){_0x50a1ba['rx']+=_0x1eb87c+'\x0a';if(_0x1eb87c[_0x6b29('0x12')]('520\x20End\x20of\x20proper')!=-0x1){_0x5c1cf5=![];}}else{_0x50a1ba['rx']=_0x1eb87c;}if(_0x5c1cf5){return;}if(typeof _0x50a1ba['cb']==_0x6b29('0x13')){var _0x4ca75d=_0x50a1ba['rx']['substring'](0x0,0x3),_0x512818=null,_0x28495f=null;_0x4ca75d=parseInt(_0x4ca75d);if(isNaN(_0x4ca75d)){_0x50a1ba['cb'](null,{'code':0x1f4,'result':-0x1,'extra':'no\x20code'});return;}if(_0x4ca75d!=0xc8){_0x50a1ba['cb'](null,{'code':_0x4ca75d,'result':-0x1,'extra':'KO'});return;}_0x512818=_0x50a1ba['rx'][_0x6b29('0x10')](0x4)[_0x6b29('0x14')]('result=','');if(_0x512818[_0x6b29('0x15')]('\x20')!=-0x1){_0x512818=_0x512818[_0x6b29('0x16')](0x0,_0x512818[_0x6b29('0x15')]('\x20'));}if(_[_0x6b29('0x17')](_0x512818,'-1')){_0x512818=parseInt(_0x512818);}_0x28495f=_0x50a1ba['rx'][_0x6b29('0x18')]('\x20');if(_0x28495f[_0x6b29('0x19')]==0x3){_0x28495f=_0x28495f[0x2][_0x6b29('0x10')](0x1,_0x28495f[0x2]['length']-0x1);}else if(_0x28495f[_0x6b29('0x19')]>0x3){var _0x14a4a8=/\((.+)\)/;var _0x1b2830=_0x50a1ba['rx']['match'](_0x14a4a8);if(_0x1b2830){_0x28495f=_0x1b2830[0x1];}else{_0x28495f=null;}}else{_0x28495f=null;}_0x50a1ba['cb'](null,{'code':_0x4ca75d,'result':_0x512818,'extra':_0x28495f});}});_0x2c502e['on']('error',function(_0xc9511c){_0x48e967[_0x6b29('0xb')](_0x6b29('0x1a'),new AGIError(_0x6b29('0x1b'),_0xc9511c[_0x6b29('0x1c')]));});_0x2c502e['on'](_0x6b29('0x1d'),function(){_0x48e967[_0x6b29('0xb')](_0x6b29('0x1d'),new AGIError('E_AGI_SOCKET_CLOSE'));});_0x2c502e['on'](_0x6b29('0x1e'),function(){_0x48e967[_0x6b29('0xb')](_0x6b29('0x1e'),new AGIError('E_AGI_SOCKET_TIMEOUT'));_0x2c502e[_0x6b29('0x1f')]();});_0x2c502e[_0x6b29('0x20')](_0x3ff65c);this['command']=function(_0x35d3e4,_0x3686d1){var _0x35d3e4=_0x35d3e4||'',_0x3686d1=typeof _0x3686d1==_0x6b29('0x13')?_0x3686d1:new Function();_0x50a1ba={'tx':_0x35d3e4,'rx':'','cb':_0x3686d1};_0x2c502e[_0x6b29('0x21')](_0x35d3e4+'\x0a');},this[_0x6b29('0x1d')]=function(){_0x2c502e[_0x6b29('0x1f')]();};}util['inherits'](AGIChannel,EventEmitter);AGIChannel[_0x6b29('0x22')]['sendRequest']=function(_0x237cad){return this[_0x6b29('0x23')][_0x6b29('0x24')](this,_0x237cad);};AGIChannel[_0x6b29('0x22')][_0x6b29('0x25')]=function(){return this[_0x6b29('0x26')](_0x6b29('0x27'));};AGIChannel['prototype'][_0x6b29('0x28')]=function(_0x3b2811,_0xea8c31,_0x654528){_0x3b2811=_0x3b2811===undefined?'beep':_0x3b2811;_0xea8c31=_0xea8c31===undefined?'5':_0xea8c31;_0x654528=_0x654528===undefined?'1':_0x654528;return this['sendRequest'](util[_0x6b29('0x29')](_0x6b29('0x2a'),_0x3b2811,_0xea8c31*0x3e8,_0x654528));};AGIChannel[_0x6b29('0x22')][_0x6b29('0x2b')]=function(_0x370d50){_0x370d50=_0x370d50||_0x6b29('0x2c');return this[_0x6b29('0x26')](util['format'](_0x6b29('0x2d'),_0x370d50));};AGIChannel[_0x6b29('0x22')][_0x6b29('0x2e')]=function(_0x36e708,_0x36e293){if(_[_0x6b29('0x2f')](_0x36e293)){return this['sendRequest'](util[_0x6b29('0x29')](_0x6b29('0x30'),_0x36e708,_0x36e293[_0x6b29('0x31')](',')));}return this[_0x6b29('0x26')](util[_0x6b29('0x29')](_0x6b29('0x30'),_0x36e708,_0x36e293));};AGIChannel[_0x6b29('0x22')]['setContext']=function(_0x129846){return this[_0x6b29('0x26')](util[_0x6b29('0x29')](_0x6b29('0x32'),_0x129846));};AGIChannel[_0x6b29('0x22')][_0x6b29('0x33')]=function(_0x2d0988){return this[_0x6b29('0x26')](util['format']('SET\x20EXTENSION\x20%s',_0x2d0988));};AGIChannel['prototype']['setPriority']=function(_0x2b3df9){return this[_0x6b29('0x26')](util[_0x6b29('0x29')]('SET\x20PRIORITY\x20%s',_0x2b3df9));};AGIChannel[_0x6b29('0x22')][_0x6b29('0xf')]=function(){return this[_0x6b29('0x26')](_0x6b29('0x34'));};AGIChannel['prototype'][_0x6b29('0x35')]=function(_0x24ee15,_0x20f7da){var _0x5aad94=_['isBoolean'](_0x20f7da)||_[_0x6b29('0x36')](_0x20f7da)?_0x20f7da['toString']():_0x20f7da;return this['sendRequest'](util[_0x6b29('0x29')](_0x6b29('0x37'),_0x24ee15,_0x5aad94?_0x5aad94[_0x6b29('0x38')]()[_0x6b29('0x14')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel['prototype'][_0x6b29('0x39')]=function(_0x54ccd5,_0xbb6e00){return this[_0x6b29('0x26')](util[_0x6b29('0x29')](_0x6b29('0x3a'),_0x54ccd5,_0xbb6e00));};AGIChannel[_0x6b29('0x22')]['sayDigits']=function(_0x332af5,_0x2be07a){return this[_0x6b29('0x26')](util[_0x6b29('0x29')]('SAY\x20DIGITS\x20%s\x20%s',_0x332af5,_0x2be07a));};AGIChannel[_0x6b29('0x22')]['sayPhonetic']=function(_0x247e4f,_0x3bd58d){return this['sendRequest'](util['format'](_0x6b29('0x3b'),_0x247e4f,_0x3bd58d));};AGIChannel[_0x6b29('0x22')][_0x6b29('0x3c')]=function(_0x278573,_0x524feb,_0x8d8571){_0x524feb=_0x524feb||this[_0x6b29('0x3d')];_0x8d8571=_0x8d8571||0x1;this['setContext'](_0x278573);this[_0x6b29('0x33')](_0x524feb);this[_0x6b29('0x3e')](_0x8d8571);return this['noop'](util[_0x6b29('0x29')](_0x6b29('0x3f'),_0x278573,_0x524feb,_0x8d8571));};AGIChannel[_0x6b29('0x22')]['getVariable']=function(_0x574b40){return this[_0x6b29('0x26')](util[_0x6b29('0x29')](_0x6b29('0x40'),_0x574b40));};AGIChannel[_0x6b29('0x22')][_0x6b29('0x41')]=function(_0x46813b,_0x285756,_0x4788e5,_0xe1c900,_0x3491ab,_0x48ab0f){_0x285756=_0x285756||'wav';_0x4788e5=_0x4788e5||'';_0xe1c900=_0xe1c900===undefined?-0x1:_0xe1c900==='-1'?-0x1:_0xe1c900*0x3e8;_0x3491ab=_0x3491ab===undefined?'':'s='+_0x3491ab;_0x48ab0f=_0x48ab0f?'BEEP':'';return this[_0x6b29('0x26')](util[_0x6b29('0x29')](_0x6b29('0x42'),_0x46813b,_0x285756,_0x4788e5,_0xe1c900,_0x48ab0f,_0x3491ab));};AGIChannel['prototype'][_0x6b29('0x43')]=function(_0x17201b,_0x495a72){_0x495a72=_0x495a72||'';return this[_0x6b29('0x26')](util['format'](_0x6b29('0x44'),_0x17201b,_0x495a72));};AGIChannel[_0x6b29('0x22')]['agi']=function(_0x2db4cc){return this[_0x6b29('0x2e')](_0x6b29('0x45'),_0x2db4cc);};AGIChannel[_0x6b29('0x22')]['wait']=function(_0x30df11){return this[_0x6b29('0x2e')](_0x6b29('0x46'),_0x30df11);};AGIChannel[_0x6b29('0x22')]['error']=function(_0x2338d9,_0x3729b8){this[_0x6b29('0x2b')](util['format'](_0x6b29('0x47'),_0x2338d9['id'],_0x2338d9[_0x6b29('0x48')],_0x3729b8));return{'code':0x1f4,'result':'-1','extra':''};};module[_0x6b29('0x49')]=AGIChannel;
\ No newline at end of file