c66f022cddc053e19dc4cc14d88f1db58ec6072c
[motion-next.git] / server / config / seedDB / users.js
1 const a879_0x27de=['split','user\x20auto\x20generated','info','John\x20Doe','Users\x20have\x20been\x20created','bulkCreate','Jane\x20Miller','User','jane.miller@xcally.com','admin','john.doe','john.doe@xcally.com','Can\x27t\x20create\x20Users','../logger','create','app','101,102,103,113,110,104,105,106,107,108,109,100,111,114','admin@xcally.com','password','then','catch','shuttle55'];(function(_0x1a7b94,_0x27de0d){const _0x5bb7bc=function(_0x358eae){while(--_0x358eae){_0x1a7b94['push'](_0x1a7b94['shift']());}};_0x5bb7bc(++_0x27de0d);}(a879_0x27de,0x179));const a879_0x5bb7=function(_0x1a7b94,_0x27de0d){_0x1a7b94=_0x1a7b94-0x0;let _0x5bb7bc=a879_0x27de[_0x1a7b94];return _0x5bb7bc;};const _0x58405f=a879_0x5bb7;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x58405f('0xa'))(_0x58405f('0xc')),users=[{'id':0x1,'role':_0x58405f('0x6'),'name':_0x58405f('0x6'),'password':_0x58405f('0xf'),'fullname':'Administrator','email':_0x58405f('0xe'),'internal':0x3e8,'description':_0x58405f('0x14')},{'id':0x2,'role':'agent','name':_0x58405f('0x7'),'email':_0x58405f('0x8'),'password':_0x58405f('0x12'),'fullname':_0x58405f('0x0'),'internal':0x3e9,'permissions':_0x58405f('0xd')[_0x58405f('0x13')](','),'description':'agent\x20auto\x20generated'},{'id':0x3,'role':'agent','name':'jane.miller','email':_0x58405f('0x5'),'password':_0x58405f('0x12'),'fullname':_0x58405f('0x3'),'internal':0x3ea,'permissions':_0x58405f('0xd')[_0x58405f('0x13')](','),'description':'agent\x20auto\x20generated'}];exports[_0x58405f('0xb')]=function(){const _0x14338f=_0x58405f;return db[_0x14338f('0x4')][_0x14338f('0x2')](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x14338f('0x10')](function(){const _0x2d8404=_0x14338f;logger[_0x2d8404('0x15')](_0x2d8404('0x1'));})[_0x14338f('0x11')](function(_0x358eae){const _0x4cb3de=_0x14338f;logger['error'](_0x4cb3de('0x9'),_0x358eae);});};