organization_id.rb 375 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Kayako::User::OrganizationId < Sequencer::Unit::Common::Provider::Named
  3. uses :resource, :id_map
  4. private
  5. def organization_id
  6. remote_id = resource['organization']&.fetch('id')
  7. return if remote_id.blank?
  8. id_map['Organization'][remote_id]
  9. end
  10. end