2016-11-25 16:10:37 +00:00
|
|
|
module Import
|
|
|
|
module OTRS
|
|
|
|
module ArticleCustomerFactory
|
|
|
|
extend Import::Factory
|
|
|
|
|
2016-12-20 15:16:09 +00:00
|
|
|
def skip?(record, *_args)
|
2016-12-12 09:34:07 +00:00
|
|
|
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?
|
2018-10-09 06:17:41 +00:00
|
|
|
|
2016-11-25 16:10:37 +00:00
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|