Chatwoot/app/views/api/v1/widget/inbox_members/index.json.jbuilder
Sojan Jose c54aae21ff
chore: Move agent availability to Account level (#3074)
- Move agent availability to the account level
2021-10-07 13:21:46 +05:30

8 lines
324 B
Ruby

json.payload do
json.array! @inbox_members do |inbox_member|
json.id inbox_member.user.id
json.name inbox_member.user.available_name
json.avatar_url inbox_member.user.avatar_url
json.availability_status inbox_member.user.account_users.find_by(account_id: @current_account.id).availability_status
end
end