feat(voice): add WhatsApp Cloud Calling agent service, controller and routes

This commit is contained in:
Tanmay Deep Sharma
2026-04-30 16:24:39 +07:00
parent f32a7b3f77
commit 83cd568ca2
6 changed files with 512 additions and 0 deletions
+15
View File
@@ -215,6 +215,21 @@ Rails.application.routes.draw do
end
end
resources :reporting_events, only: [:index] if ChatwootApp.enterprise?
if ChatwootApp.enterprise?
resources :whatsapp_calls, only: [:show] do
member do
post :accept
post :reject
post :terminate
post :upload_recording
end
collection do
post :initiate
end
end
end
resources :custom_attribute_definitions, only: [:index, :show, :create, :update, :destroy]
resources :custom_filters, only: [:index, :show, :create, :update, :destroy]
resources :inboxes, only: [:index, :show, :create, :update, :destroy] do