organization_id.rb 367 B

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