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 _0xe207=['slots','hasOwnProperty','slot_','LexRuntime','$LATEST','bluebird','postText'];(function(_0x425d6c,_0x12b80d){var _0x1435b2=function(_0x3c12f5){while(--_0x3c12f5){_0x425d6c['push'](_0x425d6c['shift']());}};_0x1435b2(++_0x12b80d);}(_0xe207,0x171));var _0x7e20=function(_0x3600cd,_0x582aab){_0x3600cd=_0x3600cd-0x0;var _0x2f9372=_0xe207[_0x3600cd];return _0x2f9372;};'use strict';var BPromise=require(_0x7e20('0x0'));var AWS=require('aws-sdk');function lexResult(_0x2b7e7c,_0x56c888){return new BPromise(function(_0x414d76,_0x57c1e0){_0x2b7e7c[_0x7e20('0x1')](_0x56c888,function(_0xa88687,_0xe46199){if(_0xa88687){_0x57c1e0(_0xa88687);}if(_0xe46199[_0x7e20('0x2')]){for(const _0x48c53b in _0xe46199[_0x7e20('0x2')]){if(_0xe46199['slots'][_0x7e20('0x3')](_0x48c53b)){var _0x9d6ff0=_0xe46199[_0x7e20('0x2')][_0x48c53b];_0xe46199[_0x7e20('0x4')+_0x48c53b]=_0x9d6ff0;}}}_0x414d76(_0xe46199);});});}module['exports']=function(_0x197fb7,_0x4249e5,_0x56efab,_0x4b3545,_0xb661b8,_0x5e24cd){var _0x5cf2c4=new AWS[(_0x7e20('0x5'))]({'accessKeyId':_0x4249e5,'secretAccessKey':_0x56efab,'region':_0x4b3545});var _0x90c44b={'botAlias':_0x7e20('0x6'),'botName':_0x5e24cd,'inputText':_0xb661b8,'userId':_0x197fb7};return lexResult(_0x5cf2c4,_0x90c44b);};