Chatwoot/app/jobs/agent_bots/csml_job.rb

11 lines
279 B
Ruby
Raw Permalink Normal View History

class AgentBots::CsmlJob < ApplicationJob
queue_as :bots
def perform(event, agent_bot, message)
event_data = { message: message }
Integrations::Csml::ProcessorService.new(
event_name: event, agent_bot: agent_bot, event_data: event_data
).perform
end
end