# Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ class Sequencer::Unit::Import::Kayako::Request < Sequencer::Unit::Common::Provider::Attribute class Post < Sequencer::Unit::Import::Kayako::Request::Generic attr_reader :ticket def initialize(...) super @ticket = request_params.delete(:ticket) end def api_path "cases/#{ticket['id']}/posts" end def params super.merge( include: 'mailbox,message_recipient,channel,attachment,case_message,note,chat_message,identity_email,identity_twitter,identity_facebook,facebook_message,facebook_post,facebook_post_comment,twitter_message,twitter_tweet', ) end end end