mirror of
https://github.com/lingble/chatwoot.git
synced 2026-01-08 21:41:35 +00:00
Co-authored-by: Pranav Raj S <pranav@chatwoot.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
10 lines
346 B
Ruby
10 lines
346 B
Ruby
json.id resource.id
|
|
json.app_id resource.app_id
|
|
json.status resource.enabled?
|
|
json.inbox resource.inbox&.slice(:id, :name)
|
|
json.account_id resource.account_id
|
|
json.hook_type resource.hook_type
|
|
|
|
json.settings resource.settings if Current.account_user&.administrator?
|
|
json.reference_id resource.reference_id if Current.account_user&.administrator?
|