Built motion from commit 6a92c2cd.|2.6.29
[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 _0x00d6=['line','exports','util','stream','Transform','call','_localBuffer','_inBody','inherits','prototype','_transform','\x0d\x0a\x0d\x0a','toString','indexOf','substring','length','split','slice','trim','emit','headers'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x00d6,0x1e5));var _0x600d=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x00d6[_0x2c91e9];return _0x13f0ff;};'use strict';var util=require(_0x600d('0x0'));var Transform=require(_0x600d('0x1'))[_0x600d('0x2')];function AGIReply(_0x2768c2){Transform[_0x600d('0x3')](this,_0x2768c2);this[_0x600d('0x4')]='';this[_0x600d('0x5')]=![];}util[_0x600d('0x6')](AGIReply,Transform);AGIReply[_0x600d('0x7')][_0x600d('0x8')]=function(_0x12822c,_0x2752d9,_0x3b9a14){var _0x581f6e='\x0a',_0x5d6a0c=['\x0a\x0a',_0x600d('0x9')],_0x43f76e=-0x1,_0x5de536=-0x1,_0x260fc9='',_0x1c2655=0x0,_0x150acd='',_0x3f5b2d='';this[_0x600d('0x4')]+=_0x12822c[_0x600d('0xa')]();_0x150acd=this[_0x600d('0x4')];if(!this['_inBody']){_0x1c2655=0x0;while(_0x5d6a0c[_0x1c2655]){while((_0x5de536=_0x150acd[_0x600d('0xb')](_0x5d6a0c[_0x1c2655]))!=-0x1){_0x260fc9=_0x5d6a0c[_0x1c2655];_0x3f5b2d=_0x150acd[_0x600d('0xc')](0x0,_0x5de536);_0x150acd=_0x150acd[_0x600d('0xc')](_0x5de536+_0x260fc9[_0x600d('0xd')]);var _0x1f23ee=_0x3f5b2d[_0x600d('0xe')](_0x581f6e),_0x5264fd=0x0,_0x4b0368={},_0x437ca4='',_0x2552a8='',_0xfddb8d=-0x1;while(_0x1f23ee[_0x5264fd]){_0xfddb8d=_0x1f23ee[_0x5264fd][_0x600d('0xb')](':');if(_0xfddb8d!=-0x1){_0x437ca4=_0x1f23ee[_0x5264fd][_0x600d('0xf')](0x0,_0xfddb8d)[_0x600d('0x10')]();_0x2552a8=_0x1f23ee[_0x5264fd][_0x600d('0xf')](_0xfddb8d+0x1)['trim']();if(_0x437ca4[_0x600d('0xd')]>0x0){_0x4b0368[_0x437ca4]=_0x2552a8;}}else{}_0x5264fd++;}this[_0x600d('0x11')](_0x600d('0x12'),_0x4b0368);this[_0x600d('0x5')]=!![];}_0x1c2655++;}this[_0x600d('0x4')]=_0x150acd;}else{while((_0x43f76e=_0x150acd['indexOf'](_0x581f6e))!=-0x1){_0x3f5b2d=_0x150acd[_0x600d('0xc')](0x0,_0x43f76e);this['emit'](_0x600d('0x13'),_0x3f5b2d);_0x150acd=_0x150acd['substring'](_0x43f76e+_0x581f6e[_0x600d('0xd')]);}this[_0x600d('0x4')]=_0x150acd;}_0x3b9a14();};module[_0x600d('0x14')]=AGIReply;