@avaya/infinity-agent-sdk - v1.0.0
    Preparing search index...

    Interface InteractionWrapUpEvent

    Emitted when an interaction enters the wrap-up phase.

    The interaction status is now WRAP_UP. The agent should record notes and set classification codes before calling Interaction.close or Interaction.complete. If a wrap-up timer is configured in QueueDetails.wrapUpDuration, the interaction will auto-complete when the timer expires.

    interaction.subscribe(InteractionEventType.INTERACTION_WRAP_UP, async (event) => {
    console.log("Wrap-up started for:", event.payload.interactionId);
    await interaction.setNotes("Customer issue resolved via remote support");
    await interaction.close(ResolutionStatus.RESOLVED);
    });
    interface InteractionWrapUpEvent {
        type: INTERACTION_WRAP_UP;
        payload: InteractionWrapUpPayload;
        occurredAt: Date;
    }

    Hierarchy (View Summary)

    Index

    Properties

    The event type identifier.

    The payload containing wrap-up details.

    occurredAt: Date

    The timestamp when the event occurred.