## Description Adds a backend endpoint that powers an account-wide calls dashboard, letting users list and filter all calls in the account. ## Linear Ticket - https://linear.app/chatwoot/issue/UPM-28/voice-call-dashboard-view ## Type of change - [ ] New feature (non-breaking change which adds functionality) ## Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules
8 lines
250 B
Ruby
8 lines
250 B
Ruby
class Api::V1::Accounts::CallsController < Api::V1::Accounts::EnterpriseAccountsController
|
|
def index
|
|
result = CallFinder.new(Current.user, Current.account, params).perform
|
|
@calls = result[:calls]
|
|
@calls_count = result[:count]
|
|
end
|
|
end
|