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

15 lines
314 B
Ruby
Raw Normal View History

module Import
module OTRS
module ArticleCustomerFactory
extend Import::Factory
def skip?(record)
return true if record['SenderType'] != 'customer'
return true if record['CreatedBy'].to_i != 1
return true if record['From'].empty?
false
end
end
end
end