UNPKG

allex_entrypointservice

Version:
19 lines (15 loc) 586 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;