Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / agi / channel.js
index 680fd38..49e74b7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x80c3=['format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','noop','VERBOSE\x20\x22%s\x22','exec','EXEC\x20%s\x20%s','join','setContext','SET\x20CONTEXT\x20%s','setExtension','setVariable','isBoolean','toString','SET\x20VARIABLE\x20%s\x20\x22%s\x22','sayNumber','SAY\x20NUMBER\x20%s\x20%s','sayDigits','SAY\x20DIGITS\x20%s\x20%s','sayPhonetic','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','extension','setPriority','GOTO\x20%s\x20%s\x20%s','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','WAIT','error','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','util','EventEmitter','./error','call','setTimeout','setEncoding','utf8','ready','line','toLowerCase','hangup','emit','substring','520-Invalid','search','520\x20End\x20of\x20proper','function','no\x20code','replace','result=','substr','indexOf','startsWith','split','length','match','close','E_AGI_SOCKET_CLOSE','timeout','E_AGI_SOCKET_TIMEOUT','destroy','pipe','command','write','inherits','prototype','sendRequest','getData','beep'];(function(_0x5ad72c,_0x1ec6a6){var _0x2d6ff7=function(_0x123181){while(--_0x123181){_0x5ad72c['push'](_0x5ad72c['shift']());}};_0x2d6ff7(++_0x1ec6a6);}(_0x80c3,0x18f));var _0x380c=function(_0x102ff9,_0x907658){_0x102ff9=_0x102ff9-0x0;var _0x24fa97=_0x80c3[_0x102ff9];return _0x24fa97;};'use strict';var util=require(_0x380c('0x0'));var _=require('lodash');var EventEmitter=require('events')[_0x380c('0x1')];var AGIReply=require('./reply');var AGIError=require(_0x380c('0x2'));function AGIChannel(_0x4202d4){var _0x24728a=this,_0x52fd7e=new AGIReply(),_0x565a08=![],_0x553158={};EventEmitter[_0x380c('0x3')](_0x24728a);_0x4202d4['setEncoding']('utf8');_0x4202d4[_0x380c('0x4')](0x8*0x3c*0x3c*0x3e8);_0x52fd7e[_0x380c('0x5')](_0x380c('0x6'));_0x52fd7e['on']('headers',function(_0x1d853e){for(var _0x170062 in _0x1d853e){_0x24728a[_0x170062]=_0x1d853e[_0x170062];}_0x24728a['emit'](_0x380c('0x7'));});_0x52fd7e['on'](_0x380c('0x8'),function(_0x50be52){if(_0x50be52[_0x380c('0x9')]()==_0x380c('0xa')){_0x24728a[_0x380c('0xb')]('hangup');return;}if(_0x50be52[_0x380c('0xc')](0x0,0xb)==_0x380c('0xd')){_0x565a08=!![];}if(_0x565a08){_0x553158['rx']+=_0x50be52+'\x0a';if(_0x50be52[_0x380c('0xe')](_0x380c('0xf'))!=-0x1){_0x565a08=![];}}else{_0x553158['rx']=_0x50be52;}if(_0x565a08){return;}if(typeof _0x553158['cb']==_0x380c('0x10')){var _0x475148=_0x553158['rx'][_0x380c('0xc')](0x0,0x3),_0x39bd46=null,_0x14793b=null;_0x475148=parseInt(_0x475148);if(isNaN(_0x475148)){_0x553158['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x380c('0x11')});return;}if(_0x475148!=0xc8){_0x553158['cb'](null,{'code':_0x475148,'result':-0x1,'extra':'KO'});return;}_0x39bd46=_0x553158['rx']['substring'](0x4)[_0x380c('0x12')](_0x380c('0x13'),'');if(_0x39bd46['indexOf']('\x20')!=-0x1){_0x39bd46=_0x39bd46[_0x380c('0x14')](0x0,_0x39bd46[_0x380c('0x15')]('\x20'));}if(_[_0x380c('0x16')](_0x39bd46,'-1')){_0x39bd46=parseInt(_0x39bd46);}_0x14793b=_0x553158['rx'][_0x380c('0x17')]('\x20');if(_0x14793b[_0x380c('0x18')]==0x3){_0x14793b=_0x14793b[0x2][_0x380c('0xc')](0x1,_0x14793b[0x2][_0x380c('0x18')]-0x1);}else if(_0x14793b[_0x380c('0x18')]>0x3){var _0x3022e6=/\((.+)\)/;var _0x4829c5=_0x553158['rx'][_0x380c('0x19')](_0x3022e6);if(_0x4829c5){_0x14793b=_0x4829c5[0x1];}else{_0x14793b=null;}}else{_0x14793b=null;}_0x553158['cb'](null,{'code':_0x475148,'result':_0x39bd46,'extra':_0x14793b});}});_0x4202d4['on']('error',function(_0x5b2c5c){_0x24728a[_0x380c('0xb')]('error',new AGIError('E_AGI_SOCKET_ERROR',_0x5b2c5c['code']));});_0x4202d4['on']('close',function(){_0x24728a[_0x380c('0xb')](_0x380c('0x1a'),new AGIError(_0x380c('0x1b')));});_0x4202d4['on'](_0x380c('0x1c'),function(){_0x24728a[_0x380c('0xb')](_0x380c('0x1c'),new AGIError(_0x380c('0x1d')));_0x4202d4[_0x380c('0x1e')]();});_0x4202d4[_0x380c('0x1f')](_0x52fd7e);this[_0x380c('0x20')]=function(_0x22f8f2,_0x16b9ac){var _0x22f8f2=_0x22f8f2||'',_0x16b9ac=typeof _0x16b9ac==_0x380c('0x10')?_0x16b9ac:new Function();_0x553158={'tx':_0x22f8f2,'rx':'','cb':_0x16b9ac};_0x4202d4[_0x380c('0x21')](_0x22f8f2+'\x0a');},this[_0x380c('0x1a')]=function(){_0x4202d4[_0x380c('0x1e')]();};}util[_0x380c('0x22')](AGIChannel,EventEmitter);AGIChannel[_0x380c('0x23')][_0x380c('0x24')]=function(_0x5b5052){return this[_0x380c('0x20')]['sync'](this,_0x5b5052);};AGIChannel[_0x380c('0x23')]['answer']=function(){return this[_0x380c('0x24')]('ANSWER');};AGIChannel['prototype'][_0x380c('0x25')]=function(_0x290f1c,_0x5bce51,_0x24d551){_0x290f1c=_0x290f1c===undefined?_0x380c('0x26'):_0x290f1c;_0x5bce51=_0x5bce51===undefined?'5':_0x5bce51;_0x24d551=_0x24d551===undefined?'1':_0x24d551;return this[_0x380c('0x24')](util[_0x380c('0x27')](_0x380c('0x28'),_0x290f1c,_0x5bce51*0x3e8,_0x24d551));};AGIChannel[_0x380c('0x23')][_0x380c('0x29')]=function(_0x5ac3c2){_0x5ac3c2=_0x5ac3c2||'NO\x20MESSAGE';return this[_0x380c('0x24')](util[_0x380c('0x27')](_0x380c('0x2a'),_0x5ac3c2));};AGIChannel[_0x380c('0x23')][_0x380c('0x2b')]=function(_0x49a51c,_0x5a2e17){if(_['isArray'](_0x5a2e17)){return this[_0x380c('0x24')](util['format'](_0x380c('0x2c'),_0x49a51c,_0x5a2e17[_0x380c('0x2d')](',')));}return this['sendRequest'](util[_0x380c('0x27')](_0x380c('0x2c'),_0x49a51c,_0x5a2e17));};AGIChannel[_0x380c('0x23')][_0x380c('0x2e')]=function(_0x54b933){return this[_0x380c('0x24')](util[_0x380c('0x27')](_0x380c('0x2f'),_0x54b933));};AGIChannel[_0x380c('0x23')][_0x380c('0x30')]=function(_0x239ea8){return this[_0x380c('0x24')](util[_0x380c('0x27')]('SET\x20EXTENSION\x20%s',_0x239ea8));};AGIChannel['prototype']['setPriority']=function(_0x34e358){return this['sendRequest'](util[_0x380c('0x27')]('SET\x20PRIORITY\x20%s',_0x34e358));};AGIChannel[_0x380c('0x23')][_0x380c('0xa')]=function(){return this[_0x380c('0x24')]('HANGUP');};AGIChannel[_0x380c('0x23')][_0x380c('0x31')]=function(_0xf2fce0,_0x3d9a98){var _0x56898c=_[_0x380c('0x32')](_0x3d9a98)||_['isNumber'](_0x3d9a98)?_0x3d9a98[_0x380c('0x33')]():_0x3d9a98;return this['sendRequest'](util['format'](_0x380c('0x34'),_0xf2fce0,_0x56898c?_0x56898c[_0x380c('0x33')]()[_0x380c('0x12')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0x380c('0x23')][_0x380c('0x35')]=function(_0x72b4ab,_0x48be48){return this[_0x380c('0x24')](util['format'](_0x380c('0x36'),_0x72b4ab,_0x48be48));};AGIChannel[_0x380c('0x23')][_0x380c('0x37')]=function(_0x4c858a,_0x306c61){return this[_0x380c('0x24')](util[_0x380c('0x27')](_0x380c('0x38'),_0x4c858a,_0x306c61));};AGIChannel['prototype'][_0x380c('0x39')]=function(_0x561772,_0x31d880){return this['sendRequest'](util[_0x380c('0x27')](_0x380c('0x3a'),_0x561772,_0x31d880));};AGIChannel[_0x380c('0x23')][_0x380c('0x3b')]=function(_0x502ad9,_0x19bb94,_0x48c339){_0x19bb94=_0x19bb94||this[_0x380c('0x3c')];_0x48c339=_0x48c339||0x1;this[_0x380c('0x2e')](_0x502ad9);this['setExtension'](_0x19bb94);this[_0x380c('0x3d')](_0x48c339);return this[_0x380c('0x29')](util[_0x380c('0x27')](_0x380c('0x3e'),_0x502ad9,_0x19bb94,_0x48c339));};AGIChannel['prototype'][_0x380c('0x3f')]=function(_0x4019fe){return this[_0x380c('0x24')](util[_0x380c('0x27')](_0x380c('0x40'),_0x4019fe));};AGIChannel[_0x380c('0x23')][_0x380c('0x41')]=function(_0x58ebe2,_0x5a5dce,_0x1a63ad,_0x53c0dd,_0x43d1e0,_0x38917b){_0x5a5dce=_0x5a5dce||_0x380c('0x42');_0x1a63ad=_0x1a63ad||'';_0x53c0dd=_0x53c0dd===undefined?-0x1:_0x53c0dd==='-1'?-0x1:_0x53c0dd*0x3e8;_0x43d1e0=_0x43d1e0===undefined?'':'s='+_0x43d1e0;_0x38917b=_0x38917b?'BEEP':'';return this['sendRequest'](util['format'](_0x380c('0x43'),_0x58ebe2,_0x5a5dce,_0x1a63ad,_0x53c0dd,_0x38917b,_0x43d1e0));};AGIChannel['prototype'][_0x380c('0x44')]=function(_0xafeb59,_0x50d6dc){_0x50d6dc=_0x50d6dc||'';return this[_0x380c('0x24')](util[_0x380c('0x27')](_0x380c('0x45'),_0xafeb59,_0x50d6dc));};AGIChannel[_0x380c('0x23')]['agi']=function(_0x2639db){return this[_0x380c('0x2b')]('AGI',_0x2639db);};AGIChannel[_0x380c('0x23')]['wait']=function(_0x5170fd){return this[_0x380c('0x2b')](_0x380c('0x46'),_0x5170fd);};AGIChannel[_0x380c('0x23')][_0x380c('0x47')]=function(_0x4e7176,_0x6b9c8f){this[_0x380c('0x29')](util[_0x380c('0x27')](_0x380c('0x48'),_0x4e7176['id'],_0x4e7176['label'],_0x6b9c8f));return{'code':0x1f4,'result':'-1','extra':''};};module['exports']=AGIChannel;
\ No newline at end of file
+var _0xfa9f=['ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','label','exports','lodash','events','EventEmitter','./reply','./error','setEncoding','utf8','headers','emit','ready','line','toLowerCase','hangup','substring','520-Invalid','search','function','no\x20code','replace','result=','indexOf','split','length','match','error','E_AGI_SOCKET_ERROR','close','E_AGI_SOCKET_CLOSE','timeout','E_AGI_SOCKET_TIMEOUT','destroy','pipe','command','inherits','prototype','sync','ANSWER','getData','beep','sendRequest','format','noop','NO\x20MESSAGE','exec','isArray','EXEC\x20%s\x20%s','join','setContext','SET\x20CONTEXT\x20%s','setExtension','SET\x20EXTENSION\x20%s','SET\x20PRIORITY\x20%s','isBoolean','isNumber','toString','SAY\x20NUMBER\x20%s\x20%s','sayDigits','sayPhonetic','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','setPriority','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','WAIT'];(function(_0x1e881d,_0x219a7a){var _0x59e0c5=function(_0x47fe73){while(--_0x47fe73){_0x1e881d['push'](_0x1e881d['shift']());}};_0x59e0c5(++_0x219a7a);}(_0xfa9f,0x93));var _0xffa9=function(_0x40cdfa,_0x1cf634){_0x40cdfa=_0x40cdfa-0x0;var _0x2c5e4d=_0xfa9f[_0x40cdfa];return _0x2c5e4d;};'use strict';var util=require('util');var _=require(_0xffa9('0x0'));var EventEmitter=require(_0xffa9('0x1'))[_0xffa9('0x2')];var AGIReply=require(_0xffa9('0x3'));var AGIError=require(_0xffa9('0x4'));function AGIChannel(_0x492e53){var _0x200b31=this,_0x5bed37=new AGIReply(),_0x2f8db9=![],_0x242026={};EventEmitter['call'](_0x200b31);_0x492e53[_0xffa9('0x5')]('utf8');_0x492e53['setTimeout'](0x8*0x3c*0x3c*0x3e8);_0x5bed37[_0xffa9('0x5')](_0xffa9('0x6'));_0x5bed37['on'](_0xffa9('0x7'),function(_0x13c3d0){for(var _0x5cc8b2 in _0x13c3d0){_0x200b31[_0x5cc8b2]=_0x13c3d0[_0x5cc8b2];}_0x200b31[_0xffa9('0x8')](_0xffa9('0x9'));});_0x5bed37['on'](_0xffa9('0xa'),function(_0x3a7a1a){if(_0x3a7a1a[_0xffa9('0xb')]()==_0xffa9('0xc')){_0x200b31[_0xffa9('0x8')](_0xffa9('0xc'));return;}if(_0x3a7a1a[_0xffa9('0xd')](0x0,0xb)==_0xffa9('0xe')){_0x2f8db9=!![];}if(_0x2f8db9){_0x242026['rx']+=_0x3a7a1a+'\x0a';if(_0x3a7a1a[_0xffa9('0xf')]('520\x20End\x20of\x20proper')!=-0x1){_0x2f8db9=![];}}else{_0x242026['rx']=_0x3a7a1a;}if(_0x2f8db9){return;}if(typeof _0x242026['cb']==_0xffa9('0x10')){var _0x21ac24=_0x242026['rx'][_0xffa9('0xd')](0x0,0x3),_0x23b3f9=null,_0x231aad=null;_0x21ac24=parseInt(_0x21ac24);if(isNaN(_0x21ac24)){_0x242026['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0xffa9('0x11')});return;}if(_0x21ac24!=0xc8){_0x242026['cb'](null,{'code':_0x21ac24,'result':-0x1,'extra':'KO'});return;}_0x23b3f9=_0x242026['rx'][_0xffa9('0xd')](0x4)[_0xffa9('0x12')](_0xffa9('0x13'),'');if(_0x23b3f9[_0xffa9('0x14')]('\x20')!=-0x1){_0x23b3f9=_0x23b3f9['substr'](0x0,_0x23b3f9[_0xffa9('0x14')]('\x20'));}if(_['startsWith'](_0x23b3f9,'-1')){_0x23b3f9=parseInt(_0x23b3f9);}_0x231aad=_0x242026['rx'][_0xffa9('0x15')]('\x20');if(_0x231aad[_0xffa9('0x16')]==0x3){_0x231aad=_0x231aad[0x2]['substring'](0x1,_0x231aad[0x2][_0xffa9('0x16')]-0x1);}else if(_0x231aad[_0xffa9('0x16')]>0x3){var _0x1ce6c3=/\((.+)\)/;var _0x568950=_0x242026['rx'][_0xffa9('0x17')](_0x1ce6c3);if(_0x568950){_0x231aad=_0x568950[0x1];}else{_0x231aad=null;}}else{_0x231aad=null;}_0x242026['cb'](null,{'code':_0x21ac24,'result':_0x23b3f9,'extra':_0x231aad});}});_0x492e53['on'](_0xffa9('0x18'),function(_0x3cd552){_0x200b31[_0xffa9('0x8')]('error',new AGIError(_0xffa9('0x19'),_0x3cd552['code']));});_0x492e53['on'](_0xffa9('0x1a'),function(){_0x200b31[_0xffa9('0x8')](_0xffa9('0x1a'),new AGIError(_0xffa9('0x1b')));});_0x492e53['on'](_0xffa9('0x1c'),function(){_0x200b31[_0xffa9('0x8')]('timeout',new AGIError(_0xffa9('0x1d')));_0x492e53[_0xffa9('0x1e')]();});_0x492e53[_0xffa9('0x1f')](_0x5bed37);this[_0xffa9('0x20')]=function(_0x2d0784,_0x2c9c20){var _0x2d0784=_0x2d0784||'',_0x2c9c20=typeof _0x2c9c20==_0xffa9('0x10')?_0x2c9c20:new Function();_0x242026={'tx':_0x2d0784,'rx':'','cb':_0x2c9c20};_0x492e53['write'](_0x2d0784+'\x0a');},this['close']=function(){_0x492e53[_0xffa9('0x1e')]();};}util[_0xffa9('0x21')](AGIChannel,EventEmitter);AGIChannel[_0xffa9('0x22')]['sendRequest']=function(_0x5d3401){return this[_0xffa9('0x20')][_0xffa9('0x23')](this,_0x5d3401);};AGIChannel[_0xffa9('0x22')]['answer']=function(){return this['sendRequest'](_0xffa9('0x24'));};AGIChannel['prototype'][_0xffa9('0x25')]=function(_0x2a2ceb,_0x231b50,_0x331606){_0x2a2ceb=_0x2a2ceb===undefined?_0xffa9('0x26'):_0x2a2ceb;_0x231b50=_0x231b50===undefined?'5':_0x231b50;_0x331606=_0x331606===undefined?'1':_0x331606;return this[_0xffa9('0x27')](util[_0xffa9('0x28')]('GET\x20DATA\x20\x22%s\x22\x20%s\x20%s',_0x2a2ceb,_0x231b50*0x3e8,_0x331606));};AGIChannel[_0xffa9('0x22')][_0xffa9('0x29')]=function(_0xa12be0){_0xa12be0=_0xa12be0||_0xffa9('0x2a');return this[_0xffa9('0x27')](util[_0xffa9('0x28')]('VERBOSE\x20\x22%s\x22',_0xa12be0));};AGIChannel['prototype'][_0xffa9('0x2b')]=function(_0x3484f6,_0x3b01fe){if(_[_0xffa9('0x2c')](_0x3b01fe)){return this[_0xffa9('0x27')](util[_0xffa9('0x28')](_0xffa9('0x2d'),_0x3484f6,_0x3b01fe[_0xffa9('0x2e')](',')));}return this[_0xffa9('0x27')](util['format'](_0xffa9('0x2d'),_0x3484f6,_0x3b01fe));};AGIChannel[_0xffa9('0x22')][_0xffa9('0x2f')]=function(_0x5b86f8){return this[_0xffa9('0x27')](util[_0xffa9('0x28')](_0xffa9('0x30'),_0x5b86f8));};AGIChannel['prototype'][_0xffa9('0x31')]=function(_0xa1b92e){return this[_0xffa9('0x27')](util['format'](_0xffa9('0x32'),_0xa1b92e));};AGIChannel['prototype']['setPriority']=function(_0x412fbc){return this['sendRequest'](util[_0xffa9('0x28')](_0xffa9('0x33'),_0x412fbc));};AGIChannel[_0xffa9('0x22')][_0xffa9('0xc')]=function(){return this[_0xffa9('0x27')]('HANGUP');};AGIChannel[_0xffa9('0x22')]['setVariable']=function(_0x4e9dad,_0x1fea76){var _0x4eef99=_[_0xffa9('0x34')](_0x1fea76)||_[_0xffa9('0x35')](_0x1fea76)?_0x1fea76['toString']():_0x1fea76;return this['sendRequest'](util[_0xffa9('0x28')]('SET\x20VARIABLE\x20%s\x20\x22%s\x22',_0x4e9dad,_0x4eef99?_0x4eef99[_0xffa9('0x36')]()[_0xffa9('0x12')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel['prototype']['sayNumber']=function(_0x4827a6,_0x5685e4){return this[_0xffa9('0x27')](util[_0xffa9('0x28')](_0xffa9('0x37'),_0x4827a6,_0x5685e4));};AGIChannel['prototype'][_0xffa9('0x38')]=function(_0x3d9cd7,_0xf0f36b){return this[_0xffa9('0x27')](util[_0xffa9('0x28')]('SAY\x20DIGITS\x20%s\x20%s',_0x3d9cd7,_0xf0f36b));};AGIChannel['prototype'][_0xffa9('0x39')]=function(_0x2ef6cc,_0x44d2e4){return this[_0xffa9('0x27')](util['format'](_0xffa9('0x3a'),_0x2ef6cc,_0x44d2e4));};AGIChannel[_0xffa9('0x22')]['continueAt']=function(_0x410d17,_0x17f5ca,_0x446f87){_0x17f5ca=_0x17f5ca||this['extension'];_0x446f87=_0x446f87||0x1;this['setContext'](_0x410d17);this[_0xffa9('0x31')](_0x17f5ca);this[_0xffa9('0x3b')](_0x446f87);return this[_0xffa9('0x29')](util[_0xffa9('0x28')]('GOTO\x20%s\x20%s\x20%s',_0x410d17,_0x17f5ca,_0x446f87));};AGIChannel[_0xffa9('0x22')][_0xffa9('0x3c')]=function(_0xe18568){return this[_0xffa9('0x27')](util[_0xffa9('0x28')](_0xffa9('0x3d'),_0xe18568));};AGIChannel[_0xffa9('0x22')][_0xffa9('0x3e')]=function(_0x2da10a,_0x3823a6,_0x1a1baa,_0x26c8d8,_0x32645e,_0x26ec89){_0x3823a6=_0x3823a6||_0xffa9('0x3f');_0x1a1baa=_0x1a1baa||'';_0x26c8d8=_0x26c8d8===undefined?-0x1:_0x26c8d8==='-1'?-0x1:_0x26c8d8*0x3e8;_0x32645e=_0x32645e===undefined?'':'s='+_0x32645e;_0x26ec89=_0x26ec89?'BEEP':'';return this['sendRequest'](util[_0xffa9('0x28')](_0xffa9('0x40'),_0x2da10a,_0x3823a6,_0x1a1baa,_0x26c8d8,_0x26ec89,_0x32645e));};AGIChannel[_0xffa9('0x22')][_0xffa9('0x41')]=function(_0x345bb7,_0x3e59df){_0x3e59df=_0x3e59df||'';return this['sendRequest'](util[_0xffa9('0x28')](_0xffa9('0x42'),_0x345bb7,_0x3e59df));};AGIChannel['prototype']['agi']=function(_0x271ad1){return this[_0xffa9('0x2b')](_0xffa9('0x43'),_0x271ad1);};AGIChannel['prototype']['wait']=function(_0x5ad793){return this[_0xffa9('0x2b')](_0xffa9('0x44'),_0x5ad793);};AGIChannel[_0xffa9('0x22')][_0xffa9('0x18')]=function(_0x125d08,_0x50ab4b){this[_0xffa9('0x29')](util['format'](_0xffa9('0x45'),_0x125d08['id'],_0x125d08[_0xffa9('0x46')],_0x50ab4b));return{'code':0x1f4,'result':'-1','extra':''};};module[_0xffa9('0x47')]=AGIChannel;
\ No newline at end of file