salix/modules/zone/back/models/zone.js

18 lines
704 B
JavaScript
Raw Permalink Normal View History

2018-09-19 13:05:07 +00:00
module.exports = Self => {
2019-03-14 14:07:24 +00:00
require('../methods/zone/clone')(Self);
2019-09-19 15:30:16 +00:00
require('../methods/zone/getLeaves')(Self);
2019-09-25 18:06:42 +00:00
require('../methods/zone/getEvents')(Self);
2021-11-02 06:55:35 +00:00
require('../methods/zone/getEventsFiltered')(Self);
2019-10-08 05:22:38 +00:00
require('../methods/zone/toggleIsIncluded')(Self);
2020-05-15 10:17:34 +00:00
require('../methods/zone/getUpcomingDeliveries')(Self);
2020-06-02 06:59:04 +00:00
require('../methods/zone/deleteZone')(Self);
2020-09-22 05:38:20 +00:00
require('../methods/zone/includingExpired')(Self);
require('../methods/zone/getZoneClosing')(Self);
2022-05-16 05:17:29 +00:00
require('../methods/zone/exclusionGeo')(Self);
2022-07-08 07:47:11 +00:00
require('../methods/zone/updateExclusionGeo')(Self);
2018-09-19 13:05:07 +00:00
Self.validatesPresenceOf('agencyModeFk', {
message: `Agency cannot be blank`
});
};