article.rb 724 B

12345678910111213141516171819202122
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. module Import
  3. module OTRS
  4. class History
  5. class Article < Import::OTRS::History
  6. def init_callback(history)
  7. @history_attributes = {
  8. id: history['HistoryID'],
  9. o_id: history['ArticleID'],
  10. history_type: 'created',
  11. history_object: 'Ticket::Article',
  12. related_o_id: history['TicketID'],
  13. related_history_object: 'Ticket',
  14. created_at: history['CreateTime'],
  15. created_by_id: history['CreateBy']
  16. }
  17. end
  18. end
  19. end
  20. end
  21. end