note.rb 478 B

123456789101112131415161718192021222324
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Kayako::Post::Channel::Note < Sequencer::Unit::Import::Kayako::Post::Channel::Base
  3. def mapping
  4. super.merge(
  5. body: original_post['body_html'] || original_post['body_text'] || '',
  6. content_type: 'text/html',
  7. )
  8. end
  9. private
  10. def identify_key
  11. 'email'
  12. end
  13. def article_type_name
  14. 'note'
  15. end
  16. def internal?
  17. true
  18. end
  19. end