text: var response = require('./../../helpers/response'),
  	apis = require('./../../helpers/apis');
  
  exports.sectionsDropDown = function (req, res) {	
  	var tenant = req.headers['tenant_name'] ? req.headers['tenant_name'] : 'MAIT',
  		table = 'enrolledSections',
  		attributes = [[models[tenant].fn('DISTINCT',models[tenant].col('courseinstance_id')), 'id'],'name'],
  		options = {
  					req:req,
  					attributes: attributes,
  					startDate: true,
  					endDate: true
  				  },
  		query = apis.getQuery(options);
  	
  	models[tenant+'_'+table].findAll(query).then(function (data) {
  	    response.sendSuccessResponse(res, data);
  	}).catch(function (err) {
  	    response.customErrorMessage(res, err.message);
  	});
  }