article_customer_factory.rb 322 B

1234567891011121314
  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'].empty?
  9. false
  10. end
  11. end
  12. end
  13. end