Chatwoot/app/views/public/api/v1/models/_conversation.json.jbuilder

12 lines
394 B
Text
Raw Permalink Normal View History

json.id resource.display_id
json.inbox_id resource.inbox_id
json.contact_last_seen_at resource.contact_last_seen_at.to_i
json.status resource.status
json.agent_last_seen_at resource.agent_last_seen_at.to_i
json.messages do
json.array! resource.messages do |message|
json.partial! 'public/api/v1/models/message', formats: [:json], resource: message
end
end
json.contact resource.contact