Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / agi / scripts / aws / lex / lib / api.js
index 2c30bda..9e9f0a8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfa94=['slot_','exports','LexRuntime','aws-sdk','postText','slots'];(function(_0x5bbf6a,_0x29460a){var _0x5d051a=function(_0x2c76a7){while(--_0x2c76a7){_0x5bbf6a['push'](_0x5bbf6a['shift']());}};_0x5d051a(++_0x29460a);}(_0xfa94,0x1ad));var _0x4fa9=function(_0x325501,_0x5242f6){_0x325501=_0x325501-0x0;var _0x2c1626=_0xfa94[_0x325501];return _0x2c1626;};'use strict';var BPromise=require('bluebird');var AWS=require(_0x4fa9('0x0'));function lexResult(_0x3b6284,_0x5d02cf){return new BPromise(function(_0x57c1a2,_0x3e492c){_0x3b6284[_0x4fa9('0x1')](_0x5d02cf,function(_0x27e6c2,_0x3fe0d0){if(_0x27e6c2){_0x3e492c(_0x27e6c2);}if(_0x3fe0d0[_0x4fa9('0x2')]){for(const _0x5ca7fe in _0x3fe0d0[_0x4fa9('0x2')]){if(_0x3fe0d0[_0x4fa9('0x2')]['hasOwnProperty'](_0x5ca7fe)){var _0x11fe15=_0x3fe0d0[_0x4fa9('0x2')][_0x5ca7fe];_0x3fe0d0[_0x4fa9('0x3')+_0x5ca7fe]=_0x11fe15;}}}_0x57c1a2(_0x3fe0d0);});});}module[_0x4fa9('0x4')]=function(_0x51b85a,_0x385552,_0x1c62a4,_0x536cb8,_0x78f5c6,_0x45da83){var _0x7463fb=new AWS[(_0x4fa9('0x5'))]({'accessKeyId':_0x385552,'secretAccessKey':_0x1c62a4,'region':_0x536cb8});var _0x3dcc4e={'botAlias':'$LATEST','botName':_0x45da83,'inputText':_0x78f5c6,'userId':_0x51b85a};return lexResult(_0x7463fb,_0x3dcc4e);};
\ No newline at end of file
+var _0xa9e0=['LexRuntime','bluebird','aws-sdk','slots','hasOwnProperty'];(function(_0x10c697,_0x359264){var _0x5544c2=function(_0x5bd087){while(--_0x5bd087){_0x10c697['push'](_0x10c697['shift']());}};_0x5544c2(++_0x359264);}(_0xa9e0,0x123));var _0x0a9e=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xa9e0[_0x14add3];return _0x4a174f;};'use strict';var BPromise=require(_0x0a9e('0x0'));var AWS=require(_0x0a9e('0x1'));function lexResult(_0x29929c,_0x5dd881){return new BPromise(function(_0x550fbc,_0x18d5c9){_0x29929c['postText'](_0x5dd881,function(_0x333808,_0x432180){if(_0x333808){_0x18d5c9(_0x333808);}if(_0x432180[_0x0a9e('0x2')]){for(const _0x991246 in _0x432180[_0x0a9e('0x2')]){if(_0x432180['slots'][_0x0a9e('0x3')](_0x991246)){var _0x441e3a=_0x432180[_0x0a9e('0x2')][_0x991246];_0x432180['slot_'+_0x991246]=_0x441e3a;}}}_0x550fbc(_0x432180);});});}module['exports']=function(_0xe42b77,_0x56465b,_0x52cace,_0x39753a,_0xf81284,_0x307b3e){var _0x3ab53f=new AWS[(_0x0a9e('0x4'))]({'accessKeyId':_0x56465b,'secretAccessKey':_0x52cace,'region':_0x39753a});var _0xbd1168={'botAlias':'$LATEST','botName':_0x307b3e,'inputText':_0xf81284,'userId':_0xe42b77};return lexResult(_0x3ab53f,_0xbd1168);};
\ No newline at end of file