1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x9857=['headers','line','util','stream','Transform','call','_inBody','inherits','prototype','_transform','_localBuffer','toString','substring','length','split','indexOf','trim','slice','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9857,0x87));var _0x7985=function(_0x37697f,_0x349ab){_0x37697f=_0x37697f-0x0;var _0x17a373=_0x9857[_0x37697f];return _0x17a373;};'use strict';var util=require(_0x7985('0x0'));var Transform=require(_0x7985('0x1'))[_0x7985('0x2')];function AGIReply(_0x53aa17){Transform[_0x7985('0x3')](this,_0x53aa17);this['_localBuffer']='';this[_0x7985('0x4')]=![];}util[_0x7985('0x5')](AGIReply,Transform);AGIReply[_0x7985('0x6')][_0x7985('0x7')]=function(_0x20ebae,_0x2cad90,_0x32aacc){var _0x396d12='\x0a',_0x1d0179=['\x0a\x0a','\x0d\x0a\x0d\x0a'],_0x53d2cd=-0x1,_0x4ce3a0=-0x1,_0xa42742='',_0x2e9df=0x0,_0x861d15='',_0x62e3ce='';this[_0x7985('0x8')]+=_0x20ebae[_0x7985('0x9')]();_0x861d15=this[_0x7985('0x8')];if(!this[_0x7985('0x4')]){_0x2e9df=0x0;while(_0x1d0179[_0x2e9df]){while((_0x4ce3a0=_0x861d15['indexOf'](_0x1d0179[_0x2e9df]))!=-0x1){_0xa42742=_0x1d0179[_0x2e9df];_0x62e3ce=_0x861d15[_0x7985('0xa')](0x0,_0x4ce3a0);_0x861d15=_0x861d15[_0x7985('0xa')](_0x4ce3a0+_0xa42742[_0x7985('0xb')]);var _0x5e6cc6=_0x62e3ce[_0x7985('0xc')](_0x396d12),_0x5d450a=0x0,_0x15dabd={},_0x4b36a5='',_0x193fa9='',_0x272f9e=-0x1;while(_0x5e6cc6[_0x5d450a]){_0x272f9e=_0x5e6cc6[_0x5d450a][_0x7985('0xd')](':');if(_0x272f9e!=-0x1){_0x4b36a5=_0x5e6cc6[_0x5d450a]['slice'](0x0,_0x272f9e)[_0x7985('0xe')]();_0x193fa9=_0x5e6cc6[_0x5d450a][_0x7985('0xf')](_0x272f9e+0x1)[_0x7985('0xe')]();if(_0x4b36a5['length']>0x0){_0x15dabd[_0x4b36a5]=_0x193fa9;}}else{}_0x5d450a++;}this[_0x7985('0x10')](_0x7985('0x11'),_0x15dabd);this[_0x7985('0x4')]=!![];}_0x2e9df++;}this['_localBuffer']=_0x861d15;}else{while((_0x53d2cd=_0x861d15[_0x7985('0xd')](_0x396d12))!=-0x1){_0x62e3ce=_0x861d15[_0x7985('0xa')](0x0,_0x53d2cd);this[_0x7985('0x10')](_0x7985('0x12'),_0x62e3ce);_0x861d15=_0x861d15[_0x7985('0xa')](_0x53d2cd+_0x396d12['length']);}this['_localBuffer']=_0x861d15;}_0x32aacc();};module['exports']=AGIReply;