1afcf91353b52fc685da32abbec7a75da34cf897
[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 _0x2289=['util','stream','Transform','call','_localBuffer','_inBody','prototype','_transform','indexOf','substring','length','split','slice','trim','emit','headers','line','exports'];(function(_0x19ca4a,_0x307a19){var _0x3e45bd=function(_0x2624fd){while(--_0x2624fd){_0x19ca4a['push'](_0x19ca4a['shift']());}};_0x3e45bd(++_0x307a19);}(_0x2289,0xc6));var _0x9228=function(_0xa4dfe0,_0x3293e2){_0xa4dfe0=_0xa4dfe0-0x0;var _0x8f5e14=_0x2289[_0xa4dfe0];return _0x8f5e14;};'use strict';var util=require(_0x9228('0x0'));var Transform=require(_0x9228('0x1'))[_0x9228('0x2')];function AGIReply(_0x5b6bf3){Transform[_0x9228('0x3')](this,_0x5b6bf3);this[_0x9228('0x4')]='';this[_0x9228('0x5')]=![];}util['inherits'](AGIReply,Transform);AGIReply[_0x9228('0x6')][_0x9228('0x7')]=function(_0x101857,_0x2640a9,_0x1456ac){var _0x22c518='\x0a',_0x4c6591=['\x0a\x0a','\x0d\x0a\x0d\x0a'],_0x2c8859=-0x1,_0x4ccf04=-0x1,_0x1497a5='',_0x39aec2=0x0,_0x248e80='',_0x34bc78='';this[_0x9228('0x4')]+=_0x101857['toString']();_0x248e80=this[_0x9228('0x4')];if(!this[_0x9228('0x5')]){_0x39aec2=0x0;while(_0x4c6591[_0x39aec2]){while((_0x4ccf04=_0x248e80[_0x9228('0x8')](_0x4c6591[_0x39aec2]))!=-0x1){_0x1497a5=_0x4c6591[_0x39aec2];_0x34bc78=_0x248e80[_0x9228('0x9')](0x0,_0x4ccf04);_0x248e80=_0x248e80[_0x9228('0x9')](_0x4ccf04+_0x1497a5[_0x9228('0xa')]);var _0xd87480=_0x34bc78[_0x9228('0xb')](_0x22c518),_0x12df7b=0x0,_0x1911cd={},_0x2ca2d3='',_0xb14097='',_0x33c43b=-0x1;while(_0xd87480[_0x12df7b]){_0x33c43b=_0xd87480[_0x12df7b][_0x9228('0x8')](':');if(_0x33c43b!=-0x1){_0x2ca2d3=_0xd87480[_0x12df7b][_0x9228('0xc')](0x0,_0x33c43b)['trim']();_0xb14097=_0xd87480[_0x12df7b][_0x9228('0xc')](_0x33c43b+0x1)[_0x9228('0xd')]();if(_0x2ca2d3['length']>0x0){_0x1911cd[_0x2ca2d3]=_0xb14097;}}else{}_0x12df7b++;}this[_0x9228('0xe')](_0x9228('0xf'),_0x1911cd);this[_0x9228('0x5')]=!![];}_0x39aec2++;}this['_localBuffer']=_0x248e80;}else{while((_0x2c8859=_0x248e80[_0x9228('0x8')](_0x22c518))!=-0x1){_0x34bc78=_0x248e80['substring'](0x0,_0x2c8859);this[_0x9228('0xe')](_0x9228('0x10'),_0x34bc78);_0x248e80=_0x248e80[_0x9228('0x9')](_0x2c8859+_0x22c518[_0x9228('0xa')]);}this[_0x9228('0x4')]=_0x248e80;}_0x1456ac();};module[_0x9228('0x11')]=AGIReply;