<add key="enablesecureheaders" value="true"/>
<add key="cors" value="https://{Your chime server hostname, e.g. chime.example.com}}"/>
<add key="allowedRemoteEndpoints" value="https://login.microsoftonline.com https://directline.botframework.com wss://directline.botframework.com https://api.cognitive.microsofttranslator.com"/>
<add key="RemoteImageEndpoints" value=""/>
@{
var expectedWait = "";
if(@Model.ExpectedWaitTimeLastHour.Minutes < 1 && @Model.ExpectedWaitTimeLastHour.Seconds > 0 ){
expectedWait = @Model.ExpectedWaitTimeLastHour.Seconds + " Seconds";
}
else if(@Model.ExpectedWaitTimeLastHour.Minutes >= 1 || @Model.ExpectedWaitTimeLastHour.Seconds > 0 ){
expectedWait = @Model.ExpectedWaitTimeLastHour.Minutes + " Minutes " + @Model.ExpectedWaitTimeLastHour.Seconds + " Seconds";
}
else{
expectedWait = "Appologies for the wait, an Agent will be with you soon";
}
}
{
"type": "AdaptiveCard",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Sorry to keep you waiting, your approximate position is @Model.PositionInQueue.",
"wrap": true
},
{
"type": "TextBlock",
"text": "Approximate wait time: @expectedWait",
"wrap": true
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
@{
var expectedWait = "";
if(@Model.ExpectedWaitTime.Minutes < 1 && @Model.ExpectedWaitTime.Seconds > 0 ){
expectedWait = @Model.ExpectedWaitTime.Seconds + " Seconds";
}
else if(@Model.ExpectedWaitTime.Minutes > 0 || @Model.ExpectedWaitTime.Seconds > 0 ){
expectedWait = @Model.ExpectedWaitTime.Minutes + " Minutes " + @Model.ExpectedWaitTime.Seconds + " Seconds";
}
else{
expectedWait = "An expert will be available momentarily";
}
}
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0",
"type": "AdaptiveCard",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Sorry to keep you waiting your approximate position is @Model.PositionInQueue.",
"wrap": true
},
{
"type": "TextBlock",
"text": "Approximate wait time: @expectedWait",
"wrap": true
}
]
}
]
}