Similar to the REST API, we can provide a very basic wrapper for the CDR and Events API.
As there are just a few endpoints, we can provide a dedicated function for each endpoint. Probably best to use axios instead of jquery for the requests.
See: https://www.pbx.hostedcompass.com/docs/user-admin-manual.html#cdr-api