salix/modules/worker/back/models/worker.js

27 lines
1.2 KiB
JavaScript
Raw Normal View History

2019-03-11 07:00:49 +00:00
module.exports = Self => {
require('../methods/worker/filter')(Self);
2019-05-17 11:27:51 +00:00
require('../methods/worker/mySubordinates')(Self);
require('../methods/worker/isSubordinate')(Self);
2019-11-05 07:59:48 +00:00
require('../methods/worker/getWorkedHours')(Self);
2019-11-22 09:42:05 +00:00
require('../methods/worker/uploadFile')(Self);
2020-07-08 13:05:56 +00:00
require('../methods/worker/createAbsence')(Self);
require('../methods/worker/deleteAbsence')(Self);
require('../methods/worker/updateAbsence')(Self);
require('../methods/worker/active')(Self);
require('../methods/worker/activeWithRole')(Self);
require('../methods/worker/activeWithInheritedRole')(Self);
2021-06-03 09:00:40 +00:00
require('../methods/worker/contracts')(Self);
2021-06-04 13:49:48 +00:00
require('../methods/worker/holidays')(Self);
2021-06-03 09:00:40 +00:00
require('../methods/worker/activeContract')(Self);
2022-11-02 12:24:35 +00:00
require('../methods/worker/new')(Self);
require('../methods/worker/deallocatePDA')(Self);
require('../methods/worker/allocatePDA')(Self);
require('../methods/worker/search')(Self);
require('../methods/worker/isAuthorized')(Self);
2023-10-16 13:58:25 +00:00
require('../methods/worker/setPassword')(Self);
2023-02-27 07:39:46 +00:00
Self.validatesUniquenessOf('locker', {
message: 'This locker has already been assigned'
});
2019-03-11 07:00:49 +00:00
};