feat: Add attachment support for Signal and WhatsApp channels

- Signal: Use base64Attachments field in signal-cli-rest-api
- WhatsApp: Implement Baileys attachment sending for images, videos, audio, and documents
- Both channels retrieve attachments from Zammad Store model
- Support multiple attachments per message
This commit is contained in:
Darren Clarke 2025-08-21 10:58:33 +02:00
parent 9139c8e8de
commit d2a3c71bcd
8 changed files with 255 additions and 85 deletions

View file

@ -41,6 +41,10 @@ class CdrSignalApi
params[:conversationId] = options[:conversationId]
options.delete(:conversationId)
end
if options[:attachments]
params[:attachments] = options[:attachments]
options.delete(:attachments)
end
post('send', params.merge(parse_hash(options)))
end
end