Built motion from commit 1ea47bf4.|2.6.34
[motion2.git] / server / services / agi / channel.js
index 78e7600..599cf1d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb9f4=['wav','BEEP','streamFile','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','AGI','wait','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','label','exports','lodash','EventEmitter','call','setEncoding','utf8','setTimeout','headers','ready','line','toLowerCase','hangup','emit','substring','520-Invalid','search','520\x20End\x20of\x20proper','function','no\x20code','replace','indexOf','startsWith','split','length','error','E_AGI_SOCKET_ERROR','code','close','timeout','destroy','pipe','command','write','inherits','prototype','sendRequest','sync','answer','ANSWER','getData','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','SET\x20CONTEXT\x20%s','setExtension','SET\x20EXTENSION\x20%s','setPriority','SET\x20PRIORITY\x20%s','HANGUP','setVariable','isNumber','toString','SET\x20VARIABLE\x20%s\x20\x22%s\x22','sayNumber','SAY\x20NUMBER\x20%s\x20%s','SAY\x20DIGITS\x20%s\x20%s','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','GOTO\x20%s\x20%s\x20%s','GET\x20VARIABLE\x20\x22%s\x22','recordFile'];(function(_0x404bda,_0x1c2365){var _0x4b5a6e=function(_0xe9ec47){while(--_0xe9ec47){_0x404bda['push'](_0x404bda['shift']());}};_0x4b5a6e(++_0x1c2365);}(_0xb9f4,0xf4));var _0x4b9f=function(_0x5eacc3,_0x2ef066){_0x5eacc3=_0x5eacc3-0x0;var _0x410cfa=_0xb9f4[_0x5eacc3];return _0x410cfa;};'use strict';var util=require('util');var _=require(_0x4b9f('0x0'));var EventEmitter=require('events')[_0x4b9f('0x1')];var AGIReply=require('./reply');var AGIError=require('./error');function AGIChannel(_0x4372ef){var _0x5bad5c=this,_0x34ae00=new AGIReply(),_0x1df6ea=![],_0x51f5aa={};EventEmitter[_0x4b9f('0x2')](_0x5bad5c);_0x4372ef[_0x4b9f('0x3')](_0x4b9f('0x4'));_0x4372ef[_0x4b9f('0x5')](0x8*0x3c*0x3c*0x3e8);_0x34ae00[_0x4b9f('0x3')](_0x4b9f('0x4'));_0x34ae00['on'](_0x4b9f('0x6'),function(_0x395cec){for(var _0x34c8ed in _0x395cec){_0x5bad5c[_0x34c8ed]=_0x395cec[_0x34c8ed];}_0x5bad5c['emit'](_0x4b9f('0x7'));});_0x34ae00['on'](_0x4b9f('0x8'),function(_0x32b87d){if(_0x32b87d[_0x4b9f('0x9')]()==_0x4b9f('0xa')){_0x5bad5c[_0x4b9f('0xb')]('hangup');return;}if(_0x32b87d[_0x4b9f('0xc')](0x0,0xb)==_0x4b9f('0xd')){_0x1df6ea=!![];}if(_0x1df6ea){_0x51f5aa['rx']+=_0x32b87d+'\x0a';if(_0x32b87d[_0x4b9f('0xe')](_0x4b9f('0xf'))!=-0x1){_0x1df6ea=![];}}else{_0x51f5aa['rx']=_0x32b87d;}if(_0x1df6ea){return;}if(typeof _0x51f5aa['cb']==_0x4b9f('0x10')){var _0x3c51ae=_0x51f5aa['rx'][_0x4b9f('0xc')](0x0,0x3),_0x171e52=null,_0xf5f1cd=null;_0x3c51ae=parseInt(_0x3c51ae);if(isNaN(_0x3c51ae)){_0x51f5aa['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x4b9f('0x11')});return;}if(_0x3c51ae!=0xc8){_0x51f5aa['cb'](null,{'code':_0x3c51ae,'result':-0x1,'extra':'KO'});return;}_0x171e52=_0x51f5aa['rx'][_0x4b9f('0xc')](0x4)[_0x4b9f('0x12')]('result=','');if(_0x171e52[_0x4b9f('0x13')]('\x20')!=-0x1){_0x171e52=_0x171e52['substr'](0x0,_0x171e52[_0x4b9f('0x13')]('\x20'));}if(_[_0x4b9f('0x14')](_0x171e52,'-1')){_0x171e52=parseInt(_0x171e52);}_0xf5f1cd=_0x51f5aa['rx'][_0x4b9f('0x15')]('\x20');if(_0xf5f1cd[_0x4b9f('0x16')]==0x3){_0xf5f1cd=_0xf5f1cd[0x2][_0x4b9f('0xc')](0x1,_0xf5f1cd[0x2][_0x4b9f('0x16')]-0x1);}else if(_0xf5f1cd['length']>0x3){var _0x4b2e8b=/\((.+)\)/;var _0x354e26=_0x51f5aa['rx']['match'](_0x4b2e8b);if(_0x354e26){_0xf5f1cd=_0x354e26[0x1];}else{_0xf5f1cd=null;}}else{_0xf5f1cd=null;}_0x51f5aa['cb'](null,{'code':_0x3c51ae,'result':_0x171e52,'extra':_0xf5f1cd});}});_0x4372ef['on']('error',function(_0x1d3856){_0x5bad5c['emit'](_0x4b9f('0x17'),new AGIError(_0x4b9f('0x18'),_0x1d3856[_0x4b9f('0x19')]));});_0x4372ef['on'](_0x4b9f('0x1a'),function(){_0x5bad5c[_0x4b9f('0xb')](_0x4b9f('0x1a'),new AGIError('E_AGI_SOCKET_CLOSE'));});_0x4372ef['on'](_0x4b9f('0x1b'),function(){_0x5bad5c[_0x4b9f('0xb')](_0x4b9f('0x1b'),new AGIError('E_AGI_SOCKET_TIMEOUT'));_0x4372ef[_0x4b9f('0x1c')]();});_0x4372ef[_0x4b9f('0x1d')](_0x34ae00);this[_0x4b9f('0x1e')]=function(_0x451cbb,_0x551227){var _0x451cbb=_0x451cbb||'',_0x551227=typeof _0x551227==_0x4b9f('0x10')?_0x551227:new Function();_0x51f5aa={'tx':_0x451cbb,'rx':'','cb':_0x551227};_0x4372ef[_0x4b9f('0x1f')](_0x451cbb+'\x0a');},this[_0x4b9f('0x1a')]=function(){_0x4372ef[_0x4b9f('0x1c')]();};}util[_0x4b9f('0x20')](AGIChannel,EventEmitter);AGIChannel[_0x4b9f('0x21')][_0x4b9f('0x22')]=function(_0x1c6d92){return this[_0x4b9f('0x1e')][_0x4b9f('0x23')](this,_0x1c6d92);};AGIChannel[_0x4b9f('0x21')][_0x4b9f('0x24')]=function(){return this[_0x4b9f('0x22')](_0x4b9f('0x25'));};AGIChannel[_0x4b9f('0x21')][_0x4b9f('0x26')]=function(_0x269a4a,_0x14f92c,_0xb5387d){_0x269a4a=_0x269a4a===undefined?_0x4b9f('0x27'):_0x269a4a;_0x14f92c=_0x14f92c===undefined?'5':_0x14f92c;_0xb5387d=_0xb5387d===undefined?'1':_0xb5387d;return this[_0x4b9f('0x22')](util[_0x4b9f('0x28')](_0x4b9f('0x29'),_0x269a4a,_0x14f92c*0x3e8,_0xb5387d));};AGIChannel[_0x4b9f('0x21')][_0x4b9f('0x2a')]=function(_0x3958f8){_0x3958f8=_0x3958f8||_0x4b9f('0x2b');return this[_0x4b9f('0x22')](util[_0x4b9f('0x28')](_0x4b9f('0x2c'),_0x3958f8));};AGIChannel[_0x4b9f('0x21')][_0x4b9f('0x2d')]=function(_0x350a41,_0x150241){if(_[_0x4b9f('0x2e')](_0x150241)){return this[_0x4b9f('0x22')](util[_0x4b9f('0x28')](_0x4b9f('0x2f'),_0x350a41,_0x150241[_0x4b9f('0x30')](',')));}return this[_0x4b9f('0x22')](util[_0x4b9f('0x28')](_0x4b9f('0x2f'),_0x350a41,_0x150241));};AGIChannel[_0x4b9f('0x21')][_0x4b9f('0x31')]=function(_0x41b540){return this[_0x4b9f('0x22')](util['format'](_0x4b9f('0x32'),_0x41b540));};AGIChannel['prototype'][_0x4b9f('0x33')]=function(_0x124273){return this['sendRequest'](util['format'](_0x4b9f('0x34'),_0x124273));};AGIChannel['prototype'][_0x4b9f('0x35')]=function(_0x226fc3){return this[_0x4b9f('0x22')](util['format'](_0x4b9f('0x36'),_0x226fc3));};AGIChannel[_0x4b9f('0x21')][_0x4b9f('0xa')]=function(){return this[_0x4b9f('0x22')](_0x4b9f('0x37'));};AGIChannel[_0x4b9f('0x21')][_0x4b9f('0x38')]=function(_0xee07a2,_0x56ebb9){var _0xafdaa3=_['isBoolean'](_0x56ebb9)||_[_0x4b9f('0x39')](_0x56ebb9)?_0x56ebb9[_0x4b9f('0x3a')]():_0x56ebb9;return this[_0x4b9f('0x22')](util[_0x4b9f('0x28')](_0x4b9f('0x3b'),_0xee07a2,_0xafdaa3?_0xafdaa3[_0x4b9f('0x3a')]()['replace'](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0x4b9f('0x21')][_0x4b9f('0x3c')]=function(_0x23d54e,_0x5b1824){return this['sendRequest'](util[_0x4b9f('0x28')](_0x4b9f('0x3d'),_0x23d54e,_0x5b1824));};AGIChannel[_0x4b9f('0x21')]['sayDigits']=function(_0x5eb388,_0x286be3){return this['sendRequest'](util[_0x4b9f('0x28')](_0x4b9f('0x3e'),_0x5eb388,_0x286be3));};AGIChannel['prototype']['sayPhonetic']=function(_0x3d98e,_0x411916){return this[_0x4b9f('0x22')](util[_0x4b9f('0x28')](_0x4b9f('0x3f'),_0x3d98e,_0x411916));};AGIChannel['prototype'][_0x4b9f('0x40')]=function(_0x1ee35f,_0x33536a,_0x4d53e2){_0x33536a=_0x33536a||this['extension'];_0x4d53e2=_0x4d53e2||0x1;this[_0x4b9f('0x31')](_0x1ee35f);this['setExtension'](_0x33536a);this[_0x4b9f('0x35')](_0x4d53e2);return this[_0x4b9f('0x2a')](util['format'](_0x4b9f('0x41'),_0x1ee35f,_0x33536a,_0x4d53e2));};AGIChannel[_0x4b9f('0x21')]['getVariable']=function(_0x39d35e){return this[_0x4b9f('0x22')](util['format'](_0x4b9f('0x42'),_0x39d35e));};AGIChannel[_0x4b9f('0x21')][_0x4b9f('0x43')]=function(_0x5669a4,_0x4a96ac,_0x1fa88d,_0x212d6e,_0x1ccab7,_0x5cef86){_0x4a96ac=_0x4a96ac||_0x4b9f('0x44');_0x1fa88d=_0x1fa88d||'';_0x212d6e=_0x212d6e===undefined?-0x1:_0x212d6e==='-1'?-0x1:_0x212d6e*0x3e8;_0x1ccab7=_0x1ccab7===undefined?'':'s='+_0x1ccab7;_0x5cef86=_0x5cef86?_0x4b9f('0x45'):'';return this['sendRequest'](util[_0x4b9f('0x28')]('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x5669a4,_0x4a96ac,_0x1fa88d,_0x212d6e,_0x5cef86,_0x1ccab7));};AGIChannel['prototype'][_0x4b9f('0x46')]=function(_0x98cc73,_0x1ad998){_0x1ad998=_0x1ad998||'';return this['sendRequest'](util[_0x4b9f('0x28')](_0x4b9f('0x47'),_0x98cc73,_0x1ad998));};AGIChannel[_0x4b9f('0x21')]['agi']=function(_0xd2c083){return this[_0x4b9f('0x2d')](_0x4b9f('0x48'),_0xd2c083);};AGIChannel['prototype'][_0x4b9f('0x49')]=function(_0x564ef7){return this[_0x4b9f('0x2d')](_0x4b9f('0x4a'),_0x564ef7);};AGIChannel['prototype'][_0x4b9f('0x17')]=function(_0x2f79ad,_0x165fc7){this[_0x4b9f('0x2a')](util[_0x4b9f('0x28')](_0x4b9f('0x4b'),_0x2f79ad['id'],_0x2f79ad[_0x4b9f('0x4c')],_0x165fc7));return{'code':0x1f4,'result':'-1','extra':''};};module[_0x4b9f('0x4d')]=AGIChannel;
\ No newline at end of file
+var _0x2f5e=['BEEP','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','exec','WAIT','label','exports','lodash','./reply','./error','call','utf8','setTimeout','setEncoding','headers','emit','ready','line','toLowerCase','hangup','520-Invalid','search','520\x20End\x20of\x20proper','function','substring','no\x20code','replace','result=','indexOf','substr','startsWith','length','error','E_AGI_SOCKET_ERROR','close','timeout','E_AGI_SOCKET_TIMEOUT','destroy','command','write','inherits','sendRequest','prototype','ANSWER','getData','beep','format','noop','NO\x20MESSAGE','VERBOSE\x20\x22%s\x22','EXEC\x20%s\x20%s','join','SET\x20PRIORITY\x20%s','HANGUP','setVariable','isBoolean','toString','sayNumber','sayDigits','SAY\x20DIGITS\x20%s\x20%s','sayPhonetic','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','setContext','setExtension','setPriority','GOTO\x20%s\x20%s\x20%s','getVariable','GET\x20VARIABLE\x20\x22%s\x22','recordFile','wav'];(function(_0x358393,_0x32a76d){var _0x3758e4=function(_0x108983){while(--_0x108983){_0x358393['push'](_0x358393['shift']());}};_0x3758e4(++_0x32a76d);}(_0x2f5e,0xe0));var _0xe2f5=function(_0x189c9e,_0x1c3b55){_0x189c9e=_0x189c9e-0x0;var _0x3f38ca=_0x2f5e[_0x189c9e];return _0x3f38ca;};'use strict';var util=require('util');var _=require(_0xe2f5('0x0'));var EventEmitter=require('events')['EventEmitter'];var AGIReply=require(_0xe2f5('0x1'));var AGIError=require(_0xe2f5('0x2'));function AGIChannel(_0x868bd0){var _0x30f212=this,_0x92ee5f=new AGIReply(),_0x51f475=![],_0x3ad654={};EventEmitter[_0xe2f5('0x3')](_0x30f212);_0x868bd0['setEncoding'](_0xe2f5('0x4'));_0x868bd0[_0xe2f5('0x5')](0x8*0x3c*0x3c*0x3e8);_0x92ee5f[_0xe2f5('0x6')]('utf8');_0x92ee5f['on'](_0xe2f5('0x7'),function(_0x2562a3){for(var _0x49edc0 in _0x2562a3){_0x30f212[_0x49edc0]=_0x2562a3[_0x49edc0];}_0x30f212[_0xe2f5('0x8')](_0xe2f5('0x9'));});_0x92ee5f['on'](_0xe2f5('0xa'),function(_0x5f060b){if(_0x5f060b[_0xe2f5('0xb')]()==_0xe2f5('0xc')){_0x30f212[_0xe2f5('0x8')](_0xe2f5('0xc'));return;}if(_0x5f060b['substring'](0x0,0xb)==_0xe2f5('0xd')){_0x51f475=!![];}if(_0x51f475){_0x3ad654['rx']+=_0x5f060b+'\x0a';if(_0x5f060b[_0xe2f5('0xe')](_0xe2f5('0xf'))!=-0x1){_0x51f475=![];}}else{_0x3ad654['rx']=_0x5f060b;}if(_0x51f475){return;}if(typeof _0x3ad654['cb']==_0xe2f5('0x10')){var _0x24ccca=_0x3ad654['rx'][_0xe2f5('0x11')](0x0,0x3),_0x80ba59=null,_0x5bf4c1=null;_0x24ccca=parseInt(_0x24ccca);if(isNaN(_0x24ccca)){_0x3ad654['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0xe2f5('0x12')});return;}if(_0x24ccca!=0xc8){_0x3ad654['cb'](null,{'code':_0x24ccca,'result':-0x1,'extra':'KO'});return;}_0x80ba59=_0x3ad654['rx']['substring'](0x4)[_0xe2f5('0x13')](_0xe2f5('0x14'),'');if(_0x80ba59[_0xe2f5('0x15')]('\x20')!=-0x1){_0x80ba59=_0x80ba59[_0xe2f5('0x16')](0x0,_0x80ba59[_0xe2f5('0x15')]('\x20'));}if(_[_0xe2f5('0x17')](_0x80ba59,'-1')){_0x80ba59=parseInt(_0x80ba59);}_0x5bf4c1=_0x3ad654['rx']['split']('\x20');if(_0x5bf4c1[_0xe2f5('0x18')]==0x3){_0x5bf4c1=_0x5bf4c1[0x2][_0xe2f5('0x11')](0x1,_0x5bf4c1[0x2][_0xe2f5('0x18')]-0x1);}else if(_0x5bf4c1['length']>0x3){var _0x4c3824=/\((.+)\)/;var _0x1da730=_0x3ad654['rx']['match'](_0x4c3824);if(_0x1da730){_0x5bf4c1=_0x1da730[0x1];}else{_0x5bf4c1=null;}}else{_0x5bf4c1=null;}_0x3ad654['cb'](null,{'code':_0x24ccca,'result':_0x80ba59,'extra':_0x5bf4c1});}});_0x868bd0['on'](_0xe2f5('0x19'),function(_0x56ab1c){_0x30f212[_0xe2f5('0x8')](_0xe2f5('0x19'),new AGIError(_0xe2f5('0x1a'),_0x56ab1c['code']));});_0x868bd0['on'](_0xe2f5('0x1b'),function(){_0x30f212[_0xe2f5('0x8')](_0xe2f5('0x1b'),new AGIError('E_AGI_SOCKET_CLOSE'));});_0x868bd0['on'](_0xe2f5('0x1c'),function(){_0x30f212['emit'](_0xe2f5('0x1c'),new AGIError(_0xe2f5('0x1d')));_0x868bd0[_0xe2f5('0x1e')]();});_0x868bd0['pipe'](_0x92ee5f);this[_0xe2f5('0x1f')]=function(_0xc56a88,_0xd31609){var _0xc56a88=_0xc56a88||'',_0xd31609=typeof _0xd31609==_0xe2f5('0x10')?_0xd31609:new Function();_0x3ad654={'tx':_0xc56a88,'rx':'','cb':_0xd31609};_0x868bd0[_0xe2f5('0x20')](_0xc56a88+'\x0a');},this['close']=function(){_0x868bd0[_0xe2f5('0x1e')]();};}util[_0xe2f5('0x21')](AGIChannel,EventEmitter);AGIChannel['prototype'][_0xe2f5('0x22')]=function(_0x583fe6){return this[_0xe2f5('0x1f')]['sync'](this,_0x583fe6);};AGIChannel[_0xe2f5('0x23')]['answer']=function(){return this[_0xe2f5('0x22')](_0xe2f5('0x24'));};AGIChannel[_0xe2f5('0x23')][_0xe2f5('0x25')]=function(_0xd8dac4,_0x3b956d,_0x222e21){_0xd8dac4=_0xd8dac4===undefined?_0xe2f5('0x26'):_0xd8dac4;_0x3b956d=_0x3b956d===undefined?'5':_0x3b956d;_0x222e21=_0x222e21===undefined?'1':_0x222e21;return this[_0xe2f5('0x22')](util[_0xe2f5('0x27')]('GET\x20DATA\x20\x22%s\x22\x20%s\x20%s',_0xd8dac4,_0x3b956d*0x3e8,_0x222e21));};AGIChannel['prototype'][_0xe2f5('0x28')]=function(_0x4d666d){_0x4d666d=_0x4d666d||_0xe2f5('0x29');return this[_0xe2f5('0x22')](util['format'](_0xe2f5('0x2a'),_0x4d666d));};AGIChannel[_0xe2f5('0x23')]['exec']=function(_0x5c7f28,_0x2af100){if(_['isArray'](_0x2af100)){return this[_0xe2f5('0x22')](util[_0xe2f5('0x27')](_0xe2f5('0x2b'),_0x5c7f28,_0x2af100[_0xe2f5('0x2c')](',')));}return this['sendRequest'](util[_0xe2f5('0x27')]('EXEC\x20%s\x20%s',_0x5c7f28,_0x2af100));};AGIChannel[_0xe2f5('0x23')]['setContext']=function(_0x54e89a){return this[_0xe2f5('0x22')](util[_0xe2f5('0x27')]('SET\x20CONTEXT\x20%s',_0x54e89a));};AGIChannel[_0xe2f5('0x23')]['setExtension']=function(_0x89a5ec){return this[_0xe2f5('0x22')](util[_0xe2f5('0x27')]('SET\x20EXTENSION\x20%s',_0x89a5ec));};AGIChannel[_0xe2f5('0x23')]['setPriority']=function(_0x497384){return this[_0xe2f5('0x22')](util[_0xe2f5('0x27')](_0xe2f5('0x2d'),_0x497384));};AGIChannel[_0xe2f5('0x23')][_0xe2f5('0xc')]=function(){return this[_0xe2f5('0x22')](_0xe2f5('0x2e'));};AGIChannel[_0xe2f5('0x23')][_0xe2f5('0x2f')]=function(_0x29c588,_0x40c661){var _0x5f6c81=_[_0xe2f5('0x30')](_0x40c661)||_['isNumber'](_0x40c661)?_0x40c661[_0xe2f5('0x31')]():_0x40c661;return this[_0xe2f5('0x22')](util[_0xe2f5('0x27')]('SET\x20VARIABLE\x20%s\x20\x22%s\x22',_0x29c588,_0x5f6c81?_0x5f6c81[_0xe2f5('0x31')]()[_0xe2f5('0x13')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0xe2f5('0x23')][_0xe2f5('0x32')]=function(_0xd52970,_0x21c7ce){return this[_0xe2f5('0x22')](util[_0xe2f5('0x27')]('SAY\x20NUMBER\x20%s\x20%s',_0xd52970,_0x21c7ce));};AGIChannel[_0xe2f5('0x23')][_0xe2f5('0x33')]=function(_0x43fbff,_0x1cbacf){return this[_0xe2f5('0x22')](util['format'](_0xe2f5('0x34'),_0x43fbff,_0x1cbacf));};AGIChannel[_0xe2f5('0x23')][_0xe2f5('0x35')]=function(_0x59df8f,_0x3701d9){return this[_0xe2f5('0x22')](util[_0xe2f5('0x27')](_0xe2f5('0x36'),_0x59df8f,_0x3701d9));};AGIChannel['prototype'][_0xe2f5('0x37')]=function(_0x55d3f3,_0x340e33,_0x548a09){_0x340e33=_0x340e33||this['extension'];_0x548a09=_0x548a09||0x1;this[_0xe2f5('0x38')](_0x55d3f3);this[_0xe2f5('0x39')](_0x340e33);this[_0xe2f5('0x3a')](_0x548a09);return this[_0xe2f5('0x28')](util[_0xe2f5('0x27')](_0xe2f5('0x3b'),_0x55d3f3,_0x340e33,_0x548a09));};AGIChannel['prototype'][_0xe2f5('0x3c')]=function(_0x3628be){return this['sendRequest'](util[_0xe2f5('0x27')](_0xe2f5('0x3d'),_0x3628be));};AGIChannel[_0xe2f5('0x23')][_0xe2f5('0x3e')]=function(_0x359357,_0x52efa8,_0x1a1dd2,_0x1f7c15,_0x38e108,_0x2bc4b9){_0x52efa8=_0x52efa8||_0xe2f5('0x3f');_0x1a1dd2=_0x1a1dd2||'';_0x1f7c15=_0x1f7c15===undefined?-0x1:_0x1f7c15==='-1'?-0x1:_0x1f7c15*0x3e8;_0x38e108=_0x38e108===undefined?'':'s='+_0x38e108;_0x2bc4b9=_0x2bc4b9?_0xe2f5('0x40'):'';return this['sendRequest'](util[_0xe2f5('0x27')](_0xe2f5('0x41'),_0x359357,_0x52efa8,_0x1a1dd2,_0x1f7c15,_0x2bc4b9,_0x38e108));};AGIChannel[_0xe2f5('0x23')]['streamFile']=function(_0x121ac5,_0x49c332){_0x49c332=_0x49c332||'';return this[_0xe2f5('0x22')](util['format'](_0xe2f5('0x42'),_0x121ac5,_0x49c332));};AGIChannel[_0xe2f5('0x23')][_0xe2f5('0x43')]=function(_0x16881e){return this[_0xe2f5('0x44')]('AGI',_0x16881e);};AGIChannel[_0xe2f5('0x23')]['wait']=function(_0x45bbae){return this[_0xe2f5('0x44')](_0xe2f5('0x45'),_0x45bbae);};AGIChannel[_0xe2f5('0x23')]['error']=function(_0x406bf7,_0x5c19b5){this[_0xe2f5('0x28')](util[_0xe2f5('0x27')]('ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s',_0x406bf7['id'],_0x406bf7[_0xe2f5('0x46')],_0x5c19b5));return{'code':0x1f4,'result':'-1','extra':''};};module[_0xe2f5('0x47')]=AGIChannel;
\ No newline at end of file