Built motion from commit e781dc3c.|2.5.42
[motion2.git] / server / services / agi / channel.js
index b5687bc..edf6f90 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6e04=['ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','label','exports','util','events','EventEmitter','./reply','./error','call','setEncoding','utf8','setTimeout','emit','line','toLowerCase','hangup','search','520\x20End\x20of\x20proper','no\x20code','substring','replace','result=','substr','indexOf','length','match','error','code','close','timeout','E_AGI_SOCKET_TIMEOUT','destroy','pipe','command','inherits','prototype','sendRequest','sync','answer','ANSWER','getData','beep','format','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','SET\x20PRIORITY\x20%s','HANGUP','setVariable','isNumber','toString','SAY\x20NUMBER\x20%s\x20%s','sayDigits','sayPhonetic','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','wav','streamFile','agi','AGI','wait','WAIT'];(function(_0x381589,_0x27a707){var _0x2a075d=function(_0x4ea19d){while(--_0x4ea19d){_0x381589['push'](_0x381589['shift']());}};_0x2a075d(++_0x27a707);}(_0x6e04,0x99));var _0x46e0=function(_0x9df3d8,_0x4074e3){_0x9df3d8=_0x9df3d8-0x0;var _0x366da1=_0x6e04[_0x9df3d8];return _0x366da1;};'use strict';var util=require(_0x46e0('0x0'));var _=require('lodash');var EventEmitter=require(_0x46e0('0x1'))[_0x46e0('0x2')];var AGIReply=require(_0x46e0('0x3'));var AGIError=require(_0x46e0('0x4'));function AGIChannel(_0x2a413f){var _0x174013=this,_0x366e3d=new AGIReply(),_0x1f9b90=![],_0x5336e1={};EventEmitter[_0x46e0('0x5')](_0x174013);_0x2a413f[_0x46e0('0x6')](_0x46e0('0x7'));_0x2a413f[_0x46e0('0x8')](0x8*0x3c*0x3c*0x3e8);_0x366e3d['setEncoding'](_0x46e0('0x7'));_0x366e3d['on']('headers',function(_0x2cc125){for(var _0x2b4645 in _0x2cc125){_0x174013[_0x2b4645]=_0x2cc125[_0x2b4645];}_0x174013[_0x46e0('0x9')]('ready');});_0x366e3d['on'](_0x46e0('0xa'),function(_0x152c1c){if(_0x152c1c[_0x46e0('0xb')]()==_0x46e0('0xc')){_0x174013['emit'](_0x46e0('0xc'));return;}if(_0x152c1c['substring'](0x0,0xb)=='520-Invalid'){_0x1f9b90=!![];}if(_0x1f9b90){_0x5336e1['rx']+=_0x152c1c+'\x0a';if(_0x152c1c[_0x46e0('0xd')](_0x46e0('0xe'))!=-0x1){_0x1f9b90=![];}}else{_0x5336e1['rx']=_0x152c1c;}if(_0x1f9b90){return;}if(typeof _0x5336e1['cb']=='function'){var _0x2d5d07=_0x5336e1['rx']['substring'](0x0,0x3),_0xece2b1=null,_0xac4ad7=null;_0x2d5d07=parseInt(_0x2d5d07);if(isNaN(_0x2d5d07)){_0x5336e1['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x46e0('0xf')});return;}if(_0x2d5d07!=0xc8){_0x5336e1['cb'](null,{'code':_0x2d5d07,'result':-0x1,'extra':'KO'});return;}_0xece2b1=_0x5336e1['rx'][_0x46e0('0x10')](0x4)[_0x46e0('0x11')](_0x46e0('0x12'),'');if(_0xece2b1['indexOf']('\x20')!=-0x1){_0xece2b1=_0xece2b1[_0x46e0('0x13')](0x0,_0xece2b1[_0x46e0('0x14')]('\x20'));}if(_['startsWith'](_0xece2b1,'-1')){_0xece2b1=parseInt(_0xece2b1);}_0xac4ad7=_0x5336e1['rx']['split']('\x20');if(_0xac4ad7[_0x46e0('0x15')]==0x3){_0xac4ad7=_0xac4ad7[0x2]['substring'](0x1,_0xac4ad7[0x2]['length']-0x1);}else if(_0xac4ad7['length']>0x3){var _0x576476=/\((.+)\)/;var _0x43cdc0=_0x5336e1['rx'][_0x46e0('0x16')](_0x576476);if(_0x43cdc0){_0xac4ad7=_0x43cdc0[0x1];}else{_0xac4ad7=null;}}else{_0xac4ad7=null;}_0x5336e1['cb'](null,{'code':_0x2d5d07,'result':_0xece2b1,'extra':_0xac4ad7});}});_0x2a413f['on'](_0x46e0('0x17'),function(_0x1ad6f7){_0x174013[_0x46e0('0x9')](_0x46e0('0x17'),new AGIError('E_AGI_SOCKET_ERROR',_0x1ad6f7[_0x46e0('0x18')]));});_0x2a413f['on'](_0x46e0('0x19'),function(){_0x174013[_0x46e0('0x9')](_0x46e0('0x19'),new AGIError('E_AGI_SOCKET_CLOSE'));});_0x2a413f['on'](_0x46e0('0x1a'),function(){_0x174013[_0x46e0('0x9')](_0x46e0('0x1a'),new AGIError(_0x46e0('0x1b')));_0x2a413f[_0x46e0('0x1c')]();});_0x2a413f[_0x46e0('0x1d')](_0x366e3d);this[_0x46e0('0x1e')]=function(_0x3af16f,_0x1ff63c){var _0x3af16f=_0x3af16f||'',_0x1ff63c=typeof _0x1ff63c=='function'?_0x1ff63c:new Function();_0x5336e1={'tx':_0x3af16f,'rx':'','cb':_0x1ff63c};_0x2a413f['write'](_0x3af16f+'\x0a');},this[_0x46e0('0x19')]=function(){_0x2a413f['destroy']();};}util[_0x46e0('0x1f')](AGIChannel,EventEmitter);AGIChannel[_0x46e0('0x20')][_0x46e0('0x21')]=function(_0x110a40){return this['command'][_0x46e0('0x22')](this,_0x110a40);};AGIChannel['prototype'][_0x46e0('0x23')]=function(){return this['sendRequest'](_0x46e0('0x24'));};AGIChannel[_0x46e0('0x20')][_0x46e0('0x25')]=function(_0x56082d,_0x842d6b,_0x781c32){_0x56082d=_0x56082d===undefined?_0x46e0('0x26'):_0x56082d;_0x842d6b=_0x842d6b===undefined?'5':_0x842d6b;_0x781c32=_0x781c32===undefined?'1':_0x781c32;return this[_0x46e0('0x21')](util[_0x46e0('0x27')]('GET\x20DATA\x20\x22%s\x22\x20%s\x20%s',_0x56082d,_0x842d6b*0x3e8,_0x781c32));};AGIChannel[_0x46e0('0x20')][_0x46e0('0x28')]=function(_0x439138){_0x439138=_0x439138||_0x46e0('0x29');return this[_0x46e0('0x21')](util[_0x46e0('0x27')](_0x46e0('0x2a'),_0x439138));};AGIChannel[_0x46e0('0x20')][_0x46e0('0x2b')]=function(_0x1026aa,_0x4938f4){if(_[_0x46e0('0x2c')](_0x4938f4)){return this[_0x46e0('0x21')](util['format'](_0x46e0('0x2d'),_0x1026aa,_0x4938f4[_0x46e0('0x2e')](',')));}return this['sendRequest'](util[_0x46e0('0x27')](_0x46e0('0x2d'),_0x1026aa,_0x4938f4));};AGIChannel[_0x46e0('0x20')][_0x46e0('0x2f')]=function(_0x36cddc){return this['sendRequest'](util['format'](_0x46e0('0x30'),_0x36cddc));};AGIChannel[_0x46e0('0x20')][_0x46e0('0x31')]=function(_0xffdcef){return this[_0x46e0('0x21')](util[_0x46e0('0x27')](_0x46e0('0x32'),_0xffdcef));};AGIChannel[_0x46e0('0x20')]['setPriority']=function(_0x396b19){return this[_0x46e0('0x21')](util[_0x46e0('0x27')](_0x46e0('0x33'),_0x396b19));};AGIChannel[_0x46e0('0x20')]['hangup']=function(){return this[_0x46e0('0x21')](_0x46e0('0x34'));};AGIChannel[_0x46e0('0x20')][_0x46e0('0x35')]=function(_0x492623,_0x2d4603){var _0x235272=_['isBoolean'](_0x2d4603)||_[_0x46e0('0x36')](_0x2d4603)?_0x2d4603['toString']():_0x2d4603;return this['sendRequest'](util[_0x46e0('0x27')]('SET\x20VARIABLE\x20%s\x20\x22%s\x22',_0x492623,_0x235272?_0x235272[_0x46e0('0x37')]()[_0x46e0('0x11')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0x46e0('0x20')]['sayNumber']=function(_0x5e489d,_0x26513a){return this['sendRequest'](util[_0x46e0('0x27')](_0x46e0('0x38'),_0x5e489d,_0x26513a));};AGIChannel['prototype'][_0x46e0('0x39')]=function(_0x512d17,_0x2a1421){return this['sendRequest'](util[_0x46e0('0x27')]('SAY\x20DIGITS\x20%s\x20%s',_0x512d17,_0x2a1421));};AGIChannel[_0x46e0('0x20')][_0x46e0('0x3a')]=function(_0x56ce92,_0x30dd28){return this['sendRequest'](util[_0x46e0('0x27')](_0x46e0('0x3b'),_0x56ce92,_0x30dd28));};AGIChannel['prototype'][_0x46e0('0x3c')]=function(_0x298c4b,_0x57ac17,_0x5f2a31){_0x57ac17=_0x57ac17||this[_0x46e0('0x3d')];_0x5f2a31=_0x5f2a31||0x1;this[_0x46e0('0x2f')](_0x298c4b);this[_0x46e0('0x31')](_0x57ac17);this[_0x46e0('0x3e')](_0x5f2a31);return this['noop'](util[_0x46e0('0x27')](_0x46e0('0x3f'),_0x298c4b,_0x57ac17,_0x5f2a31));};AGIChannel[_0x46e0('0x20')]['getVariable']=function(_0x54e2fe){return this[_0x46e0('0x21')](util[_0x46e0('0x27')](_0x46e0('0x40'),_0x54e2fe));};AGIChannel[_0x46e0('0x20')][_0x46e0('0x41')]=function(_0x314605,_0x23d1d2,_0x248adb,_0x4f4629,_0x2153c1,_0x3996dc){_0x23d1d2=_0x23d1d2||_0x46e0('0x42');_0x248adb=_0x248adb||'';_0x4f4629=_0x4f4629===undefined?-0x1:_0x4f4629==='-1'?-0x1:_0x4f4629*0x3e8;_0x2153c1=_0x2153c1===undefined?'':'s='+_0x2153c1;_0x3996dc=_0x3996dc?'BEEP':'';return this[_0x46e0('0x21')](util[_0x46e0('0x27')]('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x314605,_0x23d1d2,_0x248adb,_0x4f4629,_0x3996dc,_0x2153c1));};AGIChannel['prototype'][_0x46e0('0x43')]=function(_0x42fadb,_0x2b4c6e){_0x2b4c6e=_0x2b4c6e||'';return this[_0x46e0('0x21')](util[_0x46e0('0x27')]('STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22',_0x42fadb,_0x2b4c6e));};AGIChannel[_0x46e0('0x20')][_0x46e0('0x44')]=function(_0x882567){return this['exec'](_0x46e0('0x45'),_0x882567);};AGIChannel[_0x46e0('0x20')][_0x46e0('0x46')]=function(_0x3b9ab0){return this[_0x46e0('0x2b')](_0x46e0('0x47'),_0x3b9ab0);};AGIChannel[_0x46e0('0x20')]['error']=function(_0x283dec,_0x2c2c49){this['noop'](util['format'](_0x46e0('0x48'),_0x283dec['id'],_0x283dec[_0x46e0('0x49')],_0x2c2c49));return{'code':0x1f4,'result':'-1','extra':''};};module[_0x46e0('0x4a')]=AGIChannel;
\ No newline at end of file
+var _0x9f83=['length','match','error','E_AGI_SOCKET_ERROR','code','close','E_AGI_SOCKET_CLOSE','timeout','E_AGI_SOCKET_TIMEOUT','destroy','pipe','command','function','inherits','sendRequest','sync','prototype','answer','ANSWER','getData','beep','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','NO\x20MESSAGE','VERBOSE\x20\x22%s\x22','isArray','join','EXEC\x20%s\x20%s','setContext','SET\x20CONTEXT\x20%s','SET\x20EXTENSION\x20%s','setPriority','HANGUP','setVariable','isBoolean','isNumber','toString','replace','SAY\x20NUMBER\x20%s\x20%s','sayDigits','SAY\x20DIGITS\x20%s\x20%s','sayPhonetic','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','setExtension','noop','GOTO\x20%s\x20%s\x20%s','GET\x20VARIABLE\x20\x22%s\x22','wav','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','WAIT','label','exports','util','events','EventEmitter','setEncoding','utf8','headers','emit','ready','line','toLowerCase','hangup','substring','520-Invalid','no\x20code','indexOf','startsWith'];(function(_0x248dc8,_0x10c027){var _0x15aaee=function(_0xa53979){while(--_0xa53979){_0x248dc8['push'](_0x248dc8['shift']());}};_0x15aaee(++_0x10c027);}(_0x9f83,0x1ac));var _0x39f8=function(_0x3f2732,_0x4d078d){_0x3f2732=_0x3f2732-0x0;var _0xd7788a=_0x9f83[_0x3f2732];return _0xd7788a;};'use strict';var util=require(_0x39f8('0x0'));var _=require('lodash');var EventEmitter=require(_0x39f8('0x1'))[_0x39f8('0x2')];var AGIReply=require('./reply');var AGIError=require('./error');function AGIChannel(_0x606925){var _0x3b621e=this,_0x380223=new AGIReply(),_0x2e80ca=![],_0x2917f6={};EventEmitter['call'](_0x3b621e);_0x606925[_0x39f8('0x3')](_0x39f8('0x4'));_0x606925['setTimeout'](0x8*0x3c*0x3c*0x3e8);_0x380223[_0x39f8('0x3')](_0x39f8('0x4'));_0x380223['on'](_0x39f8('0x5'),function(_0x1e76c4){for(var _0x1c71a2 in _0x1e76c4){_0x3b621e[_0x1c71a2]=_0x1e76c4[_0x1c71a2];}_0x3b621e[_0x39f8('0x6')](_0x39f8('0x7'));});_0x380223['on'](_0x39f8('0x8'),function(_0x1170e6){if(_0x1170e6[_0x39f8('0x9')]()==_0x39f8('0xa')){_0x3b621e['emit'](_0x39f8('0xa'));return;}if(_0x1170e6[_0x39f8('0xb')](0x0,0xb)==_0x39f8('0xc')){_0x2e80ca=!![];}if(_0x2e80ca){_0x2917f6['rx']+=_0x1170e6+'\x0a';if(_0x1170e6['search']('520\x20End\x20of\x20proper')!=-0x1){_0x2e80ca=![];}}else{_0x2917f6['rx']=_0x1170e6;}if(_0x2e80ca){return;}if(typeof _0x2917f6['cb']=='function'){var _0x265a8c=_0x2917f6['rx'][_0x39f8('0xb')](0x0,0x3),_0x18b0b8=null,_0x8f92a9=null;_0x265a8c=parseInt(_0x265a8c);if(isNaN(_0x265a8c)){_0x2917f6['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x39f8('0xd')});return;}if(_0x265a8c!=0xc8){_0x2917f6['cb'](null,{'code':_0x265a8c,'result':-0x1,'extra':'KO'});return;}_0x18b0b8=_0x2917f6['rx'][_0x39f8('0xb')](0x4)['replace']('result=','');if(_0x18b0b8[_0x39f8('0xe')]('\x20')!=-0x1){_0x18b0b8=_0x18b0b8['substr'](0x0,_0x18b0b8[_0x39f8('0xe')]('\x20'));}if(_[_0x39f8('0xf')](_0x18b0b8,'-1')){_0x18b0b8=parseInt(_0x18b0b8);}_0x8f92a9=_0x2917f6['rx']['split']('\x20');if(_0x8f92a9[_0x39f8('0x10')]==0x3){_0x8f92a9=_0x8f92a9[0x2][_0x39f8('0xb')](0x1,_0x8f92a9[0x2][_0x39f8('0x10')]-0x1);}else if(_0x8f92a9[_0x39f8('0x10')]>0x3){var _0x58c107=/\((.+)\)/;var _0x21db28=_0x2917f6['rx'][_0x39f8('0x11')](_0x58c107);if(_0x21db28){_0x8f92a9=_0x21db28[0x1];}else{_0x8f92a9=null;}}else{_0x8f92a9=null;}_0x2917f6['cb'](null,{'code':_0x265a8c,'result':_0x18b0b8,'extra':_0x8f92a9});}});_0x606925['on'](_0x39f8('0x12'),function(_0x57c753){_0x3b621e[_0x39f8('0x6')](_0x39f8('0x12'),new AGIError(_0x39f8('0x13'),_0x57c753[_0x39f8('0x14')]));});_0x606925['on'](_0x39f8('0x15'),function(){_0x3b621e['emit'](_0x39f8('0x15'),new AGIError(_0x39f8('0x16')));});_0x606925['on'](_0x39f8('0x17'),function(){_0x3b621e[_0x39f8('0x6')](_0x39f8('0x17'),new AGIError(_0x39f8('0x18')));_0x606925[_0x39f8('0x19')]();});_0x606925[_0x39f8('0x1a')](_0x380223);this[_0x39f8('0x1b')]=function(_0x3c232b,_0x287032){var _0x3c232b=_0x3c232b||'',_0x287032=typeof _0x287032==_0x39f8('0x1c')?_0x287032:new Function();_0x2917f6={'tx':_0x3c232b,'rx':'','cb':_0x287032};_0x606925['write'](_0x3c232b+'\x0a');},this[_0x39f8('0x15')]=function(){_0x606925[_0x39f8('0x19')]();};}util[_0x39f8('0x1d')](AGIChannel,EventEmitter);AGIChannel['prototype'][_0x39f8('0x1e')]=function(_0x5e2635){return this[_0x39f8('0x1b')][_0x39f8('0x1f')](this,_0x5e2635);};AGIChannel[_0x39f8('0x20')][_0x39f8('0x21')]=function(){return this[_0x39f8('0x1e')](_0x39f8('0x22'));};AGIChannel[_0x39f8('0x20')][_0x39f8('0x23')]=function(_0x2ab3e5,_0x82f1f0,_0x221d42){_0x2ab3e5=_0x2ab3e5===undefined?_0x39f8('0x24'):_0x2ab3e5;_0x82f1f0=_0x82f1f0===undefined?'5':_0x82f1f0;_0x221d42=_0x221d42===undefined?'1':_0x221d42;return this[_0x39f8('0x1e')](util[_0x39f8('0x25')](_0x39f8('0x26'),_0x2ab3e5,_0x82f1f0*0x3e8,_0x221d42));};AGIChannel[_0x39f8('0x20')]['noop']=function(_0xcada17){_0xcada17=_0xcada17||_0x39f8('0x27');return this[_0x39f8('0x1e')](util[_0x39f8('0x25')](_0x39f8('0x28'),_0xcada17));};AGIChannel[_0x39f8('0x20')]['exec']=function(_0x2d16ec,_0x5100ef){if(_[_0x39f8('0x29')](_0x5100ef)){return this[_0x39f8('0x1e')](util[_0x39f8('0x25')]('EXEC\x20%s\x20%s',_0x2d16ec,_0x5100ef[_0x39f8('0x2a')](',')));}return this['sendRequest'](util['format'](_0x39f8('0x2b'),_0x2d16ec,_0x5100ef));};AGIChannel[_0x39f8('0x20')][_0x39f8('0x2c')]=function(_0x529ace){return this[_0x39f8('0x1e')](util[_0x39f8('0x25')](_0x39f8('0x2d'),_0x529ace));};AGIChannel[_0x39f8('0x20')]['setExtension']=function(_0x1dc21a){return this['sendRequest'](util[_0x39f8('0x25')](_0x39f8('0x2e'),_0x1dc21a));};AGIChannel[_0x39f8('0x20')][_0x39f8('0x2f')]=function(_0x2780e8){return this[_0x39f8('0x1e')](util['format']('SET\x20PRIORITY\x20%s',_0x2780e8));};AGIChannel[_0x39f8('0x20')]['hangup']=function(){return this[_0x39f8('0x1e')](_0x39f8('0x30'));};AGIChannel[_0x39f8('0x20')][_0x39f8('0x31')]=function(_0xe516b,_0x43c18a){var _0x1cc800=_[_0x39f8('0x32')](_0x43c18a)||_[_0x39f8('0x33')](_0x43c18a)?_0x43c18a[_0x39f8('0x34')]():_0x43c18a;return this[_0x39f8('0x1e')](util[_0x39f8('0x25')]('SET\x20VARIABLE\x20%s\x20\x22%s\x22',_0xe516b,_0x1cc800?_0x1cc800['toString']()[_0x39f8('0x35')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel['prototype']['sayNumber']=function(_0x4a1670,_0x1a6688){return this[_0x39f8('0x1e')](util[_0x39f8('0x25')](_0x39f8('0x36'),_0x4a1670,_0x1a6688));};AGIChannel[_0x39f8('0x20')][_0x39f8('0x37')]=function(_0x5d09db,_0x110c71){return this[_0x39f8('0x1e')](util[_0x39f8('0x25')](_0x39f8('0x38'),_0x5d09db,_0x110c71));};AGIChannel[_0x39f8('0x20')][_0x39f8('0x39')]=function(_0x74d100,_0x222f66){return this[_0x39f8('0x1e')](util[_0x39f8('0x25')](_0x39f8('0x3a'),_0x74d100,_0x222f66));};AGIChannel['prototype'][_0x39f8('0x3b')]=function(_0x32a62b,_0x275bb2,_0x58aab4){_0x275bb2=_0x275bb2||this['extension'];_0x58aab4=_0x58aab4||0x1;this['setContext'](_0x32a62b);this[_0x39f8('0x3c')](_0x275bb2);this['setPriority'](_0x58aab4);return this[_0x39f8('0x3d')](util[_0x39f8('0x25')](_0x39f8('0x3e'),_0x32a62b,_0x275bb2,_0x58aab4));};AGIChannel[_0x39f8('0x20')]['getVariable']=function(_0x4d6e3e){return this['sendRequest'](util[_0x39f8('0x25')](_0x39f8('0x3f'),_0x4d6e3e));};AGIChannel[_0x39f8('0x20')]['recordFile']=function(_0x1a1a1b,_0x428ee9,_0x2eaf83,_0x21b02f,_0x2280e5,_0x3e3296){_0x428ee9=_0x428ee9||_0x39f8('0x40');_0x2eaf83=_0x2eaf83||'';_0x21b02f=_0x21b02f===undefined?-0x1:_0x21b02f==='-1'?-0x1:_0x21b02f*0x3e8;_0x2280e5=_0x2280e5===undefined?'':'s='+_0x2280e5;_0x3e3296=_0x3e3296?_0x39f8('0x41'):'';return this[_0x39f8('0x1e')](util[_0x39f8('0x25')](_0x39f8('0x42'),_0x1a1a1b,_0x428ee9,_0x2eaf83,_0x21b02f,_0x3e3296,_0x2280e5));};AGIChannel[_0x39f8('0x20')]['streamFile']=function(_0x1e1cbc,_0x5a85d0){_0x5a85d0=_0x5a85d0||'';return this[_0x39f8('0x1e')](util[_0x39f8('0x25')](_0x39f8('0x43'),_0x1e1cbc,_0x5a85d0));};AGIChannel['prototype'][_0x39f8('0x44')]=function(_0x53f92c){return this[_0x39f8('0x45')]('AGI',_0x53f92c);};AGIChannel['prototype'][_0x39f8('0x46')]=function(_0x9ccd8d){return this[_0x39f8('0x45')](_0x39f8('0x47'),_0x9ccd8d);};AGIChannel[_0x39f8('0x20')][_0x39f8('0x12')]=function(_0x223bee,_0x35804a){this[_0x39f8('0x3d')](util[_0x39f8('0x25')]('ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s',_0x223bee['id'],_0x223bee[_0x39f8('0x48')],_0x35804a));return{'code':0x1f4,'result':'-1','extra':''};};module[_0x39f8('0x49')]=AGIChannel;
\ No newline at end of file