Built motion from commit 1ea47bf4.|2.6.34
[motion2.git] / server / services / agi / channel.js
index 599cf1d..c9eec53 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+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