2019-12-28 16:26:42 +00:00
|
|
|
json.payload do
|
|
|
|
json.array! @inboxes do |inbox|
|
|
|
|
json.id inbox.id
|
|
|
|
json.channel_id inbox.channel_id
|
|
|
|
json.name inbox.name
|
|
|
|
json.channel_type inbox.channel_type
|
2020-01-07 17:29:17 +00:00
|
|
|
json.avatar_url inbox.channel.try(:avatar_url)
|
2019-12-28 16:26:42 +00:00
|
|
|
json.page_id inbox.channel.try(:page_id)
|
|
|
|
json.widget_color inbox.channel.try(:widget_color)
|
|
|
|
json.website_token inbox.channel.try(:website_token)
|
2020-02-19 09:10:03 +00:00
|
|
|
json.enable_auto_assignment inbox.enable_auto_assignment
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|
|
|
|
end
|