Built motion from commit d13fb11b.|2.6.34
[motion2.git] / server / services / agi / channel.js
index c9eec53..220e55a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd6bc=['HANGUP','isBoolean','isNumber','toString','sayNumber','sayDigits','SAY\x20DIGITS\x20%s\x20%s','sayPhonetic','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','extension','noop','getVariable','GET\x20VARIABLE\x20\x22%s\x22','recordFile','wav','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','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','label','exports','util','lodash','events','EventEmitter','./reply','./error','call','setEncoding','utf8','setTimeout','headers','toLowerCase','emit','substring','search','520\x20End\x20of\x20proper','function','no\x20code','replace','result=','substr','indexOf','split','length','error','E_AGI_SOCKET_ERROR','code','close','E_AGI_SOCKET_CLOSE','timeout','command','write','destroy','prototype','sendRequest','sync','answer','getData','beep','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','NO\x20MESSAGE','exec','isArray','EXEC\x20%s\x20%s','join','setContext','SET\x20CONTEXT\x20%s','setExtension','SET\x20EXTENSION\x20%s','setPriority','hangup'];(function(_0x152d5b,_0x3db8e7){var _0x2a9c77=function(_0x204323){while(--_0x204323){_0x152d5b['push'](_0x152d5b['shift']());}};_0x2a9c77(++_0x3db8e7);}(_0xd6bc,0x1a0));var _0xcd6b=function(_0x1beef3,_0x57c4b8){_0x1beef3=_0x1beef3-0x0;var _0x5af964=_0xd6bc[_0x1beef3];return _0x5af964;};'use strict';var util=require(_0xcd6b('0x0'));var _=require(_0xcd6b('0x1'));var EventEmitter=require(_0xcd6b('0x2'))[_0xcd6b('0x3')];var AGIReply=require(_0xcd6b('0x4'));var AGIError=require(_0xcd6b('0x5'));function AGIChannel(_0x53b212){var _0x57a49d=this,_0x78e4d3=new AGIReply(),_0x55fc31=![],_0x50caf4={};EventEmitter[_0xcd6b('0x6')](_0x57a49d);_0x53b212[_0xcd6b('0x7')](_0xcd6b('0x8'));_0x53b212[_0xcd6b('0x9')](0x8*0x3c*0x3c*0x3e8);_0x78e4d3[_0xcd6b('0x7')](_0xcd6b('0x8'));_0x78e4d3['on'](_0xcd6b('0xa'),function(_0x3a2111){for(var _0x2ff2e4 in _0x3a2111){_0x57a49d[_0x2ff2e4]=_0x3a2111[_0x2ff2e4];}_0x57a49d['emit']('ready');});_0x78e4d3['on']('line',function(_0x20cf5a){if(_0x20cf5a[_0xcd6b('0xb')]()=='hangup'){_0x57a49d[_0xcd6b('0xc')]('hangup');return;}if(_0x20cf5a[_0xcd6b('0xd')](0x0,0xb)=='520-Invalid'){_0x55fc31=!![];}if(_0x55fc31){_0x50caf4['rx']+=_0x20cf5a+'\x0a';if(_0x20cf5a[_0xcd6b('0xe')](_0xcd6b('0xf'))!=-0x1){_0x55fc31=![];}}else{_0x50caf4['rx']=_0x20cf5a;}if(_0x55fc31){return;}if(typeof _0x50caf4['cb']==_0xcd6b('0x10')){var _0x263912=_0x50caf4['rx']['substring'](0x0,0x3),_0x4cb87c=null,_0x5c4f06=null;_0x263912=parseInt(_0x263912);if(isNaN(_0x263912)){_0x50caf4['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0xcd6b('0x11')});return;}if(_0x263912!=0xc8){_0x50caf4['cb'](null,{'code':_0x263912,'result':-0x1,'extra':'KO'});return;}_0x4cb87c=_0x50caf4['rx'][_0xcd6b('0xd')](0x4)[_0xcd6b('0x12')](_0xcd6b('0x13'),'');if(_0x4cb87c['indexOf']('\x20')!=-0x1){_0x4cb87c=_0x4cb87c[_0xcd6b('0x14')](0x0,_0x4cb87c[_0xcd6b('0x15')]('\x20'));}if(_['startsWith'](_0x4cb87c,'-1')){_0x4cb87c=parseInt(_0x4cb87c);}_0x5c4f06=_0x50caf4['rx'][_0xcd6b('0x16')]('\x20');if(_0x5c4f06[_0xcd6b('0x17')]==0x3){_0x5c4f06=_0x5c4f06[0x2][_0xcd6b('0xd')](0x1,_0x5c4f06[0x2][_0xcd6b('0x17')]-0x1);}else if(_0x5c4f06[_0xcd6b('0x17')]>0x3){var _0xdc016f=/\((.+)\)/;var _0x594781=_0x50caf4['rx']['match'](_0xdc016f);if(_0x594781){_0x5c4f06=_0x594781[0x1];}else{_0x5c4f06=null;}}else{_0x5c4f06=null;}_0x50caf4['cb'](null,{'code':_0x263912,'result':_0x4cb87c,'extra':_0x5c4f06});}});_0x53b212['on'](_0xcd6b('0x18'),function(_0x55d18c){_0x57a49d[_0xcd6b('0xc')](_0xcd6b('0x18'),new AGIError(_0xcd6b('0x19'),_0x55d18c[_0xcd6b('0x1a')]));});_0x53b212['on']('close',function(){_0x57a49d[_0xcd6b('0xc')](_0xcd6b('0x1b'),new AGIError(_0xcd6b('0x1c')));});_0x53b212['on'](_0xcd6b('0x1d'),function(){_0x57a49d[_0xcd6b('0xc')](_0xcd6b('0x1d'),new AGIError('E_AGI_SOCKET_TIMEOUT'));_0x53b212['destroy']();});_0x53b212['pipe'](_0x78e4d3);this[_0xcd6b('0x1e')]=function(_0x203b8e,_0xe359f3){var _0x203b8e=_0x203b8e||'',_0xe359f3=typeof _0xe359f3==_0xcd6b('0x10')?_0xe359f3:new Function();_0x50caf4={'tx':_0x203b8e,'rx':'','cb':_0xe359f3};_0x53b212[_0xcd6b('0x1f')](_0x203b8e+'\x0a');},this[_0xcd6b('0x1b')]=function(){_0x53b212[_0xcd6b('0x20')]();};}util['inherits'](AGIChannel,EventEmitter);AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x22')]=function(_0x5c096c){return this['command'][_0xcd6b('0x23')](this,_0x5c096c);};AGIChannel['prototype'][_0xcd6b('0x24')]=function(){return this[_0xcd6b('0x22')]('ANSWER');};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x25')]=function(_0x26dfb8,_0x254b82,_0x2dd9ee){_0x26dfb8=_0x26dfb8===undefined?_0xcd6b('0x26'):_0x26dfb8;_0x254b82=_0x254b82===undefined?'5':_0x254b82;_0x2dd9ee=_0x2dd9ee===undefined?'1':_0x2dd9ee;return this[_0xcd6b('0x22')](util[_0xcd6b('0x27')](_0xcd6b('0x28'),_0x26dfb8,_0x254b82*0x3e8,_0x2dd9ee));};AGIChannel[_0xcd6b('0x21')]['noop']=function(_0x1ce049){_0x1ce049=_0x1ce049||_0xcd6b('0x29');return this['sendRequest'](util[_0xcd6b('0x27')]('VERBOSE\x20\x22%s\x22',_0x1ce049));};AGIChannel['prototype'][_0xcd6b('0x2a')]=function(_0x580985,_0x15a79d){if(_[_0xcd6b('0x2b')](_0x15a79d)){return this[_0xcd6b('0x22')](util['format'](_0xcd6b('0x2c'),_0x580985,_0x15a79d[_0xcd6b('0x2d')](',')));}return this[_0xcd6b('0x22')](util[_0xcd6b('0x27')](_0xcd6b('0x2c'),_0x580985,_0x15a79d));};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x2e')]=function(_0x4de31a){return this[_0xcd6b('0x22')](util['format'](_0xcd6b('0x2f'),_0x4de31a));};AGIChannel['prototype'][_0xcd6b('0x30')]=function(_0x1dccd8){return this['sendRequest'](util[_0xcd6b('0x27')](_0xcd6b('0x31'),_0x1dccd8));};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x32')]=function(_0x595bdb){return this['sendRequest'](util[_0xcd6b('0x27')]('SET\x20PRIORITY\x20%s',_0x595bdb));};AGIChannel['prototype'][_0xcd6b('0x33')]=function(){return this[_0xcd6b('0x22')](_0xcd6b('0x34'));};AGIChannel[_0xcd6b('0x21')]['setVariable']=function(_0x2529d5,_0x1ef667){var _0x4a9cad=_[_0xcd6b('0x35')](_0x1ef667)||_[_0xcd6b('0x36')](_0x1ef667)?_0x1ef667[_0xcd6b('0x37')]():_0x1ef667;return this['sendRequest'](util[_0xcd6b('0x27')]('SET\x20VARIABLE\x20%s\x20\x22%s\x22',_0x2529d5,_0x4a9cad?_0x4a9cad[_0xcd6b('0x37')]()['replace'](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x38')]=function(_0x16ef00,_0x59bfa2){return this['sendRequest'](util['format']('SAY\x20NUMBER\x20%s\x20%s',_0x16ef00,_0x59bfa2));};AGIChannel['prototype'][_0xcd6b('0x39')]=function(_0x458aee,_0x5f0846){return this['sendRequest'](util[_0xcd6b('0x27')](_0xcd6b('0x3a'),_0x458aee,_0x5f0846));};AGIChannel['prototype'][_0xcd6b('0x3b')]=function(_0x4fe39b,_0x3b1d5a){return this[_0xcd6b('0x22')](util[_0xcd6b('0x27')](_0xcd6b('0x3c'),_0x4fe39b,_0x3b1d5a));};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x3d')]=function(_0x76b852,_0xc3b20c,_0x35f951){_0xc3b20c=_0xc3b20c||this[_0xcd6b('0x3e')];_0x35f951=_0x35f951||0x1;this[_0xcd6b('0x2e')](_0x76b852);this[_0xcd6b('0x30')](_0xc3b20c);this['setPriority'](_0x35f951);return this[_0xcd6b('0x3f')](util['format']('GOTO\x20%s\x20%s\x20%s',_0x76b852,_0xc3b20c,_0x35f951));};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x40')]=function(_0x28b178){return this[_0xcd6b('0x22')](util[_0xcd6b('0x27')](_0xcd6b('0x41'),_0x28b178));};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x42')]=function(_0x3d865c,_0x39d74e,_0x4f6293,_0x8da2f6,_0x3971e9,_0x44102a){_0x39d74e=_0x39d74e||_0xcd6b('0x43');_0x4f6293=_0x4f6293||'';_0x8da2f6=_0x8da2f6===undefined?-0x1:_0x8da2f6==='-1'?-0x1:_0x8da2f6*0x3e8;_0x3971e9=_0x3971e9===undefined?'':'s='+_0x3971e9;_0x44102a=_0x44102a?'BEEP':'';return this[_0xcd6b('0x22')](util[_0xcd6b('0x27')](_0xcd6b('0x44'),_0x3d865c,_0x39d74e,_0x4f6293,_0x8da2f6,_0x44102a,_0x3971e9));};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x45')]=function(_0xa086ae,_0x48ac8a){_0x48ac8a=_0x48ac8a||'';return this[_0xcd6b('0x22')](util['format'](_0xcd6b('0x46'),_0xa086ae,_0x48ac8a));};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x47')]=function(_0x1a4218){return this[_0xcd6b('0x2a')](_0xcd6b('0x48'),_0x1a4218);};AGIChannel[_0xcd6b('0x21')][_0xcd6b('0x49')]=function(_0x562ee6){return this[_0xcd6b('0x2a')](_0xcd6b('0x4a'),_0x562ee6);};AGIChannel[_0xcd6b('0x21')]['error']=function(_0x9ff0f9,_0x510b89){this[_0xcd6b('0x3f')](util['format'](_0xcd6b('0x4b'),_0x9ff0f9['id'],_0x9ff0f9[_0xcd6b('0x4c')],_0x510b89));return{'code':0x1f4,'result':'-1','extra':''};};module[_0xcd6b('0x4d')]=AGIChannel;
\ No newline at end of file
+var _0x179d=['E_AGI_SOCKET_CLOSE','E_AGI_SOCKET_TIMEOUT','destroy','pipe','command','write','inherits','sendRequest','sync','answer','ANSWER','prototype','getData','beep','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','noop','NO\x20MESSAGE','exec','isArray','EXEC\x20%s\x20%s','join','setContext','SET\x20CONTEXT\x20%s','SET\x20EXTENSION\x20%s','setPriority','SET\x20PRIORITY\x20%s','HANGUP','setVariable','isBoolean','isNumber','toString','SET\x20VARIABLE\x20%s\x20\x22%s\x22','SAY\x20NUMBER\x20%s\x20%s','sayDigits','SAY\x20DIGITS\x20%s\x20%s','sayPhonetic','continueAt','extension','GOTO\x20%s\x20%s\x20%s','getVariable','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','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','label','exports','lodash','events','EventEmitter','./error','call','setEncoding','utf8','setTimeout','headers','ready','line','toLowerCase','hangup','520-Invalid','520\x20End\x20of\x20proper','function','substring','no\x20code','replace','result=','startsWith','split','match','error','emit','code','close'];(function(_0x484cac,_0x30ad3a){var _0x1d6e77=function(_0x4f5f16){while(--_0x4f5f16){_0x484cac['push'](_0x484cac['shift']());}};_0x1d6e77(++_0x30ad3a);}(_0x179d,0x85));var _0xd179=function(_0x127d51,_0x3d2160){_0x127d51=_0x127d51-0x0;var _0x2eb69e=_0x179d[_0x127d51];return _0x2eb69e;};'use strict';var util=require('util');var _=require(_0xd179('0x0'));var EventEmitter=require(_0xd179('0x1'))[_0xd179('0x2')];var AGIReply=require('./reply');var AGIError=require(_0xd179('0x3'));function AGIChannel(_0x491297){var _0x595fd6=this,_0x3f667f=new AGIReply(),_0x45aab8=![],_0x3dcc18={};EventEmitter[_0xd179('0x4')](_0x595fd6);_0x491297[_0xd179('0x5')](_0xd179('0x6'));_0x491297[_0xd179('0x7')](0x8*0x3c*0x3c*0x3e8);_0x3f667f[_0xd179('0x5')](_0xd179('0x6'));_0x3f667f['on'](_0xd179('0x8'),function(_0x1eeb07){for(var _0x3bafa5 in _0x1eeb07){_0x595fd6[_0x3bafa5]=_0x1eeb07[_0x3bafa5];}_0x595fd6['emit'](_0xd179('0x9'));});_0x3f667f['on'](_0xd179('0xa'),function(_0x5519f4){if(_0x5519f4[_0xd179('0xb')]()==_0xd179('0xc')){_0x595fd6['emit']('hangup');return;}if(_0x5519f4['substring'](0x0,0xb)==_0xd179('0xd')){_0x45aab8=!![];}if(_0x45aab8){_0x3dcc18['rx']+=_0x5519f4+'\x0a';if(_0x5519f4['search'](_0xd179('0xe'))!=-0x1){_0x45aab8=![];}}else{_0x3dcc18['rx']=_0x5519f4;}if(_0x45aab8){return;}if(typeof _0x3dcc18['cb']==_0xd179('0xf')){var _0x35c1e2=_0x3dcc18['rx'][_0xd179('0x10')](0x0,0x3),_0x3392f7=null,_0xdb90c3=null;_0x35c1e2=parseInt(_0x35c1e2);if(isNaN(_0x35c1e2)){_0x3dcc18['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0xd179('0x11')});return;}if(_0x35c1e2!=0xc8){_0x3dcc18['cb'](null,{'code':_0x35c1e2,'result':-0x1,'extra':'KO'});return;}_0x3392f7=_0x3dcc18['rx']['substring'](0x4)[_0xd179('0x12')](_0xd179('0x13'),'');if(_0x3392f7['indexOf']('\x20')!=-0x1){_0x3392f7=_0x3392f7['substr'](0x0,_0x3392f7['indexOf']('\x20'));}if(_[_0xd179('0x14')](_0x3392f7,'-1')){_0x3392f7=parseInt(_0x3392f7);}_0xdb90c3=_0x3dcc18['rx'][_0xd179('0x15')]('\x20');if(_0xdb90c3['length']==0x3){_0xdb90c3=_0xdb90c3[0x2][_0xd179('0x10')](0x1,_0xdb90c3[0x2]['length']-0x1);}else if(_0xdb90c3['length']>0x3){var _0x386d2e=/\((.+)\)/;var _0x1fa3c2=_0x3dcc18['rx'][_0xd179('0x16')](_0x386d2e);if(_0x1fa3c2){_0xdb90c3=_0x1fa3c2[0x1];}else{_0xdb90c3=null;}}else{_0xdb90c3=null;}_0x3dcc18['cb'](null,{'code':_0x35c1e2,'result':_0x3392f7,'extra':_0xdb90c3});}});_0x491297['on'](_0xd179('0x17'),function(_0x283faf){_0x595fd6[_0xd179('0x18')](_0xd179('0x17'),new AGIError('E_AGI_SOCKET_ERROR',_0x283faf[_0xd179('0x19')]));});_0x491297['on'](_0xd179('0x1a'),function(){_0x595fd6[_0xd179('0x18')](_0xd179('0x1a'),new AGIError(_0xd179('0x1b')));});_0x491297['on']('timeout',function(){_0x595fd6[_0xd179('0x18')]('timeout',new AGIError(_0xd179('0x1c')));_0x491297[_0xd179('0x1d')]();});_0x491297[_0xd179('0x1e')](_0x3f667f);this[_0xd179('0x1f')]=function(_0x2fee98,_0x1ebe0f){var _0x2fee98=_0x2fee98||'',_0x1ebe0f=typeof _0x1ebe0f==_0xd179('0xf')?_0x1ebe0f:new Function();_0x3dcc18={'tx':_0x2fee98,'rx':'','cb':_0x1ebe0f};_0x491297[_0xd179('0x20')](_0x2fee98+'\x0a');},this[_0xd179('0x1a')]=function(){_0x491297[_0xd179('0x1d')]();};}util[_0xd179('0x21')](AGIChannel,EventEmitter);AGIChannel['prototype'][_0xd179('0x22')]=function(_0x1a85eb){return this[_0xd179('0x1f')][_0xd179('0x23')](this,_0x1a85eb);};AGIChannel['prototype'][_0xd179('0x24')]=function(){return this[_0xd179('0x22')](_0xd179('0x25'));};AGIChannel[_0xd179('0x26')][_0xd179('0x27')]=function(_0x5bb0f0,_0x45dbcc,_0x5b5d58){_0x5bb0f0=_0x5bb0f0===undefined?_0xd179('0x28'):_0x5bb0f0;_0x45dbcc=_0x45dbcc===undefined?'5':_0x45dbcc;_0x5b5d58=_0x5b5d58===undefined?'1':_0x5b5d58;return this[_0xd179('0x22')](util[_0xd179('0x29')](_0xd179('0x2a'),_0x5bb0f0,_0x45dbcc*0x3e8,_0x5b5d58));};AGIChannel[_0xd179('0x26')][_0xd179('0x2b')]=function(_0x4e9311){_0x4e9311=_0x4e9311||_0xd179('0x2c');return this[_0xd179('0x22')](util['format']('VERBOSE\x20\x22%s\x22',_0x4e9311));};AGIChannel[_0xd179('0x26')][_0xd179('0x2d')]=function(_0x2fa825,_0x30961c){if(_[_0xd179('0x2e')](_0x30961c)){return this[_0xd179('0x22')](util[_0xd179('0x29')](_0xd179('0x2f'),_0x2fa825,_0x30961c[_0xd179('0x30')](',')));}return this[_0xd179('0x22')](util[_0xd179('0x29')]('EXEC\x20%s\x20%s',_0x2fa825,_0x30961c));};AGIChannel['prototype'][_0xd179('0x31')]=function(_0x538bbc){return this[_0xd179('0x22')](util['format'](_0xd179('0x32'),_0x538bbc));};AGIChannel[_0xd179('0x26')]['setExtension']=function(_0x3468b6){return this[_0xd179('0x22')](util[_0xd179('0x29')](_0xd179('0x33'),_0x3468b6));};AGIChannel['prototype'][_0xd179('0x34')]=function(_0xb5f627){return this[_0xd179('0x22')](util[_0xd179('0x29')](_0xd179('0x35'),_0xb5f627));};AGIChannel[_0xd179('0x26')]['hangup']=function(){return this[_0xd179('0x22')](_0xd179('0x36'));};AGIChannel['prototype'][_0xd179('0x37')]=function(_0x268e23,_0x5a98ca){var _0x34010a=_[_0xd179('0x38')](_0x5a98ca)||_[_0xd179('0x39')](_0x5a98ca)?_0x5a98ca[_0xd179('0x3a')]():_0x5a98ca;return this[_0xd179('0x22')](util[_0xd179('0x29')](_0xd179('0x3b'),_0x268e23,_0x34010a?_0x34010a['toString']()[_0xd179('0x12')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel['prototype']['sayNumber']=function(_0x59b0f8,_0x2399a1){return this[_0xd179('0x22')](util['format'](_0xd179('0x3c'),_0x59b0f8,_0x2399a1));};AGIChannel[_0xd179('0x26')][_0xd179('0x3d')]=function(_0x1b5717,_0x395053){return this[_0xd179('0x22')](util['format'](_0xd179('0x3e'),_0x1b5717,_0x395053));};AGIChannel[_0xd179('0x26')][_0xd179('0x3f')]=function(_0x323748,_0x24de09){return this[_0xd179('0x22')](util[_0xd179('0x29')]('SAY\x20PHONETIC\x20\x22%s\x22\x20%s',_0x323748,_0x24de09));};AGIChannel[_0xd179('0x26')][_0xd179('0x40')]=function(_0x21ee3e,_0x3250c0,_0x530801){_0x3250c0=_0x3250c0||this[_0xd179('0x41')];_0x530801=_0x530801||0x1;this[_0xd179('0x31')](_0x21ee3e);this['setExtension'](_0x3250c0);this[_0xd179('0x34')](_0x530801);return this['noop'](util[_0xd179('0x29')](_0xd179('0x42'),_0x21ee3e,_0x3250c0,_0x530801));};AGIChannel[_0xd179('0x26')][_0xd179('0x43')]=function(_0x204483){return this[_0xd179('0x22')](util[_0xd179('0x29')](_0xd179('0x44'),_0x204483));};AGIChannel[_0xd179('0x26')][_0xd179('0x45')]=function(_0x341e68,_0x15c586,_0x135b05,_0x59d3f4,_0x4a1ffb,_0x970085){_0x15c586=_0x15c586||_0xd179('0x46');_0x135b05=_0x135b05||'';_0x59d3f4=_0x59d3f4===undefined?-0x1:_0x59d3f4==='-1'?-0x1:_0x59d3f4*0x3e8;_0x4a1ffb=_0x4a1ffb===undefined?'':'s='+_0x4a1ffb;_0x970085=_0x970085?_0xd179('0x47'):'';return this[_0xd179('0x22')](util[_0xd179('0x29')](_0xd179('0x48'),_0x341e68,_0x15c586,_0x135b05,_0x59d3f4,_0x970085,_0x4a1ffb));};AGIChannel[_0xd179('0x26')][_0xd179('0x49')]=function(_0x38698b,_0x342f3d){_0x342f3d=_0x342f3d||'';return this[_0xd179('0x22')](util['format'](_0xd179('0x4a'),_0x38698b,_0x342f3d));};AGIChannel[_0xd179('0x26')][_0xd179('0x4b')]=function(_0x15ec5d){return this['exec']('AGI',_0x15ec5d);};AGIChannel[_0xd179('0x26')]['wait']=function(_0x5b8c5b){return this[_0xd179('0x2d')](_0xd179('0x4c'),_0x5b8c5b);};AGIChannel[_0xd179('0x26')][_0xd179('0x17')]=function(_0x5d7485,_0x4a4b26){this[_0xd179('0x2b')](util[_0xd179('0x29')](_0xd179('0x4d'),_0x5d7485['id'],_0x5d7485[_0xd179('0x4e')],_0x4a4b26));return{'code':0x1f4,'result':'-1','extra':''};};module[_0xd179('0x4f')]=AGIChannel;
\ No newline at end of file