2021-06-15 14:39:17 +00:00
|
|
|
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
|
2022-04-04 12:53:38 +00:00
|
|
|
json.agent_last_seen_at resource.agent_last_seen_at.to_i
|
2021-06-15 14:39:17 +00:00
|
|
|
json.messages do
|
|
|
|
json.array! resource.messages do |message|
|
|
|
|
json.partial! 'public/api/v1/models/message.json.jbuilder', resource: message
|
|
|
|
end
|
|
|
|
end
|
|
|
|
json.contact resource.contact
|