Add support for sending stats to Matrix, split out some code into more generic classes. #1

Open
rory.gay wants to merge 35 commits from rory.gay/freepbx-stats:main into main
Showing only changes of commit 60bdad4585 - Show all commits

View file

@ -3,6 +3,8 @@ export class CallStats {
* @param {CallStats} stats * @param {CallStats} stats
*/ */
constructor(stats) { constructor(stats) {
for (const [ key, value ] of Object.entries(stats))
this[key] = value;
} }
totalCallsThisMonth; totalCallsThisMonth;