@page "/customer-service"
@using EventDriven.Front.Data
@inject RequestService RequestService
@inject CustomerInteractionService CustomerInteractionService
Event Driven Review Engine
Customer Service Workflow
@if (customerServiceMessage != null)
{
}
@code {
private string queueUrl;
private SqsMessage customerServiceMessage;
private string customerServiceAgentName;
protected override async Task OnInitializedAsync()
{
}
public async Task ClaimCustomerServiceItem()
{
customerServiceMessage = await this.CustomerInteractionService.ClaimCustomerServiceItem();
}
public async Task SubmitCustomerServiceResponse()
{
await this.CustomerInteractionService.SubmitCustomerServiceResponse(customerServiceMessage, customerServiceAgentName);
customerServiceMessage = null;
}
}