Chatwoot/lib/reports/update_agent_identity.rb

10 lines
277 B
Ruby
Raw Normal View History

class Reports::UpdateAgentIdentity < Reports::UpdateIdentity
attr_reader :agent
def initialize(account, agent, timestamp = Time.now)
super(account, timestamp)
@agent = agent
@identity = ::AgentIdentity.new(agent.id, tags: { account_id: account.id })
end
end