<commit_before>var Balance = require('../models/balance.js');

module.exports = (function(){

  function gatewayAccountBalances(req, res) {
		req.checkParams('accountId', 'Invalid name')
			.notEmpty()
      .isNumeric();
		
		var errors = req.validationErrors();
		if (errors) {
			res.send({ success: false, error: util.inspect(errors) }, 400)
			return;
    }
    
    Balance.findAll({ where: { bankAccountId: req.params.accountId }})
    .complete(function(err, balances){
      if (err) { 
        res.send({ success: false, error: err })
      }
		  res.send({ success: true, balances: balances })
    })
	} 

  function index(req, res){
		Balance.findAll().complete(function(err, balances){
      if (err) { res.send({ success: false, error: err }) }
			res.send({ success: true, balances: balances });
    })
	}

	return {
		gatewayAccountBalances: gatewayAccountBalances,
		index: index
	}
})();<commit_msg>[CHORE] Remove all functionality from the balances controller<commit_after>var Balance = require('../models/balance.js');

module.exports = (function(){

})();
{'fraction_non_alphanumeric': 0.16263940520446096, 'fraction_numerical': 0.0027881040892193307, 'mean_word_length': 3.5829787234042554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1046458', 'n_tokens_mistral': 370, 'n_tokens_neox': 330, 'n_words': 77}