243904919b8de682c42306b8c5c387222f0722e8
[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 _0x3da0=['_localBuffer','inherits','prototype','_transform','\x0d\x0a\x0d\x0a','indexOf','substring','split','slice','trim','emit','headers','_inBody','util','stream','Transform','call'];(function(_0x13cab0,_0x14d825){var _0x38804f=function(_0x1bffaf){while(--_0x1bffaf){_0x13cab0['push'](_0x13cab0['shift']());}};_0x38804f(++_0x14d825);}(_0x3da0,0x1e9));var _0x03da=function(_0x1ce236,_0xca922e){_0x1ce236=_0x1ce236-0x0;var _0x241819=_0x3da0[_0x1ce236];return _0x241819;};'use strict';var util=require(_0x03da('0x0'));var Transform=require(_0x03da('0x1'))[_0x03da('0x2')];function AGIReply(_0x49ec80){Transform[_0x03da('0x3')](this,_0x49ec80);this[_0x03da('0x4')]='';this['_inBody']=![];}util[_0x03da('0x5')](AGIReply,Transform);AGIReply[_0x03da('0x6')][_0x03da('0x7')]=function(_0x31c947,_0x349f65,_0x36c6e0){var _0x13dd8d='\x0a',_0x56364a=['\x0a\x0a',_0x03da('0x8')],_0x2df992=-0x1,_0x3476b4=-0x1,_0x4e0d4f='',_0x789ccd=0x0,_0x3aaf75='',_0x1eb78c='';this['_localBuffer']+=_0x31c947['toString']();_0x3aaf75=this['_localBuffer'];if(!this['_inBody']){_0x789ccd=0x0;while(_0x56364a[_0x789ccd]){while((_0x3476b4=_0x3aaf75[_0x03da('0x9')](_0x56364a[_0x789ccd]))!=-0x1){_0x4e0d4f=_0x56364a[_0x789ccd];_0x1eb78c=_0x3aaf75['substring'](0x0,_0x3476b4);_0x3aaf75=_0x3aaf75[_0x03da('0xa')](_0x3476b4+_0x4e0d4f['length']);var _0x52daa=_0x1eb78c[_0x03da('0xb')](_0x13dd8d),_0x510c4b=0x0,_0x372ac5={},_0x44996f='',_0x453dc2='',_0x4e50d6=-0x1;while(_0x52daa[_0x510c4b]){_0x4e50d6=_0x52daa[_0x510c4b][_0x03da('0x9')](':');if(_0x4e50d6!=-0x1){_0x44996f=_0x52daa[_0x510c4b][_0x03da('0xc')](0x0,_0x4e50d6)['trim']();_0x453dc2=_0x52daa[_0x510c4b]['slice'](_0x4e50d6+0x1)[_0x03da('0xd')]();if(_0x44996f['length']>0x0){_0x372ac5[_0x44996f]=_0x453dc2;}}else{}_0x510c4b++;}this[_0x03da('0xe')](_0x03da('0xf'),_0x372ac5);this[_0x03da('0x10')]=!![];}_0x789ccd++;}this['_localBuffer']=_0x3aaf75;}else{while((_0x2df992=_0x3aaf75[_0x03da('0x9')](_0x13dd8d))!=-0x1){_0x1eb78c=_0x3aaf75[_0x03da('0xa')](0x0,_0x2df992);this[_0x03da('0xe')]('line',_0x1eb78c);_0x3aaf75=_0x3aaf75[_0x03da('0xa')](_0x2df992+_0x13dd8d['length']);}this[_0x03da('0x4')]=_0x3aaf75;}_0x36c6e0();};module['exports']=AGIReply;