Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / config / seedDB / users.js
index daebee7..58d4bde 100644 (file)
@@ -1 +1 @@
-const a878_0x4532=['error','agent','create','info','admin@xcally.com','Jane\x20Miller','then','User','Administrator','Users\x20have\x20been\x20created','../../mysqldb','john.doe@xcally.com','password','jane.miller@xcally.com','bulkCreate','Can\x27t\x20create\x20Users','shuttle55','John\x20Doe','agent\x20auto\x20generated','split','app','admin','john.doe'];(function(_0x25ead4,_0x453272){const _0x5354d4=function(_0x2c9b8f){while(--_0x2c9b8f){_0x25ead4['push'](_0x25ead4['shift']());}};_0x5354d4(++_0x453272);}(a878_0x4532,0x1b7));const a878_0x5354=function(_0x25ead4,_0x453272){_0x25ead4=_0x25ead4-0x0;let _0x5354d4=a878_0x4532[_0x25ead4];return _0x5354d4;};const _0x406998=a878_0x5354;'use strict';const db=require(_0x406998('0x8'))['db'],logger=require('../logger')(_0x406998('0x12')),users=[{'id':0x1,'role':_0x406998('0x13'),'name':_0x406998('0x13'),'password':_0x406998('0xa'),'fullname':_0x406998('0x6'),'email':_0x406998('0x2'),'internal':0x3e8,'description':'user\x20auto\x20generated'},{'id':0x2,'role':_0x406998('0x16'),'name':_0x406998('0x14'),'email':_0x406998('0x9'),'password':_0x406998('0xe'),'fullname':_0x406998('0xf'),'internal':0x3e9,'permissions':'101,102,103,113,110,104,105,106,107,108,109,100,111,114'[_0x406998('0x11')](','),'description':_0x406998('0x10')},{'id':0x3,'role':_0x406998('0x16'),'name':'jane.miller','email':_0x406998('0xb'),'password':_0x406998('0xe'),'fullname':_0x406998('0x3'),'internal':0x3ea,'permissions':'101,102,103,113,110,104,105,106,107,108,109,100,111,114'[_0x406998('0x11')](','),'description':_0x406998('0x10')}];exports[_0x406998('0x0')]=function(){const _0x1b61b5=_0x406998;return db[_0x1b61b5('0x5')][_0x1b61b5('0xc')](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1b61b5('0x4')](function(){const _0xf76b1f=_0x1b61b5;logger[_0xf76b1f('0x1')](_0xf76b1f('0x7'));})['catch'](function(_0x2c9b8f){const _0x25d7f3=_0x1b61b5;logger[_0x25d7f3('0x15')](_0x25d7f3('0xd'),_0x2c9b8f);});};
\ No newline at end of file
+const a1040_0x2168=['agent\x20auto\x20generated','../../mysqldb','admin','Jane\x20Miller','John\x20Doe','shuttle55','jane.miller@xcally.com','101,102,103,113,110,104,105,106,107,108,109,100,111,114','password','bulkCreate','catch','User','admin@xcally.com','split','jane.miller','info','user\x20auto\x20generated','john.doe','then','john.doe@xcally.com','Can\x27t\x20create\x20Users','error'];(function(_0x3e7974,_0x402bfb){const _0x216838=function(_0x2bbccc){while(--_0x2bbccc){_0x3e7974['push'](_0x3e7974['shift']());}};_0x216838(++_0x402bfb);}(a1040_0x2168,0xe6));const a1040_0x2bbc=function(_0x3e7974,_0x402bfb){_0x3e7974=_0x3e7974-0xbd;let _0x216838=a1040_0x2168[_0x3e7974];return _0x216838;};const a1040_0x5b31ac=a1040_0x2bbc;'use strict';const {db}=require(a1040_0x5b31ac(0xca)),logger=require('../logger')('app'),users=[{'id':0x1,'role':'admin','name':a1040_0x5b31ac(0xcb),'password':a1040_0x5b31ac(0xd1),'fullname':'Administrator','email':a1040_0x5b31ac(0xbf),'internal':0x3e8,'description':a1040_0x5b31ac(0xc3)},{'id':0x2,'role':'agent','name':a1040_0x5b31ac(0xc4),'email':a1040_0x5b31ac(0xc6),'password':a1040_0x5b31ac(0xce),'fullname':a1040_0x5b31ac(0xcd),'internal':0x3e9,'permissions':a1040_0x5b31ac(0xd0)[a1040_0x5b31ac(0xc0)](','),'description':a1040_0x5b31ac(0xc9)},{'id':0x3,'role':'agent','name':a1040_0x5b31ac(0xc1),'email':a1040_0x5b31ac(0xcf),'password':'shuttle55','fullname':a1040_0x5b31ac(0xcc),'internal':0x3ea,'permissions':a1040_0x5b31ac(0xd0)['split'](','),'description':a1040_0x5b31ac(0xc9)}];exports['create']=function(){const _0x533514=a1040_0x5b31ac;return db[_0x533514(0xbe)][_0x533514(0xd2)](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x533514(0xc5)](function(){const _0xc627b8=_0x533514;logger[_0xc627b8(0xc2)]('Users\x20have\x20been\x20created');})[_0x533514(0xbd)](function(_0x3861e3){const _0x3bb8c4=_0x533514;logger[_0x3bb8c4(0xc8)](_0x3bb8c4(0xc7),_0x3861e3);});};
\ No newline at end of file