const { Hook, Router, Request } = require('botnaut');
const { createProcessor, createHandler } = require('botnaut/serverlessAWS');
const { createBotServiceConnector } = require('botnaut-botservice');
const options = {
azure: {
uri: 'azure-oauth-login-uri',
grant_type: 'grant-type-here',
scope: 'token-scope-here',
client_id: 'azure-client-id (App ID)',
client_secret: 'azure-client-secret (App Password)',
welcomeAction: 'welcome-action'
}
const bot = new Router();
const botServiceConnector = createBotServiceConnector(options, Request);
const processor = createProcessor(bot, options});
const hook = new Hook(processor, botServiceConnector);
const handler = createHandler(hook, 'bot-token', console);