article_customer_factory.rb 399 B

1234567891011121314151617
  1. # Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
  2. module Import
  3. module OTRS
  4. module ArticleCustomerFactory
  5. extend Import::Factory
  6. def skip?(record, *_args)
  7. return true if record['SenderType'] != 'customer'
  8. return true if record['CreatedBy'].to_i != 1
  9. return true if record['From'].blank?
  10. false
  11. end
  12. end
  13. end
  14. end