UNPKG

allex_webserverservice

Version:
20 lines (15 loc) 525 B
function createUser(execlib, ParentUser) { 'use strict'; if (!ParentUser) { ParentUser = execlib.execSuite.ServicePack.Service.prototype.userFactory.get('user'); } function User(prophash) { ParentUser.call(this, prophash); } ParentUser.inherit(User, require('../methoddescriptors/user'), [/*visible state fields here*/]/*or a ctor for StateStream filter*/); User.prototype.__cleanUp = function () { ParentUser.prototype.__cleanUp.call(this); }; return User; } module.exports = createUser;