@botonic/plugin-hubtype-analytics
Version:
Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord
21 lines • 901 B
JavaScript
;
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.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