* User list skeleton

This commit is contained in:
Bryan Ashby 2015-10-17 23:32:35 -06:00
parent 52dee0a401
commit b2509e9208
1 changed files with 53 additions and 0 deletions

53
mods/user_list.js Normal file
View File

@ -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);
}
);
};