Added a new event conversation_bot_resolved and added a job to auto resolve the bot conversations if there was no activity for the last 1 hour.
8 lines
204 B
Ruby
8 lines
204 B
Ruby
class ResponseBot::ResponseBotJob < ApplicationJob
|
|
queue_as :medium
|
|
|
|
def perform(conversation)
|
|
::Enterprise::MessageTemplates::ResponseBotService.new(conversation: conversation).perform
|
|
end
|
|
end
|