RocketChat/Rocket.Chat

View on GitHub
apps/meteor/server/services/omnichannel-voip/service.ts

Summary

Maintainability
C
1 day
Test Coverage

File service.ts has 396 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import type { IOmnichannelVoipService, FindVoipRoomsParams } from '@rocket.chat/core-services';
import { api, ServiceClassInternal, VoipAsterisk } from '@rocket.chat/core-services';
import type {
    IVoipExtensionBase,
    IVoipExtensionWithAgentInfo,
Severity: Minor
Found in apps/meteor/server/services/omnichannel-voip/service.ts - About 5 hrs to fix

    Function createVoipRoom has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private async createVoipRoom(
            rid: string,
            name: string,
            agent: { agentId: string; username: string },
            guest: ILivechatVisitor,
    Severity: Major
    Found in apps/meteor/server/services/omnichannel-voip/service.ts - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status