Built motion from commit 14588770.|2.5.38
[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 _0x5712=['util','stream','Transform','call','_localBuffer','_inBody','inherits','prototype','_transform','\x0d\x0a\x0d\x0a','toString','indexOf','substring','length','split','slice','trim','emit','headers','exports'];(function(_0x5b78e8,_0x55096b){var _0xf2c321=function(_0x4e0cff){while(--_0x4e0cff){_0x5b78e8['push'](_0x5b78e8['shift']());}};_0xf2c321(++_0x55096b);}(_0x5712,0x140));var _0x2571=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x5712[_0x3bf83f];return _0x22c4a9;};'use strict';var util=require(_0x2571('0x0'));var Transform=require(_0x2571('0x1'))[_0x2571('0x2')];function AGIReply(_0x2e56c3){Transform[_0x2571('0x3')](this,_0x2e56c3);this[_0x2571('0x4')]='';this[_0x2571('0x5')]=![];}util[_0x2571('0x6')](AGIReply,Transform);AGIReply[_0x2571('0x7')][_0x2571('0x8')]=function(_0x53f883,_0x49d593,_0x4713ad){var _0x50fc72='\x0a',_0x3e19b2=['\x0a\x0a',_0x2571('0x9')],_0x251ee6=-0x1,_0x3ca885=-0x1,_0x204ecc='',_0xda659a=0x0,_0x26355f='',_0x4b5bde='';this['_localBuffer']+=_0x53f883[_0x2571('0xa')]();_0x26355f=this[_0x2571('0x4')];if(!this[_0x2571('0x5')]){_0xda659a=0x0;while(_0x3e19b2[_0xda659a]){while((_0x3ca885=_0x26355f[_0x2571('0xb')](_0x3e19b2[_0xda659a]))!=-0x1){_0x204ecc=_0x3e19b2[_0xda659a];_0x4b5bde=_0x26355f[_0x2571('0xc')](0x0,_0x3ca885);_0x26355f=_0x26355f[_0x2571('0xc')](_0x3ca885+_0x204ecc[_0x2571('0xd')]);var _0x1026bc=_0x4b5bde[_0x2571('0xe')](_0x50fc72),_0x512039=0x0,_0x5a8615={},_0x33d3ed='',_0x1ab846='',_0x10823d=-0x1;while(_0x1026bc[_0x512039]){_0x10823d=_0x1026bc[_0x512039][_0x2571('0xb')](':');if(_0x10823d!=-0x1){_0x33d3ed=_0x1026bc[_0x512039][_0x2571('0xf')](0x0,_0x10823d)[_0x2571('0x10')]();_0x1ab846=_0x1026bc[_0x512039][_0x2571('0xf')](_0x10823d+0x1)[_0x2571('0x10')]();if(_0x33d3ed[_0x2571('0xd')]>0x0){_0x5a8615[_0x33d3ed]=_0x1ab846;}}else{}_0x512039++;}this[_0x2571('0x11')](_0x2571('0x12'),_0x5a8615);this['_inBody']=!![];}_0xda659a++;}this[_0x2571('0x4')]=_0x26355f;}else{while((_0x251ee6=_0x26355f['indexOf'](_0x50fc72))!=-0x1){_0x4b5bde=_0x26355f['substring'](0x0,_0x251ee6);this['emit']('line',_0x4b5bde);_0x26355f=_0x26355f[_0x2571('0xc')](_0x251ee6+_0x50fc72[_0x2571('0xd')]);}this[_0x2571('0x4')]=_0x26355f;}_0x4713ad();};module[_0x2571('0x13')]=AGIReply;