Built motion from commit 449495f6.|2.6.27
[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 _0x7872=['emit','headers','line','exports','util','stream','Transform','call','_inBody','inherits','_transform','\x0d\x0a\x0d\x0a','_localBuffer','substring','length','split','indexOf','trim','slice'];(function(_0x17e11f,_0x3dca5a){var _0xe81a36=function(_0x2066c3){while(--_0x2066c3){_0x17e11f['push'](_0x17e11f['shift']());}};_0xe81a36(++_0x3dca5a);}(_0x7872,0x193));var _0x2787=function(_0x440d2a,_0x23070a){_0x440d2a=_0x440d2a-0x0;var _0x2bbe8c=_0x7872[_0x440d2a];return _0x2bbe8c;};'use strict';var util=require(_0x2787('0x0'));var Transform=require(_0x2787('0x1'))[_0x2787('0x2')];function AGIReply(_0x4e75d4){Transform[_0x2787('0x3')](this,_0x4e75d4);this['_localBuffer']='';this[_0x2787('0x4')]=![];}util[_0x2787('0x5')](AGIReply,Transform);AGIReply['prototype'][_0x2787('0x6')]=function(_0x7e656b,_0x531f26,_0x1108cc){var _0x433829='\x0a',_0x102cd8=['\x0a\x0a',_0x2787('0x7')],_0x56b049=-0x1,_0x508d39=-0x1,_0x5ba648='',_0x2f2058=0x0,_0x4bc325='',_0x31b4cd='';this[_0x2787('0x8')]+=_0x7e656b['toString']();_0x4bc325=this['_localBuffer'];if(!this[_0x2787('0x4')]){_0x2f2058=0x0;while(_0x102cd8[_0x2f2058]){while((_0x508d39=_0x4bc325['indexOf'](_0x102cd8[_0x2f2058]))!=-0x1){_0x5ba648=_0x102cd8[_0x2f2058];_0x31b4cd=_0x4bc325[_0x2787('0x9')](0x0,_0x508d39);_0x4bc325=_0x4bc325[_0x2787('0x9')](_0x508d39+_0x5ba648[_0x2787('0xa')]);var _0x2f081e=_0x31b4cd[_0x2787('0xb')](_0x433829),_0x1a0c13=0x0,_0x18a90b={},_0x4161ab='',_0x57d94e='',_0x4d90bc=-0x1;while(_0x2f081e[_0x1a0c13]){_0x4d90bc=_0x2f081e[_0x1a0c13][_0x2787('0xc')](':');if(_0x4d90bc!=-0x1){_0x4161ab=_0x2f081e[_0x1a0c13]['slice'](0x0,_0x4d90bc)[_0x2787('0xd')]();_0x57d94e=_0x2f081e[_0x1a0c13][_0x2787('0xe')](_0x4d90bc+0x1)[_0x2787('0xd')]();if(_0x4161ab['length']>0x0){_0x18a90b[_0x4161ab]=_0x57d94e;}}else{}_0x1a0c13++;}this[_0x2787('0xf')](_0x2787('0x10'),_0x18a90b);this[_0x2787('0x4')]=!![];}_0x2f2058++;}this[_0x2787('0x8')]=_0x4bc325;}else{while((_0x56b049=_0x4bc325[_0x2787('0xc')](_0x433829))!=-0x1){_0x31b4cd=_0x4bc325['substring'](0x0,_0x56b049);this[_0x2787('0xf')](_0x2787('0x11'),_0x31b4cd);_0x4bc325=_0x4bc325[_0x2787('0x9')](_0x56b049+_0x433829[_0x2787('0xa')]);}this[_0x2787('0x8')]=_0x4bc325;}_0x1108cc();};module[_0x2787('0x12')]=AGIReply;