Built motion from commit 43538d75.|2.5.35
[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 _0xdaf2=['headers','emit','line','exports','stream','Transform','call','_localBuffer','_inBody','inherits','_transform','\x0d\x0a\x0d\x0a','toString','indexOf','substring','length','slice'];(function(_0x5585a6,_0x1ad47d){var _0x36a760=function(_0x1b4367){while(--_0x1b4367){_0x5585a6['push'](_0x5585a6['shift']());}};_0x36a760(++_0x1ad47d);}(_0xdaf2,0x1cf));var _0x2daf=function(_0x44216d,_0x4938a7){_0x44216d=_0x44216d-0x0;var _0xeca523=_0xdaf2[_0x44216d];return _0xeca523;};'use strict';var util=require('util');var Transform=require(_0x2daf('0x0'))[_0x2daf('0x1')];function AGIReply(_0x514972){Transform[_0x2daf('0x2')](this,_0x514972);this[_0x2daf('0x3')]='';this[_0x2daf('0x4')]=![];}util[_0x2daf('0x5')](AGIReply,Transform);AGIReply['prototype'][_0x2daf('0x6')]=function(_0xcea48f,_0x23880d,_0x5d11e7){var _0x34366b='\x0a',_0x58227c=['\x0a\x0a',_0x2daf('0x7')],_0x1d8c0b=-0x1,_0x3d6157=-0x1,_0x3b3a58='',_0x43cf6c=0x0,_0xd0fd9c='',_0x42e4a6='';this[_0x2daf('0x3')]+=_0xcea48f[_0x2daf('0x8')]();_0xd0fd9c=this['_localBuffer'];if(!this['_inBody']){_0x43cf6c=0x0;while(_0x58227c[_0x43cf6c]){while((_0x3d6157=_0xd0fd9c[_0x2daf('0x9')](_0x58227c[_0x43cf6c]))!=-0x1){_0x3b3a58=_0x58227c[_0x43cf6c];_0x42e4a6=_0xd0fd9c[_0x2daf('0xa')](0x0,_0x3d6157);_0xd0fd9c=_0xd0fd9c[_0x2daf('0xa')](_0x3d6157+_0x3b3a58[_0x2daf('0xb')]);var _0x373264=_0x42e4a6['split'](_0x34366b),_0x53f257=0x0,_0x8d2540={},_0xd87d58='',_0x2c2694='',_0x4cb364=-0x1;while(_0x373264[_0x53f257]){_0x4cb364=_0x373264[_0x53f257][_0x2daf('0x9')](':');if(_0x4cb364!=-0x1){_0xd87d58=_0x373264[_0x53f257][_0x2daf('0xc')](0x0,_0x4cb364)['trim']();_0x2c2694=_0x373264[_0x53f257][_0x2daf('0xc')](_0x4cb364+0x1)['trim']();if(_0xd87d58[_0x2daf('0xb')]>0x0){_0x8d2540[_0xd87d58]=_0x2c2694;}}else{}_0x53f257++;}this['emit'](_0x2daf('0xd'),_0x8d2540);this[_0x2daf('0x4')]=!![];}_0x43cf6c++;}this['_localBuffer']=_0xd0fd9c;}else{while((_0x1d8c0b=_0xd0fd9c[_0x2daf('0x9')](_0x34366b))!=-0x1){_0x42e4a6=_0xd0fd9c[_0x2daf('0xa')](0x0,_0x1d8c0b);this[_0x2daf('0xe')](_0x2daf('0xf'),_0x42e4a6);_0xd0fd9c=_0xd0fd9c[_0x2daf('0xa')](_0x1d8c0b+_0x34366b['length']);}this[_0x2daf('0x3')]=_0xd0fd9c;}_0x5d11e7();};module[_0x2daf('0x10')]=AGIReply;