2019-10-16 06:52:30 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
module Events::Types
|
2020-04-18 14:55:58 +00:00
|
|
|
# account events
|
|
|
|
ACCOUNT_CREATED = 'account.created'
|
|
|
|
ACCOUNT_DESTROYED = 'account.destroyed'
|
|
|
|
|
|
|
|
# channel events
|
|
|
|
WEBWIDGET_TRIGGERED = 'webwidget.triggered'
|
|
|
|
|
|
|
|
# conversation events
|
2019-08-14 09:48:44 +00:00
|
|
|
CONVERSATION_CREATED = 'conversation.created'
|
|
|
|
CONVERSATION_READ = 'conversation.read'
|
2020-04-18 14:55:58 +00:00
|
|
|
CONVERSATION_OPENED = 'conversation.opened'
|
|
|
|
CONVERSATION_RESOLVED = 'conversation.resolved'
|
|
|
|
CONVERSATION_LOCK_TOGGLE = 'conversation.lock_toggle'
|
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'
|
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-04-18 14:55:58 +00:00
|
|
|
# subscription events
|
2019-08-14 09:48:44 +00:00
|
|
|
AGENT_ADDED = 'agent.added'
|
|
|
|
AGENT_REMOVED = 'agent.removed'
|
|
|
|
SUBSCRIPTION_CREATED = 'subscription.created'
|
|
|
|
SUBSCRIPTION_REACTIVATED = 'subscription.reactivated'
|
|
|
|
SUBSCRIPTION_DEACTIVATED = 'subscription.deactivated'
|
|
|
|
end
|