UNPKG

@aws-amplify/interactions

Version:

Interactions category of aws-amplify

1 lines 832 B
{"version":3,"file":"resolveBotConfig.mjs","sources":["../../../../src/lex-v2/utils/resolveBotConfig.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Amplify } from '@aws-amplify/core';\nexport const resolveBotConfig = (botName) => {\n const { [botName]: botConfig = undefined } = Amplify.getConfig().Interactions?.LexV2 ?? {};\n if (botConfig !== undefined) {\n return { ...botConfig, name: botName };\n }\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,gBAAgB,GAAG,CAAC,OAAO,KAAK;AAC7C,IAAI,MAAM,EAAE,CAAC,OAAO,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC;AAC/F,IAAI,IAAI,SAAS,KAAK,SAAS,EAAE;AACjC,QAAQ,OAAO,EAAE,GAAG,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC/C,KAAK;AACL;;;;"}