Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / config / seedDB / tags.js
1 const a874_0x564b=['app','bulkCreate','tag\x20defective\x20auto\x20generated','../logger','error','Can\x27t\x20create\x20Tags','lodash','forums','tag\x20about_sales\x20auto\x20generated','installation','Tags\x20have\x20been\x20created','about_sales','create','faq','Tag','then','map'];(function(_0x38f140,_0x564b2d){const _0x499055=function(_0x564f20){while(--_0x564f20){_0x38f140['push'](_0x38f140['shift']());}};_0x499055(++_0x564b2d);}(a874_0x564b,0xdb));const a874_0x4990=function(_0x38f140,_0x564b2d){_0x38f140=_0x38f140-0x0;let _0x499055=a874_0x564b[_0x38f140];return _0x499055;};const _0xb536f1=a874_0x4990;'use strict';const _=require(_0xb536f1('0x8')),db=require('../../mysqldb')['db'],logger=require(_0xb536f1('0x5'))(_0xb536f1('0x2')),tags=[{'id':0x1,'name':_0xb536f1('0x9'),'description':'tag\x20forums\x20auto\x20generated'},{'id':0x2,'name':'defective','description':_0xb536f1('0x4')},{'id':0x3,'name':_0xb536f1('0xf'),'description':'tag\x20faq\x20auto\x20generated'},{'id':0x4,'name':_0xb536f1('0xb'),'description':'tag\x20installation\x20auto\x20generated'},{'id':0x5,'name':_0xb536f1('0xd'),'description':_0xb536f1('0xa')}];exports[_0xb536f1('0xe')]=function(){const _0x36fd2f=_0xb536f1;return db[_0x36fd2f('0x10')][_0x36fd2f('0x3')](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x36fd2f('0x0')](function(){const _0x5db01f=_0x36fd2f;logger['info'](_0x5db01f('0xc'));})['catch'](function(){const _0x10c0e0=_0x36fd2f;logger[_0x10c0e0('0x6')](_0x10c0e0('0x7'));});},exports['getNames']=function(){const _0x4164ae=_0xb536f1;return _[_0x4164ae('0x1')](tags,'name');};