Chatwoot/app/views/api/v1/widget/campaigns/index.json.jbuilder
Muhsin Keloth fb2f3ff89f
feat: Create campaign conversation only if user interacts with the bubble (#2335)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
2021-06-15 20:09:42 +05:30

6 lines
204 B
Ruby

json.array! @campaigns do |campaign|
json.id campaign.display_id
json.trigger_rules campaign.trigger_rules
json.message campaign.message
json.sender campaign.sender&.slice(:name, :avatar_url)
end