trabajo-afectivo/lib/import/otrs/article_customer_factory.rb

16 lines
323 B
Ruby
Raw Normal View History

module Import
module OTRS
module ArticleCustomerFactory
extend Import::Factory
def skip?(record, *_args)
return true if record['SenderType'] != 'customer'
return true if record['CreatedBy'].to_i != 1
2017-11-23 08:09:44 +00:00
return true if record['From'].blank?
false
end
end
end
end