-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
22 lines (19 loc) · 1016 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'use strict';
require('./app/utils/common');
const Alexa = require('alexa-sdk');
const newSessionHandlers = require('./app/handlers/newSessionHandlers');
const mainHandlers = require('./app/handlers/mainHandlers');
const stopHandlers = require('./app/handlers/stopHandlers');
const routeHandlers = require('./app/handlers/routeHandlers');
const directDepartureHandlers = require('./app/handlers/directDepartureHandlers');
const standardStopHandlers = require('./app/handlers/standardStopHandlers');
const SpeechOutput = require('./app/resources/SpeechOutput');
const APP_ID = 'amzn1.ask.skill.df444b69-232f-4e91-bccb-0c5273f3f275';
exports.handler = function (event, context, callback) {
var alexa = Alexa.handler(event, context);
alexa.resources = SpeechOutput;
alexa.appId = APP_ID;
alexa.dynamoDBTableName = 'KvvAlexaSkillUserData';
alexa.registerHandlers(newSessionHandlers, mainHandlers, stopHandlers, routeHandlers, directDepartureHandlers, standardStopHandlers);
alexa.execute();
};