Last active
April 18, 2018 11:20
-
-
Save dileephell/d5a8ab6b279b3e0a42452e94b2b72745 to your computer and use it in GitHub Desktop.
chatflow.js
This file contains 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 ; | |
if( !! ( o = this.source[i] ) ) e = o[j] || null ; | |
return e ; | |
} | |
} ; | |
DataTable | |
.setEntry( 0, 0, [0]) | |
.setEntry( 0, 1, ["Hello, How can I help you today?"]) | |
.setEntry( 0, 2, ["welcome"]) | |
.setEntry( 0, 3, [1]) | |
.setEntry( 0, 4, [""]) | |
.setEntry( 1, 0, [0]) | |
.setEntry( 1, 1, ["Please wait, while I process your file!"]) | |
.setEntry( 1, 2, ["help"]) | |
.setEntry( 1, 3, [2]) | |
.setEntry( 1, 4, [""]); | |
exports.DataTable = DataTable; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment