2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-10-20 09:43:35 +00:00
|
|
|
|
|
|
|
class Sequencer
|
|
|
|
class Unit
|
|
|
|
module Import
|
|
|
|
module Kayako
|
|
|
|
module Post
|
|
|
|
module Channel
|
|
|
|
class Note < Sequencer::Unit::Import::Kayako::Post::Channel::Base
|
|
|
|
def mapping
|
|
|
|
super.merge(
|
|
|
|
body: original_post['body_html'] || original_post['body_text'] || '',
|
|
|
|
content_type: 'text/html',
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def identify_key
|
|
|
|
'email'
|
|
|
|
end
|
|
|
|
|
|
|
|
def article_type_name
|
|
|
|
'note'
|
|
|
|
end
|
|
|
|
|
|
|
|
def internal?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|