7cf633985b954a11ed53366898d37d83b5363209
[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 _0xb5f8=['toString','indexOf','substring','length','split','slice','trim','emit','headers','exports','util','stream','Transform','call','_inBody','inherits','_transform','_localBuffer'];(function(_0x43ee6f,_0x561390){var _0x2d2d84=function(_0x3f5f0f){while(--_0x3f5f0f){_0x43ee6f['push'](_0x43ee6f['shift']());}};_0x2d2d84(++_0x561390);}(_0xb5f8,0x88));var _0x8b5f=function(_0x1f2900,_0x3605d4){_0x1f2900=_0x1f2900-0x0;var _0x221660=_0xb5f8[_0x1f2900];return _0x221660;};'use strict';var util=require(_0x8b5f('0x0'));var Transform=require(_0x8b5f('0x1'))[_0x8b5f('0x2')];function AGIReply(_0x2ea807){Transform[_0x8b5f('0x3')](this,_0x2ea807);this['_localBuffer']='';this[_0x8b5f('0x4')]=![];}util[_0x8b5f('0x5')](AGIReply,Transform);AGIReply['prototype'][_0x8b5f('0x6')]=function(_0x11d102,_0x4f9cb7,_0x437371){var _0x3f6cc9='\x0a',_0x4d3b72=['\x0a\x0a','\x0d\x0a\x0d\x0a'],_0x56d7a2=-0x1,_0x25111a=-0x1,_0x1b48e1='',_0x2a348d=0x0,_0x28c5dd='',_0x3f4b50='';this[_0x8b5f('0x7')]+=_0x11d102[_0x8b5f('0x8')]();_0x28c5dd=this[_0x8b5f('0x7')];if(!this['_inBody']){_0x2a348d=0x0;while(_0x4d3b72[_0x2a348d]){while((_0x25111a=_0x28c5dd[_0x8b5f('0x9')](_0x4d3b72[_0x2a348d]))!=-0x1){_0x1b48e1=_0x4d3b72[_0x2a348d];_0x3f4b50=_0x28c5dd[_0x8b5f('0xa')](0x0,_0x25111a);_0x28c5dd=_0x28c5dd[_0x8b5f('0xa')](_0x25111a+_0x1b48e1[_0x8b5f('0xb')]);var _0x53c123=_0x3f4b50[_0x8b5f('0xc')](_0x3f6cc9),_0x19ae71=0x0,_0x34fbf4={},_0x30e955='',_0x1b3f3c='',_0x30eb72=-0x1;while(_0x53c123[_0x19ae71]){_0x30eb72=_0x53c123[_0x19ae71]['indexOf'](':');if(_0x30eb72!=-0x1){_0x30e955=_0x53c123[_0x19ae71][_0x8b5f('0xd')](0x0,_0x30eb72)[_0x8b5f('0xe')]();_0x1b3f3c=_0x53c123[_0x19ae71]['slice'](_0x30eb72+0x1)['trim']();if(_0x30e955[_0x8b5f('0xb')]>0x0){_0x34fbf4[_0x30e955]=_0x1b3f3c;}}else{}_0x19ae71++;}this[_0x8b5f('0xf')](_0x8b5f('0x10'),_0x34fbf4);this[_0x8b5f('0x4')]=!![];}_0x2a348d++;}this['_localBuffer']=_0x28c5dd;}else{while((_0x56d7a2=_0x28c5dd[_0x8b5f('0x9')](_0x3f6cc9))!=-0x1){_0x3f4b50=_0x28c5dd[_0x8b5f('0xa')](0x0,_0x56d7a2);this[_0x8b5f('0xf')]('line',_0x3f4b50);_0x28c5dd=_0x28c5dd['substring'](_0x56d7a2+_0x3f6cc9[_0x8b5f('0xb')]);}this[_0x8b5f('0x7')]=_0x28c5dd;}_0x437371();};module[_0x8b5f('0x11')]=AGIReply;