posts.rb 522 B

12345678910111213141516171819202122232425
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Kayako::Case::Posts < Sequencer::Unit::Import::Kayako::SubSequence::SubObject
  3. prepend ::Sequencer::Unit::Import::Common::Model::Mixin::Skip::Action
  4. optional :action
  5. skip_action :skipped, :failed
  6. uses :resource
  7. def object
  8. 'Post'
  9. end
  10. def sequence_name
  11. 'Sequencer::Sequence::Import::Kayako::Posts'.freeze
  12. end
  13. def request_params
  14. super.merge(
  15. ticket: resource,
  16. )
  17. end
  18. end