14 lines
500 B
JavaScript
14 lines
500 B
JavaScript
module.exports = Self => {
|
|
Self.validatesFormatOf('Email', {
|
|
message: 'Invalid email',
|
|
allowNull: true,
|
|
allowBlank: true,
|
|
with: /^[\W]*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61}[\W]*,{1}[\W]*)*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61})[\W]*$/
|
|
});
|
|
|
|
require('../methods/department/getLeaves')(Self);
|
|
require('../methods/department/createChild')(Self);
|
|
require('../methods/department/removeChild')(Self);
|
|
require('../methods/department/moveChild')(Self);
|
|
};
|