9aea36f8828ac92f131f312e2437a8c8c6f2a731
[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 _0x93f1=['\x0d\x0a\x0d\x0a','toString','_inBody','indexOf','substring','length','split','slice','trim','emit','headers','line','exports','util','stream','Transform','call','_localBuffer','inherits','_transform'];(function(_0x1f8923,_0x9b9d55){var _0x1b9bc3=function(_0x5016f4){while(--_0x5016f4){_0x1f8923['push'](_0x1f8923['shift']());}};_0x1b9bc3(++_0x9b9d55);}(_0x93f1,0x1b1));var _0x193f=function(_0x82234a,_0xa94c50){_0x82234a=_0x82234a-0x0;var _0x54702e=_0x93f1[_0x82234a];return _0x54702e;};'use strict';var util=require(_0x193f('0x0'));var Transform=require(_0x193f('0x1'))[_0x193f('0x2')];function AGIReply(_0x537c90){Transform[_0x193f('0x3')](this,_0x537c90);this[_0x193f('0x4')]='';this['_inBody']=![];}util[_0x193f('0x5')](AGIReply,Transform);AGIReply['prototype'][_0x193f('0x6')]=function(_0x54529c,_0x31af60,_0x5670ea){var _0xd9bc2d='\x0a',_0xddcb90=['\x0a\x0a',_0x193f('0x7')],_0x21c670=-0x1,_0xf6027d=-0x1,_0x186e72='',_0x56059d=0x0,_0x269aa2='',_0x2ee15b='';this[_0x193f('0x4')]+=_0x54529c[_0x193f('0x8')]();_0x269aa2=this[_0x193f('0x4')];if(!this[_0x193f('0x9')]){_0x56059d=0x0;while(_0xddcb90[_0x56059d]){while((_0xf6027d=_0x269aa2[_0x193f('0xa')](_0xddcb90[_0x56059d]))!=-0x1){_0x186e72=_0xddcb90[_0x56059d];_0x2ee15b=_0x269aa2[_0x193f('0xb')](0x0,_0xf6027d);_0x269aa2=_0x269aa2[_0x193f('0xb')](_0xf6027d+_0x186e72[_0x193f('0xc')]);var _0xa9fc53=_0x2ee15b[_0x193f('0xd')](_0xd9bc2d),_0x34268f=0x0,_0x197fe3={},_0xa04d4e='',_0x1187c7='',_0x1765bd=-0x1;while(_0xa9fc53[_0x34268f]){_0x1765bd=_0xa9fc53[_0x34268f][_0x193f('0xa')](':');if(_0x1765bd!=-0x1){_0xa04d4e=_0xa9fc53[_0x34268f][_0x193f('0xe')](0x0,_0x1765bd)['trim']();_0x1187c7=_0xa9fc53[_0x34268f][_0x193f('0xe')](_0x1765bd+0x1)[_0x193f('0xf')]();if(_0xa04d4e['length']>0x0){_0x197fe3[_0xa04d4e]=_0x1187c7;}}else{}_0x34268f++;}this[_0x193f('0x10')](_0x193f('0x11'),_0x197fe3);this[_0x193f('0x9')]=!![];}_0x56059d++;}this[_0x193f('0x4')]=_0x269aa2;}else{while((_0x21c670=_0x269aa2[_0x193f('0xa')](_0xd9bc2d))!=-0x1){_0x2ee15b=_0x269aa2[_0x193f('0xb')](0x0,_0x21c670);this[_0x193f('0x10')](_0x193f('0x12'),_0x2ee15b);_0x269aa2=_0x269aa2[_0x193f('0xb')](_0x21c670+_0xd9bc2d[_0x193f('0xc')]);}this['_localBuffer']=_0x269aa2;}_0x5670ea();};module[_0x193f('0x13')]=AGIReply;