@botonic/plugin-hubtype-analytics
Version:
Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord
25 lines • 1.09 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HtEventHandoff = void 0;
const types_1 = require("../types");
const ht_event_1 = require("./ht-event");
class HtEventHandoff extends ht_event_1.HtEvent {
constructor(event, requestData) {
super(event, requestData);
this.type = types_1.EventType.BotEvent;
this.action = event.action;
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;
this.handoff_queue_id = event.queueId;
this.handoff_queue_name = event.queueName;
this.handoff_case_id = event.caseId;
this.handoff_is_queue_open = event.isQueueOpen || false;
this.handoff_is_available_agent = event.isAvailableAgent || false;
this.handoff_is_threshold_reached = event.isThresholdReached || false;
}
}
exports.HtEventHandoff = HtEventHandoff;
//# sourceMappingURL=ht-event-handoff.js.map