core/product-experience/user-engagements.service.ts
Properties |
|
Methods |
constructor(document: Document, userPreferencesService: UserPreferencesService, gainsightService: GainsightService)
|
||||||||||||
Parameters :
|
handleUserEngagements |
handleUserEngagements()
|
Handles user engagement settings based on various conditions.
Returns :
void
|
toggleGainsightEngagements | ||||||||
toggleGainsightEngagements(isEnabled: boolean)
|
||||||||
Toggles the visibility of Gainsight Engagements based on the provided flag.
Parameters :
Returns :
void
|
updateUserEngagementPreference | ||||||||
updateUserEngagementPreference(isEnabled: boolean)
|
||||||||
Updates the user's preference for Gainsight Engagements.
Parameters :
Returns :
void
|
Readonly HIDE_GAINSIGHT_BOT_STYLE_ID |
Type : string
|
Default value : 'hide-gs-bot'
|
Readonly USER_PREFERENCES_GAINSIGHT_ENGAGEMENTS_KEY |
Type : string
|
Default value : 'gainsightBotEnabled'
|
Readonly userEngagementsEnabled$ |
Type : BehaviorSubject<boolean>
|
Default value : new BehaviorSubject(false)
|