var eiModel = require('../model/ei'); exports.list = function (req, res, next) { eiModel.fetchAll(req, res, next, function (err, result) { if (err) { res.send(err) } res.send(result); }); };