Chore: Add a real-time event for contact resolution/update (#696)
* Chore: Add a real-time event for contact resolution/update * Chore: Ensure Events are sent to administrators Addresses: #419
This commit is contained in:
@@ -38,9 +38,12 @@ class Account < ApplicationRecord
|
||||
after_create :notify_creation
|
||||
after_destroy :notify_deletion
|
||||
|
||||
def channel
|
||||
# This should be unique for account
|
||||
'test_channel'
|
||||
def agents
|
||||
users.where(account_users: { role: :agent })
|
||||
end
|
||||
|
||||
def administrators
|
||||
users.where(account_users: { role: :administrator })
|
||||
end
|
||||
|
||||
def all_conversation_tags
|
||||
|
||||
Reference in New Issue
Block a user