deleted.rb 391 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Kayako::Case::Skip::Deleted < Sequencer::Unit::Base
  3. uses :resource
  4. provides :action
  5. def process
  6. return if resource['state'] != 'TRASH'
  7. logger.info { "Skipping. Kayako Case ID '#{resource['id']}' is in 'TRASH' state." }
  8. state.provide(:action, :skipped)
  9. end
  10. end