2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
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
|