text: 'use strict';
  const config = require('../config');
  const clients = config.clients; 
  
  module.exports.findById = (id, done) => {
    for (let i = 0, len = clients.length; i < len; i++) {
      if (clients[i].id === id) return done(null, clients[i]);
    }
    return done(new Error('Client Not Found'));
  };
  
  module.exports.findByClientId = (clientId, done) => {
    for (let i = 0, len = clients.length; i < len; i++) {
      if (clients[i].clientId === clientId) return done(null, clients[i]);
    }
    return done(new Error('Client Not Found'));
  };
  