Built motion from commit d6d69adf.|2.6.33
[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 _0x8e44=['\x0d\x0a\x0d\x0a','toString','indexOf','substring','slice','trim','length','emit','util','stream','Transform','_localBuffer','_inBody','inherits','prototype'];(function(_0x2307dd,_0x4fa566){var _0x3e2f14=function(_0xcf8fee){while(--_0xcf8fee){_0x2307dd['push'](_0x2307dd['shift']());}};_0x3e2f14(++_0x4fa566);}(_0x8e44,0x1ac));var _0x48e4=function(_0x460358,_0x45d45e){_0x460358=_0x460358-0x0;var _0x2e6a60=_0x8e44[_0x460358];return _0x2e6a60;};'use strict';var util=require(_0x48e4('0x0'));var Transform=require(_0x48e4('0x1'))[_0x48e4('0x2')];function AGIReply(_0x573dab){Transform['call'](this,_0x573dab);this[_0x48e4('0x3')]='';this[_0x48e4('0x4')]=![];}util[_0x48e4('0x5')](AGIReply,Transform);AGIReply[_0x48e4('0x6')]['_transform']=function(_0x8881d6,_0xd6e0b8,_0x27d37f){var _0x4dffab='\x0a',_0x4e2c12=['\x0a\x0a',_0x48e4('0x7')],_0x26c5de=-0x1,_0xfd30df=-0x1,_0x552cb1='',_0x1ae7a7=0x0,_0x1727fc='',_0x8849db='';this[_0x48e4('0x3')]+=_0x8881d6[_0x48e4('0x8')]();_0x1727fc=this['_localBuffer'];if(!this[_0x48e4('0x4')]){_0x1ae7a7=0x0;while(_0x4e2c12[_0x1ae7a7]){while((_0xfd30df=_0x1727fc[_0x48e4('0x9')](_0x4e2c12[_0x1ae7a7]))!=-0x1){_0x552cb1=_0x4e2c12[_0x1ae7a7];_0x8849db=_0x1727fc[_0x48e4('0xa')](0x0,_0xfd30df);_0x1727fc=_0x1727fc['substring'](_0xfd30df+_0x552cb1['length']);var _0x325bee=_0x8849db['split'](_0x4dffab),_0x2d34df=0x0,_0x2373ae={},_0x13c61c='',_0x55a9ab='',_0x28c15a=-0x1;while(_0x325bee[_0x2d34df]){_0x28c15a=_0x325bee[_0x2d34df][_0x48e4('0x9')](':');if(_0x28c15a!=-0x1){_0x13c61c=_0x325bee[_0x2d34df][_0x48e4('0xb')](0x0,_0x28c15a)[_0x48e4('0xc')]();_0x55a9ab=_0x325bee[_0x2d34df][_0x48e4('0xb')](_0x28c15a+0x1)[_0x48e4('0xc')]();if(_0x13c61c[_0x48e4('0xd')]>0x0){_0x2373ae[_0x13c61c]=_0x55a9ab;}}else{}_0x2d34df++;}this[_0x48e4('0xe')]('headers',_0x2373ae);this[_0x48e4('0x4')]=!![];}_0x1ae7a7++;}this[_0x48e4('0x3')]=_0x1727fc;}else{while((_0x26c5de=_0x1727fc['indexOf'](_0x4dffab))!=-0x1){_0x8849db=_0x1727fc[_0x48e4('0xa')](0x0,_0x26c5de);this[_0x48e4('0xe')]('line',_0x8849db);_0x1727fc=_0x1727fc[_0x48e4('0xa')](_0x26c5de+_0x4dffab[_0x48e4('0xd')]);}this[_0x48e4('0x3')]=_0x1727fc;}_0x27d37f();};module['exports']=AGIReply;