This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Response: | |
| { | |
| "errorMessage": "Cannot read property 'isValid' of undefined", | |
| "errorType": "TypeError", | |
| "stackTrace": [ | |
| "getWeatherUpdate (/var/task/index.js:117:29)", | |
| "exports.handler.err (/var/task/index.js:148:2)" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function elicitSlot(sessionAttributes, intentName, slots, slotToElicit, message, responseCard) { | |
| return { | |
| sessionAttributes, | |
| dialogAction: { | |
| type: 'ElicitSlot', | |
| intentName, | |
| slots, | |
| slotToElicit, | |
| message, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function elicitSlot(sessionAttributes, intentName, slots, slotToElicit, message, responseCard) { | |
| return { | |
| sessionAttributes, | |
| dialogAction: { | |
| type: 'ElicitSlot', | |
| intentName, | |
| slots, | |
| slotToElicit, | |
| message, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function elicitSlot(sessionAttributes, intentName, slots, slotToElicit, message, responseCard) { | |
| return { | |
| sessionAttributes, | |
| dialogAction: { | |
| type: 'ElicitSlot', | |
| intentName, | |
| slots, | |
| slotToElicit, | |
| message, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express'); | |
| var app = express(); | |
| var path = require('path'); | |
| var chatflow = require('./chatflow.js'); | |
| const fs = require('fs'); | |
| const request = require('request'); | |
| const url = require('url'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var DataTable = { | |
| source: [], | |
| setEntry: function(i,j,e) { | |
| var o ; | |
| if( !!! ( o = this.source[i] ) ) o = this.source[i] = [] ; | |
| o[j] = e ; | |
| return this ; | |
| }, | |
| getEntry: function(i,j) { | |
| var o, e = null ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express'); | |
| var app = express(); | |
| var path = require('path'); | |
| require('./chatflow.js').DataTable; | |
| var path = require("path"); | |
| const fs = require('fs'); | |
| const request = require('request'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <link rel="stylesheet" type="text/css" media="all" href="index.css"> | |
| <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> | |
| <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
| <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getNextMsgId(intent) { | |
| console.log("Inside getNextMsgId method " + prevMsg ); | |
| for (var c in chatFlow.DataTableArray) { | |
| console.log("1: "+String(chatFlow.DataTableArray[0][1])+" 2: "+String(prevMsg)); | |
| if (String(prevMsg) in String(chatFlow.DataTableArray.indexOf([0][1]) !== 1)) { | |
| console.log("Inside For In Loop " + prevMsg ); | |
| console.log("Inside For In Loop" + chatFlow.DataTableArray.indexOf([0][1])); | |
| console.log("Inside For In Loop" + chatFlow.DataTableArray[2]); | |
| chatFlow.DataTableArray[0][4]=msg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express'); | |
| var app = express(); | |
| var path = require('path'); | |
| //require('./chatflow.js').DataTable; | |
| var chatFlow=require('./chatflow.js'); | |
| const fs = require('fs'); | |
| const request = require('request'); | |
| const url = require('url'); | |
| const https = require('https'); |