Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AgentHiveChatPreferencesService

Service to handle Chat Preferences API calls on Agent Hive

Hierarchy

  • AgentHiveChatPreferencesService

Index

Constructors

Properties

auth: CXoneAuth
baseUrl: string = ''
logger: CcfLogger = ...
utilService: HttpUtilService = ...

Methods

  • getChatPreferences(): Promise<AssertsShape<{ createdAt: default<string, AnyObject, string>; preferences: OptionalObjectSchema<{ notificationMuted: default<boolean, AnyObject, boolean> }, AnyObject, TypeOfShape<{ notificationMuted: default<boolean, AnyObject, boolean> }>>; updatedAt: default<string, AnyObject, string>; userId: default<string, AnyObject, string> }>>
  • Method to get the current chat notification preferences for the authenticated user

    example
    getChatPreferences();
    

    Returns Promise<AssertsShape<{ createdAt: default<string, AnyObject, string>; preferences: OptionalObjectSchema<{ notificationMuted: default<boolean, AnyObject, boolean> }, AnyObject, TypeOfShape<{ notificationMuted: default<boolean, AnyObject, boolean> }>>; updatedAt: default<string, AnyObject, string>; userId: default<string, AnyObject, string> }>>

  • updateChatPreferences(preferencesRequest: AgentHiveChatPreferencesRequest): Promise<AssertsShape<{ createdAt: default<string, AnyObject, string>; preferences: OptionalObjectSchema<{ notificationMuted: default<boolean, AnyObject, boolean> }, AnyObject, TypeOfShape<{ notificationMuted: default<boolean, AnyObject, boolean> }>>; updatedAt: default<string, AnyObject, string>; userId: default<string, AnyObject, string> }>>
  • Method to update the chat notification preferences for the authenticated user

    example
    updateChatPreferences({ preferences: { notificationMuted: true } });
    

    Parameters

    Returns Promise<AssertsShape<{ createdAt: default<string, AnyObject, string>; preferences: OptionalObjectSchema<{ notificationMuted: default<boolean, AnyObject, boolean> }, AnyObject, TypeOfShape<{ notificationMuted: default<boolean, AnyObject, boolean> }>>; updatedAt: default<string, AnyObject, string>; userId: default<string, AnyObject, string> }>>

Generated using TypeDoc