article.rb 560 B

1234567891011121314151617181920
  1. module Import
  2. module OTRS
  3. class History
  4. class Article < Import::OTRS::History
  5. def init_callback(history)
  6. @history_attributes = {
  7. id: history['HistoryID'],
  8. o_id: history['ArticleID'],
  9. history_type: 'created',
  10. history_object: 'Ticket::Article',
  11. related_o_id: history['TicketID'],
  12. related_history_object: 'Ticket',
  13. created_at: history['CreateTime'],
  14. created_by_id: history['CreateBy']
  15. }
  16. end
  17. end
  18. end
  19. end
  20. end