5eb5e2b445ce663b80937848f6cb0560a623e103
[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 _0x11d9=['line','exports','util','stream','_localBuffer','inherits','prototype','_transform','\x0d\x0a\x0d\x0a','toString','_inBody','indexOf','substring','split','trim','slice','length','emit','headers'];(function(_0x1040c3,_0x2a798c){var _0x1878e1=function(_0xf70bf8){while(--_0xf70bf8){_0x1040c3['push'](_0x1040c3['shift']());}};_0x1878e1(++_0x2a798c);}(_0x11d9,0x87));var _0x911d=function(_0x48c966,_0x42ce94){_0x48c966=_0x48c966-0x0;var _0xe395c5=_0x11d9[_0x48c966];return _0xe395c5;};'use strict';var util=require(_0x911d('0x0'));var Transform=require(_0x911d('0x1'))['Transform'];function AGIReply(_0x10c922){Transform['call'](this,_0x10c922);this[_0x911d('0x2')]='';this['_inBody']=![];}util[_0x911d('0x3')](AGIReply,Transform);AGIReply[_0x911d('0x4')][_0x911d('0x5')]=function(_0x4eb336,_0x950bbd,_0x5c7b5e){var _0x2ec9c5='\x0a',_0x8b9098=['\x0a\x0a',_0x911d('0x6')],_0x4db43f=-0x1,_0xf4ddbd=-0x1,_0x1e5054='',_0x23b0b3=0x0,_0x1a88b8='',_0xd3b729='';this[_0x911d('0x2')]+=_0x4eb336[_0x911d('0x7')]();_0x1a88b8=this[_0x911d('0x2')];if(!this[_0x911d('0x8')]){_0x23b0b3=0x0;while(_0x8b9098[_0x23b0b3]){while((_0xf4ddbd=_0x1a88b8[_0x911d('0x9')](_0x8b9098[_0x23b0b3]))!=-0x1){_0x1e5054=_0x8b9098[_0x23b0b3];_0xd3b729=_0x1a88b8[_0x911d('0xa')](0x0,_0xf4ddbd);_0x1a88b8=_0x1a88b8[_0x911d('0xa')](_0xf4ddbd+_0x1e5054['length']);var _0x34cc46=_0xd3b729[_0x911d('0xb')](_0x2ec9c5),_0x1252b5=0x0,_0x2ae932={},_0x52a3cd='',_0x233ebb='',_0x4defd3=-0x1;while(_0x34cc46[_0x1252b5]){_0x4defd3=_0x34cc46[_0x1252b5][_0x911d('0x9')](':');if(_0x4defd3!=-0x1){_0x52a3cd=_0x34cc46[_0x1252b5]['slice'](0x0,_0x4defd3)[_0x911d('0xc')]();_0x233ebb=_0x34cc46[_0x1252b5][_0x911d('0xd')](_0x4defd3+0x1)[_0x911d('0xc')]();if(_0x52a3cd[_0x911d('0xe')]>0x0){_0x2ae932[_0x52a3cd]=_0x233ebb;}}else{}_0x1252b5++;}this[_0x911d('0xf')](_0x911d('0x10'),_0x2ae932);this[_0x911d('0x8')]=!![];}_0x23b0b3++;}this[_0x911d('0x2')]=_0x1a88b8;}else{while((_0x4db43f=_0x1a88b8[_0x911d('0x9')](_0x2ec9c5))!=-0x1){_0xd3b729=_0x1a88b8[_0x911d('0xa')](0x0,_0x4db43f);this[_0x911d('0xf')](_0x911d('0x11'),_0xd3b729);_0x1a88b8=_0x1a88b8[_0x911d('0xa')](_0x4db43f+_0x2ec9c5[_0x911d('0xe')]);}this[_0x911d('0x2')]=_0x1a88b8;}_0x5c7b5e();};module[_0x911d('0x12')]=AGIReply;