Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / config / seedDB / userProfiles.js
1 const a878_0x2d30=['bulkCreate','then','../../mysqldb','create','info','User\x20Profiles\x20have\x20been\x20created','app','Auto\x20generated\x20User\x20Profile','error','UserProfile','catch'];(function(_0x17930c,_0x2d30e6){const _0x14264b=function(_0x9abfa3){while(--_0x9abfa3){_0x17930c['push'](_0x17930c['shift']());}};_0x14264b(++_0x2d30e6);}(a878_0x2d30,0x111));const a878_0x1426=function(_0x17930c,_0x2d30e6){_0x17930c=_0x17930c-0x0;let _0x14264b=a878_0x2d30[_0x17930c];return _0x14264b;};const _0x217721=a878_0x1426;'use strict';const db=require(_0x217721('0x4'))['db'],logger=require('../logger')(_0x217721('0x8')),userProfiles=[{'id':0x1,'name':'Default','crudPermissions':['r','e','d'],'description':_0x217721('0x9')}];exports[_0x217721('0x5')]=function(){const _0x39e358=_0x217721;return db[_0x39e358('0x0')][_0x39e358('0x2')](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x39e358('0x3')](function(){const _0x1a4932=_0x39e358;logger[_0x1a4932('0x6')](_0x1a4932('0x7'));})[_0x39e358('0x1')](function(){const _0xd54091=_0x39e358;logger[_0xd54091('0xa')]('Can\x27t\x20create\x20User\x20Profiles');});};