freepbx-stats/callStats.js
2025-09-21 14:24:44 +02:00

30 lines
417 B
JavaScript

export class CallStats {
/**
* @param {CallStats} stats
*/
constructor(stats) {
for (const [ key, value ] of Object.entries(stats))
this[key] = value;
}
/**
* @type {number}
*/
totalCallsThisMonth;
/**
* @type {number}
*/
totalCallsEverPlaced;
/**
* @type {number}
*/
totalCallsMade;
/**
* @type {CallRecord}
*/
allTimeRecord;
/**
* @type {boolean}
*/
isNewRecord = false;
}