UNPKG

@botonic/plugin-hubtype-analytics

Version:

Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord

17 lines 735 B
import { EventType } from '../types'; import { HtEvent } from './ht-event'; export class HtEventHandoff extends HtEvent { constructor(event, requestData) { super(event, requestData); this.type = 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; } } //# sourceMappingURL=ht-event-handoff.js.map