group_ids.rb 324 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Kayako::User::GroupIds < Sequencer::Unit::Common::Provider::Named
  3. uses :resource, :id_map
  4. private
  5. def group_ids
  6. Array(resource['teams']).map do |team|
  7. id_map['Group'][team['id']]
  8. end
  9. end
  10. end