article_customer_factory.rb 323 B

123456789101112131415
  1. module Import
  2. module OTRS
  3. module ArticleCustomerFactory
  4. extend Import::Factory
  5. def skip?(record, *_args)
  6. return true if record['SenderType'] != 'customer'
  7. return true if record['CreatedBy'].to_i != 1
  8. return true if record['From'].blank?
  9. false
  10. end
  11. end
  12. end
  13. end