text: "use strict";
  
  module.exports = function(){
  
      var dao     = new app.dao.experience()
      ,   resolve = new app.views.json().promise;
  
      return {
          list: function (req, res, next) {
              var input = app.utils.mongoose.query(req.query);
  
              resolve(
                  dao.list(input.query, input.fields, input.projection),
                  res, next
              );
          },
          find: function(req, res, next){
              resolve(dao.find(req.params.id), res, next);
          },
          create: function(req, res, next){
              resolve(dao.create(req.body), res, next);
          },
          update: function(req, res, next){
              resolve(dao.update(req.params.id, req.body), res, next);
          },
          delete: function(req, res, next){
              resolve(dao.delete(req.params.id), res, next);
          }
      };
  
  };
  