Commit Graph

15 Commits

Author SHA1 Message Date
0624bd22f2 sdsdf 2021-03-14 21:32:02 -06:00
d44aae0eff Use winston for logging 2021-03-14 21:30:41 -06:00
0fb6c9bcfb Add DEBUG RingCentral request logging 2021-03-14 15:47:29 -06:00
4cbfd1a4f8 Allow fromName to be null 2021-03-14 15:47:29 -06:00
bc7500ce3e Attempt to re-authenticate on auth refresh error 2021-03-14 15:47:12 -06:00
2668f4d814 Fix getMisisngTranscriptionVoicemails
Meant whereNull, not whereNotNull.
2021-03-14 15:46:33 -06:00
30d95657cf Add RingCentral token refresh error logging. 2021-03-11 15:11:11 -07:00
1c1682fe4f Move duration column to recordings table 2021-03-11 12:52:08 -07:00
0946158005 Add FIRST_RUN_AGE variable
Allows setting the maximum age of voicemails to fetch on the first run.

Other changes:
- Refactor `from` to `age` in function parameters
- Improve README
2021-03-11 11:55:50 -07:00
39cd664b3c Modify template to indicate when a transcription is partial 2021-03-11 11:15:43 -07:00
1052dfc1b1 Adjust intervals
We still fetch voicemails from RingCentral every 60 seconds, but now we
check for missing transcriptions every 15 seconds, and poll the database
for voicemails that are ready to be ticketized every second.
2021-03-11 11:04:32 -07:00
3452cd143a Add "recordings" table, save raw audio blobs in it
Other changes:
- Move Stored(Voicemail|Recording) interfaces into knex/types/tables
module for reduced boilerplate.
- Change updateStoredVoicemail to take Partial<StoredVoicemail>,
allowing to only update only some columns
2021-03-11 10:59:08 -07:00
dfabc13e8e Add README 2021-03-10 22:23:41 -07:00
fd54a8e4dd Initial commit 2021-03-10 22:10:47 -07:00
4e533f5e7b root commit 2021-03-10 21:52:26 -07:00