dbcb9207d19611fc43a44bbb0f1f4b52daf08770
[motion-next.git] / server / config / seedDB / userProfiles.js
1 const a877_0x190d=['catch','Auto\x20generated\x20User\x20Profile','error','create','then','bulkCreate','UserProfile','Default','info'];(function(_0x3ae6c9,_0x190d98){const _0x2a0091=function(_0x516246){while(--_0x516246){_0x3ae6c9['push'](_0x3ae6c9['shift']());}};_0x2a0091(++_0x190d98);}(a877_0x190d,0x139));const a877_0x2a00=function(_0x3ae6c9,_0x190d98){_0x3ae6c9=_0x3ae6c9-0x0;let _0x2a0091=a877_0x190d[_0x3ae6c9];return _0x2a0091;};const _0x4667f0=a877_0x2a00;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')('app'),userProfiles=[{'id':0x1,'name':_0x4667f0('0x0'),'crudPermissions':['r','e','d'],'description':_0x4667f0('0x3')}];exports[_0x4667f0('0x5')]=function(){const _0x84f253=_0x4667f0;return db[_0x84f253('0x8')][_0x84f253('0x7')](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x84f253('0x6')](function(){const _0x39b09c=_0x84f253;logger[_0x39b09c('0x1')]('User\x20Profiles\x20have\x20been\x20created');})[_0x84f253('0x2')](function(){const _0x2de4ee=_0x84f253;logger[_0x2de4ee('0x4')]('Can\x27t\x20create\x20User\x20Profiles');});};