36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
class Sequencer
|
|
class Sequence
|
|
module Import
|
|
module Freshdesk
|
|
class Ticket < Sequencer::Sequence::Base
|
|
|
|
def self.sequence
|
|
[
|
|
'Common::ModelClass::Ticket',
|
|
# Fetch additional data such as attachments which is not included
|
|
# in the ticket list endpoint.
|
|
'Import::Freshdesk::Ticket::Fetch',
|
|
'Import::Freshdesk::Ticket::Mapping',
|
|
'Import::Freshdesk::Mapping::CustomFields',
|
|
'Import::Common::Model::FindBy::Number',
|
|
'Import::Common::Model::Attributes::AddByIds',
|
|
'Import::Common::Model::Update',
|
|
'Import::Common::Model::Create',
|
|
'Import::Common::Model::Save',
|
|
'Import::Freshdesk::MapId',
|
|
'Import::Freshdesk::Ticket::Tags',
|
|
'Import::Freshdesk::Ticket::TimeEntries',
|
|
'Import::Freshdesk::Ticket::Description',
|
|
'Import::Freshdesk::Ticket::Conversations',
|
|
'Import::Common::Model::Statistics::Diff::ModelKey',
|
|
'Import::Common::ImportJob::Statistics::Update',
|
|
'Import::Common::ImportJob::Statistics::Store',
|
|
]
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|