2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2016-11-25 16:10:37 +00:00
|
|
|
module Import
|
|
|
|
module OTRS
|
|
|
|
class History
|
|
|
|
class Article < Import::OTRS::History
|
|
|
|
def init_callback(history)
|
|
|
|
@history_attributes = {
|
2018-12-19 17:31:51 +00:00
|
|
|
id: history['HistoryID'],
|
|
|
|
o_id: history['ArticleID'],
|
|
|
|
history_type: 'created',
|
|
|
|
history_object: 'Ticket::Article',
|
|
|
|
related_o_id: history['TicketID'],
|
2016-11-25 16:10:37 +00:00
|
|
|
related_history_object: 'Ticket',
|
2018-12-19 17:31:51 +00:00
|
|
|
created_at: history['CreateTime'],
|
|
|
|
created_by_id: history['CreateBy']
|
2016-11-25 16:10:37 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|