Built motion from commit 9d1906d1.|2.5.40
[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 _0x95de=['_inBody','indexOf','substring','split','slice','trim','headers','line','length','util','stream','Transform','call','_localBuffer','inherits','prototype','\x0d\x0a\x0d\x0a','toString'];(function(_0x3efe87,_0x35ad48){var _0x56a4cc=function(_0x47869e){while(--_0x47869e){_0x3efe87['push'](_0x3efe87['shift']());}};_0x56a4cc(++_0x35ad48);}(_0x95de,0x1dd));var _0xe95d=function(_0x27af45,_0x1b57aa){_0x27af45=_0x27af45-0x0;var _0x18df21=_0x95de[_0x27af45];return _0x18df21;};'use strict';var util=require(_0xe95d('0x0'));var Transform=require(_0xe95d('0x1'))[_0xe95d('0x2')];function AGIReply(_0x4b32b8){Transform[_0xe95d('0x3')](this,_0x4b32b8);this[_0xe95d('0x4')]='';this['_inBody']=![];}util[_0xe95d('0x5')](AGIReply,Transform);AGIReply[_0xe95d('0x6')]['_transform']=function(_0x1e9cab,_0x12393d,_0x548af7){var _0xeb5da9='\x0a',_0x16e33c=['\x0a\x0a',_0xe95d('0x7')],_0xa89cd8=-0x1,_0x1bdad8=-0x1,_0x425382='',_0x524a6d=0x0,_0xa23c19='',_0x47865c='';this[_0xe95d('0x4')]+=_0x1e9cab[_0xe95d('0x8')]();_0xa23c19=this[_0xe95d('0x4')];if(!this[_0xe95d('0x9')]){_0x524a6d=0x0;while(_0x16e33c[_0x524a6d]){while((_0x1bdad8=_0xa23c19[_0xe95d('0xa')](_0x16e33c[_0x524a6d]))!=-0x1){_0x425382=_0x16e33c[_0x524a6d];_0x47865c=_0xa23c19[_0xe95d('0xb')](0x0,_0x1bdad8);_0xa23c19=_0xa23c19[_0xe95d('0xb')](_0x1bdad8+_0x425382['length']);var _0x33f662=_0x47865c[_0xe95d('0xc')](_0xeb5da9),_0x1e8482=0x0,_0x2750c8={},_0x3c44b8='',_0x1244ee='',_0x377ba4=-0x1;while(_0x33f662[_0x1e8482]){_0x377ba4=_0x33f662[_0x1e8482][_0xe95d('0xa')](':');if(_0x377ba4!=-0x1){_0x3c44b8=_0x33f662[_0x1e8482][_0xe95d('0xd')](0x0,_0x377ba4)[_0xe95d('0xe')]();_0x1244ee=_0x33f662[_0x1e8482][_0xe95d('0xd')](_0x377ba4+0x1)[_0xe95d('0xe')]();if(_0x3c44b8['length']>0x0){_0x2750c8[_0x3c44b8]=_0x1244ee;}}else{}_0x1e8482++;}this['emit'](_0xe95d('0xf'),_0x2750c8);this['_inBody']=!![];}_0x524a6d++;}this[_0xe95d('0x4')]=_0xa23c19;}else{while((_0xa89cd8=_0xa23c19['indexOf'](_0xeb5da9))!=-0x1){_0x47865c=_0xa23c19[_0xe95d('0xb')](0x0,_0xa89cd8);this['emit'](_0xe95d('0x10'),_0x47865c);_0xa23c19=_0xa23c19['substring'](_0xa89cd8+_0xeb5da9[_0xe95d('0x11')]);}this[_0xe95d('0x4')]=_0xa23c19;}_0x548af7();};module['exports']=AGIReply;