organization_id.rb 406 B

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