Skip to content

Clean up redundant RxJS map operators in CzentrixService #174

Description

@rohansaini-02

Context

While auditing the integration layer, I noticed a few redundant observable mappings inside czentrix.service.ts.

Problem

Several HTTP calls use map(res => res) even though Angular’s HttpClient already returns the parsed response body directly. This identity mapping is a no-op that adds unnecessary callback overhead and visual noise.

Proposed Change

  • Remove redundant map(res => res) operators
  • Keep existing error handling intact
  • Ensure no response structure changes occur

Affected Areas

  • File: v19/src/app/core/services/czentrix.service.ts
  • Methods: getAgentStatus(), getCallDetails(), manualDial(), userLogout()

Deliverables / Checklist

  • Remove redundant observable mappings
  • Verify build passes successfully
  • Ensure no service regressions occur

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions