text: var express = require('express')
  
  var Busboy = require('busboy'), //
      inspect = require('util').inspect;
  
  var multer = require('multer')
  var upload = multer({
      dest: 'uploads/'
  })
  
  module.exports = function(pool) {
      'use strict';
  
      var router = express.Router();
  
      router.post('/getProcesses', function(req, res, next) {
          pool.getConnection(function(err, connection) {
              connection.query('CALL processes_find_by_user_id(?)', [req.body.Id], function(error, rows) {
                  if (error) {
                      res.status(500).send({ message: error.message });
                      return next(error);
                  };
                  res.send(rows[0]);
                  connection.release();
              });
          });
      });
  
      return router;
  };