da11d812dce8f2a82b1a7ca23612fda4baa66ae6
[motion2.git] / server / services / agi / reply.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x453b=['stream','Transform','call','_localBuffer','_inBody','inherits','prototype','_transform','toString','substring','length','trim','emit','indexOf','line','exports','util'];(function(_0x2261ce,_0x9ed8b6){var _0x524640=function(_0x3cbb90){while(--_0x3cbb90){_0x2261ce['push'](_0x2261ce['shift']());}};_0x524640(++_0x9ed8b6);}(_0x453b,0x164));var _0xb453=function(_0x43e885,_0x5700f1){_0x43e885=_0x43e885-0x0;var _0x18df65=_0x453b[_0x43e885];return _0x18df65;};'use strict';var util=require(_0xb453('0x0'));var Transform=require(_0xb453('0x1'))[_0xb453('0x2')];function AGIReply(_0x318d98){Transform[_0xb453('0x3')](this,_0x318d98);this[_0xb453('0x4')]='';this[_0xb453('0x5')]=![];}util[_0xb453('0x6')](AGIReply,Transform);AGIReply[_0xb453('0x7')][_0xb453('0x8')]=function(_0x6ee7a0,_0x3cfd60,_0x434695){var _0x4d7c1e='\x0a',_0x1ab841=['\x0a\x0a','\x0d\x0a\x0d\x0a'],_0x2436a7=-0x1,_0x4fdd93=-0x1,_0x12c490='',_0x3486a8=0x0,_0x55b2fa='',_0x2242f9='';this[_0xb453('0x4')]+=_0x6ee7a0[_0xb453('0x9')]();_0x55b2fa=this[_0xb453('0x4')];if(!this[_0xb453('0x5')]){_0x3486a8=0x0;while(_0x1ab841[_0x3486a8]){while((_0x4fdd93=_0x55b2fa['indexOf'](_0x1ab841[_0x3486a8]))!=-0x1){_0x12c490=_0x1ab841[_0x3486a8];_0x2242f9=_0x55b2fa[_0xb453('0xa')](0x0,_0x4fdd93);_0x55b2fa=_0x55b2fa[_0xb453('0xa')](_0x4fdd93+_0x12c490[_0xb453('0xb')]);var _0x35433d=_0x2242f9['split'](_0x4d7c1e),_0x60c9b4=0x0,_0x3069f1={},_0x223bf5='',_0x22e39b='',_0x2d24b9=-0x1;while(_0x35433d[_0x60c9b4]){_0x2d24b9=_0x35433d[_0x60c9b4]['indexOf'](':');if(_0x2d24b9!=-0x1){_0x223bf5=_0x35433d[_0x60c9b4]['slice'](0x0,_0x2d24b9)[_0xb453('0xc')]();_0x22e39b=_0x35433d[_0x60c9b4]['slice'](_0x2d24b9+0x1)[_0xb453('0xc')]();if(_0x223bf5[_0xb453('0xb')]>0x0){_0x3069f1[_0x223bf5]=_0x22e39b;}}else{}_0x60c9b4++;}this[_0xb453('0xd')]('headers',_0x3069f1);this['_inBody']=!![];}_0x3486a8++;}this[_0xb453('0x4')]=_0x55b2fa;}else{while((_0x2436a7=_0x55b2fa[_0xb453('0xe')](_0x4d7c1e))!=-0x1){_0x2242f9=_0x55b2fa[_0xb453('0xa')](0x0,_0x2436a7);this[_0xb453('0xd')](_0xb453('0xf'),_0x2242f9);_0x55b2fa=_0x55b2fa[_0xb453('0xa')](_0x2436a7+_0x4d7c1e[_0xb453('0xb')]);}this[_0xb453('0x4')]=_0x55b2fa;}_0x434695();};module[_0xb453('0x10')]=AGIReply;