Built motion from commit e6806ed6.|2.6.0
[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 _0x65b3=['Transform','call','_localBuffer','inherits','prototype','_transform','\x0d\x0a\x0d\x0a','toString','_inBody','substring','length','indexOf','trim','slice','emit','headers','line','exports','util','stream'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x65b3,0xc6));var _0x365b=function(_0x3c51d4,_0x36ba53){_0x3c51d4=_0x3c51d4-0x0;var _0x53c45f=_0x65b3[_0x3c51d4];return _0x53c45f;};'use strict';var util=require(_0x365b('0x0'));var Transform=require(_0x365b('0x1'))[_0x365b('0x2')];function AGIReply(_0x63e7bb){Transform[_0x365b('0x3')](this,_0x63e7bb);this[_0x365b('0x4')]='';this['_inBody']=![];}util[_0x365b('0x5')](AGIReply,Transform);AGIReply[_0x365b('0x6')][_0x365b('0x7')]=function(_0x58fc3c,_0x41c876,_0x43cb8f){var _0x2ca1d8='\x0a',_0x5b7869=['\x0a\x0a',_0x365b('0x8')],_0x160565=-0x1,_0xe6670a=-0x1,_0x2ed50a='',_0x3f95c1=0x0,_0x25e24c='',_0x586974='';this[_0x365b('0x4')]+=_0x58fc3c[_0x365b('0x9')]();_0x25e24c=this[_0x365b('0x4')];if(!this[_0x365b('0xa')]){_0x3f95c1=0x0;while(_0x5b7869[_0x3f95c1]){while((_0xe6670a=_0x25e24c['indexOf'](_0x5b7869[_0x3f95c1]))!=-0x1){_0x2ed50a=_0x5b7869[_0x3f95c1];_0x586974=_0x25e24c[_0x365b('0xb')](0x0,_0xe6670a);_0x25e24c=_0x25e24c[_0x365b('0xb')](_0xe6670a+_0x2ed50a[_0x365b('0xc')]);var _0xe11fd8=_0x586974['split'](_0x2ca1d8),_0x4b27d4=0x0,_0x5aa862={},_0x10d47f='',_0x14ed59='',_0x3b4127=-0x1;while(_0xe11fd8[_0x4b27d4]){_0x3b4127=_0xe11fd8[_0x4b27d4][_0x365b('0xd')](':');if(_0x3b4127!=-0x1){_0x10d47f=_0xe11fd8[_0x4b27d4]['slice'](0x0,_0x3b4127)[_0x365b('0xe')]();_0x14ed59=_0xe11fd8[_0x4b27d4][_0x365b('0xf')](_0x3b4127+0x1)[_0x365b('0xe')]();if(_0x10d47f[_0x365b('0xc')]>0x0){_0x5aa862[_0x10d47f]=_0x14ed59;}}else{}_0x4b27d4++;}this[_0x365b('0x10')](_0x365b('0x11'),_0x5aa862);this[_0x365b('0xa')]=!![];}_0x3f95c1++;}this[_0x365b('0x4')]=_0x25e24c;}else{while((_0x160565=_0x25e24c[_0x365b('0xd')](_0x2ca1d8))!=-0x1){_0x586974=_0x25e24c[_0x365b('0xb')](0x0,_0x160565);this[_0x365b('0x10')](_0x365b('0x12'),_0x586974);_0x25e24c=_0x25e24c[_0x365b('0xb')](_0x160565+_0x2ca1d8[_0x365b('0xc')]);}this[_0x365b('0x4')]=_0x25e24c;}_0x43cb8f();};module[_0x365b('0x13')]=AGIReply;