summaryrefslogtreecommitdiff
path: root/app/serializers/switchboard_serializer.rb
blob: 8a8bd42d68e6a371ffd5fa28916553d2d02630e6 (plain)
1
2
3
4
5
6
7
8
9
10
class SwitchboardSerializer < ActiveModel::Serializer
  embed :ids, :include => true

  attributes :id, :name, :show_avatars, :blind_transfer_activated, :attended_transfer_activated, :search_activated
  has_many :switchboard_entries
  has_many :sip_accounts, :through => :switchboard_entries
  has_many :phone_numbers
  has_many :active_calls
  has_many :dispatchable_incoming_calls
end