Methods
(static) enqueueRecurrentSolicits() → {number}
Enqueues the recurrent solicits to all the users that needs to be solicited
Returns:
Counter of the enqueued solicits
- Type
- number
(static) enqueueReminders() → {number}
Enqueues the reminders to all the users that needs to be reminded
Returns:
Counter of the enqueued reminders
- Type
- number
(static) enqueueSolicits() → {number}
Enqueues the solicits to all the users that needs to be solicited
Returns:
Counter of the enqueued solicits
- Type
- number
(static) importStatisticsAsItemRegistrationFromSamba(tenant, fromDay, numDays, count, accountIds, sessionIds)
Retrieve the usage statistucs from SambaLive and convert it to populate ItemRegistration and ItemRegistrationSession of matched user/courses. This service must run at least every day, but it's better if runs more in a day. That's because SambaLive cannot retrieve specific close range, but goes day by day. The already processed data will be skipped (by checking the last status date of the registration)
Parameters:
| Name | Type | Description |
|---|---|---|
tenant |
string | Array.<string> | Optional: Tenants to process (default all) |
fromDay |
number | Optional: Offset (default 0) |
numDays |
number | Optional: Days to retrieve (default 1) |
count |
number | Optional: Max records to retrieve (default 999999) |
accountIds |
string | Array.<string> | Optional: if specified skips all data expect those of these accountIds (to rebuild/recover missed/uncomplete data) |
sessionIds |
string | Array.<string> | Optional: if specified skips all data expect those of these sessionIds (to rebuild/recover missed/uncomplete data) |
(static) processSambaliveRecordings() → {number}
Enqueues the solicits to all the users that needs to be solicited
Returns:
Counter of the enqueued solicits
- Type
- number