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 |
---|
Returns EPR (Employee Profile Record) used to sign in. |
getPcc |
---|
Returns PCC (Pseudo City Code) used to sign in. |
getCustomerBusinessUnit |
---|
Returns Customer Business Unit if available. |
getCustomerEmployeeId |
---|
Returns Customer Employee Id if available. |
getCountry |
---|
Returns Agent’s Agency Country. |
getRegion |
---|
Returns Agent’s Agency Region. |
getLocale |
---|
Returns Agent’s locale - language and region (e.g. en_US). |
Example
You can see example usage in com.sabre.redapp.example3.web.customworkflow sample.