in source/aws-connect-vm-portal/src/dto/agent.dto.ts [52:72]
static fromBasicAgent(agent: BasicAgentInterface): AgentDto {
const sms = (agent.deliveryOptions || {}).sms || {};
const deliveryOptions = agent.deliveryOptions || {};
return new this(
agent.userId,
agent.username,
"",
"",
"",
"",
"",
agent.extension,
agent.encryptVoicemail || false,
agent.transcribeVoicemail || false,
sms.enabled || false,
sms.phoneNumber,
deliveryOptions.email || false
);
}