2019-10-16 06:52:30 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
module Events::Types
|
2020-08-25 17:34:02 +00:00
|
|
|
### Installation Events ###
|
2020-04-18 14:55:58 +00:00
|
|
|
# account events
|
|
|
|
ACCOUNT_CREATED = 'account.created'
|
|
|
|
|
2020-08-25 17:34:02 +00:00
|
|
|
#### Account Events ###
|
2021-05-03 14:53:09 +00:00
|
|
|
# campaign events
|
|
|
|
CAMPAIGN_TRIGGERED = 'campaign.triggered'
|
|
|
|
|
2020-04-18 14:55:58 +00:00
|
|
|
# channel events
|
|
|
|
WEBWIDGET_TRIGGERED = 'webwidget.triggered'
|
|
|
|
|
|
|
|
# conversation events
|
2019-08-14 09:48:44 +00:00
|
|
|
CONVERSATION_CREATED = 'conversation.created'
|
|
|
|
CONVERSATION_READ = 'conversation.read'
|
2021-04-28 15:23:23 +00:00
|
|
|
# FIXME: deprecate the opened and resolved events in future in favor of status changed event.
|
2020-04-18 14:55:58 +00:00
|
|
|
CONVERSATION_OPENED = 'conversation.opened'
|
|
|
|
CONVERSATION_RESOLVED = 'conversation.resolved'
|
2021-05-03 14:53:09 +00:00
|
|
|
|
2021-04-28 15:23:23 +00:00
|
|
|
CONVERSATION_STATUS_CHANGED = 'conversation.status_changed'
|
2020-06-02 17:29:02 +00:00
|
|
|
CONVERSATION_CONTACT_CHANGED = 'conversation.contact_changed'
|
2020-04-18 14:55:58 +00:00
|
|
|
ASSIGNEE_CHANGED = 'assignee.changed'
|
2021-03-12 09:43:58 +00:00
|
|
|
TEAM_CHANGED = 'team.changed'
|
2020-05-03 06:47:27 +00:00
|
|
|
CONVERSATION_TYPING_ON = 'conversation.typing_on'
|
|
|
|
CONVERSATION_TYPING_OFF = 'conversation.typing_off'
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-04-18 14:55:58 +00:00
|
|
|
# message events
|
2019-08-14 09:48:44 +00:00
|
|
|
MESSAGE_CREATED = 'message.created'
|
|
|
|
FIRST_REPLY_CREATED = 'first.reply.created'
|
2020-04-10 11:12:37 +00:00
|
|
|
MESSAGE_UPDATED = 'message.updated'
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2020-04-18 14:55:58 +00:00
|
|
|
# contact events
|
2020-04-18 08:17:51 +00:00
|
|
|
CONTACT_CREATED = 'contact.created'
|
|
|
|
CONTACT_UPDATED = 'contact.updated'
|
|
|
|
|
2020-08-25 17:34:02 +00:00
|
|
|
# agent events
|
2019-08-14 09:48:44 +00:00
|
|
|
AGENT_ADDED = 'agent.added'
|
|
|
|
AGENT_REMOVED = 'agent.removed'
|
|
|
|
end
|