f62934153433e1c28f4c795fc30b20dccf129444
[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 _0x3715=['_inBody','inherits','prototype','_transform','toString','substring','length','split','slice','trim','emit','headers','indexOf','line','exports','util','stream','Transform','call','_localBuffer'];(function(_0x158443,_0x1f4a35){var _0x282e59=function(_0xd72bee){while(--_0xd72bee){_0x158443['push'](_0x158443['shift']());}};_0x282e59(++_0x1f4a35);}(_0x3715,0xc3));var _0x5371=function(_0x51ad88,_0x43bb82){_0x51ad88=_0x51ad88-0x0;var _0x336eef=_0x3715[_0x51ad88];return _0x336eef;};'use strict';var util=require(_0x5371('0x0'));var Transform=require(_0x5371('0x1'))[_0x5371('0x2')];function AGIReply(_0x17bbf9){Transform[_0x5371('0x3')](this,_0x17bbf9);this[_0x5371('0x4')]='';this[_0x5371('0x5')]=![];}util[_0x5371('0x6')](AGIReply,Transform);AGIReply[_0x5371('0x7')][_0x5371('0x8')]=function(_0x13c458,_0x368886,_0x50a759){var _0x1ffdcb='\x0a',_0x340e44=['\x0a\x0a','\x0d\x0a\x0d\x0a'],_0x5edddc=-0x1,_0x426a2a=-0x1,_0x16c64a='',_0x41d142=0x0,_0x56debd='',_0xdbc695='';this['_localBuffer']+=_0x13c458[_0x5371('0x9')]();_0x56debd=this[_0x5371('0x4')];if(!this[_0x5371('0x5')]){_0x41d142=0x0;while(_0x340e44[_0x41d142]){while((_0x426a2a=_0x56debd['indexOf'](_0x340e44[_0x41d142]))!=-0x1){_0x16c64a=_0x340e44[_0x41d142];_0xdbc695=_0x56debd[_0x5371('0xa')](0x0,_0x426a2a);_0x56debd=_0x56debd[_0x5371('0xa')](_0x426a2a+_0x16c64a[_0x5371('0xb')]);var _0x55653f=_0xdbc695[_0x5371('0xc')](_0x1ffdcb),_0x4df51b=0x0,_0x2207f2={},_0x1faac2='',_0x1b0a8a='',_0x5b4adf=-0x1;while(_0x55653f[_0x4df51b]){_0x5b4adf=_0x55653f[_0x4df51b]['indexOf'](':');if(_0x5b4adf!=-0x1){_0x1faac2=_0x55653f[_0x4df51b][_0x5371('0xd')](0x0,_0x5b4adf)[_0x5371('0xe')]();_0x1b0a8a=_0x55653f[_0x4df51b]['slice'](_0x5b4adf+0x1)[_0x5371('0xe')]();if(_0x1faac2[_0x5371('0xb')]>0x0){_0x2207f2[_0x1faac2]=_0x1b0a8a;}}else{}_0x4df51b++;}this[_0x5371('0xf')](_0x5371('0x10'),_0x2207f2);this[_0x5371('0x5')]=!![];}_0x41d142++;}this[_0x5371('0x4')]=_0x56debd;}else{while((_0x5edddc=_0x56debd[_0x5371('0x11')](_0x1ffdcb))!=-0x1){_0xdbc695=_0x56debd['substring'](0x0,_0x5edddc);this[_0x5371('0xf')](_0x5371('0x12'),_0xdbc695);_0x56debd=_0x56debd[_0x5371('0xa')](_0x5edddc+_0x1ffdcb[_0x5371('0xb')]);}this[_0x5371('0x4')]=_0x56debd;}_0x50a759();};module[_0x5371('0x13')]=AGIReply;