text: 'use strict';
  
  var ctrlFactory = require('restitute').controller;
  
  
  
  function listController() {
      ctrlFactory.list.call(this, '/rest/admin/compulsoryleaves');
  
      this.controllerAction = function() {
          this.jsonService(this.service('admin/compulsoryleaves/list'));
      };
  }
  listController.prototype = new ctrlFactory.list();
  
  
  function getController() {
      ctrlFactory.get.call(this, '/rest/admin/compulsoryleaves/:id');
  
      this.controllerAction = function() {
          this.jsonService(this.service('admin/compulsoryleaves/get'));
      };
  }
  getController.prototype = new ctrlFactory.get();
  
  
  function save() {
      this.jsonService(this.service('admin/compulsoryleaves/save', { userCreated: this.req.user }));
  }
  
  function createController() {
      ctrlFactory.create.call(this, '/rest/admin/compulsoryleaves');
      this.controllerAction = save;
  }
  createController.prototype = new ctrlFactory.create();
  
  function updateController() {
      ctrlFactory.update.call(this, '/rest/admin/compulsoryleaves/:id');
      this.controllerAction = save;
  }
  updateController.prototype = new ctrlFactory.update();
  
  function deleteController() {
      ctrlFactory.delete.call(this, '/rest/admin/compulsoryleaves/:id');
  
      this.controllerAction = function() {
          this.jsonService(this.service('admin/compulsoryleaves/delete'));
      };
  }
  deleteController.prototype = new ctrlFactory.delete();
  
  
  
  exports = module.exports = [
      listController,
      getController,
      createController,
      updateController,
      deleteController
  ];
  