123456789101112 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- class TriggerWebhookJob::RecordPayload
- def self.generate(record)
- return {} if record.blank?
- backend = "TriggerWebhookJob::RecordPayload::#{record.class.name}".constantize
- generator = backend.new(record)
- generator.generate
- end
- end
|