36 lines
779 B
Ruby
36 lines
779 B
Ruby
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
||
|
|
||
|
class Sequencer
|
||
|
class Unit
|
||
|
module Import
|
||
|
module Kayako
|
||
|
module Case
|
||
|
class Posts < Sequencer::Unit::Import::Kayako::SubSequence::SubObject
|
||
|
prepend ::Sequencer::Unit::Import::Common::Model::Mixin::Skip::Action
|
||
|
|
||
|
optional :action
|
||
|
|
||
|
skip_action :skipped, :failed
|
||
|
|
||
|
uses :resource
|
||
|
|
||
|
def object
|
||
|
'Post'
|
||
|
end
|
||
|
|
||
|
def sequence_name
|
||
|
'Sequencer::Sequence::Import::Kayako::Posts'.freeze
|
||
|
end
|
||
|
|
||
|
def request_params
|
||
|
super.merge(
|
||
|
ticket: resource,
|
||
|
)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|