Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / config / seedDB / lists.js
1 'use strict';const a1032_0x1282=['Callback\x20List','Lists\x20have\x20been\x20created','../logger','158714ZrKssI','7835PdHTlT','2oucaNa','40mklBCg','Can\x27t\x20create\x20Lists','185894kFspGY','188907cFdHjc','create','3xxomiA','@mysqldb','3rHlwbX','public\x20list\x20auto\x20generated','then','857855AwuKAr','Callback\x20list\x20auto\x20generated','875452juwGQP','error','Public\x20List','Black\x20List','13926pHtfDF','catch'];const a1032_0x516e=function(_0x975e94,_0x29f518){_0x975e94=_0x975e94-0x110;let _0x12823=a1032_0x1282[_0x975e94];return _0x12823;};const a1032_0x5c71e7=a1032_0x516e;(function(_0x13fa58,_0xec3a8e){const _0x25e9ba=a1032_0x516e;while(!![]){try{const _0x32fccf=parseInt(_0x25e9ba(0x126))*-parseInt(_0x25e9ba(0x110))+parseInt(_0x25e9ba(0x112))*parseInt(_0x25e9ba(0x117))+-parseInt(_0x25e9ba(0x125))*parseInt(_0x25e9ba(0x127))+-parseInt(_0x25e9ba(0x120))+-parseInt(_0x25e9ba(0x11c))+parseInt(_0x25e9ba(0x11a))+parseInt(_0x25e9ba(0x115))*parseInt(_0x25e9ba(0x113));if(_0x32fccf===_0xec3a8e)break;else _0x13fa58['push'](_0x13fa58['shift']());}catch(_0x272650){_0x13fa58['push'](_0x13fa58['shift']());}}}(a1032_0x1282,0x70ce4));const {db}=require(a1032_0x5c71e7(0x116)),logger=require(a1032_0x5c71e7(0x124))('app'),lists=[{'id':0x1,'name':a1032_0x5c71e7(0x11e),'description':a1032_0x5c71e7(0x118)},{'id':0x2,'name':a1032_0x5c71e7(0x11f),'description':'black\x20list\x20auto\x20generated'},{'id':0x3,'name':a1032_0x5c71e7(0x122),'description':a1032_0x5c71e7(0x11b)}];exports[a1032_0x5c71e7(0x114)]=function(){const _0x15399d=a1032_0x5c71e7;return db['CmList']['bulkCreate'](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x15399d(0x119)](function(){const _0x164efc=_0x15399d;logger['info'](_0x164efc(0x123));})[_0x15399d(0x121)](function(){const _0x2711bb=_0x15399d;logger[_0x2711bb(0x11d)](_0x2711bb(0x111));});};