model_class.rb 484 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Kayako::ModelClass < Sequencer::Unit::Common::Provider::Named
  3. uses :object
  4. MAP = {
  5. 'Organization' => ::Organization,
  6. 'User' => ::User,
  7. 'Team' => ::Group,
  8. 'Case' => ::Ticket,
  9. 'Post' => ::Ticket::Article,
  10. 'TimeEntry' => ::Ticket::TimeAccounting,
  11. }.freeze
  12. private
  13. def model_class
  14. MAP[object]
  15. end
  16. end