c30c2df0ba5fe62f60981ac91ba7ff9b426f1d39
[motion-next.git] / server / config / seedDB / lists.js
1 const a863_0x3ff4=['../../mysqldb','black\x20list\x20auto\x20generated','public\x20list\x20auto\x20generated','Black\x20List','bulkCreate','app','Public\x20List','create','then','../logger','Can\x27t\x20create\x20Lists','Callback\x20List'];(function(_0x457f17,_0x3ff426){const _0x5f18c0=function(_0x4401cf){while(--_0x4401cf){_0x457f17['push'](_0x457f17['shift']());}};_0x5f18c0(++_0x3ff426);}(a863_0x3ff4,0x1cd));const a863_0x5f18=function(_0x457f17,_0x3ff426){_0x457f17=_0x457f17-0x0;let _0x5f18c0=a863_0x3ff4[_0x457f17];return _0x5f18c0;};const _0x14181a=a863_0x5f18;'use strict';const db=require(_0x14181a('0x7'))['db'],logger=require(_0x14181a('0x4'))(_0x14181a('0x0')),lists=[{'id':0x1,'name':_0x14181a('0x1'),'description':_0x14181a('0x9')},{'id':0x2,'name':_0x14181a('0xa'),'description':_0x14181a('0x8')},{'id':0x3,'name':_0x14181a('0x6'),'description':'Callback\x20list\x20auto\x20generated'}];exports[_0x14181a('0x2')]=function(){const _0x542524=_0x14181a;return db['CmList'][_0x542524('0xb')](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x542524('0x3')](function(){logger['info']('Lists\x20have\x20been\x20created');})['catch'](function(){const _0xe46d01=_0x542524;logger['error'](_0xe46d01('0x5'));});};