abc4ab5904dd33093fb2b1466ceda4aab38b9d7a
[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 _0x1384=['call','_localBuffer','_inBody','inherits','prototype','_transform','toString','indexOf','substring','length','split','slice','trim','emit','headers','line','exports','util','stream','Transform'];(function(_0x30c649,_0x2ebbac){var _0x3edfb9=function(_0xab82f5){while(--_0xab82f5){_0x30c649['push'](_0x30c649['shift']());}};_0x3edfb9(++_0x2ebbac);}(_0x1384,0x18d));var _0x4138=function(_0x412b6e,_0x8d7447){_0x412b6e=_0x412b6e-0x0;var _0x461d99=_0x1384[_0x412b6e];return _0x461d99;};'use strict';var util=require(_0x4138('0x0'));var Transform=require(_0x4138('0x1'))[_0x4138('0x2')];function AGIReply(_0x5c59ba){Transform[_0x4138('0x3')](this,_0x5c59ba);this[_0x4138('0x4')]='';this[_0x4138('0x5')]=![];}util[_0x4138('0x6')](AGIReply,Transform);AGIReply[_0x4138('0x7')][_0x4138('0x8')]=function(_0x3978a9,_0x8e39b5,_0x97ade){var _0x470aa4='\x0a',_0x213d75=['\x0a\x0a','\x0d\x0a\x0d\x0a'],_0xd70add=-0x1,_0x266f94=-0x1,_0x11c4e4='',_0x3aa544=0x0,_0x1258db='',_0x509854='';this[_0x4138('0x4')]+=_0x3978a9[_0x4138('0x9')]();_0x1258db=this[_0x4138('0x4')];if(!this[_0x4138('0x5')]){_0x3aa544=0x0;while(_0x213d75[_0x3aa544]){while((_0x266f94=_0x1258db[_0x4138('0xa')](_0x213d75[_0x3aa544]))!=-0x1){_0x11c4e4=_0x213d75[_0x3aa544];_0x509854=_0x1258db[_0x4138('0xb')](0x0,_0x266f94);_0x1258db=_0x1258db[_0x4138('0xb')](_0x266f94+_0x11c4e4[_0x4138('0xc')]);var _0x3f572e=_0x509854[_0x4138('0xd')](_0x470aa4),_0x999885=0x0,_0x1e4727={},_0x34e336='',_0x529130='',_0x37d9df=-0x1;while(_0x3f572e[_0x999885]){_0x37d9df=_0x3f572e[_0x999885][_0x4138('0xa')](':');if(_0x37d9df!=-0x1){_0x34e336=_0x3f572e[_0x999885][_0x4138('0xe')](0x0,_0x37d9df)[_0x4138('0xf')]();_0x529130=_0x3f572e[_0x999885][_0x4138('0xe')](_0x37d9df+0x1)[_0x4138('0xf')]();if(_0x34e336[_0x4138('0xc')]>0x0){_0x1e4727[_0x34e336]=_0x529130;}}else{}_0x999885++;}this[_0x4138('0x10')](_0x4138('0x11'),_0x1e4727);this['_inBody']=!![];}_0x3aa544++;}this[_0x4138('0x4')]=_0x1258db;}else{while((_0xd70add=_0x1258db[_0x4138('0xa')](_0x470aa4))!=-0x1){_0x509854=_0x1258db['substring'](0x0,_0xd70add);this[_0x4138('0x10')](_0x4138('0x12'),_0x509854);_0x1258db=_0x1258db[_0x4138('0xb')](_0xd70add+_0x470aa4[_0x4138('0xc')]);}this[_0x4138('0x4')]=_0x1258db;}_0x97ade();};module[_0x4138('0x13')]=AGIReply;