Remove unnecessary controller and helper changes

- Revert inboxes_controller.rb to develop version (voice handled in enterprise)
- Revert inboxes_helper.rb to develop version (voice handled in enterprise)
- Enterprise controller already provides voice channel support via prepend_mod_with pattern
- Eliminate redundant changes outside enterprise scope
This commit is contained in:
Sojan Jose
2025-07-11 02:20:25 -07:00
parent 897b6eaea2
commit 0a045ae2cc
2 changed files with 2 additions and 4 deletions

View File

@@ -163,8 +163,7 @@ class Api::V1::Accounts::InboxesController < Api::V1::Accounts::BaseController
'line' => Channel::Line,
'telegram' => Channel::Telegram,
'whatsapp' => Channel::Whatsapp,
'sms' => Channel::Sms,
'voice' => Channel::Voice
'sms' => Channel::Sms
}[permitted_params[:channel][:type]]
end

View File

@@ -107,8 +107,7 @@ module Api::V1::InboxesHelper
'line' => Current.account.line_channels,
'telegram' => Current.account.telegram_channels,
'whatsapp' => Current.account.whatsapp_channels,
'sms' => Current.account.sms_channels,
'voice' => Current.account.voice_channels
'sms' => Current.account.sms_channels
}[permitted_params[:channel][:type]]
end