[Feature] Email collect message hooks (#331)
- Add email collect hook on creating conversation - Merge contact if it already exist
This commit is contained in:
@@ -49,6 +49,10 @@ class Inbox < ApplicationRecord
|
||||
channel.class.name.to_s == 'Channel::FacebookPage'
|
||||
end
|
||||
|
||||
def web_widget?
|
||||
channel.class.name.to_s == 'Channel::WebWidget'
|
||||
end
|
||||
|
||||
def next_available_agent
|
||||
user_id = Redis::Alfred.rpoplpush(round_robin_key, round_robin_key)
|
||||
account.users.find_by(id: user_id)
|
||||
|
||||
Reference in New Issue
Block a user