mapping.rb 443 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Freshdesk::Company::Mapping < Sequencer::Unit::Base
  3. include ::Sequencer::Unit::Import::Common::Mapping::Mixin::ProvideMapped
  4. uses :resource
  5. def process
  6. provide_mapped do
  7. {
  8. name: resource['name'],
  9. note: resource['description'],
  10. domain: resource['domains']&.first,
  11. }
  12. end
  13. end
  14. end