Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / services / agi / reply.js
index f580e89..10ecdf0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x59d8=['call','_localBuffer','_inBody','inherits','toString','indexOf','substring','split','trim','length','emit','headers','line','exports','util'];(function(_0x17b97d,_0x4cc818){var _0x31e8f4=function(_0x114bdb){while(--_0x114bdb){_0x17b97d['push'](_0x17b97d['shift']());}};_0x31e8f4(++_0x4cc818);}(_0x59d8,0x95));var _0x859d=function(_0x3861f7,_0x995b22){_0x3861f7=_0x3861f7-0x0;var _0x50879f=_0x59d8[_0x3861f7];return _0x50879f;};'use strict';var util=require(_0x859d('0x0'));var Transform=require('stream')['Transform'];function AGIReply(_0x2dda94){Transform[_0x859d('0x1')](this,_0x2dda94);this[_0x859d('0x2')]='';this[_0x859d('0x3')]=![];}util[_0x859d('0x4')](AGIReply,Transform);AGIReply['prototype']['_transform']=function(_0x5d1416,_0x3dbb9b,_0x41d5d0){var _0xeb8264='\x0a',_0x3107df=['\x0a\x0a','\x0d\x0a\x0d\x0a'],_0x230653=-0x1,_0x3113a0=-0x1,_0x403f55='',_0x536134=0x0,_0x545987='',_0x329981='';this['_localBuffer']+=_0x5d1416[_0x859d('0x5')]();_0x545987=this['_localBuffer'];if(!this[_0x859d('0x3')]){_0x536134=0x0;while(_0x3107df[_0x536134]){while((_0x3113a0=_0x545987[_0x859d('0x6')](_0x3107df[_0x536134]))!=-0x1){_0x403f55=_0x3107df[_0x536134];_0x329981=_0x545987[_0x859d('0x7')](0x0,_0x3113a0);_0x545987=_0x545987['substring'](_0x3113a0+_0x403f55['length']);var _0xb2449c=_0x329981[_0x859d('0x8')](_0xeb8264),_0x5a1e34=0x0,_0x5803e3={},_0x240d53='',_0x5b449a='',_0x593b88=-0x1;while(_0xb2449c[_0x5a1e34]){_0x593b88=_0xb2449c[_0x5a1e34][_0x859d('0x6')](':');if(_0x593b88!=-0x1){_0x240d53=_0xb2449c[_0x5a1e34]['slice'](0x0,_0x593b88)['trim']();_0x5b449a=_0xb2449c[_0x5a1e34]['slice'](_0x593b88+0x1)[_0x859d('0x9')]();if(_0x240d53[_0x859d('0xa')]>0x0){_0x5803e3[_0x240d53]=_0x5b449a;}}else{}_0x5a1e34++;}this[_0x859d('0xb')](_0x859d('0xc'),_0x5803e3);this[_0x859d('0x3')]=!![];}_0x536134++;}this[_0x859d('0x2')]=_0x545987;}else{while((_0x230653=_0x545987[_0x859d('0x6')](_0xeb8264))!=-0x1){_0x329981=_0x545987['substring'](0x0,_0x230653);this[_0x859d('0xb')](_0x859d('0xd'),_0x329981);_0x545987=_0x545987[_0x859d('0x7')](_0x230653+_0xeb8264[_0x859d('0xa')]);}this[_0x859d('0x2')]=_0x545987;}_0x41d5d0();};module[_0x859d('0xe')]=AGIReply;
\ No newline at end of file
+var _0xcae6=['length','split','slice','trim','emit','exports','util','stream','inherits','prototype','_transform','\x0d\x0a\x0d\x0a','_localBuffer','_inBody','indexOf','substring'];(function(_0x131712,_0x2ed068){var _0x292b97=function(_0x106fbd){while(--_0x106fbd){_0x131712['push'](_0x131712['shift']());}};_0x292b97(++_0x2ed068);}(_0xcae6,0x146));var _0x6cae=function(_0x5e8d3e,_0x18ed2e){_0x5e8d3e=_0x5e8d3e-0x0;var _0x1348c0=_0xcae6[_0x5e8d3e];return _0x1348c0;};'use strict';var util=require(_0x6cae('0x0'));var Transform=require(_0x6cae('0x1'))['Transform'];function AGIReply(_0x604625){Transform['call'](this,_0x604625);this['_localBuffer']='';this['_inBody']=![];}util[_0x6cae('0x2')](AGIReply,Transform);AGIReply[_0x6cae('0x3')][_0x6cae('0x4')]=function(_0x3ce41d,_0xe2f09f,_0x2b6cf3){var _0x2d8114='\x0a',_0x1ecda1=['\x0a\x0a',_0x6cae('0x5')],_0x1c0025=-0x1,_0x117b0d=-0x1,_0x467032='',_0x3c4f6b=0x0,_0x4a93be='',_0xffcfee='';this[_0x6cae('0x6')]+=_0x3ce41d['toString']();_0x4a93be=this[_0x6cae('0x6')];if(!this[_0x6cae('0x7')]){_0x3c4f6b=0x0;while(_0x1ecda1[_0x3c4f6b]){while((_0x117b0d=_0x4a93be[_0x6cae('0x8')](_0x1ecda1[_0x3c4f6b]))!=-0x1){_0x467032=_0x1ecda1[_0x3c4f6b];_0xffcfee=_0x4a93be[_0x6cae('0x9')](0x0,_0x117b0d);_0x4a93be=_0x4a93be[_0x6cae('0x9')](_0x117b0d+_0x467032[_0x6cae('0xa')]);var _0x9e6cf2=_0xffcfee[_0x6cae('0xb')](_0x2d8114),_0x21143c=0x0,_0xbd19f={},_0x572304='',_0x34e94c='',_0x16b2e0=-0x1;while(_0x9e6cf2[_0x21143c]){_0x16b2e0=_0x9e6cf2[_0x21143c][_0x6cae('0x8')](':');if(_0x16b2e0!=-0x1){_0x572304=_0x9e6cf2[_0x21143c][_0x6cae('0xc')](0x0,_0x16b2e0)[_0x6cae('0xd')]();_0x34e94c=_0x9e6cf2[_0x21143c][_0x6cae('0xc')](_0x16b2e0+0x1)[_0x6cae('0xd')]();if(_0x572304['length']>0x0){_0xbd19f[_0x572304]=_0x34e94c;}}else{}_0x21143c++;}this[_0x6cae('0xe')]('headers',_0xbd19f);this[_0x6cae('0x7')]=!![];}_0x3c4f6b++;}this[_0x6cae('0x6')]=_0x4a93be;}else{while((_0x1c0025=_0x4a93be[_0x6cae('0x8')](_0x2d8114))!=-0x1){_0xffcfee=_0x4a93be[_0x6cae('0x9')](0x0,_0x1c0025);this['emit']('line',_0xffcfee);_0x4a93be=_0x4a93be[_0x6cae('0x9')](_0x1c0025+_0x2d8114['length']);}this[_0x6cae('0x6')]=_0x4a93be;}_0x2b6cf3();};module[_0x6cae('0xf')]=AGIReply;
\ No newline at end of file