22 lines
927 B
JavaScript
22 lines
927 B
JavaScript
module.exports = Self => {
|
|
require('../methods/worker/filter')(Self);
|
|
require('../methods/worker/mySubordinates')(Self);
|
|
require('../methods/worker/isSubordinate')(Self);
|
|
require('../methods/worker/getWorkedHours')(Self);
|
|
require('../methods/worker/uploadFile')(Self);
|
|
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);
|
|
require('../methods/worker/contracts')(Self);
|
|
require('../methods/worker/holidays')(Self);
|
|
require('../methods/worker/activeContract')(Self);
|
|
require('../methods/worker/new')(Self);
|
|
|
|
Self.validatesUniquenessOf('locker', {
|
|
message: 'This locker has already been assigned'
|
|
});
|
|
};
|