Skip Navigation

AgentProfileService

The AgentProfileService allows to access information about agent. Full data are available after user is logged in.

Acquiring AgentProfileService

In order to obtain AgentProfileService and use it, you need to import it, e.g.

import {AgentProfileService} from "sabre-ngv-app/app/services/impl/AgentProfileService";

Then obtain the service inside your source as below:

const agentProfileService: AgentProfileService = getService(AgentProfileService);

Available methods

Currently available methods:

getAgentId
getAgentId(): string;

Returns EPR (Employee Profile Record) used to sign in.

getPcc
getPcc(): string;

Returns PCC (Pseudo City Code) used to sign in.

getCustomerBusinessUnit
getCustomerBusinessUnit(): string;

Returns Customer Business Unit if available.
For more details about provisioning of this value please contact Sabre Security System.

getCustomerEmployeeId
getCustomerEmployeeId(): string;

Returns Customer Employee Id if available.
For more details about provisioning of this value please contact Sabre Security System.

getCountry
getCountry(): string;

Returns Agent’s Agency Country.

getRegion
getRegion(): string;

Returns Agent’s Agency Region.

Example

You can see example usage in com.sabre.redapp.example3.web.customworkflow sample.