4632b86eb78cdf3e337b3d69d2f4a7e2c42bd93c
[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 _0x61ce=['exports','stream','Transform','_localBuffer','_inBody','inherits','prototype','_transform','\x0d\x0a\x0d\x0a','toString','indexOf','substring','length','slice','trim','emit','headers','line'];(function(_0x1aed80,_0x3ca6f6){var _0x43961e=function(_0x43bf2b){while(--_0x43bf2b){_0x1aed80['push'](_0x1aed80['shift']());}};_0x43961e(++_0x3ca6f6);}(_0x61ce,0xeb));var _0xe61c=function(_0x51c25d,_0x4a1994){_0x51c25d=_0x51c25d-0x0;var _0x279002=_0x61ce[_0x51c25d];return _0x279002;};'use strict';var util=require('util');var Transform=require(_0xe61c('0x0'))[_0xe61c('0x1')];function AGIReply(_0x5ed46f){Transform['call'](this,_0x5ed46f);this[_0xe61c('0x2')]='';this[_0xe61c('0x3')]=![];}util[_0xe61c('0x4')](AGIReply,Transform);AGIReply[_0xe61c('0x5')][_0xe61c('0x6')]=function(_0x1fc5f9,_0x18488d,_0x2b93cc){var _0x1f2797='\x0a',_0x547ad7=['\x0a\x0a',_0xe61c('0x7')],_0x3c77ca=-0x1,_0xca2144=-0x1,_0x3c4af4='',_0x15b204=0x0,_0x27b17c='',_0x5e80ae='';this[_0xe61c('0x2')]+=_0x1fc5f9[_0xe61c('0x8')]();_0x27b17c=this[_0xe61c('0x2')];if(!this[_0xe61c('0x3')]){_0x15b204=0x0;while(_0x547ad7[_0x15b204]){while((_0xca2144=_0x27b17c[_0xe61c('0x9')](_0x547ad7[_0x15b204]))!=-0x1){_0x3c4af4=_0x547ad7[_0x15b204];_0x5e80ae=_0x27b17c['substring'](0x0,_0xca2144);_0x27b17c=_0x27b17c[_0xe61c('0xa')](_0xca2144+_0x3c4af4[_0xe61c('0xb')]);var _0x59e1f2=_0x5e80ae['split'](_0x1f2797),_0x558658=0x0,_0x166f40={},_0x145f8c='',_0x1d5f35='',_0x3bd46b=-0x1;while(_0x59e1f2[_0x558658]){_0x3bd46b=_0x59e1f2[_0x558658][_0xe61c('0x9')](':');if(_0x3bd46b!=-0x1){_0x145f8c=_0x59e1f2[_0x558658][_0xe61c('0xc')](0x0,_0x3bd46b)[_0xe61c('0xd')]();_0x1d5f35=_0x59e1f2[_0x558658][_0xe61c('0xc')](_0x3bd46b+0x1)[_0xe61c('0xd')]();if(_0x145f8c[_0xe61c('0xb')]>0x0){_0x166f40[_0x145f8c]=_0x1d5f35;}}else{}_0x558658++;}this[_0xe61c('0xe')](_0xe61c('0xf'),_0x166f40);this[_0xe61c('0x3')]=!![];}_0x15b204++;}this[_0xe61c('0x2')]=_0x27b17c;}else{while((_0x3c77ca=_0x27b17c[_0xe61c('0x9')](_0x1f2797))!=-0x1){_0x5e80ae=_0x27b17c[_0xe61c('0xa')](0x0,_0x3c77ca);this['emit'](_0xe61c('0x10'),_0x5e80ae);_0x27b17c=_0x27b17c[_0xe61c('0xa')](_0x3c77ca+_0x1f2797[_0xe61c('0xb')]);}this[_0xe61c('0x2')]=_0x27b17c;}_0x2b93cc();};module[_0xe61c('0x11')]=AGIReply;