setView
User.setView
sets the embedded agent interface to a specific view when the user creates an interaction (makes a call, sends an email, or sends an SMS message).
Parameters
Name | Data type | Description | Notes |
data | Object | See data object. |
data object
Name | Data type | Description | Notes |
type | String | Type of embedded agent interface view. | Values: main. <br><br>Main refers to the default embedded agent interface. |
view | Object | See view object. |
view object
Name | Data type | Description | Notes |
name | String | Name of the view to appear in the embedded agent interface. | Values: interactionList, callLog, newInteraction, callback, settings. <br><br>If the view is not supported by the interaction type of the interaction being created, the view appears grayed out. |
Example
In this example, when the user creates an interaction, the embedded agent interface changes to the interview list view, which shows all active interactions.
window.PureCloud.User.setView ({
type: "main"
view: {name: "interactionList"}
});