Oracle Service Cloud RightNowCX Event subscribe Notes


RightNow.Event.subscribe("evt_chatCobrowseAcceptResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatCobrowseStatusResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_fileUploadUpdateResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatNotifyFattachUpdateResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatPostResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatEngagementParticipantAddedResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatEngagementParticipantRemovedResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatEngagementConcludedResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatCobrowseInvitationResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatReconnectUpdateResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatAgentAbsentUpdateResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatAgentStatusChangeResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatPostCompletion",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatEventBusInitializedResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatConnectResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatFetchUpdateResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatStateChangeResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatSetParametersResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatValidateParametersResponse",function(e, f){console.log(e,f);},null);
RightNow.Event.subscribe("evt_chatCheckAnonymousResponse",function(e, f){console.log(e,f);},null);

example:

RightNow.Event.subscribe("evt_chatStateChangeResponse",function(e,f){
if(f[0].data.currentState && f[0].data.currentState == 2) {
window.chatID = RightNow.Chat.Controller.ChatCommunicationsController._engagementID;
}
},null);

Leave a Reply

You must be logged in to post a comment.