a805658b436ce0b7108bc45cbc3059cd4b8722ad
[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 _0x593e=['inherits','_transform','\x0d\x0a\x0d\x0a','indexOf','substring','length','split','slice','trim','emit','headers','line','exports','util','stream','Transform','call','_localBuffer','_inBody'];(function(_0x574082,_0x3e3329){var _0x280234=function(_0x4a3353){while(--_0x4a3353){_0x574082['push'](_0x574082['shift']());}};_0x280234(++_0x3e3329);}(_0x593e,0xcb));var _0xe593=function(_0x50a4d6,_0x344790){_0x50a4d6=_0x50a4d6-0x0;var _0x36390d=_0x593e[_0x50a4d6];return _0x36390d;};'use strict';var util=require(_0xe593('0x0'));var Transform=require(_0xe593('0x1'))[_0xe593('0x2')];function AGIReply(_0x28f28c){Transform[_0xe593('0x3')](this,_0x28f28c);this[_0xe593('0x4')]='';this[_0xe593('0x5')]=![];}util[_0xe593('0x6')](AGIReply,Transform);AGIReply['prototype'][_0xe593('0x7')]=function(_0x2475f5,_0x404e3a,_0x1e50d3){var _0x3b7082='\x0a',_0x14cff3=['\x0a\x0a',_0xe593('0x8')],_0x1cda29=-0x1,_0x307dad=-0x1,_0x169c08='',_0x265099=0x0,_0x51b862='',_0x38c470='';this[_0xe593('0x4')]+=_0x2475f5['toString']();_0x51b862=this['_localBuffer'];if(!this[_0xe593('0x5')]){_0x265099=0x0;while(_0x14cff3[_0x265099]){while((_0x307dad=_0x51b862[_0xe593('0x9')](_0x14cff3[_0x265099]))!=-0x1){_0x169c08=_0x14cff3[_0x265099];_0x38c470=_0x51b862[_0xe593('0xa')](0x0,_0x307dad);_0x51b862=_0x51b862['substring'](_0x307dad+_0x169c08[_0xe593('0xb')]);var _0x6bc1b8=_0x38c470[_0xe593('0xc')](_0x3b7082),_0x137f0b=0x0,_0xd9a525={},_0x8ee313='',_0x31dad0='',_0x24c9fd=-0x1;while(_0x6bc1b8[_0x137f0b]){_0x24c9fd=_0x6bc1b8[_0x137f0b][_0xe593('0x9')](':');if(_0x24c9fd!=-0x1){_0x8ee313=_0x6bc1b8[_0x137f0b][_0xe593('0xd')](0x0,_0x24c9fd)['trim']();_0x31dad0=_0x6bc1b8[_0x137f0b][_0xe593('0xd')](_0x24c9fd+0x1)[_0xe593('0xe')]();if(_0x8ee313['length']>0x0){_0xd9a525[_0x8ee313]=_0x31dad0;}}else{}_0x137f0b++;}this[_0xe593('0xf')](_0xe593('0x10'),_0xd9a525);this['_inBody']=!![];}_0x265099++;}this[_0xe593('0x4')]=_0x51b862;}else{while((_0x1cda29=_0x51b862[_0xe593('0x9')](_0x3b7082))!=-0x1){_0x38c470=_0x51b862[_0xe593('0xa')](0x0,_0x1cda29);this[_0xe593('0xf')](_0xe593('0x11'),_0x38c470);_0x51b862=_0x51b862[_0xe593('0xa')](_0x1cda29+_0x3b7082['length']);}this[_0xe593('0x4')]=_0x51b862;}_0x1e50d3();};module[_0xe593('0x12')]=AGIReply;