Skip to content

Commit 4e54b00

Browse files
authored
Merge pull request #247 from Resgrid/develop
CU-868fnz2a8 Fixed Voice bug, updated Countly and changed Calendar to…
2 parents 89727e5 + c8fd2cc commit 4e54b00

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

Core/Resgrid.Services/CalendarService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task<List<CalendarItemType>> GetAllCalendarItemTypesForDepartmentAs
7070

7171
public async Task<List<CalendarItem>> GetUpcomingCalendarItemsAsync(int departmentId, DateTime start)
7272
{
73-
return await GetAllCalendarItemsForDepartmentInRangeAsync(departmentId, start, start.AddDays(7));
73+
return await GetAllCalendarItemsForDepartmentInRangeAsync(departmentId, start, start.AddDays(14));
7474
}
7575

7676
public async Task<CalendarItem> SaveCalendarItemAsync(CalendarItem calendarItem, CancellationToken cancellationToken = default(CancellationToken))

Web/Resgrid.Web.Services/Controllers/TwilioController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public async Task<ActionResult> IncomingMessage([FromQuery] TwilioMessage reques
317317

318318
foreach (var activeCall in activeCalls)
319319
{
320-
activeCallText.Append($"CallId: {activeCall.CallId} Name: {activeCall.Name} Nature:{activeCall.NatureOfCall}" + Environment.NewLine);
320+
activeCallText.Append($"CallId: {activeCall.CallId} Name: {activeCall.Name} Nature:{StringHelpers.StripHtmlTagsCharArray(activeCall.NatureOfCall)}" + Environment.NewLine);
321321
}
322322

323323
response.Message(activeCallText.ToString().Truncate(1200));
@@ -520,7 +520,7 @@ public async Task<ActionResult> VoiceCall(string userId, int callId)
520520
StringBuilder sb = new StringBuilder();
521521

522522
if (!String.IsNullOrWhiteSpace(address))
523-
sb.Append(string.Format("{0}, Priority {1} Address {2} Nature {3}", call.Name, call.GetPriorityText(), call.Address, call.NatureOfCall));
523+
sb.Append(string.Format("{0}, Priority {1} Address {2} Nature {3}", call.Name, call.GetPriorityText(), call.Address, StringHelpers.StripHtmlTagsCharArray(call.NatureOfCall)));
524524
else
525525
sb.Append(string.Format("{0}, Priority {1} Nature {2}", call.Name, call.GetPriorityText(), call.NatureOfCall));
526526

@@ -710,7 +710,7 @@ public async Task<ActionResult> InboundVoiceAction(string userId, [FromQuery] Vo
710710

711711
foreach (var call in calls)
712712
{
713-
sb.Append($"{call.Name}, Priority {call.GetPriorityText()} Address {call.Address} Nature {call.NatureOfCall}.");
713+
sb.Append($"{call.Name}, Priority {call.GetPriorityText()} Address {call.Address} Nature {StringHelpers.StripHtmlTagsCharArray(call.NatureOfCall)}.");
714714
}
715715
}
716716
else

Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,18 @@
6565
<script type='text/javascript'>
6666
if (Countly && window["Countly"]) {
6767
Countly.init({
68-
app_key: "@Resgrid.Config.TelemetryConfig.CountlyWebKey",
69-
url: "@Resgrid.Config.TelemetryConfig.CountlyUrl"
68+
app_key: "@Resgrid.Config.TelemetryConfig.CountlyWebKey",
69+
url: "@Resgrid.Config.TelemetryConfig.CountlyUrl",
70+
debug: false,
71+
ignore_referrers: [],
72+
track_sessions: true,
73+
track_pageview: true,
74+
track_links: true,
75+
track_forms: true,
76+
track_errors: true,
77+
require_consent: false,
78+
force_post: true,
79+
ignore_bots: true
7080
});
7181
}
7282
</script>

0 commit comments

Comments
 (0)