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