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 _0xbb2e=['slot_','LexRuntime','$LATEST','aws-sdk','postText','slots','hasOwnProperty'];(function(_0x273820,_0x3275ae){var _0x45cf64=function(_0x4d89e6){while(--_0x4d89e6){_0x273820['push'](_0x273820['shift']());}};_0x45cf64(++_0x3275ae);}(_0xbb2e,0x192));var _0xebb2=function(_0x222235,_0x59bb0d){_0x222235=_0x222235-0x0;var _0x1f03e2=_0xbb2e[_0x222235];return _0x1f03e2;};'use strict';var BPromise=require('bluebird');var AWS=require(_0xebb2('0x0'));function lexResult(_0x404224,_0x3d9445){return new BPromise(function(_0x2b59bd,_0x253201){_0x404224[_0xebb2('0x1')](_0x3d9445,function(_0x327c86,_0x19deff){if(_0x327c86){_0x253201(_0x327c86);}if(_0x19deff[_0xebb2('0x2')]){for(const _0x4c384a in _0x19deff[_0xebb2('0x2')]){if(_0x19deff[_0xebb2('0x2')][_0xebb2('0x3')](_0x4c384a)){var _0x5f1595=_0x19deff[_0xebb2('0x2')][_0x4c384a];_0x19deff[_0xebb2('0x4')+_0x4c384a]=_0x5f1595;}}}_0x2b59bd(_0x19deff);});});}module['exports']=function(_0x46e3a7,_0x4f055d,_0xcc5072,_0x1863ff,_0x498648,_0x37c6d7){var _0x2ea494=new AWS[(_0xebb2('0x5'))]({'accessKeyId':_0x4f055d,'secretAccessKey':_0xcc5072,'region':_0x1863ff});var _0x18f198={'botAlias':_0xebb2('0x6'),'botName':_0x37c6d7,'inputText':_0x498648,'userId':_0x46e3a7};return lexResult(_0x2ea494,_0x18f198);};