Methods
_fetch Livechat Room Messages
_fetch Livechat Room Messages ( roomId ) : Promise < IMessage [] >
Experimental
Returns Promise < IMessage [] >
get Departments Enabled With Agents
get Departments Enabled With Agents ( ) : Promise < IDepartment [] >
get Livechat Department By Id Or Name
get Livechat Department By Id Or Name ( value ) : Promise < IDepartment >
get Livechat Open Rooms By Agent Id
get Livechat Rooms
get Livechat Rooms ( visitor , departmentId ? ) : Promise < ILivechatRoom [] >
Parameters
Optional
departmentId : string
get Livechat Total Open Rooms By Agent Id
get Livechat Total Open Rooms By Agent Id ( agentId ) : Promise < number >
Returns Promise < number >
get Livechat Visitor By Email
get Livechat Visitor By Phone Number
get Livechat Visitor By Phone Number ( phoneNumber ) : Promise < IVisitor >
Returns Promise < IVisitor >
get Livechat Visitor By Token
is Online
is Online ( departmentId ? ) : boolean
Parameters
Optional
departmentId : string
Returns boolean
is Online Async
is Online Async ( departmentId ? ) : Promise < boolean >
Parameters
Optional
departmentId : string
Returns Promise < boolean >
we do not encourage the wider usage of this method, as we're evaluating its performance and fit for the API.