UNPKG

@botonic/plugin-hubtype-analytics

Version:

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

23 lines (20 loc) 576 B
import { EventAction, EventHandoffOption, EventType, RequestData, } from '../types' import { HtEvent } from './ht-event' export class HtEventHandoffOption extends HtEvent { action: EventAction.HandoffOption flow_thread_id?: string handoff_queue_id?: string handoff_queue_name?: string constructor(event: EventHandoffOption, requestData: RequestData) { super(event, requestData) this.type = EventType.BotEvent this.flow_thread_id = event.flowThreadId this.handoff_queue_id = event.queueId this.handoff_queue_name = event.queueName } }