@aws-amplify/interactions
Version:
Interactions category of aws-amplify
1 lines • 784 B
Source Map (JSON)
{"version":3,"file":"resolveBotConfig.mjs","sources":["../../../../src/lex-v1/utils/resolveBotConfig.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const resolveBotConfig = (ctx, botName) => {\n const { [botName]: botConfig = undefined } = ctx.resourcesConfig.Interactions?.LexV1 ?? {};\n if (botConfig !== undefined) {\n return { ...botConfig, name: botName };\n }\n};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,gBAAgB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK;AAClD,IAAI,MAAM,EAAE,CAAC,OAAO,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC,eAAe,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;AAC9F,IAAI,IAAI,SAAS,KAAK,SAAS,EAAE;AACjC,QAAQ,OAAO,EAAE,GAAG,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;AAC9C,IAAI;AACJ;;;;"}