/* jshint -W097  */
/* globals require, module, console */

'use strict';

var hookUserMethods = require('./lib/user');
var addProvider = require('./lib/provider').addProvider;

module.exports = function(app, providers, config) {
  var User = app.models[config.userModel];
  providers.map(function(provider) {
    addProvider(provider.provider, provider.name);
  });
  hookUserMethods(User, config);
};

@@ -1,64 +1,4 @@
-/* jshint -W097  */%0A/* globals require, module, console */%0A%0A
 'use
@@ -8,19 +8,21 @@
 rict';%0A%0A
-var
+const
  hookUse
@@ -55,19 +55,21 @@
 user');%0A
-var
+const
  addProv
@@ -132,24 +132,16 @@
 ports = 
-function
 (app, pr
@@ -160,16 +160,21 @@
 fig)
+ =%3E
  %7B%0A  
-var
+const
  Use
@@ -227,16 +227,8 @@
 map(
-function
 (pro
@@ -233,16 +233,19 @@
 rovider)
+ =%3E
  %7B%0A    a

Refactor to ES6