text: /**
   Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  
   Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
  
   http://aws.amazon.com/apache2.0/
  
   or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
   */
  
  /**
   * This simple sample has no external dependencies or session management, and shows the most basic
   * example of how to create a Lambda function for handling Alexa Skill requests.
   *
   * Examples:
   * One-shot model:
   *  User: "Alexa, tell Hello World to say hello"
   *  Alexa: "Hello World!"
   */
  
  /**
   * App ID for the skill
   */
  var APP_ID = "string"; //replace with "amzn1.echo-sdk-ams.app.[your-unique-value-here]";
  
  /**
   * The AlexaSkill prototype and helper functions
   */
  var AlexaSkill = require('./AlexaSkill');
  
  /**
   * Cheddar is a child of AlexaSkill.
   * To read more about inheritance in JavaScript, see the link below.
   *
   * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript#Inheritance
   */
  var Cheddar = function () {
      AlexaSkill.call(this, APP_ID);
  };
  
  // Extend AlexaSkill
  Cheddar.prototype = Object.create(AlexaSkill.prototype);
  Cheddar.prototype.constructor = Cheddar;
  
  Cheddar.prototype.eventHandlers.onSessionStarted = function (sessionStartedRequest, session) {
      // console.log("Cheddar onSessionStarted requestId: " + sessionStartedRequest.requestId
      // + ", sessionId: " + session.sessionId);
      // any initialization logic goes here
  };
  
  Cheddar.prototype.eventHandlers.onLaunch = function (launchRequest, session, response) {
      console.log("Cheddar onLaunch requestId: " + launchRequest.requestId + ", sessionId: " + session.sessionId);
      var speechOutput = "How can I help you today?";
      var repromptText = "You can say check balance or followed by a friend's name and dollar amount.";
      response.ask(speechOutput, repromptText);
  };
  
  Cheddar.prototype.eventHandlers.onSessionEnded = function (sessionEndedRequest, session) {
      // console.log("Cheddar onSessionEnded requestId: " + sessionEndedRequest.requestId
      //     + ", sessionId: " + session.sessionId);
      // any cleanup logic goes here
  };
  
  Cheddar.prototype.intentHandlers = {
      // register custom intent handlers
  
      CheckBalanceIntent: function (intent, session, response) {
          var IntentHandler = require("./intents/CheckBalanceIntent");
          IntentHandler.execute(intent, session, response);
      },
      PayIntent: function (intent, session, response) {
          var IntentHandler = require("./intents/PayIntent");
          IntentHandler.execute(intent, session, response);
      },
      DemoIntent: function (intent, session, response) {
          var IntentHandler = require("./intents/DemoIntent");
          IntentHandler.execute(intent, session, response);
      }
  
      // "CheddarIntent": function (intent, session, response) {
      //     response.tellWithCard("Hello World!", "Hello World", "Hello World!");
      // },
      // "AMAZON.HelpIntent": function (intent, session, response) {
      //     response.ask("You can say hello to me!", "You can say hello to me!");
      // }
  };
  
  // Create the handler that responds to the Alexa Request.
  exports.handler = function (event, context) {
      // Create an instance of the Cheddar skill.
      var cheddar = new Cheddar();
      cheddar.execute(event, context);
  };
  
  