module.exports = Self => { require('../methods/item-barcode/toItem')(Self); require('../methods/item-barcode/delete')(Self); Self.validatesUniquenessOf('code', { message: `Barcode must be unique` }); };