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 _0x304e=['hasOwnProperty','exports','bluebird','aws-sdk','slots'];(function(_0x9aada2,_0xd2d349){var _0x196dff=function(_0x5ad061){while(--_0x5ad061){_0x9aada2['push'](_0x9aada2['shift']());}};_0x196dff(++_0xd2d349);}(_0x304e,0x1c9));var _0xe304=function(_0x36cde1,_0x254569){_0x36cde1=_0x36cde1-0x0;var _0xbf3239=_0x304e[_0x36cde1];return _0xbf3239;};'use strict';var BPromise=require(_0xe304('0x0'));var AWS=require(_0xe304('0x1'));function lexResult(_0x4c6b1f,_0x316d9a){return new BPromise(function(_0x37d0c8,_0x27ae30){_0x4c6b1f['postText'](_0x316d9a,function(_0x185622,_0x97c913){if(_0x185622){_0x27ae30(_0x185622);}if(_0x97c913[_0xe304('0x2')]){for(const _0x45eae1 in _0x97c913[_0xe304('0x2')]){if(_0x97c913[_0xe304('0x2')][_0xe304('0x3')](_0x45eae1)){var _0x45f7bf=_0x97c913[_0xe304('0x2')][_0x45eae1];_0x97c913['slot_'+_0x45eae1]=_0x45f7bf;}}}_0x37d0c8(_0x97c913);});});}module[_0xe304('0x4')]=function(_0xcc10a8,_0x5d1bb6,_0x50b554,_0x287f29,_0x48f398,_0x400c52){var _0x289fc8=new AWS['LexRuntime']({'accessKeyId':_0x5d1bb6,'secretAccessKey':_0x50b554,'region':_0x287f29});var _0x848091={'botAlias':'$LATEST','botName':_0x400c52,'inputText':_0x48f398,'userId':_0xcc10a8};return lexResult(_0x289fc8,_0x848091);};