1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x5921=['hasOwnProperty','slot_','exports','LexRuntime','$LATEST','bluebird','aws-sdk','postText','slots'];(function(_0x54066f,_0x2b26af){var _0x91ca54=function(_0x2f27bb){while(--_0x2f27bb){_0x54066f['push'](_0x54066f['shift']());}};_0x91ca54(++_0x2b26af);}(_0x5921,0x1a3));var _0x1592=function(_0x1caf6a,_0x26a5bf){_0x1caf6a=_0x1caf6a-0x0;var _0x1bf493=_0x5921[_0x1caf6a];return _0x1bf493;};'use strict';var BPromise=require(_0x1592('0x0'));var AWS=require(_0x1592('0x1'));function lexResult(_0x6eed36,_0x59ec66){return new BPromise(function(_0x1012dc,_0x287221){_0x6eed36[_0x1592('0x2')](_0x59ec66,function(_0x5cc5aa,_0x25d81f){if(_0x5cc5aa){_0x287221(_0x5cc5aa);}if(_0x25d81f[_0x1592('0x3')]){for(const _0x22ca34 in _0x25d81f[_0x1592('0x3')]){if(_0x25d81f[_0x1592('0x3')][_0x1592('0x4')](_0x22ca34)){var _0x42b3b1=_0x25d81f[_0x1592('0x3')][_0x22ca34];_0x25d81f[_0x1592('0x5')+_0x22ca34]=_0x42b3b1;}}}_0x1012dc(_0x25d81f);});});}module[_0x1592('0x6')]=function(_0x15bd98,_0x570d0a,_0x19a83f,_0x214c22,_0x3ba44d,_0x549088){var _0x5dd9eb=new AWS[(_0x1592('0x7'))]({'accessKeyId':_0x570d0a,'secretAccessKey':_0x19a83f,'region':_0x214c22});var _0x12fed7={'botAlias':_0x1592('0x8'),'botName':_0x549088,'inputText':_0x3ba44d,'userId':_0x15bd98};return lexResult(_0x5dd9eb,_0x12fed7);};