Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
7
research/chatwoot/app/presenters/agent_bot_presenter.rb
Normal file
7
research/chatwoot/app/presenters/agent_bot_presenter.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class AgentBotPresenter < SimpleDelegator
|
||||
def access_token
|
||||
return if account_id.blank?
|
||||
|
||||
Current.account.id == account_id ? super&.token : nil
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user