Files
chatwoot/app/presenters/inbox/event_data_presenter.rb
Pranav Raj S fd633e1613 feat: Add inbox webhook events (#8006)
- Add webhook events for inbox creation/updation.
- Right now, the feature is added under a feature_flag. It is not available by default on all installations.
2023-09-28 15:28:10 -07:00

36 lines
1.0 KiB
Ruby

class Inbox::EventDataPresenter < SimpleDelegator
def push_data
{
# Conversation thread config
allow_messages_after_resolved: allow_messages_after_resolved,
lock_to_single_conversation: lock_to_single_conversation,
# Auto Assignment config
auto_assignment_config: auto_assignment_config,
enable_auto_assignment: enable_auto_assignment,
# Feature flag for message events
enable_email_collect: enable_email_collect,
greeting_enabled: greeting_enabled,
greeting_message: greeting_message,
csat_survey_enabled: csat_survey_enabled,
# Outbound email sender config
business_name: business_name,
sender_name_type: sender_name_type,
# Business hour config
timezone: timezone,
out_of_office_message: out_of_office_message,
working_hours_enabled: working_hours_enabled,
working_hours: working_hours,
created_at: created_at,
updated_at: updated_at,
# Associated channel attributes
channel: channel
}
end
end