622d6a79a3f4d63c43d02fcf0f095d36a825efdc
[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 _0xaa4c=['emit','headers','line','exports','stream','Transform','_localBuffer','_inBody','inherits','prototype','\x0d\x0a\x0d\x0a','toString','indexOf','substring','length','split','trim','slice'];(function(_0x59b890,_0x5bbe52){var _0x598d87=function(_0xd68673){while(--_0xd68673){_0x59b890['push'](_0x59b890['shift']());}};_0x598d87(++_0x5bbe52);}(_0xaa4c,0x112));var _0xcaa4=function(_0x10c75d,_0x567cb1){_0x10c75d=_0x10c75d-0x0;var _0x474277=_0xaa4c[_0x10c75d];return _0x474277;};'use strict';var util=require('util');var Transform=require(_0xcaa4('0x0'))[_0xcaa4('0x1')];function AGIReply(_0x394410){Transform['call'](this,_0x394410);this[_0xcaa4('0x2')]='';this[_0xcaa4('0x3')]=![];}util[_0xcaa4('0x4')](AGIReply,Transform);AGIReply[_0xcaa4('0x5')]['_transform']=function(_0x4091e7,_0x211f17,_0x423a7d){var _0x56854c='\x0a',_0x127469=['\x0a\x0a',_0xcaa4('0x6')],_0x712498=-0x1,_0x13e596=-0x1,_0xd31a38='',_0x123c55=0x0,_0x3813c2='',_0x1d750b='';this['_localBuffer']+=_0x4091e7[_0xcaa4('0x7')]();_0x3813c2=this[_0xcaa4('0x2')];if(!this[_0xcaa4('0x3')]){_0x123c55=0x0;while(_0x127469[_0x123c55]){while((_0x13e596=_0x3813c2[_0xcaa4('0x8')](_0x127469[_0x123c55]))!=-0x1){_0xd31a38=_0x127469[_0x123c55];_0x1d750b=_0x3813c2[_0xcaa4('0x9')](0x0,_0x13e596);_0x3813c2=_0x3813c2[_0xcaa4('0x9')](_0x13e596+_0xd31a38[_0xcaa4('0xa')]);var _0x3d955d=_0x1d750b[_0xcaa4('0xb')](_0x56854c),_0x3d7c6a=0x0,_0x205714={},_0x43ed85='',_0x15875c='',_0x166194=-0x1;while(_0x3d955d[_0x3d7c6a]){_0x166194=_0x3d955d[_0x3d7c6a][_0xcaa4('0x8')](':');if(_0x166194!=-0x1){_0x43ed85=_0x3d955d[_0x3d7c6a]['slice'](0x0,_0x166194)[_0xcaa4('0xc')]();_0x15875c=_0x3d955d[_0x3d7c6a][_0xcaa4('0xd')](_0x166194+0x1)['trim']();if(_0x43ed85[_0xcaa4('0xa')]>0x0){_0x205714[_0x43ed85]=_0x15875c;}}else{}_0x3d7c6a++;}this[_0xcaa4('0xe')](_0xcaa4('0xf'),_0x205714);this[_0xcaa4('0x3')]=!![];}_0x123c55++;}this[_0xcaa4('0x2')]=_0x3813c2;}else{while((_0x712498=_0x3813c2[_0xcaa4('0x8')](_0x56854c))!=-0x1){_0x1d750b=_0x3813c2[_0xcaa4('0x9')](0x0,_0x712498);this[_0xcaa4('0xe')](_0xcaa4('0x10'),_0x1d750b);_0x3813c2=_0x3813c2[_0xcaa4('0x9')](_0x712498+_0x56854c[_0xcaa4('0xa')]);}this['_localBuffer']=_0x3813c2;}_0x423a7d();};module[_0xcaa4('0x11')]=AGIReply;