asksuite-core
Version:
38 lines (30 loc) • 597 B
JavaScript
class ExpressionBuilder {
static newInstance() {
return new ExpressionBuilder();
}
constructor() {}
contains() {
this.operation = 'contains';
return this;
}
notContains() {
this.operation = 'not_contains';
return this;
}
keyWordDialogFlow(entity) {
this.entity = entity;
this.entityType = 'dialogFlow';
return this;
}
date() {
this.entity = 'date';
this.entityType = 'system';
return this;
}
number() {
this.entity = 'number';
this.entityType = 'system';
return this;
}
}
module.exports = ExpressionBuilder;