@botonic/plugin-hubtype-analytics
Version:
Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord
23 lines • 971 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HtEventKeyword = void 0;
const types_1 = require("../types");
const ht_event_1 = require("./ht-event");
class HtEventKeyword extends ht_event_1.HtEvent {
constructor(event, requestData) {
super(event, requestData);
this.type = types_1.EventType.BotEvent;
this.action = types_1.EventAction.Keyword;
this.nlu_keyword_name = event.nluKeywordName;
this.nlu_keyword_is_regex = event.nluKeywordIsRegex || false;
this.nlu_keyword_message_id = event.nluKeywordMessageId;
this.user_input = event.userInput;
this.flow_thread_id = event.flowThreadId;
this.flow_id = event.flowId;
this.flow_name = event.flowName;
this.flow_node_id = event.flowNodeId;
this.flow_node_content_id = event.flowNodeContentId;
}
}
exports.HtEventKeyword = HtEventKeyword;
//# sourceMappingURL=ht-event-keyword.js.map