From b2509e9208c83d716cef7b71210e08dc003492a8 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 17 Oct 2015 23:32:35 -0600 Subject: [PATCH] * User list skeleton --- mods/user_list.js | 53 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 mods/user_list.js diff --git a/mods/user_list.js b/mods/user_list.js new file mode 100644 index 00000000..9f2acdc8 --- /dev/null +++ b/mods/user_list.js @@ -0,0 +1,53 @@ +/* jslint node: true */ +'use strict'; + +var MenuModule = require('../core/menu_module.js').MenuModule; +var userDb = require('../core/database.js').dbs.user; +var ViewController = require('../core/view_controller.js').ViewController; + +var moment = require('moment'); +var async = require('async'); +var assert = require('assert'); +var _ = require('lodash'); + +/* + Available listFormat object members: + userId + userName + lastCall + status + location + affiliation + timestamp +*/ + +exports.moduleInfo = { + name : 'User List', + desc : 'Lists all system users', + author : 'NuSkooler', +}; + +exports.getModule = UserListModule; + +function UserListModule(options) { + MenuModule.call(this, options); +} + +require('util').inherits(UserListModule, MenuModule); + +UserListModule.prototype.mciReady = function(mciData, cb) { + var self = this; + var vc = self.viewControllers.allViews = new ViewController( { client : self.client } ); + + async.series( + [ + + ], + function complete(err) { + if(err) { + self.client.log.error( { error : err.toString() }, 'Error loading user list'); + } + cb(err); + } + ); +}; \ No newline at end of file