Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / agi / channel.js
index e06a626..8595384 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf6ea=['setPriority','SET\x20PRIORITY\x20%s','setVariable','isBoolean','isNumber','toString','SET\x20VARIABLE\x20%s\x20\x22%s\x22','replace','SAY\x20NUMBER\x20%s\x20%s','sayDigits','SAY\x20DIGITS\x20%s\x20%s','sayPhonetic','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','extension','getVariable','GET\x20VARIABLE\x20\x22%s\x22','recordFile','wav','BEEP','streamFile','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','agi','AGI','wait','exec','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','label','util','lodash','events','./reply','./error','setEncoding','utf8','setTimeout','line','toLowerCase','hangup','emit','substring','search','520\x20End\x20of\x20proper','function','indexOf','startsWith','split','length','match','error','E_AGI_SOCKET_ERROR','code','close','timeout','E_AGI_SOCKET_TIMEOUT','destroy','pipe','command','inherits','prototype','sendRequest','sync','answer','ANSWER','getData','beep','noop','NO\x20MESSAGE','format','VERBOSE\x20\x22%s\x22','isArray','EXEC\x20%s\x20%s','join','setContext','setExtension','SET\x20EXTENSION\x20%s'];(function(_0x3e44fa,_0x75ed2a){var _0x2a0aba=function(_0x1db6a7){while(--_0x1db6a7){_0x3e44fa['push'](_0x3e44fa['shift']());}};_0x2a0aba(++_0x75ed2a);}(_0xf6ea,0x14c));var _0xaf6e=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0xf6ea[_0x2c91e9];return _0x13f0ff;};'use strict';var util=require(_0xaf6e('0x0'));var _=require(_0xaf6e('0x1'));var EventEmitter=require(_0xaf6e('0x2'))['EventEmitter'];var AGIReply=require(_0xaf6e('0x3'));var AGIError=require(_0xaf6e('0x4'));function AGIChannel(_0x371bf2){var _0x2e0558=this,_0x4678e2=new AGIReply(),_0x450ffa=![],_0x4f7f27={};EventEmitter['call'](_0x2e0558);_0x371bf2[_0xaf6e('0x5')](_0xaf6e('0x6'));_0x371bf2[_0xaf6e('0x7')](0x8*0x3c*0x3c*0x3e8);_0x4678e2[_0xaf6e('0x5')](_0xaf6e('0x6'));_0x4678e2['on']('headers',function(_0x14b46f){for(var _0x5d5435 in _0x14b46f){_0x2e0558[_0x5d5435]=_0x14b46f[_0x5d5435];}_0x2e0558['emit']('ready');});_0x4678e2['on'](_0xaf6e('0x8'),function(_0xb2d965){if(_0xb2d965[_0xaf6e('0x9')]()==_0xaf6e('0xa')){_0x2e0558[_0xaf6e('0xb')]('hangup');return;}if(_0xb2d965[_0xaf6e('0xc')](0x0,0xb)=='520-Invalid'){_0x450ffa=!![];}if(_0x450ffa){_0x4f7f27['rx']+=_0xb2d965+'\x0a';if(_0xb2d965[_0xaf6e('0xd')](_0xaf6e('0xe'))!=-0x1){_0x450ffa=![];}}else{_0x4f7f27['rx']=_0xb2d965;}if(_0x450ffa){return;}if(typeof _0x4f7f27['cb']==_0xaf6e('0xf')){var _0x4af99c=_0x4f7f27['rx'][_0xaf6e('0xc')](0x0,0x3),_0x8abae0=null,_0x4d1bcf=null;_0x4af99c=parseInt(_0x4af99c);if(isNaN(_0x4af99c)){_0x4f7f27['cb'](null,{'code':0x1f4,'result':-0x1,'extra':'no\x20code'});return;}if(_0x4af99c!=0xc8){_0x4f7f27['cb'](null,{'code':_0x4af99c,'result':-0x1,'extra':'KO'});return;}_0x8abae0=_0x4f7f27['rx'][_0xaf6e('0xc')](0x4)['replace']('result=','');if(_0x8abae0[_0xaf6e('0x10')]('\x20')!=-0x1){_0x8abae0=_0x8abae0['substr'](0x0,_0x8abae0['indexOf']('\x20'));}if(_[_0xaf6e('0x11')](_0x8abae0,'-1')){_0x8abae0=parseInt(_0x8abae0);}_0x4d1bcf=_0x4f7f27['rx'][_0xaf6e('0x12')]('\x20');if(_0x4d1bcf['length']==0x3){_0x4d1bcf=_0x4d1bcf[0x2][_0xaf6e('0xc')](0x1,_0x4d1bcf[0x2][_0xaf6e('0x13')]-0x1);}else if(_0x4d1bcf[_0xaf6e('0x13')]>0x3){var _0x344b4a=/\((.+)\)/;var _0x1207cb=_0x4f7f27['rx'][_0xaf6e('0x14')](_0x344b4a);if(_0x1207cb){_0x4d1bcf=_0x1207cb[0x1];}else{_0x4d1bcf=null;}}else{_0x4d1bcf=null;}_0x4f7f27['cb'](null,{'code':_0x4af99c,'result':_0x8abae0,'extra':_0x4d1bcf});}});_0x371bf2['on'](_0xaf6e('0x15'),function(_0x5bc4c4){_0x2e0558[_0xaf6e('0xb')]('error',new AGIError(_0xaf6e('0x16'),_0x5bc4c4[_0xaf6e('0x17')]));});_0x371bf2['on']('close',function(){_0x2e0558[_0xaf6e('0xb')](_0xaf6e('0x18'),new AGIError('E_AGI_SOCKET_CLOSE'));});_0x371bf2['on'](_0xaf6e('0x19'),function(){_0x2e0558[_0xaf6e('0xb')]('timeout',new AGIError(_0xaf6e('0x1a')));_0x371bf2[_0xaf6e('0x1b')]();});_0x371bf2[_0xaf6e('0x1c')](_0x4678e2);this[_0xaf6e('0x1d')]=function(_0x4f03f7,_0x3fba44){var _0x4f03f7=_0x4f03f7||'',_0x3fba44=typeof _0x3fba44==_0xaf6e('0xf')?_0x3fba44:new Function();_0x4f7f27={'tx':_0x4f03f7,'rx':'','cb':_0x3fba44};_0x371bf2['write'](_0x4f03f7+'\x0a');},this[_0xaf6e('0x18')]=function(){_0x371bf2[_0xaf6e('0x1b')]();};}util[_0xaf6e('0x1e')](AGIChannel,EventEmitter);AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x20')]=function(_0x4fea68){return this[_0xaf6e('0x1d')][_0xaf6e('0x21')](this,_0x4fea68);};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x22')]=function(){return this['sendRequest'](_0xaf6e('0x23'));};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x24')]=function(_0x39553b,_0x1c6792,_0x4b1ed){_0x39553b=_0x39553b===undefined?_0xaf6e('0x25'):_0x39553b;_0x1c6792=_0x1c6792===undefined?'5':_0x1c6792;_0x4b1ed=_0x4b1ed===undefined?'1':_0x4b1ed;return this['sendRequest'](util['format']('GET\x20DATA\x20\x22%s\x22\x20%s\x20%s',_0x39553b,_0x1c6792*0x3e8,_0x4b1ed));};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x26')]=function(_0x53039b){_0x53039b=_0x53039b||_0xaf6e('0x27');return this[_0xaf6e('0x20')](util[_0xaf6e('0x28')](_0xaf6e('0x29'),_0x53039b));};AGIChannel['prototype']['exec']=function(_0xfa3084,_0x21248b){if(_[_0xaf6e('0x2a')](_0x21248b)){return this['sendRequest'](util['format'](_0xaf6e('0x2b'),_0xfa3084,_0x21248b[_0xaf6e('0x2c')](',')));}return this[_0xaf6e('0x20')](util['format'](_0xaf6e('0x2b'),_0xfa3084,_0x21248b));};AGIChannel['prototype'][_0xaf6e('0x2d')]=function(_0xa794ad){return this['sendRequest'](util[_0xaf6e('0x28')]('SET\x20CONTEXT\x20%s',_0xa794ad));};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x2e')]=function(_0x50fe3c){return this['sendRequest'](util['format'](_0xaf6e('0x2f'),_0x50fe3c));};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x30')]=function(_0x5af3e5){return this[_0xaf6e('0x20')](util[_0xaf6e('0x28')](_0xaf6e('0x31'),_0x5af3e5));};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0xa')]=function(){return this[_0xaf6e('0x20')]('HANGUP');};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x32')]=function(_0x30e31b,_0x352dc9){var _0xb8e1e2=_[_0xaf6e('0x33')](_0x352dc9)||_[_0xaf6e('0x34')](_0x352dc9)?_0x352dc9[_0xaf6e('0x35')]():_0x352dc9;return this[_0xaf6e('0x20')](util['format'](_0xaf6e('0x36'),_0x30e31b,_0xb8e1e2?_0xb8e1e2[_0xaf6e('0x35')]()[_0xaf6e('0x37')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0xaf6e('0x1f')]['sayNumber']=function(_0x26fab6,_0x46c69e){return this[_0xaf6e('0x20')](util[_0xaf6e('0x28')](_0xaf6e('0x38'),_0x26fab6,_0x46c69e));};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x39')]=function(_0x1ddbc4,_0x3abc1e){return this['sendRequest'](util[_0xaf6e('0x28')](_0xaf6e('0x3a'),_0x1ddbc4,_0x3abc1e));};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x3b')]=function(_0x104171,_0x202e8b){return this['sendRequest'](util[_0xaf6e('0x28')](_0xaf6e('0x3c'),_0x104171,_0x202e8b));};AGIChannel[_0xaf6e('0x1f')]['continueAt']=function(_0x2f0f87,_0x3c9a6c,_0x571fce){_0x3c9a6c=_0x3c9a6c||this[_0xaf6e('0x3d')];_0x571fce=_0x571fce||0x1;this[_0xaf6e('0x2d')](_0x2f0f87);this[_0xaf6e('0x2e')](_0x3c9a6c);this[_0xaf6e('0x30')](_0x571fce);return this[_0xaf6e('0x26')](util[_0xaf6e('0x28')]('GOTO\x20%s\x20%s\x20%s',_0x2f0f87,_0x3c9a6c,_0x571fce));};AGIChannel['prototype'][_0xaf6e('0x3e')]=function(_0x5bed48){return this[_0xaf6e('0x20')](util[_0xaf6e('0x28')](_0xaf6e('0x3f'),_0x5bed48));};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x40')]=function(_0x348f10,_0x53b098,_0x218fee,_0xe79fcc,_0x10373f,_0x186632){_0x53b098=_0x53b098||_0xaf6e('0x41');_0x218fee=_0x218fee||'';_0xe79fcc=_0xe79fcc===undefined?-0x1:_0xe79fcc==='-1'?-0x1:_0xe79fcc*0x3e8;_0x10373f=_0x10373f===undefined?'':'s='+_0x10373f;_0x186632=_0x186632?_0xaf6e('0x42'):'';return this[_0xaf6e('0x20')](util[_0xaf6e('0x28')]('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x348f10,_0x53b098,_0x218fee,_0xe79fcc,_0x186632,_0x10373f));};AGIChannel['prototype'][_0xaf6e('0x43')]=function(_0x3faf22,_0x4cbe6e){_0x4cbe6e=_0x4cbe6e||'';return this[_0xaf6e('0x20')](util[_0xaf6e('0x28')](_0xaf6e('0x44'),_0x3faf22,_0x4cbe6e));};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x45')]=function(_0x4a320c){return this['exec'](_0xaf6e('0x46'),_0x4a320c);};AGIChannel['prototype'][_0xaf6e('0x47')]=function(_0xd038a0){return this[_0xaf6e('0x48')](_0xaf6e('0x49'),_0xd038a0);};AGIChannel[_0xaf6e('0x1f')][_0xaf6e('0x15')]=function(_0x2c8689,_0x3c2a46){this[_0xaf6e('0x26')](util[_0xaf6e('0x28')](_0xaf6e('0x4a'),_0x2c8689['id'],_0x2c8689[_0xaf6e('0x4b')],_0x3c2a46));return{'code':0x1f4,'result':'-1','extra':''};};module['exports']=AGIChannel;
\ No newline at end of file
+var _0x36d4=['GET\x20VARIABLE\x20\x22%s\x22','recordFile','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','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','label','exports','util','lodash','events','EventEmitter','./reply','./error','call','utf8','setTimeout','setEncoding','headers','emit','ready','hangup','search','function','substring','no\x20code','replace','result=','indexOf','startsWith','length','match','error','close','E_AGI_SOCKET_CLOSE','timeout','E_AGI_SOCKET_TIMEOUT','pipe','write','inherits','prototype','sendRequest','answer','ANSWER','beep','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','noop','VERBOSE\x20\x22%s\x22','exec','isArray','EXEC\x20%s\x20%s','setContext','SET\x20EXTENSION\x20%s','setPriority','SET\x20PRIORITY\x20%s','HANGUP','isBoolean','isNumber','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','extension','setExtension','GOTO\x20%s\x20%s\x20%s','getVariable'];(function(_0x2ebc49,_0x233068){var _0x2acd77=function(_0x18ba79){while(--_0x18ba79){_0x2ebc49['push'](_0x2ebc49['shift']());}};_0x2acd77(++_0x233068);}(_0x36d4,0x17d));var _0x436d=function(_0x2f023d,_0x29dfe5){_0x2f023d=_0x2f023d-0x0;var _0x4ef240=_0x36d4[_0x2f023d];return _0x4ef240;};'use strict';var util=require(_0x436d('0x0'));var _=require(_0x436d('0x1'));var EventEmitter=require(_0x436d('0x2'))[_0x436d('0x3')];var AGIReply=require(_0x436d('0x4'));var AGIError=require(_0x436d('0x5'));function AGIChannel(_0x47c5e3){var _0x296d0a=this,_0x29af36=new AGIReply(),_0x201144=![],_0x8250e6={};EventEmitter[_0x436d('0x6')](_0x296d0a);_0x47c5e3['setEncoding'](_0x436d('0x7'));_0x47c5e3[_0x436d('0x8')](0x8*0x3c*0x3c*0x3e8);_0x29af36[_0x436d('0x9')](_0x436d('0x7'));_0x29af36['on'](_0x436d('0xa'),function(_0x29603a){for(var _0x13d8f6 in _0x29603a){_0x296d0a[_0x13d8f6]=_0x29603a[_0x13d8f6];}_0x296d0a[_0x436d('0xb')](_0x436d('0xc'));});_0x29af36['on']('line',function(_0x1e7813){if(_0x1e7813['toLowerCase']()==_0x436d('0xd')){_0x296d0a[_0x436d('0xb')](_0x436d('0xd'));return;}if(_0x1e7813['substring'](0x0,0xb)=='520-Invalid'){_0x201144=!![];}if(_0x201144){_0x8250e6['rx']+=_0x1e7813+'\x0a';if(_0x1e7813[_0x436d('0xe')]('520\x20End\x20of\x20proper')!=-0x1){_0x201144=![];}}else{_0x8250e6['rx']=_0x1e7813;}if(_0x201144){return;}if(typeof _0x8250e6['cb']==_0x436d('0xf')){var _0x118d4b=_0x8250e6['rx'][_0x436d('0x10')](0x0,0x3),_0x1fd9cd=null,_0x13965f=null;_0x118d4b=parseInt(_0x118d4b);if(isNaN(_0x118d4b)){_0x8250e6['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x436d('0x11')});return;}if(_0x118d4b!=0xc8){_0x8250e6['cb'](null,{'code':_0x118d4b,'result':-0x1,'extra':'KO'});return;}_0x1fd9cd=_0x8250e6['rx'][_0x436d('0x10')](0x4)[_0x436d('0x12')](_0x436d('0x13'),'');if(_0x1fd9cd['indexOf']('\x20')!=-0x1){_0x1fd9cd=_0x1fd9cd['substr'](0x0,_0x1fd9cd[_0x436d('0x14')]('\x20'));}if(_[_0x436d('0x15')](_0x1fd9cd,'-1')){_0x1fd9cd=parseInt(_0x1fd9cd);}_0x13965f=_0x8250e6['rx']['split']('\x20');if(_0x13965f[_0x436d('0x16')]==0x3){_0x13965f=_0x13965f[0x2][_0x436d('0x10')](0x1,_0x13965f[0x2][_0x436d('0x16')]-0x1);}else if(_0x13965f[_0x436d('0x16')]>0x3){var _0x1a1fc4=/\((.+)\)/;var _0x28f073=_0x8250e6['rx'][_0x436d('0x17')](_0x1a1fc4);if(_0x28f073){_0x13965f=_0x28f073[0x1];}else{_0x13965f=null;}}else{_0x13965f=null;}_0x8250e6['cb'](null,{'code':_0x118d4b,'result':_0x1fd9cd,'extra':_0x13965f});}});_0x47c5e3['on'](_0x436d('0x18'),function(_0x3c0056){_0x296d0a[_0x436d('0xb')](_0x436d('0x18'),new AGIError('E_AGI_SOCKET_ERROR',_0x3c0056['code']));});_0x47c5e3['on'](_0x436d('0x19'),function(){_0x296d0a[_0x436d('0xb')](_0x436d('0x19'),new AGIError(_0x436d('0x1a')));});_0x47c5e3['on'](_0x436d('0x1b'),function(){_0x296d0a[_0x436d('0xb')]('timeout',new AGIError(_0x436d('0x1c')));_0x47c5e3['destroy']();});_0x47c5e3[_0x436d('0x1d')](_0x29af36);this['command']=function(_0x3a2019,_0x128f23){var _0x3a2019=_0x3a2019||'',_0x128f23=typeof _0x128f23==_0x436d('0xf')?_0x128f23:new Function();_0x8250e6={'tx':_0x3a2019,'rx':'','cb':_0x128f23};_0x47c5e3[_0x436d('0x1e')](_0x3a2019+'\x0a');},this[_0x436d('0x19')]=function(){_0x47c5e3['destroy']();};}util[_0x436d('0x1f')](AGIChannel,EventEmitter);AGIChannel[_0x436d('0x20')][_0x436d('0x21')]=function(_0x5a5ebd){return this['command']['sync'](this,_0x5a5ebd);};AGIChannel['prototype'][_0x436d('0x22')]=function(){return this['sendRequest'](_0x436d('0x23'));};AGIChannel[_0x436d('0x20')]['getData']=function(_0x42b7af,_0x4f4320,_0x545ca5){_0x42b7af=_0x42b7af===undefined?_0x436d('0x24'):_0x42b7af;_0x4f4320=_0x4f4320===undefined?'5':_0x4f4320;_0x545ca5=_0x545ca5===undefined?'1':_0x545ca5;return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x26'),_0x42b7af,_0x4f4320*0x3e8,_0x545ca5));};AGIChannel[_0x436d('0x20')][_0x436d('0x27')]=function(_0x289ef5){_0x289ef5=_0x289ef5||'NO\x20MESSAGE';return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x28'),_0x289ef5));};AGIChannel[_0x436d('0x20')][_0x436d('0x29')]=function(_0x46d447,_0x2002bd){if(_[_0x436d('0x2a')](_0x2002bd)){return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x2b'),_0x46d447,_0x2002bd['join'](',')));}return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x2b'),_0x46d447,_0x2002bd));};AGIChannel[_0x436d('0x20')][_0x436d('0x2c')]=function(_0x44ca84){return this[_0x436d('0x21')](util[_0x436d('0x25')]('SET\x20CONTEXT\x20%s',_0x44ca84));};AGIChannel['prototype']['setExtension']=function(_0x494c4e){return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x2d'),_0x494c4e));};AGIChannel[_0x436d('0x20')][_0x436d('0x2e')]=function(_0x3eef7d){return this['sendRequest'](util[_0x436d('0x25')](_0x436d('0x2f'),_0x3eef7d));};AGIChannel[_0x436d('0x20')][_0x436d('0xd')]=function(){return this['sendRequest'](_0x436d('0x30'));};AGIChannel['prototype']['setVariable']=function(_0x586289,_0x2be28){var _0x25f486=_[_0x436d('0x31')](_0x2be28)||_[_0x436d('0x32')](_0x2be28)?_0x2be28[_0x436d('0x33')]():_0x2be28;return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x34'),_0x586289,_0x25f486?_0x25f486[_0x436d('0x33')]()[_0x436d('0x12')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0x436d('0x20')][_0x436d('0x35')]=function(_0x453164,_0x5b9ab4){return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x36'),_0x453164,_0x5b9ab4));};AGIChannel[_0x436d('0x20')][_0x436d('0x37')]=function(_0x1027a9,_0x5385f4){return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x38'),_0x1027a9,_0x5385f4));};AGIChannel[_0x436d('0x20')][_0x436d('0x39')]=function(_0x1f1245,_0x36a557){return this['sendRequest'](util['format'](_0x436d('0x3a'),_0x1f1245,_0x36a557));};AGIChannel[_0x436d('0x20')]['continueAt']=function(_0x2e519f,_0x279461,_0x895037){_0x279461=_0x279461||this[_0x436d('0x3b')];_0x895037=_0x895037||0x1;this[_0x436d('0x2c')](_0x2e519f);this[_0x436d('0x3c')](_0x279461);this[_0x436d('0x2e')](_0x895037);return this[_0x436d('0x27')](util[_0x436d('0x25')](_0x436d('0x3d'),_0x2e519f,_0x279461,_0x895037));};AGIChannel[_0x436d('0x20')][_0x436d('0x3e')]=function(_0x78e781){return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x3f'),_0x78e781));};AGIChannel['prototype'][_0x436d('0x40')]=function(_0x4129e6,_0x257be1,_0x3f0c3d,_0x2bc227,_0x1bb171,_0x200baf){_0x257be1=_0x257be1||'wav';_0x3f0c3d=_0x3f0c3d||'';_0x2bc227=_0x2bc227===undefined?-0x1:_0x2bc227==='-1'?-0x1:_0x2bc227*0x3e8;_0x1bb171=_0x1bb171===undefined?'':'s='+_0x1bb171;_0x200baf=_0x200baf?'BEEP':'';return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x41'),_0x4129e6,_0x257be1,_0x3f0c3d,_0x2bc227,_0x200baf,_0x1bb171));};AGIChannel[_0x436d('0x20')][_0x436d('0x42')]=function(_0x36fc4b,_0x3e773a){_0x3e773a=_0x3e773a||'';return this[_0x436d('0x21')](util[_0x436d('0x25')](_0x436d('0x43'),_0x36fc4b,_0x3e773a));};AGIChannel[_0x436d('0x20')]['agi']=function(_0x32fc69){return this['exec'](_0x436d('0x44'),_0x32fc69);};AGIChannel[_0x436d('0x20')][_0x436d('0x45')]=function(_0x1bf8c4){return this[_0x436d('0x29')](_0x436d('0x46'),_0x1bf8c4);};AGIChannel[_0x436d('0x20')][_0x436d('0x18')]=function(_0x1236ca,_0x2e367f){this[_0x436d('0x27')](util[_0x436d('0x25')](_0x436d('0x47'),_0x1236ca['id'],_0x1236ca[_0x436d('0x48')],_0x2e367f));return{'code':0x1f4,'result':'-1','extra':''};};module[_0x436d('0x49')]=AGIChannel;
\ No newline at end of file