Built motion from commit 511216ff.|2.6.34
[motion2.git] / server / services / agi / channel.js
index 3c20fc9..78e7600 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe3da=['function','no\x20code','replace','result=','indexOf','startsWith','split','length','match','code','close','E_AGI_SOCKET_CLOSE','E_AGI_SOCKET_TIMEOUT','destroy','pipe','command','write','inherits','prototype','sendRequest','sync','answer','ANSWER','getData','beep','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','noop','NO\x20MESSAGE','format','VERBOSE\x20\x22%s\x22','exec','isArray','EXEC\x20%s\x20%s','setContext','SET\x20CONTEXT\x20%s','setExtension','SET\x20EXTENSION\x20%s','HANGUP','setVariable','isBoolean','isNumber','toString','SET\x20VARIABLE\x20%s\x20\x22%s\x22','SAY\x20NUMBER\x20%s\x20%s','sayDigits','SAY\x20DIGITS\x20%s\x20%s','sayPhonetic','continueAt','extension','setPriority','GOTO\x20%s\x20%s\x20%s','getVariable','GET\x20VARIABLE\x20\x22%s\x22','recordFile','wav','BEEP','streamFile','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','wait','WAIT','error','util','lodash','events','EventEmitter','./reply','./error','call','setEncoding','utf8','setTimeout','headers','ready','line','toLowerCase','hangup','emit','substring','search','520\x20End\x20of\x20proper'];(function(_0x149731,_0x54c49a){var _0x4fd34c=function(_0x103533){while(--_0x103533){_0x149731['push'](_0x149731['shift']());}};_0x4fd34c(++_0x54c49a);}(_0xe3da,0x1cd));var _0xae3d=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0xe3da[_0xfae23b];return _0x200640;};'use strict';var util=require(_0xae3d('0x0'));var _=require(_0xae3d('0x1'));var EventEmitter=require(_0xae3d('0x2'))[_0xae3d('0x3')];var AGIReply=require(_0xae3d('0x4'));var AGIError=require(_0xae3d('0x5'));function AGIChannel(_0x109dca){var _0x17952f=this,_0xb2dfd3=new AGIReply(),_0x22bacf=![],_0x1b9397={};EventEmitter[_0xae3d('0x6')](_0x17952f);_0x109dca[_0xae3d('0x7')](_0xae3d('0x8'));_0x109dca[_0xae3d('0x9')](0x8*0x3c*0x3c*0x3e8);_0xb2dfd3[_0xae3d('0x7')]('utf8');_0xb2dfd3['on'](_0xae3d('0xa'),function(_0x3d6650){for(var _0x5544fa in _0x3d6650){_0x17952f[_0x5544fa]=_0x3d6650[_0x5544fa];}_0x17952f['emit'](_0xae3d('0xb'));});_0xb2dfd3['on'](_0xae3d('0xc'),function(_0x420e28){if(_0x420e28[_0xae3d('0xd')]()==_0xae3d('0xe')){_0x17952f[_0xae3d('0xf')]('hangup');return;}if(_0x420e28[_0xae3d('0x10')](0x0,0xb)=='520-Invalid'){_0x22bacf=!![];}if(_0x22bacf){_0x1b9397['rx']+=_0x420e28+'\x0a';if(_0x420e28[_0xae3d('0x11')](_0xae3d('0x12'))!=-0x1){_0x22bacf=![];}}else{_0x1b9397['rx']=_0x420e28;}if(_0x22bacf){return;}if(typeof _0x1b9397['cb']==_0xae3d('0x13')){var _0x172f7a=_0x1b9397['rx'][_0xae3d('0x10')](0x0,0x3),_0x48aa74=null,_0xfb7869=null;_0x172f7a=parseInt(_0x172f7a);if(isNaN(_0x172f7a)){_0x1b9397['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0xae3d('0x14')});return;}if(_0x172f7a!=0xc8){_0x1b9397['cb'](null,{'code':_0x172f7a,'result':-0x1,'extra':'KO'});return;}_0x48aa74=_0x1b9397['rx'][_0xae3d('0x10')](0x4)[_0xae3d('0x15')](_0xae3d('0x16'),'');if(_0x48aa74[_0xae3d('0x17')]('\x20')!=-0x1){_0x48aa74=_0x48aa74['substr'](0x0,_0x48aa74[_0xae3d('0x17')]('\x20'));}if(_[_0xae3d('0x18')](_0x48aa74,'-1')){_0x48aa74=parseInt(_0x48aa74);}_0xfb7869=_0x1b9397['rx'][_0xae3d('0x19')]('\x20');if(_0xfb7869[_0xae3d('0x1a')]==0x3){_0xfb7869=_0xfb7869[0x2][_0xae3d('0x10')](0x1,_0xfb7869[0x2][_0xae3d('0x1a')]-0x1);}else if(_0xfb7869['length']>0x3){var _0xe925fd=/\((.+)\)/;var _0x33449a=_0x1b9397['rx'][_0xae3d('0x1b')](_0xe925fd);if(_0x33449a){_0xfb7869=_0x33449a[0x1];}else{_0xfb7869=null;}}else{_0xfb7869=null;}_0x1b9397['cb'](null,{'code':_0x172f7a,'result':_0x48aa74,'extra':_0xfb7869});}});_0x109dca['on']('error',function(_0x3f8cf9){_0x17952f[_0xae3d('0xf')]('error',new AGIError('E_AGI_SOCKET_ERROR',_0x3f8cf9[_0xae3d('0x1c')]));});_0x109dca['on'](_0xae3d('0x1d'),function(){_0x17952f[_0xae3d('0xf')](_0xae3d('0x1d'),new AGIError(_0xae3d('0x1e')));});_0x109dca['on']('timeout',function(){_0x17952f[_0xae3d('0xf')]('timeout',new AGIError(_0xae3d('0x1f')));_0x109dca[_0xae3d('0x20')]();});_0x109dca[_0xae3d('0x21')](_0xb2dfd3);this[_0xae3d('0x22')]=function(_0x1facc1,_0x3e7afc){var _0x1facc1=_0x1facc1||'',_0x3e7afc=typeof _0x3e7afc==_0xae3d('0x13')?_0x3e7afc:new Function();_0x1b9397={'tx':_0x1facc1,'rx':'','cb':_0x3e7afc};_0x109dca[_0xae3d('0x23')](_0x1facc1+'\x0a');},this[_0xae3d('0x1d')]=function(){_0x109dca[_0xae3d('0x20')]();};}util[_0xae3d('0x24')](AGIChannel,EventEmitter);AGIChannel[_0xae3d('0x25')][_0xae3d('0x26')]=function(_0x1fe90f){return this[_0xae3d('0x22')][_0xae3d('0x27')](this,_0x1fe90f);};AGIChannel[_0xae3d('0x25')][_0xae3d('0x28')]=function(){return this['sendRequest'](_0xae3d('0x29'));};AGIChannel[_0xae3d('0x25')][_0xae3d('0x2a')]=function(_0x52df0f,_0x256bd0,_0x4391db){_0x52df0f=_0x52df0f===undefined?_0xae3d('0x2b'):_0x52df0f;_0x256bd0=_0x256bd0===undefined?'5':_0x256bd0;_0x4391db=_0x4391db===undefined?'1':_0x4391db;return this['sendRequest'](util['format'](_0xae3d('0x2c'),_0x52df0f,_0x256bd0*0x3e8,_0x4391db));};AGIChannel[_0xae3d('0x25')][_0xae3d('0x2d')]=function(_0x3114f9){_0x3114f9=_0x3114f9||_0xae3d('0x2e');return this['sendRequest'](util[_0xae3d('0x2f')](_0xae3d('0x30'),_0x3114f9));};AGIChannel['prototype'][_0xae3d('0x31')]=function(_0x323715,_0x2cf750){if(_[_0xae3d('0x32')](_0x2cf750)){return this[_0xae3d('0x26')](util[_0xae3d('0x2f')]('EXEC\x20%s\x20%s',_0x323715,_0x2cf750['join'](',')));}return this['sendRequest'](util[_0xae3d('0x2f')](_0xae3d('0x33'),_0x323715,_0x2cf750));};AGIChannel[_0xae3d('0x25')][_0xae3d('0x34')]=function(_0x54a75c){return this[_0xae3d('0x26')](util[_0xae3d('0x2f')](_0xae3d('0x35'),_0x54a75c));};AGIChannel[_0xae3d('0x25')][_0xae3d('0x36')]=function(_0x166631){return this[_0xae3d('0x26')](util['format'](_0xae3d('0x37'),_0x166631));};AGIChannel['prototype']['setPriority']=function(_0x1cd957){return this['sendRequest'](util[_0xae3d('0x2f')]('SET\x20PRIORITY\x20%s',_0x1cd957));};AGIChannel['prototype'][_0xae3d('0xe')]=function(){return this[_0xae3d('0x26')](_0xae3d('0x38'));};AGIChannel['prototype'][_0xae3d('0x39')]=function(_0x58ea2f,_0xce647f){var _0x136ab5=_[_0xae3d('0x3a')](_0xce647f)||_[_0xae3d('0x3b')](_0xce647f)?_0xce647f[_0xae3d('0x3c')]():_0xce647f;return this[_0xae3d('0x26')](util[_0xae3d('0x2f')](_0xae3d('0x3d'),_0x58ea2f,_0x136ab5?_0x136ab5[_0xae3d('0x3c')]()[_0xae3d('0x15')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0xae3d('0x25')]['sayNumber']=function(_0x544269,_0x3992eb){return this['sendRequest'](util[_0xae3d('0x2f')](_0xae3d('0x3e'),_0x544269,_0x3992eb));};AGIChannel[_0xae3d('0x25')][_0xae3d('0x3f')]=function(_0x2c2892,_0x35db44){return this[_0xae3d('0x26')](util[_0xae3d('0x2f')](_0xae3d('0x40'),_0x2c2892,_0x35db44));};AGIChannel[_0xae3d('0x25')][_0xae3d('0x41')]=function(_0x549db8,_0xa09b64){return this[_0xae3d('0x26')](util[_0xae3d('0x2f')]('SAY\x20PHONETIC\x20\x22%s\x22\x20%s',_0x549db8,_0xa09b64));};AGIChannel['prototype'][_0xae3d('0x42')]=function(_0x190dd4,_0x524cf2,_0x308c2f){_0x524cf2=_0x524cf2||this[_0xae3d('0x43')];_0x308c2f=_0x308c2f||0x1;this[_0xae3d('0x34')](_0x190dd4);this[_0xae3d('0x36')](_0x524cf2);this[_0xae3d('0x44')](_0x308c2f);return this[_0xae3d('0x2d')](util['format'](_0xae3d('0x45'),_0x190dd4,_0x524cf2,_0x308c2f));};AGIChannel[_0xae3d('0x25')][_0xae3d('0x46')]=function(_0x938811){return this[_0xae3d('0x26')](util['format'](_0xae3d('0x47'),_0x938811));};AGIChannel['prototype'][_0xae3d('0x48')]=function(_0x38e966,_0x599d1a,_0x1fc88f,_0x5e31d4,_0x52da45,_0x5e924b){_0x599d1a=_0x599d1a||_0xae3d('0x49');_0x1fc88f=_0x1fc88f||'';_0x5e31d4=_0x5e31d4===undefined?-0x1:_0x5e31d4==='-1'?-0x1:_0x5e31d4*0x3e8;_0x52da45=_0x52da45===undefined?'':'s='+_0x52da45;_0x5e924b=_0x5e924b?_0xae3d('0x4a'):'';return this['sendRequest'](util['format']('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x38e966,_0x599d1a,_0x1fc88f,_0x5e31d4,_0x5e924b,_0x52da45));};AGIChannel[_0xae3d('0x25')][_0xae3d('0x4b')]=function(_0x394ad0,_0x1d410e){_0x1d410e=_0x1d410e||'';return this[_0xae3d('0x26')](util[_0xae3d('0x2f')](_0xae3d('0x4c'),_0x394ad0,_0x1d410e));};AGIChannel['prototype']['agi']=function(_0x560f66){return this[_0xae3d('0x31')]('AGI',_0x560f66);};AGIChannel[_0xae3d('0x25')][_0xae3d('0x4d')]=function(_0x41cb63){return this[_0xae3d('0x31')](_0xae3d('0x4e'),_0x41cb63);};AGIChannel[_0xae3d('0x25')][_0xae3d('0x4f')]=function(_0x2a00b1,_0x38f92d){this[_0xae3d('0x2d')](util[_0xae3d('0x2f')]('ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s',_0x2a00b1['id'],_0x2a00b1['label'],_0x38f92d));return{'code':0x1f4,'result':'-1','extra':''};};module['exports']=AGIChannel;
\ No newline at end of file
+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