2021-10-07 07:51:46 +00:00
|
|
|
json.id resource.id
|
2021-10-01 08:07:52 +00:00
|
|
|
# could be nil for a deleted agent hence the safe operator before account id
|
|
|
|
json.account_id resource.account&.id
|
2020-05-31 17:40:20 +00:00
|
|
|
json.availability_status resource.availability_status
|
2021-10-07 07:51:46 +00:00
|
|
|
json.auto_offline resource.auto_offline
|
2020-05-31 17:40:20 +00:00
|
|
|
json.confirmed resource.confirmed?
|
|
|
|
json.email resource.email
|
2020-07-27 16:49:26 +00:00
|
|
|
json.available_name resource.available_name
|
2021-09-02 12:59:45 +00:00
|
|
|
json.custom_attributes resource.custom_attributes if resource.custom_attributes.present?
|
2020-05-31 17:40:20 +00:00
|
|
|
json.name resource.name
|
|
|
|
json.role resource.role
|
|
|
|
json.thumbnail resource.avatar_url
|