Home Reference Source
import {SupportChat} from '@quobis/sippojs'
public class | source

SupportChat

Static Method Summary

Static Public Methods
public static

create(supportChatId: *, chatService: *, chat: *): *

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

async leave(): Promise<void>

Leaves the current Support Chat

public

async transfer(destination: object, destination: string): Promise<void>

Transfers the current Support Chat to another agent

Static Public Methods

public static create(supportChatId: *, chatService: *, chat: *): * source

Params:

NameTypeAttributeDescription
supportChatId *
chatService *
chat *

Return:

*

Public Constructors

public constructor() source

Public Members

public chatService: * source

public supportChatId: * source

Public Methods

public async leave(): Promise<void> source

Leaves the current Support Chat

If leaving participant is the chat's agent, the support chat is finished.

Return:

Promise<void>

public async transfer(destination: object, destination: string): Promise<void> source

Transfers the current Support Chat to another agent

Changes the agent who is assigned to this support chat. The backend will generate an XMPP invitation to that destination agent.

Params:

NameTypeAttributeDescription
destination object

The agent we want to transfer this chat to

destination.id string

The ID of the agent

destination.username string

The username of the agent

destination string

domain The domain of the agent

Return:

Promise<void>