Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.handler = function (event, context, callback) {
const alexa = Alexa.handler(event, context);
alexa.appId = constants.appId;
alexa.debug = constants.DEBUG;
alexa.dynamoDBTableName = constants.dynamoDBTableName;
alexa.resources = languageStrings;
alexa.registerHandlers(
voiceCodeHandlers.newSessionHandlers,
voiceCodeHandlers.codeStateHandlers,
voiceCodeHandlers.changeCodeHandlers,
voiceCodeHandlers.newCodeHandlers,
voiceCodeHandlers.helpStateHandlers,
secureHandlers
);
if (alexa.debug) {
console.log("\n" + "******************* REQUEST **********************");
console.log("\n" + JSON.stringify(event, null, 2));
}