baf3edda220117e15ee31681badea8d434fd95ed
[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 _0x88c8=['prototype','_localBuffer','toString','_inBody','substring','length','split','indexOf','slice','trim','emit','headers','line','exports','util','stream','call','inherits'];(function(_0x12cb49,_0x51d44e){var _0x38238e=function(_0x570832){while(--_0x570832){_0x12cb49['push'](_0x12cb49['shift']());}};_0x38238e(++_0x51d44e);}(_0x88c8,0x7a));var _0x888c=function(_0x25e68d,_0x310135){_0x25e68d=_0x25e68d-0x0;var _0x4e004e=_0x88c8[_0x25e68d];return _0x4e004e;};'use strict';var util=require(_0x888c('0x0'));var Transform=require(_0x888c('0x1'))['Transform'];function AGIReply(_0x4dbc16){Transform[_0x888c('0x2')](this,_0x4dbc16);this['_localBuffer']='';this['_inBody']=![];}util[_0x888c('0x3')](AGIReply,Transform);AGIReply[_0x888c('0x4')]['_transform']=function(_0x18f3cd,_0x43b662,_0x1e3a1a){var _0x284f52='\x0a',_0x35de38=['\x0a\x0a','\x0d\x0a\x0d\x0a'],_0x21f3e9=-0x1,_0x214da9=-0x1,_0x467a97='',_0x1a625d=0x0,_0xfd035f='',_0x5988f5='';this[_0x888c('0x5')]+=_0x18f3cd[_0x888c('0x6')]();_0xfd035f=this['_localBuffer'];if(!this[_0x888c('0x7')]){_0x1a625d=0x0;while(_0x35de38[_0x1a625d]){while((_0x214da9=_0xfd035f['indexOf'](_0x35de38[_0x1a625d]))!=-0x1){_0x467a97=_0x35de38[_0x1a625d];_0x5988f5=_0xfd035f[_0x888c('0x8')](0x0,_0x214da9);_0xfd035f=_0xfd035f[_0x888c('0x8')](_0x214da9+_0x467a97[_0x888c('0x9')]);var _0x4900f3=_0x5988f5[_0x888c('0xa')](_0x284f52),_0x2351a5=0x0,_0x1ecced={},_0x29a7fb='',_0x2018a4='',_0xe8b4f9=-0x1;while(_0x4900f3[_0x2351a5]){_0xe8b4f9=_0x4900f3[_0x2351a5][_0x888c('0xb')](':');if(_0xe8b4f9!=-0x1){_0x29a7fb=_0x4900f3[_0x2351a5]['slice'](0x0,_0xe8b4f9)['trim']();_0x2018a4=_0x4900f3[_0x2351a5][_0x888c('0xc')](_0xe8b4f9+0x1)[_0x888c('0xd')]();if(_0x29a7fb[_0x888c('0x9')]>0x0){_0x1ecced[_0x29a7fb]=_0x2018a4;}}else{}_0x2351a5++;}this[_0x888c('0xe')](_0x888c('0xf'),_0x1ecced);this[_0x888c('0x7')]=!![];}_0x1a625d++;}this[_0x888c('0x5')]=_0xfd035f;}else{while((_0x21f3e9=_0xfd035f[_0x888c('0xb')](_0x284f52))!=-0x1){_0x5988f5=_0xfd035f[_0x888c('0x8')](0x0,_0x21f3e9);this[_0x888c('0xe')](_0x888c('0x10'),_0x5988f5);_0xfd035f=_0xfd035f[_0x888c('0x8')](_0x21f3e9+_0x284f52[_0x888c('0x9')]);}this['_localBuffer']=_0xfd035f;}_0x1e3a1a();};module[_0x888c('0x11')]=AGIReply;