UNPKG

allex_webserverservice

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