@opengis/fcore 0.0.1-beta.3 → 0.0.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/context.js +1 -1
  3. package/dist/errors.js +1 -1
  4. package/dist/fastify.d.ts +4 -5
  5. package/dist/fastify.d.ts.map +1 -1
  6. package/dist/fastify.js +1 -1
  7. package/dist/fcore.js +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/migrations/cli.js +1 -1
  10. package/dist/migrations/runner.js +1 -1
  11. package/dist/modules/auth/index.js +1 -1
  12. package/dist/modules/auth/route.js +1 -1
  13. package/dist/modules/auth/schema.js +1 -1
  14. package/dist/modules/auth/services/get-current-user.js +1 -1
  15. package/dist/modules/auth/services/login.js +1 -1
  16. package/dist/modules/auth/services/logout.js +1 -1
  17. package/dist/modules/auth/services/verify-two-factor.js +1 -1
  18. package/dist/modules/auth/services/verifyPassword.js +1 -1
  19. package/dist/modules/file/index.js +1 -1
  20. package/dist/modules/file/route.js +1 -1
  21. package/dist/modules/file/schema.js +1 -1
  22. package/dist/modules/file/services/get-file.js +1 -1
  23. package/dist/modules/file/services/resize-file.js +1 -1
  24. package/dist/modules/file/services/upload-file.js +1 -1
  25. package/dist/modules/resource/index.js +1 -1
  26. package/dist/modules/resource/route.js +1 -1
  27. package/dist/modules/resource/schema.js +1 -1
  28. package/dist/modules/resource/services/add-note.js +1 -1
  29. package/dist/modules/resource/services/add-resource-file.js +1 -1
  30. package/dist/modules/resource/services/create-resource-relation.js +1 -1
  31. package/dist/modules/resource/services/create-resource.js +1 -1
  32. package/dist/modules/resource/services/delete-resource-relation.js +1 -1
  33. package/dist/modules/resource/services/delete-resource.js +1 -1
  34. package/dist/modules/resource/services/export-resource.js +1 -1
  35. package/dist/modules/resource/services/get-resource.js +1 -1
  36. package/dist/modules/resource/services/list-children.js +1 -1
  37. package/dist/modules/resource/services/list-resource-relation.js +1 -1
  38. package/dist/modules/resource/services/list-resources.js +1 -1
  39. package/dist/modules/resource/services/search-resource.js +1 -1
  40. package/dist/modules/resource/services/suggest-resource.d.ts +7 -4
  41. package/dist/modules/resource/services/suggest-resource.d.ts.map +1 -1
  42. package/dist/modules/resource/services/suggest-resource.js +1 -1
  43. package/dist/modules/resource/services/update-resource.js +1 -1
  44. package/dist/modules/resource/services/upload-resource-file.js +1 -1
  45. package/dist/modules/system/index.js +1 -1
  46. package/dist/modules/system/route.js +1 -1
  47. package/dist/modules/system/schema.js +1 -1
  48. package/dist/modules/system/services/check-system.js +1 -1
  49. package/dist/modules/system/services/get-api-list.js +1 -1
  50. package/dist/modules/system/services/get-audit-log.js +1 -1
  51. package/dist/modules/system/services/get-dictionary.js +1 -1
  52. package/dist/modules/system/services/get-system-log.js +1 -1
  53. package/dist/modules/system/services/get-system-settings.js +1 -1
  54. package/dist/modules/system/services/list-dictionaries.js +1 -1
  55. package/dist/modules/system/services/update-system-settings.js +1 -1
  56. package/dist/modules/utils/get-user-permissions.js +1 -1
  57. package/dist/modules/utils/require-admin.js +1 -1
  58. package/dist/modules/utils/safe-user.js +1 -1
  59. package/dist/modules/utils/unsupported.js +1 -1
  60. package/dist/plugins/audit/audit.js +1 -1
  61. package/dist/plugins/audit/index.js +1 -1
  62. package/dist/plugins/audit/services/write-audit.js +1 -1
  63. package/dist/plugins/auth/index.js +1 -1
  64. package/dist/plugins/dictionary.js +1 -1
  65. package/dist/plugins/file.js +1 -1
  66. package/dist/plugins/index.js +1 -1
  67. package/dist/plugins/logger/index.js +1 -1
  68. package/dist/plugins/logger/transport.js +1 -1
  69. package/dist/plugins/pg.js +1 -1
  70. package/dist/plugins/redis.js +1 -1
  71. package/dist/plugins/resource/index.js +1 -1
  72. package/dist/plugins/resource/resource.js +1 -1
  73. package/dist/plugins/resource/resource.registry.js +1 -1
  74. package/dist/plugins/resource/services/create.js +1 -1
  75. package/dist/plugins/resource/services/delete.js +1 -1
  76. package/dist/plugins/resource/services/find-one.js +1 -1
  77. package/dist/plugins/resource/services/find.js +1 -1
  78. package/dist/plugins/resource/services/update.js +1 -1
  79. package/dist/plugins/resource/utils/fields.js +1 -1
  80. package/dist/plugins/resource/utils/filters.js +1 -1
  81. package/dist/plugins/resource/utils/permissions.js +1 -1
  82. package/dist/plugins/resource/utils/sort.js +1 -1
  83. package/dist/plugins/resource/utils/sql.js +1 -1
  84. package/dist/shared/getIP.js +1 -1
  85. package/package.json +1 -2
@@ -1 +1 @@
1
- (function(_0x4bce31,_0x29d57b){const _0x5cf9cc=_0x3f95,_0x38d95e=_0x4bce31();while(!![]){try{const _0x495678=parseInt(_0x5cf9cc(0x212))/0x1*(parseInt(_0x5cf9cc(0x20f))/0x2)+parseInt(_0x5cf9cc(0x20c))/0x3*(parseInt(_0x5cf9cc(0x1f3))/0x4)+parseInt(_0x5cf9cc(0x20a))/0x5*(-parseInt(_0x5cf9cc(0x205))/0x6)+parseInt(_0x5cf9cc(0x1f4))/0x7+parseInt(_0x5cf9cc(0x1ec))/0x8*(-parseInt(_0x5cf9cc(0x226))/0x9)+-parseInt(_0x5cf9cc(0x1fd))/0xa*(parseInt(_0x5cf9cc(0x1ed))/0xb)+parseInt(_0x5cf9cc(0x1ff))/0xc*(parseInt(_0x5cf9cc(0x209))/0xd);if(_0x495678===_0x29d57b)break;else _0x38d95e['push'](_0x38d95e['shift']());}catch(_0x3e34ab){_0x38d95e['push'](_0x38d95e['shift']());}}}(_0x26c3,0xbd33a));function _0x3f95(_0x1d6e2d,_0x287797){_0x1d6e2d=_0x1d6e2d-0x1ec;const _0x26c37b=_0x26c3();let _0x3f95f2=_0x26c37b[_0x1d6e2d];return _0x3f95f2;}function _0x26c3(){const _0x54c485=['name','rows','10FgGfbp','GHowt','8078316ousYvF','query','dXiRw','isBuffer','access','UjDdp','50316ocPPuB','SSDUj','QKOam','HXapv','26upPRHX','865moBOKu','AJiSl','54iHNacH','replace','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20','20176vISjrO','put','length','151TOkmpf','uxAEI','Uploaded\x20file\x20not\x20found','File\x20is\x20required','files/','get','DZvfr','BrIYb','yIOey','Admin\x20access\x20required','admin','includes','file','exists','uHDQR','wdlEj','fileName','ASAwY','wSgBk','resource','153108SDEtlL','permission','permissions','Missing\x20permission:\x20','688gNBGGb','3553682NaPlnj',':update','vHKPV','JzlRA','myRKA','File\x20name\x20is\x20required','178884NdzzoV','2360330nhsapl','EeFvh','wFsut','type','WxolT','user','zqdzq'];_0x26c3=function(){return _0x54c485;};return _0x26c3();}import{ForbiddenError,NotFoundError,ValidationError}from'../../../errors.js';export async function uploadResourceFile(_0xbb2dc1,_0x1ff384){const _0x3daa18=_0x3f95,_0x117c72={'EeFvh':_0x3daa18(0x1f2),'GHowt':_0x3daa18(0x214),'UjDdp':_0x3daa18(0x215),'JzlRA':function(_0x381e05,_0x480dca){return _0x381e05===_0x480dca;},'AJiSl':function(_0x30a538,_0x208ffa){return _0x30a538!==_0x208ffa;},'WxolT':_0x3daa18(0x1ef),'DZvfr':_0x3daa18(0x1f1),'HXapv':_0x3daa18(0x21b),'wFsut':_0x3daa18(0x21c),'uxAEI':function(_0x20f39e,_0x3f8b9a){return _0x20f39e===_0x3f8b9a;},'SSDUj':_0x3daa18(0x221),'ASAwY':_0x3daa18(0x219),'uHDQR':function(_0x51ae9d,_0x525462){return _0x51ae9d(_0x525462);},'wSgBk':_0x3daa18(0x21a),'dXiRw':_0x3daa18(0x1fa),'QKOam':function(_0x49f49c,_0xdd1426){return _0x49f49c(_0xdd1426);}},_0x1e1fe3=_0x1ff384[_0x3daa18(0x225)][_0x3daa18(0x217)](_0xbb2dc1[_0x3daa18(0x225)]);if(_0x117c72[_0x3daa18(0x1f0)](_0x1e1fe3[_0x3daa18(0x203)],_0x3daa18(0x21c))&&_0x117c72[_0x3daa18(0x20b)](_0xbb2dc1[_0x3daa18(0x1f9)]?.[_0x3daa18(0x1f7)],_0x3daa18(0x21c))){if(_0x117c72[_0x3daa18(0x1f8)]===_0x117c72[_0x3daa18(0x218)])throw new _0x3d794d(_0x117c72[_0x3daa18(0x1f5)]);else throw new ForbiddenError(_0x117c72[_0x3daa18(0x208)]);}if(_0x117c72[_0x3daa18(0x20b)](_0xbb2dc1[_0x3daa18(0x1f9)]?.[_0x3daa18(0x1f7)],_0x117c72[_0x3daa18(0x1f6)])&&!_0xbb2dc1[_0x3daa18(0x1f9)]?.[_0x3daa18(0x228)]?.[_0x3daa18(0x21d)]((_0x1e1fe3[_0x3daa18(0x227)]??_0x1e1fe3[_0x3daa18(0x1fb)])+_0x3daa18(0x1ee)))throw new ForbiddenError(_0x3daa18(0x229)+(_0x1e1fe3[_0x3daa18(0x227)]??_0x1e1fe3[_0x3daa18(0x1fb)])+_0x3daa18(0x1ee));if(!Buffer[_0x3daa18(0x202)](_0xbb2dc1[_0x3daa18(0x21e)])||_0x117c72[_0x3daa18(0x213)](_0xbb2dc1[_0x3daa18(0x21e)][_0x3daa18(0x211)],0x0))throw new ValidationError(_0x117c72[_0x3daa18(0x204)]);const _0x7087d1=_0xbb2dc1[_0x3daa18(0x222)][_0x3daa18(0x20d)](/[^A-Za-z0-9._-]/g,'_');if(!_0x7087d1){if(_0x117c72[_0x3daa18(0x206)]!==_0x117c72[_0x3daa18(0x223)])throw new ValidationError(_0x117c72[_0x3daa18(0x1f5)]);else throw new _0x48b429(_0x117c72[_0x3daa18(0x1fe)]);}const _0x46dda8=_0x3daa18(0x216)+_0xbb2dc1[_0x3daa18(0x225)]+'/'+_0x117c72[_0x3daa18(0x220)](String,_0xbb2dc1['id'])+'/'+_0x7087d1;await _0x1ff384[_0x3daa18(0x21e)][_0x3daa18(0x210)](_0x46dda8,_0xbb2dc1[_0x3daa18(0x21e)]);if(!await _0x1ff384[_0x3daa18(0x21e)][_0x3daa18(0x21f)](_0x46dda8)){if(_0x117c72[_0x3daa18(0x20b)](_0x117c72[_0x3daa18(0x224)],_0x117c72[_0x3daa18(0x201)]))throw new NotFoundError(_0x117c72[_0x3daa18(0x1fe)]);else throw new _0x3ec486(_0x117c72[_0x3daa18(0x204)]);}const _0x222172=await _0x1ff384['pg'][_0x3daa18(0x200)](_0x3daa18(0x20e),[_0xbb2dc1[_0x3daa18(0x225)],_0x117c72[_0x3daa18(0x207)](String,_0xbb2dc1['id']),_0x46dda8,_0xbb2dc1[_0x3daa18(0x21e)][_0x3daa18(0x211)]]);return _0x222172[_0x3daa18(0x1fc)][0x0];}
1
+ function _0x15f9(_0x32af64,_0x593f18){_0x32af64=_0x32af64-0x1ae;const _0x1ff4d9=_0x1ff4();let _0x15f95e=_0x1ff4d9[_0x32af64];return _0x15f95e;}(function(_0x48d5e8,_0x2ec90e){const _0x39a851=_0x15f9,_0x1022e1=_0x48d5e8();while(!![]){try{const _0x19aec2=-parseInt(_0x39a851(0x1e7))/0x1*(-parseInt(_0x39a851(0x1b0))/0x2)+parseInt(_0x39a851(0x1d7))/0x3+-parseInt(_0x39a851(0x1bd))/0x4+parseInt(_0x39a851(0x1dd))/0x5+parseInt(_0x39a851(0x1da))/0x6*(-parseInt(_0x39a851(0x1e4))/0x7)+parseInt(_0x39a851(0x1ca))/0x8*(-parseInt(_0x39a851(0x1b9))/0x9)+parseInt(_0x39a851(0x1c3))/0xa*(parseInt(_0x39a851(0x1d3))/0xb);if(_0x19aec2===_0x2ec90e)break;else _0x1022e1['push'](_0x1022e1['shift']());}catch(_0x4dbcfc){_0x1022e1['push'](_0x1022e1['shift']());}}}(_0x1ff4,0xb2388));function _0x1ff4(){const _0x401b7f=['Missing\x20permission:\x20','exists','lzwFk','DevOW','8693226UrYFjs','File\x20name\x20is\x20required','OlFfq','name','5106996IHYDqa','type','FAkNp','MKYDY','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20','length','40ZTegKf','cuNxb','File\x20is\x20required','nMWUM','FeyaG','cDRtr','WwxIh','8WvWdEf','IUlCn','Admin\x20access\x20required','DiJXR','qqhvs','files/','permission','get','DcDKB','5809243iMxdIr','file','jtPPj','OukYZ','1234833oGKsSG','includes','admin','227442zUeYIJ','query','rows','1739565rdbBUq',':update','HsOOp','access','fileName','put','permissions','21pNkwFx','resource','Wqndz','335Kmjlbv','Jxurv','isBuffer','replace','Uploaded\x20file\x20not\x20found','1280SqiQov','OarNZ','xXVIm','ANFPf','user'];_0x1ff4=function(){return _0x401b7f;};return _0x1ff4();}import{ForbiddenError,NotFoundError,ValidationError}from'../../../errors.js';export async function uploadResourceFile(_0xd9aae8,_0x156f3e){const _0x20d0d5=_0x15f9,_0x1d7602={'FAkNp':_0x20d0d5(0x1cc),'xXVIm':_0x20d0d5(0x1c5),'cDRtr':_0x20d0d5(0x1ba),'HsOOp':_0x20d0d5(0x1d9),'Jxurv':function(_0x53579f,_0x35cf46){return _0x53579f!==_0x35cf46;},'MKYDY':function(_0x11c238,_0xa83ff){return _0x11c238===_0xa83ff;},'Wqndz':_0x20d0d5(0x1cd),'WwxIh':function(_0x2c2457,_0x455d31){return _0x2c2457===_0x455d31;},'DevOW':_0x20d0d5(0x1c7),'OlFfq':_0x20d0d5(0x1d2),'nMWUM':function(_0x1d6c16,_0x14b718){return _0x1d6c16(_0x14b718);},'jtPPj':_0x20d0d5(0x1b1),'OukYZ':_0x20d0d5(0x1ce),'ANFPf':_0x20d0d5(0x1af),'lzwFk':function(_0x2fcb7d,_0x3659b0){return _0x2fcb7d(_0x3659b0);}},_0x4465a5=_0x156f3e[_0x20d0d5(0x1e5)][_0x20d0d5(0x1d1)](_0xd9aae8[_0x20d0d5(0x1e5)]);if(_0x4465a5[_0x20d0d5(0x1e0)]===_0x1d7602[_0x20d0d5(0x1df)]&&_0x1d7602[_0x20d0d5(0x1e8)](_0xd9aae8[_0x20d0d5(0x1b4)]?.[_0x20d0d5(0x1be)],_0x1d7602[_0x20d0d5(0x1df)])){if(_0x1d7602[_0x20d0d5(0x1c0)](_0x20d0d5(0x1c4),_0x1d7602[_0x20d0d5(0x1e6)]))throw new _0x2d1590(_0x1d7602[_0x20d0d5(0x1bf)]);else throw new ForbiddenError(_0x1d7602[_0x20d0d5(0x1bf)]);}if(_0x1d7602[_0x20d0d5(0x1e8)](_0xd9aae8[_0x20d0d5(0x1b4)]?.[_0x20d0d5(0x1be)],_0x1d7602[_0x20d0d5(0x1df)])&&!_0xd9aae8[_0x20d0d5(0x1b4)]?.[_0x20d0d5(0x1e3)]?.[_0x20d0d5(0x1d8)]((_0x4465a5[_0x20d0d5(0x1d0)]??_0x4465a5[_0x20d0d5(0x1bc)])+_0x20d0d5(0x1de)))throw new ForbiddenError(_0x20d0d5(0x1b5)+(_0x4465a5[_0x20d0d5(0x1d0)]??_0x4465a5[_0x20d0d5(0x1bc)])+_0x20d0d5(0x1de));if(!Buffer[_0x20d0d5(0x1e9)](_0xd9aae8[_0x20d0d5(0x1d4)])||_0x1d7602[_0x20d0d5(0x1c9)](_0xd9aae8[_0x20d0d5(0x1d4)][_0x20d0d5(0x1c2)],0x0)){if(_0x1d7602[_0x20d0d5(0x1b8)]===_0x1d7602[_0x20d0d5(0x1b8)])throw new ValidationError(_0x20d0d5(0x1c5));else throw new _0x1f3dba(_0x20d0d5(0x1b5)+(_0x51d243[_0x20d0d5(0x1d0)]??_0x138537[_0x20d0d5(0x1bc)])+_0x20d0d5(0x1de));}const _0xaa6cee=_0xd9aae8[_0x20d0d5(0x1e1)][_0x20d0d5(0x1ae)](/[^A-Za-z0-9._-]/g,'_');if(!_0xaa6cee){if(_0x1d7602[_0x20d0d5(0x1c0)](_0x20d0d5(0x1cb),_0x1d7602[_0x20d0d5(0x1bb)]))throw new _0x5407e5(_0x1d7602[_0x20d0d5(0x1b2)]);else throw new ValidationError(_0x1d7602[_0x20d0d5(0x1c8)]);}const _0x586a98=_0x20d0d5(0x1cf)+_0xd9aae8[_0x20d0d5(0x1e5)]+'/'+_0x1d7602[_0x20d0d5(0x1c6)](String,_0xd9aae8['id'])+'/'+_0xaa6cee;await _0x156f3e[_0x20d0d5(0x1d4)][_0x20d0d5(0x1e2)](_0x586a98,_0xd9aae8[_0x20d0d5(0x1d4)]);if(!await _0x156f3e[_0x20d0d5(0x1d4)][_0x20d0d5(0x1b6)](_0x586a98)){if(_0x1d7602[_0x20d0d5(0x1c0)](_0x1d7602[_0x20d0d5(0x1d5)],_0x1d7602[_0x20d0d5(0x1d6)]))throw new _0x18022d(_0x1d7602[_0x20d0d5(0x1c8)]);else throw new NotFoundError(_0x1d7602[_0x20d0d5(0x1b3)]);}const _0x3a06ef=await _0x156f3e['pg'][_0x20d0d5(0x1db)](_0x20d0d5(0x1c1),[_0xd9aae8[_0x20d0d5(0x1e5)],_0x1d7602[_0x20d0d5(0x1b7)](String,_0xd9aae8['id']),_0x586a98,_0xd9aae8[_0x20d0d5(0x1d4)][_0x20d0d5(0x1c2)]]);return _0x3a06ef[_0x20d0d5(0x1dc)][0x0];}
@@ -1 +1 @@
1
- (function(_0x1733b8,_0x4a4599){var _0x2c97dd=_0x5cef,_0x58f9f7=_0x1733b8();while(!![]){try{var _0x2fe641=-parseInt(_0x2c97dd(0x1f4))/0x1+-parseInt(_0x2c97dd(0x1f8))/0x2+-parseInt(_0x2c97dd(0x1f7))/0x3*(parseInt(_0x2c97dd(0x1f5))/0x4)+parseInt(_0x2c97dd(0x1f2))/0x5*(parseInt(_0x2c97dd(0x1fa))/0x6)+-parseInt(_0x2c97dd(0x1f3))/0x7*(parseInt(_0x2c97dd(0x1f6))/0x8)+parseInt(_0x2c97dd(0x1f9))/0x9+parseInt(_0x2c97dd(0x1fb))/0xa;if(_0x2fe641===_0x4a4599)break;else _0x58f9f7['push'](_0x58f9f7['shift']());}catch(_0x238ec9){_0x58f9f7['push'](_0x58f9f7['shift']());}}}(_0x1feb,0x37fe4));function _0x5cef(_0xcff964,_0x2da425){_0xcff964=_0xcff964-0x1f2;var _0x1febb8=_0x1feb();var _0x5cef20=_0x1febb8[_0xcff964];return _0x5cef20;}export*from'./route.js';export*from'./services/get-system-settings.js';export*from'./services/update-system-settings.js';export*from'./services/get-system-log.js';export*from'./services/get-audit-log.js';export*from'./services/check-system.js';export*from'./services/get-api-list.js';export*from'./services/list-dictionaries.js';function _0x1feb(){var _0x589c3b=['297865QkwBSO','28XMFVkR','382521kKJudb','2812keNgCQ','478304FhzeOk','1374fmyhrz','24174ZwiDTK','3461031GHgGZU','42vJEsiB','3835120CBFIpQ'];_0x1feb=function(){return _0x589c3b;};return _0x1feb();}export*from'./services/get-dictionary.js';
1
+ (function(_0x4201ba,_0x52e27c){var _0x27322e=_0x399e,_0x428830=_0x4201ba();while(!![]){try{var _0x2bc1b8=-parseInt(_0x27322e(0x124))/0x1*(parseInt(_0x27322e(0x129))/0x2)+parseInt(_0x27322e(0x125))/0x3*(-parseInt(_0x27322e(0x123))/0x4)+parseInt(_0x27322e(0x126))/0x5+-parseInt(_0x27322e(0x128))/0x6+parseInt(_0x27322e(0x12a))/0x7+-parseInt(_0x27322e(0x127))/0x8+parseInt(_0x27322e(0x122))/0x9;if(_0x2bc1b8===_0x52e27c)break;else _0x428830['push'](_0x428830['shift']());}catch(_0x33fb17){_0x428830['push'](_0x428830['shift']());}}}(_0x413b,0x68dd5));function _0x399e(_0xe28f87,_0x18f1d9){_0xe28f87=_0xe28f87-0x122;var _0x413ba4=_0x413b();var _0x399e50=_0x413ba4[_0xe28f87];return _0x399e50;}export*from'./route.js';export*from'./services/get-system-settings.js';export*from'./services/update-system-settings.js';export*from'./services/get-system-log.js';export*from'./services/get-audit-log.js';export*from'./services/check-system.js';export*from'./services/get-api-list.js';function _0x413b(){var _0x3ebb46=['18827577kFYFMI','8xPvnpj','15226oWTVgZ','849795GHFmGG','95145RRfiVf','4583864UiipoT','4328670WQLaAF','38JCEhtq','3281565tSGwzt'];_0x413b=function(){return _0x3ebb46;};return _0x413b();}export*from'./services/list-dictionaries.js';export*from'./services/get-dictionary.js';
@@ -1 +1 @@
1
- const _0x2d9d33=_0x3907;(function(_0x159b29,_0x412a47){const _0x3c6e8c=_0x3907,_0x2ff1c8=_0x159b29();while(!![]){try{const _0x287c99=parseInt(_0x3c6e8c(0xa4))/0x1+parseInt(_0x3c6e8c(0xa0))/0x2*(-parseInt(_0x3c6e8c(0xbf))/0x3)+parseInt(_0x3c6e8c(0x8c))/0x4+parseInt(_0x3c6e8c(0x9b))/0x5*(parseInt(_0x3c6e8c(0xa7))/0x6)+parseInt(_0x3c6e8c(0xd6))/0x7*(parseInt(_0x3c6e8c(0xb2))/0x8)+parseInt(_0x3c6e8c(0xac))/0x9+parseInt(_0x3c6e8c(0xa2))/0xa*(-parseInt(_0x3c6e8c(0x84))/0xb);if(_0x287c99===_0x412a47)break;else _0x2ff1c8['push'](_0x2ff1c8['shift']());}catch(_0x1cad4a){_0x2ff1c8['push'](_0x2ff1c8['shift']());}}}(_0x2100,0xb0856));import{getSystemSettings}from'./services/get-system-settings.js';import{updateSystemSettings}from'./services/update-system-settings.js';function _0x3907(_0x10ff9d,_0x5c9a21){_0x10ff9d=_0x10ff9d-0x83;const _0x210070=_0x2100();let _0x390704=_0x210070[_0x10ff9d];return _0x390704;}import{getAuditLog}from'./services/get-audit-log.js';import{checkSystem}from'./services/check-system.js';import{getApiList}from'./services/get-api-list.js';import{getSystemLog}from'./services/get-system-log.js';import{listDictionaries}from'./services/list-dictionaries.js';import{getDictionary}from'./services/get-dictionary.js';import{systemSchemas}from'./schema.js';const u=_0x2e131f=>_0x2e131f[_0x2d9d33(0x99)];export function systemRoutes(_0x4fe251){const _0x754485=_0x2d9d33,_0x1d8848={};_0x1d8848[_0x754485(0x83)]=_0x754485(0xc2),_0x1d8848[_0x754485(0x97)]=_0x754485(0xb1),_0x1d8848[_0x754485(0xcd)]=_0x754485(0xa3),_0x1d8848[_0x754485(0xba)]=_0x754485(0xc3),_0x1d8848[_0x754485(0x8b)]=_0x754485(0xae),_0x1d8848[_0x754485(0xa8)]=_0x754485(0xc6),_0x1d8848[_0x754485(0x8d)]=_0x754485(0xbb),_0x1d8848[_0x754485(0xc5)]=_0x754485(0xb9),_0x1d8848[_0x754485(0xb0)]=_0x754485(0x86),_0x1d8848[_0x754485(0x8e)]=_0x754485(0x9f),_0x1d8848[_0x754485(0x89)]=_0x754485(0xb5),_0x1d8848[_0x754485(0xd7)]=_0x754485(0xb3),_0x1d8848[_0x754485(0xaa)]=_0x754485(0xc9),_0x1d8848[_0x754485(0x95)]=_0x754485(0x93),_0x1d8848[_0x754485(0x9c)]=_0x754485(0x9a),_0x1d8848[_0x754485(0xca)]=_0x754485(0xb7),_0x1d8848[_0x754485(0xcf)]=_0x754485(0x90),_0x1d8848[_0x754485(0x8f)]=_0x754485(0xa6),_0x1d8848[_0x754485(0xbd)]=_0x754485(0x9d),_0x1d8848[_0x754485(0x88)]=_0x754485(0xc7),_0x1d8848[_0x754485(0x8a)]=_0x754485(0xaf),_0x1d8848[_0x754485(0x94)]=_0x754485(0xcb),_0x1d8848[_0x754485(0x85)]=_0x754485(0xa1),_0x1d8848[_0x754485(0xa9)]=_0x754485(0xa5),_0x1d8848[_0x754485(0xab)]=_0x754485(0x87),_0x1d8848[_0x754485(0xd2)]=_0x754485(0xad),_0x1d8848[_0x754485(0xb8)]=_0x754485(0xb4);const _0x1f09a8=_0x1d8848;return async _0x4769ed=>{const _0x29798b=_0x754485,_0x413068={};_0x413068[_0x29798b(0xce)]=[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],_0x413068[_0x29798b(0x91)]=_0x29798b(0xd4),_0x413068[_0x29798b(0xc0)]=_0x1f09a8[_0x29798b(0xcd)],_0x413068[_0x29798b(0xbc)]=_0x29798b(0xbb),_0x413068[_0x29798b(0x98)]=[];const _0x2d5134={};_0x2d5134[_0x29798b(0xd0)]=_0x413068,_0x4769ed[_0x29798b(0x96)](_0x29798b(0xd3),_0x2d5134,async _0x4394ee=>listDictionaries({'user':u(_0x4394ee)},_0x4fe251)),_0x4769ed[_0x29798b(0x96)](_0x1f09a8[_0x29798b(0xba)],{'schema':{'tags':[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0x8b)],'description':_0x1f09a8[_0x29798b(0xa8)],'access':_0x1f09a8[_0x29798b(0x8d)],'permissions':[],'params':systemSchemas[_0x29798b(0xb6)]}},async _0x5dcb63=>getDictionary({..._0x5dcb63[_0x29798b(0xc1)],'user':u(_0x5dcb63)},_0x4fe251)),_0x4769ed[_0x29798b(0x96)](_0x1f09a8[_0x29798b(0xc5)],{'schema':{'tags':[_0x29798b(0xc2),_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0xb0)],'description':_0x1f09a8[_0x29798b(0x8e)],'access':_0x1f09a8[_0x29798b(0x8d)],'permissions':[_0x29798b(0x92)]}},async _0x87d609=>getSystemSettings({..._0x87d609[_0x29798b(0xc1)],'user':u(_0x87d609)},_0x4fe251)),_0x4769ed[_0x29798b(0xcc)](_0x1f09a8[_0x29798b(0xc5)],{'schema':{'tags':[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0x89)],'description':_0x1f09a8[_0x29798b(0xd7)],'access':_0x1f09a8[_0x29798b(0x8d)],'permissions':[_0x1f09a8[_0x29798b(0xaa)]],'body':systemSchemas[_0x29798b(0xbe)]}},async _0x33d22d=>updateSystemSettings({..._0x33d22d[_0x29798b(0xc1)],'patch':_0x33d22d[_0x29798b(0xd5)],'user':u(_0x33d22d)},_0x4fe251)),_0x4769ed[_0x29798b(0x96)](_0x1f09a8[_0x29798b(0x95)],{'schema':{'tags':[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0x9c)],'description':_0x1f09a8[_0x29798b(0xca)],'access':_0x29798b(0xbb),'permissions':[_0x1f09a8[_0x29798b(0xcf)]],'params':systemSchemas[_0x29798b(0xc4)]}},async _0x3d44c1=>getSystemLog({..._0x3d44c1[_0x29798b(0xd1)],..._0x3d44c1[_0x29798b(0xc1)],'user':u(_0x3d44c1)},_0x4fe251));const _0x5dc115={};_0x5dc115[_0x29798b(0xce)]=[_0x29798b(0xc2),_0x29798b(0xb1)],_0x5dc115[_0x29798b(0x91)]=_0x1f09a8[_0x29798b(0x8f)],_0x5dc115[_0x29798b(0xc0)]=_0x1f09a8[_0x29798b(0xbd)],_0x5dc115[_0x29798b(0xbc)]=_0x1f09a8[_0x29798b(0x8d)],_0x5dc115[_0x29798b(0x98)]=[_0x1f09a8[_0x29798b(0x88)]];const _0x314644={};_0x314644[_0x29798b(0xd0)]=_0x5dc115,_0x4769ed[_0x29798b(0x96)](_0x29798b(0x9e),_0x314644,async _0xc8e208=>getAuditLog({..._0xc8e208[_0x29798b(0xd1)],'user':u(_0xc8e208)},_0x4fe251)),_0x4769ed[_0x29798b(0x96)](_0x1f09a8[_0x29798b(0x8a)],{'schema':{'tags':[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0x94)],'description':_0x1f09a8[_0x29798b(0x85)],'access':_0x1f09a8[_0x29798b(0x8d)],'permissions':[_0x1f09a8[_0x29798b(0xa9)]]}},async _0x839e2d=>checkSystem({'user':u(_0x839e2d)},_0x4fe251));const _0x2dcde6={};_0x2dcde6[_0x29798b(0xce)]=[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],_0x2dcde6[_0x29798b(0x91)]=_0x1f09a8[_0x29798b(0xab)],_0x2dcde6[_0x29798b(0xc0)]=_0x1f09a8[_0x29798b(0xd2)],_0x2dcde6[_0x29798b(0xbc)]=_0x1f09a8[_0x29798b(0x8d)],_0x2dcde6[_0x29798b(0x98)]=[_0x1f09a8[_0x29798b(0xb8)]];const _0x32bd6a={};_0x32bd6a[_0x29798b(0xd0)]=_0x2dcde6,_0x4769ed[_0x29798b(0x96)](_0x29798b(0xc8),_0x32bd6a,async _0x570518=>getApiList({'user':u(_0x570518)},_0x4fe251));};}function _0x2100(){const _0x8e7ba7=['45TQjryY','qnrdB','Returns\x20the\x20system\x20audit\x20log\x20entries.','/api/system/audit/','Returns\x20system\x20settings\x20as\x20nested\x20JSON.','2148CFkNdS','Checks\x20the\x20availability\x20of\x20system\x20dependencies.','150ENowZK','Returns\x20all\x20available\x20dictionaries\x20registered\x20by\x20the\x20platform.','609405oCygRz','system:check','Get\x20audit\x20log','541626flnMVv','uHzWQ','wkSDs','PTElO','pQBmL','12365910bhqUSp','Returns\x20the\x20list\x20of\x20registered\x20platform\x20APIs.','Get\x20platform\x20dictionary','/api/system/check','UboWi','system','488vZNTdK','Updates\x20system\x20settings\x20using\x20flat\x20dot-notation\x20keys.','system:api:read','Update\x20system\x20settings','dictionaryName','Returns\x20system\x20logger\x20entries\x20for\x20the\x20requested\x20path.','Lidys','/api/system/settings','VOoXT','admin','access','CqslB','settings','1191wofEsC','description','params','fcore','/api/dictionaries/:name','logger','HYdoE','Returns\x20a\x20registered\x20platform\x20dictionary\x20by\x20name.','audit:read','/api/system/api-list','system:settings:update','uRAqw','Check\x20system\x20health','post','FwcCs','tags','KBsEw','schema','query','JSghP','/api/dictionaries','List\x20platform\x20dictionaries','body','117131tZpizV','pSTpK','bnhUt','2323211xlacvu','YZOkZ','Get\x20system\x20settings','List\x20APIs','QOCbz','BFhVt','oJOEl','pdawe','2003504QApFAi','zmaiw','BEEny','yhnFZ','system:logs:read','summary','system:settings:read','/api/system/logger/*','FwFBC','zaREg','get','LtiTC','permissions','user','Get\x20system\x20log'];_0x2100=function(){return _0x8e7ba7;};return _0x2100();}
1
+ const _0x5891bf=_0x90f9;(function(_0xd617c6,_0xc27c6e){const _0x571202=_0x90f9,_0x5a52e7=_0xd617c6();while(!![]){try{const _0xefef18=parseInt(_0x571202(0x9a))/0x1*(-parseInt(_0x571202(0xc6))/0x2)+parseInt(_0x571202(0xb3))/0x3+-parseInt(_0x571202(0xd6))/0x4+-parseInt(_0x571202(0xce))/0x5+parseInt(_0x571202(0xe0))/0x6+-parseInt(_0x571202(0x9c))/0x7+-parseInt(_0x571202(0xaa))/0x8*(-parseInt(_0x571202(0x9b))/0x9);if(_0xefef18===_0xc27c6e)break;else _0x5a52e7['push'](_0x5a52e7['shift']());}catch(_0xed1b37){_0x5a52e7['push'](_0x5a52e7['shift']());}}}(_0x3557,0x43209));import{getSystemSettings}from'./services/get-system-settings.js';import{updateSystemSettings}from'./services/update-system-settings.js';function _0x90f9(_0xb751f1,_0x453ce5){_0xb751f1=_0xb751f1-0x93;const _0x3557c3=_0x3557();let _0x90f9fe=_0x3557c3[_0xb751f1];return _0x90f9fe;}import{getAuditLog}from'./services/get-audit-log.js';import{checkSystem}from'./services/check-system.js';import{getApiList}from'./services/get-api-list.js';function _0x3557(){const _0x2503bf=['List\x20APIs','lWUrg','settings','MPgyA','gtAkB','/api/system/check','/api/system/audit/','admin','Get\x20platform\x20dictionary','system:settings:update','logger','Checks\x20the\x20availability\x20of\x20system\x20dependencies.','FDdby','17858hShFbZ','213813SUksJy','3444854gOwvvk','/api/dictionaries','Get\x20system\x20settings','summary','post','rWXvs','trrRV','SLFzz','Get\x20system\x20log','system:api:read','fCnsG','tLluZ','Returns\x20system\x20settings\x20as\x20nested\x20JSON.','hyWfY','384UMICNf','Returns\x20a\x20registered\x20platform\x20dictionary\x20by\x20name.','get','yipGP','iXIkX','system:check','/api/dictionaries/:name','description','access','1055163bcJgsG','user','Returns\x20system\x20logger\x20entries\x20for\x20the\x20requested\x20path.','jAGGk','dgkrD','system:settings:read','Updates\x20system\x20settings\x20using\x20flat\x20dot-notation\x20keys.','eWBMS','iTCKw','vkyOS','fcore','Returns\x20the\x20list\x20of\x20registered\x20platform\x20APIs.','/api/system/api-list','OewIw','JVPzK','params','dictionaryName','yUEJa','FVRMb','32IVedBN','system','FVUZD','audit:read','permissions','system:logs:read','Update\x20system\x20settings','Returns\x20the\x20system\x20audit\x20log\x20entries.','1903690oKmdTV','query','body','PamjZ','tags','List\x20platform\x20dictionaries','ORNfV','Returns\x20all\x20available\x20dictionaries\x20registered\x20by\x20the\x20platform.','1984788XrxoZL','Check\x20system\x20health','rXNbU','Get\x20audit\x20log','schema','/api/system/settings','khIZC','WeOSS','/api/system/logger/*','split','2626086yvRoVa','2|5|1|4|6|3|0|7','rDXns'];_0x3557=function(){return _0x2503bf;};return _0x3557();}import{getSystemLog}from'./services/get-system-log.js';import{listDictionaries}from'./services/list-dictionaries.js';import{getDictionary}from'./services/get-dictionary.js';import{systemSchemas}from'./schema.js';const u=_0x5cf289=>_0x5cf289[_0x5891bf(0xb4)];export function systemRoutes(_0x369a22){const _0x24d22e=_0x5891bf,_0x231f1e={};_0x231f1e[_0x24d22e(0xa7)]=_0x24d22e(0xe1),_0x231f1e[_0x24d22e(0xe7)]=_0x24d22e(0xe8),_0x231f1e[_0x24d22e(0xe4)]=_0x24d22e(0xbd),_0x231f1e[_0x24d22e(0xad)]=_0x24d22e(0xd7),_0x231f1e[_0x24d22e(0xb6)]=_0x24d22e(0x98),_0x231f1e[_0x24d22e(0xd1)]=_0x24d22e(0xaf),_0x231f1e[_0x24d22e(0xd4)]=_0x24d22e(0xdb),_0x231f1e[_0x24d22e(0xd8)]=_0x24d22e(0xc7),_0x231f1e[_0x24d22e(0xb7)]=_0x24d22e(0x9e),_0x231f1e[_0x24d22e(0xc5)]=_0x24d22e(0xa8),_0x231f1e[_0x24d22e(0xc4)]=_0x24d22e(0x94),_0x231f1e[_0x24d22e(0xc1)]=_0x24d22e(0xb8),_0x231f1e[_0x24d22e(0xa1)]=_0x24d22e(0x9d),_0x231f1e[_0x24d22e(0xa6)]=_0x24d22e(0xd5),_0x231f1e[_0x24d22e(0xc8)]=_0x24d22e(0xd9),_0x231f1e[_0x24d22e(0xba)]=_0x24d22e(0xcc),_0x231f1e[_0x24d22e(0xbc)]=_0x24d22e(0x96),_0x231f1e[_0x24d22e(0x99)]=_0x24d22e(0xb0),_0x231f1e[_0x24d22e(0xdc)]=_0x24d22e(0x95),_0x231f1e[_0x24d22e(0xa2)]=_0x24d22e(0xab),_0x231f1e[_0x24d22e(0xa9)]=_0x24d22e(0xde),_0x231f1e[_0x24d22e(0xa3)]=_0x24d22e(0xa4),_0x231f1e[_0x24d22e(0xae)]=_0x24d22e(0xb5),_0x231f1e[_0x24d22e(0xe6)]=_0x24d22e(0xcb),_0x231f1e[_0x24d22e(0xc0)]=_0x24d22e(0xbf),_0x231f1e[_0x24d22e(0xdd)]=_0x24d22e(0xe3),_0x231f1e[_0x24d22e(0xe2)]=_0x24d22e(0xbe),_0x231f1e[_0x24d22e(0xbb)]=_0x24d22e(0xa5);const _0x13a15b=_0x231f1e;return async _0x33b410=>{const _0x1b3200=_0x24d22e,_0x9ee801=_0x13a15b[_0x1b3200(0xa7)][_0x1b3200(0xdf)]('|');let _0x127676=0x0;while(!![]){switch(_0x9ee801[_0x127676++]){case'0':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xe7)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x1b3200(0xc7)],'summary':_0x13a15b[_0x1b3200(0xad)],'description':_0x13a15b[_0x1b3200(0xb6)],'access':_0x1b3200(0x94),'permissions':[_0x13a15b[_0x1b3200(0xd1)]]}},async _0x1d9201=>checkSystem({'user':u(_0x1d9201)},_0x369a22));continue;case'1':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xd4)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],'summary':_0x13a15b[_0x1b3200(0xb7)],'description':_0x13a15b[_0x1b3200(0xc5)],'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[_0x13a15b[_0x1b3200(0xc1)]]}},async _0x5cdf88=>getSystemSettings({..._0x5cdf88[_0x1b3200(0xc2)],'user':u(_0x5cdf88)},_0x369a22));continue;case'2':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xa1)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],'summary':_0x1b3200(0xd3),'description':_0x13a15b[_0x1b3200(0xa6)],'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[]}},async _0xd6a30d=>listDictionaries({'user':u(_0xd6a30d)},_0x369a22));continue;case'3':const _0x58f4c4={};_0x58f4c4[_0x1b3200(0xd2)]=[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],_0x58f4c4[_0x1b3200(0x9f)]=_0x13a15b[_0x1b3200(0xc8)],_0x58f4c4[_0x1b3200(0xb1)]=_0x1b3200(0xcd),_0x58f4c4[_0x1b3200(0xb2)]=_0x1b3200(0x94),_0x58f4c4[_0x1b3200(0xca)]=[_0x1b3200(0xc9)];const _0x4b6fd6={};_0x4b6fd6[_0x1b3200(0xda)]=_0x58f4c4,_0x33b410[_0x1b3200(0xac)](_0x1b3200(0x93),_0x4b6fd6,async _0x49e793=>getAuditLog({..._0x49e793[_0x1b3200(0xcf)],'user':u(_0x49e793)},_0x369a22));continue;case'4':_0x33b410[_0x1b3200(0xa0)](_0x13a15b[_0x1b3200(0xd4)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],'summary':_0x13a15b[_0x1b3200(0xba)],'description':_0x1b3200(0xb9),'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[_0x13a15b[_0x1b3200(0xbc)]],'body':systemSchemas[_0x1b3200(0xe5)]}},async _0x5d15c6=>updateSystemSettings({..._0x5d15c6[_0x1b3200(0xc2)],'patch':_0x5d15c6[_0x1b3200(0xd0)],'user':u(_0x5d15c6)},_0x369a22));continue;case'5':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0x99)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x1b3200(0xc7)],'summary':_0x13a15b[_0x1b3200(0xdc)],'description':_0x13a15b[_0x1b3200(0xa2)],'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[],'params':systemSchemas[_0x1b3200(0xc3)]}},async _0x24864f=>getDictionary({..._0x24864f[_0x1b3200(0xc2)],'user':u(_0x24864f)},_0x369a22));continue;case'6':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xa9)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],'summary':_0x13a15b[_0x1b3200(0xa3)],'description':_0x13a15b[_0x1b3200(0xae)],'access':_0x1b3200(0x94),'permissions':[_0x13a15b[_0x1b3200(0xe6)]],'params':systemSchemas[_0x1b3200(0x97)]}},async _0xd4facf=>getSystemLog({..._0xd4facf[_0x1b3200(0xcf)],..._0xd4facf[_0x1b3200(0xc2)],'user':u(_0xd4facf)},_0x369a22));continue;case'7':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xc0)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x1b3200(0xc7)],'summary':_0x13a15b[_0x1b3200(0xdd)],'description':_0x13a15b[_0x1b3200(0xe2)],'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[_0x13a15b[_0x1b3200(0xbb)]]}},async _0x4ed74c=>getApiList({'user':u(_0x4ed74c)},_0x369a22));continue;}break;}};}
@@ -1 +1 @@
1
- const _0xd8293e=_0x1ffe;function _0x4c9c(){const _0x48abdc=['Unknown','6306LyAAhh','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','2703yDaanD','String','108nCmRHG','210pkitvw','minLength','105054bGvmvQ','14648BtNZJU','330YdxqRY','Optional','295744GpjVzV','2024nhILKv','35870aQlkfy','Record','10680sKnGCM','maxLength','314GFOtFC','Object','name','pattern'];_0x4c9c=function(){return _0x48abdc;};return _0x4c9c();}function _0x1ffe(_0x3bd7c5,_0x121d4f){_0x3bd7c5=_0x3bd7c5-0x1b8;const _0x4c9c99=_0x4c9c();let _0x1ffe84=_0x4c9c99[_0x3bd7c5];return _0x1ffe84;}(function(_0x2e25b1,_0x5f5dcc){const _0xe8d30e=_0x1ffe,_0x3d2ea3=_0x2e25b1();while(!![]){try{const _0x31fd5e=-parseInt(_0xe8d30e(0x1c8))/0x1+parseInt(_0xe8d30e(0x1bc))/0x2*(parseInt(_0xe8d30e(0x1c3))/0x3)+parseInt(_0xe8d30e(0x1cc))/0x4+-parseInt(_0xe8d30e(0x1ca))/0x5*(parseInt(_0xe8d30e(0x1c1))/0x6)+parseInt(_0xe8d30e(0x1c6))/0x7*(-parseInt(_0xe8d30e(0x1c9))/0x8)+-parseInt(_0xe8d30e(0x1c5))/0x9*(parseInt(_0xe8d30e(0x1b8))/0xa)+-parseInt(_0xe8d30e(0x1cd))/0xb*(-parseInt(_0xe8d30e(0x1ba))/0xc);if(_0x31fd5e===_0x5f5dcc)break;else _0x3d2ea3['push'](_0x3d2ea3['shift']());}catch(_0x5f19b7){_0x3d2ea3['push'](_0x3d2ea3['shift']());}}}(_0x4c9c,0x1a107));import{Type}from'@sinclair/typebox';const _0x1ab7a3={};_0x1ab7a3[_0xd8293e(0x1c7)]=0x1,_0x1ab7a3[_0xd8293e(0x1bb)]=0x80,_0x1ab7a3[_0xd8293e(0x1bf)]=_0xd8293e(0x1c2);export const identifier=Type[_0xd8293e(0x1c4)](_0x1ab7a3);const _0x408833={};_0x408833[_0xd8293e(0x1be)]=identifier;const _0x3c8a69={};_0x3c8a69[_0xd8293e(0x1c7)]=0x1;const _0x1d86be={};_0x1d86be[_0xd8293e(0x1c7)]=0x1;export const systemSchemas={'dictionaryName':Type[_0xd8293e(0x1bd)](_0x408833),'settingsEntity':Type[_0xd8293e(0x1bd)]({'entity':Type[_0xd8293e(0x1cb)](identifier)}),'settings':Type[_0xd8293e(0x1b9)](Type[_0xd8293e(0x1c4)](_0x3c8a69),Type[_0xd8293e(0x1c0)]()),'logger':Type[_0xd8293e(0x1bd)]({'*':Type[_0xd8293e(0x1cb)](Type[_0xd8293e(0x1c4)](_0x1d86be))})};
1
+ const _0x9f464=_0x2540;(function(_0x3dd861,_0x1074a1){const _0x5ababf=_0x2540,_0xebd154=_0x3dd861();while(!![]){try{const _0x1062d8=-parseInt(_0x5ababf(0xed))/0x1+-parseInt(_0x5ababf(0xe6))/0x2*(-parseInt(_0x5ababf(0xe9))/0x3)+-parseInt(_0x5ababf(0xdf))/0x4*(parseInt(_0x5ababf(0xe7))/0x5)+-parseInt(_0x5ababf(0xdd))/0x6+parseInt(_0x5ababf(0xeb))/0x7+parseInt(_0x5ababf(0xe2))/0x8+-parseInt(_0x5ababf(0xdb))/0x9*(-parseInt(_0x5ababf(0xda))/0xa);if(_0x1062d8===_0x1074a1)break;else _0xebd154['push'](_0xebd154['shift']());}catch(_0x2b2289){_0xebd154['push'](_0xebd154['shift']());}}}(_0x1935,0x1dbba));import{Type}from'@sinclair/typebox';const _0x5d22d2={};function _0x2540(_0x1b8bcf,_0x2119a3){_0x1b8bcf=_0x1b8bcf-0xda;const _0x1935b5=_0x1935();let _0x254050=_0x1935b5[_0x1b8bcf];return _0x254050;}_0x5d22d2[_0x9f464(0xdc)]=0x1,_0x5d22d2[_0x9f464(0xe4)]=0x80,_0x5d22d2[_0x9f464(0xe1)]=_0x9f464(0xe5);export const identifier=Type[_0x9f464(0xe8)](_0x5d22d2);const _0x4f0531={};function _0x1935(){const _0x95ac25=['Optional','maxLength','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','2WKqNAS','285xinzvu','String','197931egtUWA','Object','524125swOUJx','Unknown','167248hFtUHg','10niGHzp','3255849RHqfFP','minLength','912006xsOvUO','name','4516sdwdzt','Record','pattern','22200owIqvD'];_0x1935=function(){return _0x95ac25;};return _0x1935();}_0x4f0531[_0x9f464(0xde)]=identifier;const _0x479737={};_0x479737[_0x9f464(0xdc)]=0x1;const _0x473b22={};_0x473b22[_0x9f464(0xdc)]=0x1;export const systemSchemas={'dictionaryName':Type[_0x9f464(0xea)](_0x4f0531),'settingsEntity':Type[_0x9f464(0xea)]({'entity':Type[_0x9f464(0xe3)](identifier)}),'settings':Type[_0x9f464(0xe0)](Type[_0x9f464(0xe8)](_0x479737),Type[_0x9f464(0xec)]()),'logger':Type[_0x9f464(0xea)]({'*':Type[_0x9f464(0xe3)](Type[_0x9f464(0xe8)](_0x473b22))})};
@@ -1 +1 @@
1
- (function(_0x5d01d9,_0x52167a){const _0x54aa42=_0x2c88,_0x28074a=_0x5d01d9();while(!![]){try{const _0x1e6767=-parseInt(_0x54aa42(0x17d))/0x1*(-parseInt(_0x54aa42(0x18d))/0x2)+parseInt(_0x54aa42(0x188))/0x3*(parseInt(_0x54aa42(0x17f))/0x4)+-parseInt(_0x54aa42(0x18b))/0x5*(-parseInt(_0x54aa42(0x180))/0x6)+parseInt(_0x54aa42(0x17b))/0x7*(parseInt(_0x54aa42(0x18e))/0x8)+parseInt(_0x54aa42(0x191))/0x9+-parseInt(_0x54aa42(0x17c))/0xa*(-parseInt(_0x54aa42(0x193))/0xb)+-parseInt(_0x54aa42(0x18a))/0xc*(parseInt(_0x54aa42(0x183))/0xd);if(_0x1e6767===_0x52167a)break;else _0x28074a['push'](_0x28074a['shift']());}catch(_0x3119d0){_0x28074a['push'](_0x28074a['shift']());}}}(_0x1b06,0x55719));function _0x1b06(){const _0x3ad982=['ping','redis','SFYHZ','IsHav','3363ehmFAI','status','12jihRtR','3185zWnmcL','query','6eoDlgK','132656WZRZfV','system:check','allSettled','1630620yvfmUd','fulfilled','11CDlfcy','SELECT\x201','133DbsTwj','3532390HZAPjG','59209TAgnJs','VpVxH','484YJRkxO','498LVoNOl','degraded','user','11253307XZZzrX'];_0x1b06=function(){return _0x3ad982;};return _0x1b06();}function _0x2c88(_0x132d0a,_0x5f7186){_0x132d0a=_0x132d0a-0x17b;const _0x1b0674=_0x1b06();let _0x2c888d=_0x1b0674[_0x132d0a];return _0x2c888d;}import{requireAdmin}from'../../utils/require-admin.js';export async function checkSystem(_0x27b03c,_0x242574){const _0x329fe9=_0x2c88,_0x57f1dd={};_0x57f1dd[_0x329fe9(0x186)]=_0x329fe9(0x194),_0x57f1dd[_0x329fe9(0x17e)]=function(_0x19dc44,_0x1f560b){return _0x19dc44===_0x1f560b;},_0x57f1dd[_0x329fe9(0x187)]=_0x329fe9(0x192);const _0x111c9e=_0x57f1dd;requireAdmin(_0x27b03c[_0x329fe9(0x182)],_0x329fe9(0x18f));const [_0x3200eb,_0x1e8cae]=await Promise[_0x329fe9(0x190)]([_0x242574['pg'][_0x329fe9(0x18c)](_0x111c9e[_0x329fe9(0x186)]),_0x242574[_0x329fe9(0x185)][_0x329fe9(0x184)]()]);return{'status':_0x111c9e[_0x329fe9(0x17e)](_0x3200eb[_0x329fe9(0x189)],_0x111c9e[_0x329fe9(0x187)])&&_0x111c9e[_0x329fe9(0x17e)](_0x1e8cae[_0x329fe9(0x189)],_0x111c9e[_0x329fe9(0x187)])?'ok':_0x329fe9(0x181),'pg':_0x3200eb[_0x329fe9(0x189)],'redis':_0x1e8cae[_0x329fe9(0x189)]};}
1
+ function _0x15f7(_0x113c82,_0x594863){_0x113c82=_0x113c82-0x1be;const _0x4dcfc7=_0x4dcf();let _0x15f75d=_0x4dcfc7[_0x113c82];return _0x15f75d;}(function(_0x4d0ef0,_0x570269){const _0x5bbb9b=_0x15f7,_0x30fde2=_0x4d0ef0();while(!![]){try{const _0x3ca0c0=parseInt(_0x5bbb9b(0x1c8))/0x1+parseInt(_0x5bbb9b(0x1c7))/0x2+-parseInt(_0x5bbb9b(0x1d7))/0x3+parseInt(_0x5bbb9b(0x1cc))/0x4*(parseInt(_0x5bbb9b(0x1be))/0x5)+parseInt(_0x5bbb9b(0x1c0))/0x6*(-parseInt(_0x5bbb9b(0x1c3))/0x7)+parseInt(_0x5bbb9b(0x1bf))/0x8*(parseInt(_0x5bbb9b(0x1d8))/0x9)+parseInt(_0x5bbb9b(0x1d3))/0xa*(-parseInt(_0x5bbb9b(0x1c2))/0xb);if(_0x3ca0c0===_0x570269)break;else _0x30fde2['push'](_0x30fde2['shift']());}catch(_0x36e512){_0x30fde2['push'](_0x30fde2['shift']());}}}(_0x4dcf,0xe5002));import{requireAdmin}from'../../utils/require-admin.js';export async function checkSystem(_0x4d1c09,_0x11dd3c){const _0x3d6bce=_0x15f7,_0x47b179={'sDFAT':function(_0x1e5a45,_0x1738fb,_0x3f8e62){return _0x1e5a45(_0x1738fb,_0x3f8e62);},'hTHMZ':_0x3d6bce(0x1ce),'aGgNE':function(_0x2606ed,_0xf91ab9){return _0x2606ed===_0xf91ab9;},'cDTeY':_0x3d6bce(0x1cd),'cRJlQ':function(_0x3a1880,_0x50810d){return _0x3a1880===_0x50810d;},'QXDzo':_0x3d6bce(0x1d6)};_0x47b179[_0x3d6bce(0x1d0)](requireAdmin,_0x4d1c09[_0x3d6bce(0x1ca)],_0x3d6bce(0x1d2));const [_0x3ce95b,_0x381e7f]=await Promise[_0x3d6bce(0x1c4)]([_0x11dd3c['pg'][_0x3d6bce(0x1cb)](_0x47b179[_0x3d6bce(0x1c1)]),_0x11dd3c[_0x3d6bce(0x1c5)][_0x3d6bce(0x1d1)]()]);return{'status':_0x47b179[_0x3d6bce(0x1c9)](_0x3ce95b[_0x3d6bce(0x1cf)],_0x47b179[_0x3d6bce(0x1c6)])&&_0x47b179[_0x3d6bce(0x1d4)](_0x381e7f[_0x3d6bce(0x1cf)],_0x47b179[_0x3d6bce(0x1c6)])?'ok':_0x47b179[_0x3d6bce(0x1d5)],'pg':_0x3ce95b[_0x3d6bce(0x1cf)],'redis':_0x381e7f[_0x3d6bce(0x1cf)]};}function _0x4dcf(){const _0x1bae6a=['6kXkbOm','hTHMZ','2011427tvixpm','10554621JZnVeV','allSettled','redis','cDTeY','2814006fGfmRP','1402766UagpIZ','aGgNE','user','query','788AWjQtS','fulfilled','SELECT\x201','status','sDFAT','ping','system:check','130GmqBkd','cRJlQ','QXDzo','degraded','623502EVwaHi','1900116LQQRdQ','40295rEhOgZ','24HFVmBE'];_0x4dcf=function(){return _0x1bae6a;};return _0x4dcf();}
@@ -1 +1 @@
1
- function _0x4ad3(){var _0x39a911=['DUBre','/api/templates','/files/*','286240axYsJz','/api/system/check','/api/dictionaries','5PYTrtE','/api/resource/:resource/:id','4025686RFVTnq','NhoPQ','1036728ZvAmMw','ejxQV','system:api:read','/api/user','user','YhUpv','GtzcK','VDFhV','15237856BlObKF','HgjFd','/api/resource/:resource','7543590NJOheM','1531960VTVUph','11558nfsUMG','/api/login','411pGbZBw','afvTT','/api/logout','MuWmf','150jCCMQt'];_0x4ad3=function(){return _0x39a911;};return _0x4ad3();}function _0x42e0(_0x90f189,_0x4148c6){_0x90f189=_0x90f189-0xaa;var _0x4ad34d=_0x4ad3();var _0x42e02b=_0x4ad34d[_0x90f189];return _0x42e02b;}(function(_0x433c4c,_0x16b279){var _0x10c2c9=_0x42e0,_0x4334ac=_0x433c4c();while(!![]){try{var _0x23f12c=-parseInt(_0x10c2c9(0xac))/0x1+-parseInt(_0x10c2c9(0xc0))/0x2*(parseInt(_0x10c2c9(0xc2))/0x3)+parseInt(_0x10c2c9(0xbf))/0x4*(parseInt(_0x10c2c9(0xaf))/0x5)+parseInt(_0x10c2c9(0xbe))/0x6+parseInt(_0x10c2c9(0xb1))/0x7+-parseInt(_0x10c2c9(0xbb))/0x8+-parseInt(_0x10c2c9(0xb3))/0x9*(-parseInt(_0x10c2c9(0xc6))/0xa);if(_0x23f12c===_0x16b279)break;else _0x4334ac['push'](_0x4334ac['shift']());}catch(_0xa57b34){_0x4334ac['push'](_0x4334ac['shift']());}}}(_0x4ad3,0xea81a));import{requireAdmin}from'../../utils/require-admin.js';export async function getApiList(_0x521232,_0xb1f468){var _0x45d644=_0x42e0,_0x470997={'VDFhV':function(_0x595e93,_0x392ba8,_0x4c0fc8){return _0x595e93(_0x392ba8,_0x4c0fc8);},'afvTT':_0x45d644(0xb5),'YhUpv':_0x45d644(0xc1),'NhoPQ':_0x45d644(0xc4),'HgjFd':_0x45d644(0xbd),'GtzcK':_0x45d644(0xae),'MuWmf':_0x45d644(0xab),'DUBre':_0x45d644(0xaa),'ejxQV':_0x45d644(0xad)};return _0x470997[_0x45d644(0xba)](requireAdmin,_0x521232[_0x45d644(0xb7)],_0x470997[_0x45d644(0xc3)]),[_0x470997[_0x45d644(0xb8)],_0x470997[_0x45d644(0xb2)],_0x45d644(0xb6),_0x470997[_0x45d644(0xbc)],_0x45d644(0xb0),_0x470997[_0x45d644(0xb9)],_0x470997[_0x45d644(0xc5)],_0x470997[_0x45d644(0xc7)],_0x470997[_0x45d644(0xb4)]];}
1
+ (function(_0x3ebabb,_0x310972){var _0x37bfb4=_0x3e9e,_0x155fa2=_0x3ebabb();while(!![]){try{var _0xa89827=-parseInt(_0x37bfb4(0x1e0))/0x1+parseInt(_0x37bfb4(0x1d9))/0x2+parseInt(_0x37bfb4(0x1db))/0x3*(parseInt(_0x37bfb4(0x1e2))/0x4)+-parseInt(_0x37bfb4(0x1d3))/0x5*(-parseInt(_0x37bfb4(0x1d4))/0x6)+parseInt(_0x37bfb4(0x1de))/0x7*(parseInt(_0x37bfb4(0x1cd))/0x8)+parseInt(_0x37bfb4(0x1cc))/0x9*(-parseInt(_0x37bfb4(0x1c8))/0xa)+-parseInt(_0x37bfb4(0x1c9))/0xb;if(_0xa89827===_0x310972)break;else _0x155fa2['push'](_0x155fa2['shift']());}catch(_0x4578f2){_0x155fa2['push'](_0x155fa2['shift']());}}}(_0x3acb,0x2343b));function _0x3acb(){var _0x748eec=['/api/user','547858pAJMCF','user','33hbPFDF','/api/logout','ASUxo','35VSMdCD','system:api:read','122205jhCpTS','jabkv','87756JQXlGr','pYvBZ','1390DHUPUn','2216500dYLhKN','/files/*','/api/templates','14895nRuXKw','17504BVcFvj','/api/resource/:resource/:id','/api/login','cOsqz','/api/resource/:resource','/api/system/check','20975Uejnvz','246nKGkTc','ODmsZ','/api/dictionaries','FMAlZ'];_0x3acb=function(){return _0x748eec;};return _0x3acb();}function _0x3e9e(_0x43d833,_0x59198f){_0x43d833=_0x43d833-0x1c7;var _0x3acb29=_0x3acb();var _0x3e9e91=_0x3acb29[_0x43d833];return _0x3e9e91;}import{requireAdmin}from'../../utils/require-admin.js';export async function getApiList(_0x12d939,_0x51c333){var _0x91ac79=_0x3e9e,_0x14db73={'ASUxo':function(_0x35a049,_0x36951d,_0x52a0af){return _0x35a049(_0x36951d,_0x52a0af);},'ODmsZ':_0x91ac79(0x1df),'pYvBZ':_0x91ac79(0x1ce),'cOsqz':_0x91ac79(0x1ca),'jabkv':_0x91ac79(0x1cb),'FMAlZ':_0x91ac79(0x1d2)};return _0x14db73[_0x91ac79(0x1dd)](requireAdmin,_0x12d939[_0x91ac79(0x1da)],_0x14db73[_0x91ac79(0x1d5)]),[_0x91ac79(0x1cf),_0x91ac79(0x1dc),_0x91ac79(0x1d8),_0x91ac79(0x1d1),_0x14db73[_0x91ac79(0x1c7)],_0x91ac79(0x1d6),_0x14db73[_0x91ac79(0x1d0)],_0x14db73[_0x91ac79(0x1e1)],_0x14db73[_0x91ac79(0x1d7)]];}
@@ -1 +1 @@
1
- function _0xcb77(){const _0x29af3e=['7pHEHqc','user','228884yDgfex','144126lmOypV','min','zQNwQ','SzYNy','25316zUGclh','ySyFh','161946MFMCHI','query','max','3144mLWSXk','58201UbyLoA','SELECT\x20*\x20FROM\x20admin.audit_log\x20ORDER\x20BY\x20id\x20DESC\x20LIMIT\x20$1\x20OFFSET\x20$2','page','1893348jQPzeR','limit','audit:read','20DcJfqR','21KEarZo','455vGIEUP','LJWlE','565872lgmpMs','rows'];_0xcb77=function(){return _0x29af3e;};return _0xcb77();}function _0xe268(_0x520623,_0x546b80){_0x520623=_0x520623-0x1b4;const _0xcb7793=_0xcb77();let _0xe26839=_0xcb7793[_0x520623];return _0xe26839;}(function(_0x540a2e,_0x2b53fa){const _0x3974da=_0xe268,_0x58fa8b=_0x540a2e();while(!![]){try{const _0x45b33c=parseInt(_0x3974da(0x1b6))/0x1*(-parseInt(_0x3974da(0x1b8))/0x2)+-parseInt(_0x3974da(0x1c6))/0x3+-parseInt(_0x3974da(0x1bd))/0x4*(-parseInt(_0x3974da(0x1cb))/0x5)+parseInt(_0x3974da(0x1b9))/0x6*(-parseInt(_0x3974da(0x1ca))/0x7)+-parseInt(_0x3974da(0x1b4))/0x8+-parseInt(_0x3974da(0x1bf))/0x9*(-parseInt(_0x3974da(0x1c9))/0xa)+parseInt(_0x3974da(0x1c3))/0xb*(parseInt(_0x3974da(0x1c2))/0xc);if(_0x45b33c===_0x2b53fa)break;else _0x58fa8b['push'](_0x58fa8b['shift']());}catch(_0x132e05){_0x58fa8b['push'](_0x58fa8b['shift']());}}}(_0xcb77,0x674fa));import{requireAdmin}from'../../utils/require-admin.js';export async function getAuditLog(_0x3cf483,_0x9a69ea){const _0xf34866=_0xe268,_0x45c976={'ySyFh':function(_0x18a506,_0xc7202d,_0x528452){return _0x18a506(_0xc7202d,_0x528452);},'zQNwQ':_0xf34866(0x1c8),'SzYNy':function(_0x5cf070,_0x4aa9b7){return _0x5cf070*_0x4aa9b7;},'LJWlE':function(_0x12ea7c,_0x5bfb5c){return _0x12ea7c-_0x5bfb5c;}};_0x45c976[_0xf34866(0x1be)](requireAdmin,_0x3cf483[_0xf34866(0x1b7)],_0x45c976[_0xf34866(0x1bb)]);const _0x40f131=Math[_0xf34866(0x1ba)](Math[_0xf34866(0x1c1)](_0x3cf483[_0xf34866(0x1c7)]??0x32,0x1),0xc8),_0x387c2e=_0x45c976[_0xf34866(0x1bc)](Math[_0xf34866(0x1c1)](_0x45c976[_0xf34866(0x1cc)](_0x3cf483[_0xf34866(0x1c5)]??0x1,0x1),0x0),_0x40f131),_0x3545f4=await _0x9a69ea['pg'][_0xf34866(0x1c0)](_0xf34866(0x1c4),[_0x40f131,_0x387c2e]),_0x3e561f={};return _0x3e561f[_0xf34866(0x1b5)]=_0x3545f4[_0xf34866(0x1b5)],_0x3e561f[_0xf34866(0x1c5)]=_0x3cf483[_0xf34866(0x1c5)]??0x1,_0x3e561f[_0xf34866(0x1c7)]=_0x40f131,_0x3e561f;}
1
+ function _0x38ee(){const _0x191119=['max','295dISJpd','query','audit:read','limit','rows','11046reWYPl','3798192TvDXlC','2512OxiMmr','page','5556803ulNOwM','user','1179253FswfvS','KXjcM','98308cokpUd','DjTAR','6zQfNWP','2946390pLKRvI','min','156wRvaRp','27639pYCKyg','SELECT\x20*\x20FROM\x20admin.audit_log\x20ORDER\x20BY\x20id\x20DESC\x20LIMIT\x20$1\x20OFFSET\x20$2','CPXRn','11laZsAA','945TrIZbo','JzdGq'];_0x38ee=function(){return _0x191119;};return _0x38ee();}(function(_0x76e224,_0x5c61e8){const _0x275523=_0x3fb3,_0x1940cd=_0x76e224();while(!![]){try{const _0x2c52bb=-parseInt(_0x275523(0x18b))/0x1+-parseInt(_0x275523(0x19f))/0x2*(parseInt(_0x275523(0x197))/0x3)+-parseInt(_0x275523(0x18d))/0x4*(parseInt(_0x275523(0x19a))/0x5)+-parseInt(_0x275523(0x18f))/0x6*(-parseInt(_0x275523(0x1a3))/0x7)+parseInt(_0x275523(0x1a1))/0x8*(parseInt(_0x275523(0x193))/0x9)+parseInt(_0x275523(0x190))/0xa*(-parseInt(_0x275523(0x196))/0xb)+parseInt(_0x275523(0x1a0))/0xc*(parseInt(_0x275523(0x192))/0xd);if(_0x2c52bb===_0x5c61e8)break;else _0x1940cd['push'](_0x1940cd['shift']());}catch(_0x2f26ca){_0x1940cd['push'](_0x1940cd['shift']());}}}(_0x38ee,0xd9edb));import{requireAdmin}from'../../utils/require-admin.js';function _0x3fb3(_0x24324c,_0x333e78){_0x24324c=_0x24324c-0x18a;const _0x38eed3=_0x38ee();let _0x3fb32c=_0x38eed3[_0x24324c];return _0x3fb32c;}export async function getAuditLog(_0x205afc,_0x3d8bcf){const _0x4cf5eb=_0x3fb3,_0x2b1a60={'JzdGq':function(_0x186ceb,_0x2ecdef,_0xb6e4da){return _0x186ceb(_0x2ecdef,_0xb6e4da);},'DjTAR':_0x4cf5eb(0x19c),'KXjcM':function(_0x330220,_0x6165d2){return _0x330220*_0x6165d2;},'CPXRn':_0x4cf5eb(0x194)};_0x2b1a60[_0x4cf5eb(0x198)](requireAdmin,_0x205afc[_0x4cf5eb(0x18a)],_0x2b1a60[_0x4cf5eb(0x18e)]);const _0x4a46ce=Math[_0x4cf5eb(0x191)](Math[_0x4cf5eb(0x199)](_0x205afc[_0x4cf5eb(0x19d)]??0x32,0x1),0xc8),_0x482f9a=_0x2b1a60[_0x4cf5eb(0x18c)](Math[_0x4cf5eb(0x199)]((_0x205afc[_0x4cf5eb(0x1a2)]??0x1)-0x1,0x0),_0x4a46ce),_0x16e56d=await _0x3d8bcf['pg'][_0x4cf5eb(0x19b)](_0x2b1a60[_0x4cf5eb(0x195)],[_0x4a46ce,_0x482f9a]),_0x1d0c17={};return _0x1d0c17[_0x4cf5eb(0x19e)]=_0x16e56d[_0x4cf5eb(0x19e)],_0x1d0c17[_0x4cf5eb(0x1a2)]=_0x205afc[_0x4cf5eb(0x1a2)]??0x1,_0x1d0c17[_0x4cf5eb(0x19d)]=_0x4a46ce,_0x1d0c17;}
@@ -1 +1 @@
1
- function _0x1754(){var _0x4cd952=['225VThBLB','169497aPdDBQ','name','4PGHEGm','17588HVbgiM','get','148335INvSXE','120smFCJo','121105sbQjsu','1468896VSAnnE','dictionary','18yFRjfk','5303130pVLwwp','10bypaPt','312310ZAejdH'];_0x1754=function(){return _0x4cd952;};return _0x1754();}(function(_0x42bcf8,_0x5d3935){var _0x7a0656=_0x7258,_0xf181b5=_0x42bcf8();while(!![]){try{var _0x3eea39=parseInt(_0x7a0656(0x164))/0x1*(-parseInt(_0x7a0656(0x15f))/0x2)+-parseInt(_0x7a0656(0x15c))/0x3*(parseInt(_0x7a0656(0x160))/0x4)+parseInt(_0x7a0656(0x15b))/0x5*(parseInt(_0x7a0656(0x167))/0x6)+parseInt(_0x7a0656(0x168))/0x7+parseInt(_0x7a0656(0x165))/0x8+-parseInt(_0x7a0656(0x15d))/0x9*(parseInt(_0x7a0656(0x15a))/0xa)+-parseInt(_0x7a0656(0x162))/0xb*(parseInt(_0x7a0656(0x163))/0xc);if(_0x3eea39===_0x5d3935)break;else _0xf181b5['push'](_0xf181b5['shift']());}catch(_0x270e53){_0xf181b5['push'](_0xf181b5['shift']());}}}(_0x1754,0x625e8));function _0x7258(_0x2cbdcc,_0x4a362d){_0x2cbdcc=_0x2cbdcc-0x15a;var _0x175473=_0x1754();var _0x7258ff=_0x175473[_0x2cbdcc];return _0x7258ff;}export async function getDictionary(_0x41dcc2,_0x11a2bb){var _0x591e3c=_0x7258;return _0x11a2bb[_0x591e3c(0x166)][_0x591e3c(0x161)](_0x41dcc2[_0x591e3c(0x15e)]);}
1
+ function _0x4deb(){var _0x4e5f75=['21714bccOSZ','dictionary','name','get','6393uIrKGY','37345UhwvjM','16YzrQHR','11MvAqSv','2587VxLSgT','2379937ZPFQoM','11cTpuDq','51982HhxSBl','60Qxwlgr','13256340LOAYlU','1732rEWBSA','12NAipak','1676619TBMbmn'];_0x4deb=function(){return _0x4e5f75;};return _0x4deb();}(function(_0x5ef49e,_0x589cfd){var _0x16a472=_0x3dd2,_0x30b98b=_0x5ef49e();while(!![]){try{var _0x47a28c=-parseInt(_0x16a472(0x8d))/0x1*(-parseInt(_0x16a472(0x97))/0x2)+-parseInt(_0x16a472(0x9b))/0x3*(parseInt(_0x16a472(0x94))/0x4)+parseInt(_0x16a472(0x8b))/0x5*(-parseInt(_0x16a472(0x95))/0x6)+parseInt(_0x16a472(0x8f))/0x7*(parseInt(_0x16a472(0x8c))/0x8)+-parseInt(_0x16a472(0x96))/0x9*(parseInt(_0x16a472(0x92))/0xa)+-parseInt(_0x16a472(0x90))/0xb*(-parseInt(_0x16a472(0x93))/0xc)+-parseInt(_0x16a472(0x8e))/0xd*(-parseInt(_0x16a472(0x91))/0xe);if(_0x47a28c===_0x589cfd)break;else _0x30b98b['push'](_0x30b98b['shift']());}catch(_0x16d885){_0x30b98b['push'](_0x30b98b['shift']());}}}(_0x4deb,0x8f740));function _0x3dd2(_0xe5a67c,_0x58abf1){_0xe5a67c=_0xe5a67c-0x8b;var _0x4debda=_0x4deb();var _0x3dd231=_0x4debda[_0xe5a67c];return _0x3dd231;}export async function getDictionary(_0x220001,_0x5d4163){var _0x56f4dd=_0x3dd2;return _0x5d4163[_0x56f4dd(0x98)][_0x56f4dd(0x9a)](_0x220001[_0x56f4dd(0x99)]);}
@@ -1 +1 @@
1
- function _0x1fd8(){var _0x33df93=['1884708xaKwqP','769120RqMzDn','353701QeXCHK','83027zSUaex','9nZCWCJ','200IPrGwq','shysV','3YeLJbw','File\x20logger\x20backend','12734770zdoQyN','202185yImThz','1233884rKSOMY'];_0x1fd8=function(){return _0x33df93;};return _0x1fd8();}(function(_0x13ddfd,_0x33cb00){var _0x575cd8=_0x25e1,_0x25c147=_0x13ddfd();while(!![]){try{var _0x4620b2=-parseInt(_0x575cd8(0x131))/0x1+-parseInt(_0x575cd8(0x130))/0x2+parseInt(_0x575cd8(0x12a))/0x3*(parseInt(_0x575cd8(0x12e))/0x4)+-parseInt(_0x575cd8(0x12d))/0x5+-parseInt(_0x575cd8(0x12f))/0x6+-parseInt(_0x575cd8(0x132))/0x7*(parseInt(_0x575cd8(0x134))/0x8)+parseInt(_0x575cd8(0x133))/0x9*(parseInt(_0x575cd8(0x12c))/0xa);if(_0x4620b2===_0x33cb00)break;else _0x25c147['push'](_0x25c147['shift']());}catch(_0x3a3969){_0x25c147['push'](_0x25c147['shift']());}}}(_0x1fd8,0x2f05f));import{unsupported}from'../../utils/unsupported.js';function _0x25e1(_0x1c9e8e,_0x2c9d9a){_0x1c9e8e=_0x1c9e8e-0x12a;var _0x1fd84a=_0x1fd8();var _0x25e1d6=_0x1fd84a[_0x1c9e8e];return _0x25e1d6;}export async function getSystemLog(_0xe51d0f,_0x431518){var _0x6696af=_0x25e1,_0x312ffb={'shysV':function(_0x58e7ae,_0x37e7ee){return _0x58e7ae(_0x37e7ee);}};return _0x312ffb[_0x6696af(0x135)](unsupported,_0x6696af(0x12b));}
1
+ function _0x5c5a(){var _0x4239e3=['9710408FvaWYk','2zTKOAQ','9052590cRFTLh','7hASbLb','23874895OWFVFI','282231wtAEHK','RbJXF','admTi','293584FjFgeh','File\x20logger\x20backend','9QbdmRs','1986456yeLAKz','373645gelowV','28ywxjOx'];_0x5c5a=function(){return _0x4239e3;};return _0x5c5a();}function _0x1202(_0x3fecfb,_0x5429d3){_0x3fecfb=_0x3fecfb-0x1b6;var _0x5c5ac4=_0x5c5a();var _0x120286=_0x5c5ac4[_0x3fecfb];return _0x120286;}(function(_0x557bb9,_0x48059e){var _0x5234f8=_0x1202,_0x36b52c=_0x557bb9();while(!![]){try{var _0x5c474e=parseInt(_0x5234f8(0x1bd))/0x1+parseInt(_0x5234f8(0x1b6))/0x2*(parseInt(_0x5234f8(0x1ba))/0x3)+-parseInt(_0x5234f8(0x1c2))/0x4*(-parseInt(_0x5234f8(0x1c1))/0x5)+-parseInt(_0x5234f8(0x1c0))/0x6+parseInt(_0x5234f8(0x1b8))/0x7*(-parseInt(_0x5234f8(0x1c3))/0x8)+-parseInt(_0x5234f8(0x1bf))/0x9*(parseInt(_0x5234f8(0x1b7))/0xa)+parseInt(_0x5234f8(0x1b9))/0xb;if(_0x5c474e===_0x48059e)break;else _0x36b52c['push'](_0x36b52c['shift']());}catch(_0x200b81){_0x36b52c['push'](_0x36b52c['shift']());}}}(_0x5c5a,0x9a121));import{unsupported}from'../../utils/unsupported.js';export async function getSystemLog(_0x1d23a4,_0x29e45d){var _0x3131ca=_0x1202,_0x11a329={'admTi':function(_0x41114f,_0x4af3c7){return _0x41114f(_0x4af3c7);},'RbJXF':_0x3131ca(0x1be)};return _0x11a329[_0x3131ca(0x1bc)](unsupported,_0x11a329[_0x3131ca(0x1bb)]);}
@@ -1 +1 @@
1
- (function(_0x3b3aa6,_0x107991){const _0x132c89=_0x20a9,_0x3de76a=_0x3b3aa6();while(!![]){try{const _0x4b6809=parseInt(_0x132c89(0xc0))/0x1*(parseInt(_0x132c89(0xc9))/0x2)+-parseInt(_0x132c89(0xc8))/0x3*(-parseInt(_0x132c89(0xcc))/0x4)+parseInt(_0x132c89(0xbd))/0x5*(parseInt(_0x132c89(0xc7))/0x6)+-parseInt(_0x132c89(0xce))/0x7*(-parseInt(_0x132c89(0xcd))/0x8)+-parseInt(_0x132c89(0xcb))/0x9*(parseInt(_0x132c89(0xbe))/0xa)+parseInt(_0x132c89(0xcf))/0xb+-parseInt(_0x132c89(0xd1))/0xc;if(_0x4b6809===_0x107991)break;else _0x3de76a['push'](_0x3de76a['shift']());}catch(_0x4f9a6d){_0x3de76a['push'](_0x3de76a['shift']());}}}(_0x30f2,0xe04f0));function _0x30f2(){const _0x2639ed=['Hqgqk','82233btppoN','40fYQaCr','144896PmEOPv','301agiyRV','6534099jCrkyv','user','36251592ydTuDY','PGrds','system:settings:read','rows','93095VbnnAk','1010iLlrZp','key','694JYlZPZ','split','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20key,\x20value\x0a\x20\x20\x20\x20\x20\x20FROM\x20admin.settings\x0a\x20\x20\x20\x20\x20\x20WHERE\x20resource\x20=\x20\x27system\x27\x20AND\x20resource_id\x20IS\x20NULL\x0a\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20key\x0a\x20\x20\x20\x20','reduce','slice','query','value','276vmsPjj','316743deNGDn','4546ToNZOn'];_0x30f2=function(){return _0x2639ed;};return _0x30f2();}import{requireAdmin}from'../../utils/require-admin.js';function _0x20a9(_0x3cafbe,_0x2c5a97){_0x3cafbe=_0x3cafbe-0xbc;const _0x30f21b=_0x30f2();let _0x20a9ff=_0x30f21b[_0x3cafbe];return _0x20a9ff;}export async function getSystemSettings(_0x22da99,_0x1c343c){const _0x3fdb3f=_0x20a9,_0x19b7dc={'Hqgqk':function(_0xadef61,_0x3ac4f9){return _0xadef61(_0x3ac4f9);},'PGrds':function(_0x56785b,_0x502626,_0x2c5be2){return _0x56785b(_0x502626,_0x2c5be2);}};_0x19b7dc[_0x3fdb3f(0xd2)](requireAdmin,_0x22da99[_0x3fdb3f(0xd0)],_0x3fdb3f(0xd3));const _0x84d14a=await _0x1c343c['pg'][_0x3fdb3f(0xc5)](_0x3fdb3f(0xc2));return _0x84d14a[_0x3fdb3f(0xbc)][_0x3fdb3f(0xc3)]((_0x44ac15,_0x3dc9db)=>{const _0x2cd11e=_0x3fdb3f,_0x3e65e9=_0x19b7dc[_0x2cd11e(0xca)](String,_0x3dc9db[_0x2cd11e(0xbf)])[_0x2cd11e(0xc1)]('.');let _0x4bdce6=_0x44ac15;for(const _0x46d5cf of _0x3e65e9[_0x2cd11e(0xc4)](0x0,-0x1)){_0x4bdce6[_0x46d5cf]??={},_0x4bdce6=_0x4bdce6[_0x46d5cf];}return _0x4bdce6[_0x3e65e9['at'](-0x1)]=_0x3dc9db[_0x2cd11e(0xc6)],_0x44ac15;},{});}
1
+ (function(_0x31e350,_0x3d0dae){const _0x56d259=_0x2213,_0x559606=_0x31e350();while(!![]){try{const _0x5f0a5d=parseInt(_0x56d259(0x12b))/0x1*(-parseInt(_0x56d259(0x132))/0x2)+-parseInt(_0x56d259(0x139))/0x3*(-parseInt(_0x56d259(0x13a))/0x4)+parseInt(_0x56d259(0x137))/0x5+-parseInt(_0x56d259(0x131))/0x6+parseInt(_0x56d259(0x12a))/0x7+parseInt(_0x56d259(0x135))/0x8*(-parseInt(_0x56d259(0x13f))/0x9)+-parseInt(_0x56d259(0x130))/0xa*(parseInt(_0x56d259(0x133))/0xb);if(_0x5f0a5d===_0x3d0dae)break;else _0x559606['push'](_0x559606['shift']());}catch(_0x40c830){_0x559606['push'](_0x559606['shift']());}}}(_0x5006,0x6cb55));import{requireAdmin}from'../../utils/require-admin.js';export async function getSystemSettings(_0x3cff9c,_0x3e99f9){const _0x2f8c7b=_0x2213,_0x2c3df4={'ZySQh':function(_0x1b0660,_0x919c22){return _0x1b0660(_0x919c22);},'sGbaj':function(_0x532bd8,_0x321bc8,_0x47e8e8){return _0x532bd8(_0x321bc8,_0x47e8e8);}};_0x2c3df4[_0x2f8c7b(0x129)](requireAdmin,_0x3cff9c[_0x2f8c7b(0x13c)],_0x2f8c7b(0x138));const _0x53a50b=await _0x3e99f9['pg'][_0x2f8c7b(0x12c)](_0x2f8c7b(0x13e));return _0x53a50b[_0x2f8c7b(0x134)][_0x2f8c7b(0x136)]((_0x2c96c9,_0x488cce)=>{const _0x5619d0=_0x2f8c7b,_0x446535=_0x2c3df4[_0x5619d0(0x12f)](String,_0x488cce[_0x5619d0(0x12e)])[_0x5619d0(0x13b)]('.');let _0x577f0d=_0x2c96c9;for(const _0x190888 of _0x446535[_0x5619d0(0x13d)](0x0,-0x1)){_0x577f0d[_0x190888]??={},_0x577f0d=_0x577f0d[_0x190888];}return _0x577f0d[_0x446535['at'](-0x1)]=_0x488cce[_0x5619d0(0x12d)],_0x2c96c9;},{});}function _0x2213(_0x3bcdc8,_0x55e3f9){_0x3bcdc8=_0x3bcdc8-0x129;const _0x500699=_0x5006();let _0x22134f=_0x500699[_0x3bcdc8];return _0x22134f;}function _0x5006(){const _0x8bcaad=['ZySQh','126920caRGww','3917400dElPZV','261666PeRFGJ','44fywZyH','rows','8TSdOsd','reduce','252900pwgOFS','system:settings:read','114dNlvws','90564rFrECO','split','user','slice','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20key,\x20value\x0a\x20\x20\x20\x20\x20\x20FROM\x20admin.settings\x0a\x20\x20\x20\x20\x20\x20WHERE\x20resource\x20=\x20\x27system\x27\x20AND\x20resource_id\x20IS\x20NULL\x0a\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20key\x0a\x20\x20\x20\x20','3954294OdoIxT','sGbaj','5657386iXAvYe','1XSfGnj','query','value','key'];_0x5006=function(){return _0x8bcaad;};return _0x5006();}
@@ -1 +1 @@
1
- (function(_0x5623c6,_0xf667fe){var _0x4745b1=_0x2ada,_0x522499=_0x5623c6();while(!![]){try{var _0x2c499d=parseInt(_0x4745b1(0xa0))/0x1+parseInt(_0x4745b1(0x9a))/0x2+parseInt(_0x4745b1(0x99))/0x3*(-parseInt(_0x4745b1(0x9f))/0x4)+-parseInt(_0x4745b1(0x96))/0x5*(parseInt(_0x4745b1(0xa2))/0x6)+-parseInt(_0x4745b1(0xa1))/0x7*(-parseInt(_0x4745b1(0x97))/0x8)+-parseInt(_0x4745b1(0x9c))/0x9+parseInt(_0x4745b1(0x98))/0xa*(parseInt(_0x4745b1(0x9b))/0xb);if(_0x2c499d===_0xf667fe)break;else _0x522499['push'](_0x522499['shift']());}catch(_0x447f7e){_0x522499['push'](_0x522499['shift']());}}}(_0x3da7,0x6efe3));function _0x2ada(_0x1760a9,_0x442b29){_0x1760a9=_0x1760a9-0x96;var _0x3da7af=_0x3da7();var _0x2ada70=_0x3da7af[_0x1760a9];return _0x2ada70;}function _0x3da7(){var _0x545183=['list','dictionary','4nikpgP','477632EbBgbN','10717EOvLxx','2131824EOgIUT','5zAPyuM','3688gjZZhH','2390jilqHn','11766SRzLxr','634312jrHSyB','1408hdwgQg','6455862eExSim'];_0x3da7=function(){return _0x545183;};return _0x3da7();}export async function listDictionaries(_0x3e3c4f,_0x5c7eb6){var _0x5709c5=_0x2ada;return _0x5c7eb6[_0x5709c5(0x9e)][_0x5709c5(0x9d)]();}
1
+ (function(_0x397e82,_0x1a97c2){var _0x199900=_0x1409,_0x4a91ad=_0x397e82();while(!![]){try{var _0x2bee45=-parseInt(_0x199900(0xd9))/0x1*(parseInt(_0x199900(0xde))/0x2)+parseInt(_0x199900(0xda))/0x3*(-parseInt(_0x199900(0xdf))/0x4)+parseInt(_0x199900(0xd7))/0x5*(parseInt(_0x199900(0xdd))/0x6)+parseInt(_0x199900(0xe4))/0x7*(-parseInt(_0x199900(0xe0))/0x8)+parseInt(_0x199900(0xdc))/0x9+-parseInt(_0x199900(0xdb))/0xa+-parseInt(_0x199900(0xe1))/0xb*(-parseInt(_0x199900(0xe2))/0xc);if(_0x2bee45===_0x1a97c2)break;else _0x4a91ad['push'](_0x4a91ad['shift']());}catch(_0x10abbe){_0x4a91ad['push'](_0x4a91ad['shift']());}}}(_0x1ad2,0x3b4ee));function _0x1ad2(){var _0x17d3ba=['7YIwROZ','5OjsEJp','list','28031fVMvDn','18xdQhcF','146110lWHxQV','949248oDndKs','2773218fMAYOp','8mmtyJL','254824oxqpxJ','2473976QYhVOk','407iAzDUY','160044iuMhwB','dictionary'];_0x1ad2=function(){return _0x17d3ba;};return _0x1ad2();}function _0x1409(_0x2fc2ad,_0x148faf){_0x2fc2ad=_0x2fc2ad-0xd7;var _0x1ad20e=_0x1ad2();var _0x140963=_0x1ad20e[_0x2fc2ad];return _0x140963;}export async function listDictionaries(_0x1a9b7c,_0x35642e){var _0xf34856=_0x1409;return _0x35642e[_0xf34856(0xe3)][_0xf34856(0xd8)]();}
@@ -1 +1 @@
1
- (function(_0x2901ab,_0x25405e){const _0x363c7a=_0x428c,_0x114338=_0x2901ab();while(!![]){try{const _0x187f15=parseInt(_0x363c7a(0x1a8))/0x1*(-parseInt(_0x363c7a(0x1b3))/0x2)+-parseInt(_0x363c7a(0x1aa))/0x3+parseInt(_0x363c7a(0x1a9))/0x4*(parseInt(_0x363c7a(0x1ba))/0x5)+parseInt(_0x363c7a(0x1af))/0x6+parseInt(_0x363c7a(0x1b0))/0x7*(-parseInt(_0x363c7a(0x1b1))/0x8)+-parseInt(_0x363c7a(0x1c0))/0x9*(-parseInt(_0x363c7a(0x1bb))/0xa)+parseInt(_0x363c7a(0x1ab))/0xb;if(_0x187f15===_0x25405e)break;else _0x114338['push'](_0x114338['shift']());}catch(_0x5e0225){_0x114338['push'](_0x114338['shift']());}}}(_0x3e23,0x857a0));function _0x428c(_0x1fd78f,_0x1a9756){_0x1fd78f=_0x1fd78f-0x1a6;const _0x3e23c5=_0x3e23();let _0x428cfe=_0x3e23c5[_0x1fd78f];return _0x428cfe;}function _0x3e23(){const _0x17da18=['JyhhP','5isZksK','327010xcURiK','query','trim','Settings\x20patch\x20is\x20empty','Invalid\x20setting\x20key:\x20','63eQZQVh','success','keys','1PQdPEx','3416772GmykvA','2377464yqKzTR','19734649kQvwsz','system:settings:update','patch','user','1735362ZYDTYZ','3353WytFrG','16424fpSACg','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.settings\x20(resource,\x20resource_id,\x20key,\x20value,\x20updated_by)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20(\x27system\x27,\x20NULL,\x20$1,\x20$2::jsonb,\x20$3)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(resource,\x20resource_id,\x20key)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DO\x20UPDATE\x20SET\x20value\x20=\x20EXCLUDED.value,\x20updated_by\x20=\x20EXCLUDED.updated_by,\x20updated_at\x20=\x20now()\x0a\x20\x20\x20\x20\x20\x20\x20\x20','1687582sFwRKo','entries','stringify','includes','length','XAGEy'];_0x3e23=function(){return _0x17da18;};return _0x3e23();}import{requireAdmin}from'../../utils/require-admin.js';import{ValidationError}from'../../../errors.js';export async function updateSystemSettings(_0x4954c7,_0x2af17c){const _0x203ce7=_0x428c,_0x2335af={};_0x2335af[_0x203ce7(0x1b8)]=_0x203ce7(0x1ac),_0x2335af[_0x203ce7(0x1b9)]=_0x203ce7(0x1be);const _0x1b8007=_0x2335af;requireAdmin(_0x4954c7[_0x203ce7(0x1ae)],_0x1b8007[_0x203ce7(0x1b8)]);if(!Object[_0x203ce7(0x1a7)](_0x4954c7[_0x203ce7(0x1ad)])[_0x203ce7(0x1b7)])throw new ValidationError(_0x1b8007[_0x203ce7(0x1b9)]);for(const [_0x2c8c70,_0x597cd7]of Object[_0x203ce7(0x1b4)](_0x4954c7[_0x203ce7(0x1ad)])){if(!_0x2c8c70[_0x203ce7(0x1bd)]()||_0x2c8c70[_0x203ce7(0x1b6)]('..'))throw new ValidationError(_0x203ce7(0x1bf)+_0x2c8c70);await _0x2af17c['pg'][_0x203ce7(0x1bc)](_0x203ce7(0x1b2),[_0x2c8c70,JSON[_0x203ce7(0x1b5)](_0x597cd7),_0x4954c7[_0x203ce7(0x1ae)]['id']]);}const _0x1f8160={};return _0x1f8160[_0x203ce7(0x1a6)]=!![],_0x1f8160;}
1
+ function _0x4a76(_0x1e37f5,_0x3de284){_0x1e37f5=_0x1e37f5-0x100;const _0x25fd7c=_0x25fd();let _0x4a76fc=_0x25fd7c[_0x1e37f5];return _0x4a76fc;}(function(_0x488ea3,_0x293ad1){const _0x1c5306=_0x4a76,_0x2049e8=_0x488ea3();while(!![]){try{const _0x3381ff=-parseInt(_0x1c5306(0x10c))/0x1+-parseInt(_0x1c5306(0x10d))/0x2*(parseInt(_0x1c5306(0x10f))/0x3)+parseInt(_0x1c5306(0x103))/0x4*(-parseInt(_0x1c5306(0x10a))/0x5)+-parseInt(_0x1c5306(0x106))/0x6+-parseInt(_0x1c5306(0x10b))/0x7+-parseInt(_0x1c5306(0x10e))/0x8*(parseInt(_0x1c5306(0x102))/0x9)+parseInt(_0x1c5306(0x113))/0xa;if(_0x3381ff===_0x293ad1)break;else _0x2049e8['push'](_0x2049e8['shift']());}catch(_0x48d1bb){_0x2049e8['push'](_0x2049e8['shift']());}}}(_0x25fd,0x58ea3));function _0x25fd(){const _0x459b34=['length','2499024ehhlSD','query','entries','patch','3815hTlqKG','1806364qqCNlY','26531DfFJVb','218378HUhnlR','8nYdyAI','3nbIaSD','Settings\x20patch\x20is\x20empty','user','includes','21218620DhCITx','keys','Invalid\x20setting\x20key:\x20','otRKi','iXkBW','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.settings\x20(resource,\x20resource_id,\x20key,\x20value,\x20updated_by)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20(\x27system\x27,\x20NULL,\x20$1,\x20$2::jsonb,\x20$3)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(resource,\x20resource_id,\x20key)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DO\x20UPDATE\x20SET\x20value\x20=\x20EXCLUDED.value,\x20updated_by\x20=\x20EXCLUDED.updated_by,\x20updated_at\x20=\x20now()\x0a\x20\x20\x20\x20\x20\x20\x20\x20','system:settings:update','trim','success','3829491tNiVUY','2736sBNQth','stringify'];_0x25fd=function(){return _0x459b34;};return _0x25fd();}import{requireAdmin}from'../../utils/require-admin.js';import{ValidationError}from'../../../errors.js';export async function updateSystemSettings(_0x2cd5c7,_0x11223c){const _0x1b6aea=_0x4a76,_0x28e13b={'otRKi':function(_0x18d5ce,_0x209e10,_0xb76ddf){return _0x18d5ce(_0x209e10,_0xb76ddf);},'iXkBW':_0x1b6aea(0x110)};_0x28e13b[_0x1b6aea(0x116)](requireAdmin,_0x2cd5c7[_0x1b6aea(0x111)],_0x1b6aea(0x119));if(!Object[_0x1b6aea(0x114)](_0x2cd5c7[_0x1b6aea(0x109)])[_0x1b6aea(0x105)])throw new ValidationError(_0x28e13b[_0x1b6aea(0x117)]);for(const [_0x418a56,_0x3d9176]of Object[_0x1b6aea(0x108)](_0x2cd5c7[_0x1b6aea(0x109)])){if(!_0x418a56[_0x1b6aea(0x100)]()||_0x418a56[_0x1b6aea(0x112)]('..'))throw new ValidationError(_0x1b6aea(0x115)+_0x418a56);await _0x11223c['pg'][_0x1b6aea(0x107)](_0x1b6aea(0x118),[_0x418a56,JSON[_0x1b6aea(0x104)](_0x3d9176),_0x2cd5c7[_0x1b6aea(0x111)]['id']]);}const _0xac0bc2={};return _0xac0bc2[_0x1b6aea(0x101)]=!![],_0xac0bc2;}
@@ -1 +1 @@
1
- function _0x5977(){const _0x1e0443=['actions','1488706iYSAzC','query','1452ZKwSZk','200296HinmuT','98MPcpev','1TtBigU','3482347wMFbMA','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20ra.actions\x0a\x20\x20\x20\x20\x20\x20FROM\x20admin.role_access\x20ra\x0a\x20\x20\x20\x20\x20\x20LEFT\x20JOIN\x20admin.user_roles\x20ur\x20ON\x20ur.role_id\x20=\x20ra.role_id\x0a\x20\x20\x20\x20\x20\x20WHERE\x20ra.user_uid\x20=\x20$1\x20OR\x20ur.user_uid\x20=\x20$1\x0a\x20\x20\x20\x20','4177344heCnRX','2202CumXAz','2328318XBrzPm','flatMap','6219mivzUf','1610YNBltL','10qTNgrZ','rows'];_0x5977=function(){return _0x1e0443;};return _0x5977();}function _0x2d41(_0x4719eb,_0x5ebfaf){_0x4719eb=_0x4719eb-0x88;const _0x5977bc=_0x5977();let _0x2d41df=_0x5977bc[_0x4719eb];return _0x2d41df;}(function(_0x4159fd,_0x4fd3d9){const _0x2b2b2d=_0x2d41,_0xd472f=_0x4159fd();while(!![]){try{const _0x42adfe=parseInt(_0x2b2b2d(0x95))/0x1*(parseInt(_0x2b2b2d(0x90))/0x2)+parseInt(_0x2b2b2d(0x8b))/0x3*(-parseInt(_0x2b2b2d(0x92))/0x4)+parseInt(_0x2b2b2d(0x8c))/0x5*(-parseInt(_0x2b2b2d(0x88))/0x6)+-parseInt(_0x2b2b2d(0x94))/0x7*(parseInt(_0x2b2b2d(0x93))/0x8)+parseInt(_0x2b2b2d(0x89))/0x9*(parseInt(_0x2b2b2d(0x8d))/0xa)+parseInt(_0x2b2b2d(0x96))/0xb+parseInt(_0x2b2b2d(0x98))/0xc;if(_0x42adfe===_0x4fd3d9)break;else _0xd472f['push'](_0xd472f['shift']());}catch(_0x59de62){_0xd472f['push'](_0xd472f['shift']());}}}(_0x5977,0x6d059));export async function getUserPermissions(_0x36bef4,_0x54ea7e){const _0x42f146=_0x2d41,_0x4de4c8=await _0x36bef4['pg'][_0x42f146(0x91)](_0x42f146(0x97),[_0x54ea7e]);return[...new Set(_0x4de4c8[_0x42f146(0x8e)][_0x42f146(0x8a)](_0x92c168=>_0x92c168[_0x42f146(0x8f)]??[]))];}
1
+ (function(_0x903c70,_0x1cf25d){const _0x5afac2=_0x20f3,_0x52cc65=_0x903c70();while(!![]){try{const _0x1edf9a=parseInt(_0x5afac2(0x1aa))/0x1+-parseInt(_0x5afac2(0x1a9))/0x2*(-parseInt(_0x5afac2(0x1b2))/0x3)+parseInt(_0x5afac2(0x1b0))/0x4*(-parseInt(_0x5afac2(0x1ac))/0x5)+parseInt(_0x5afac2(0x1b3))/0x6+-parseInt(_0x5afac2(0x1ae))/0x7*(parseInt(_0x5afac2(0x1a6))/0x8)+-parseInt(_0x5afac2(0x1a8))/0x9*(parseInt(_0x5afac2(0x1ad))/0xa)+parseInt(_0x5afac2(0x1a5))/0xb;if(_0x1edf9a===_0x1cf25d)break;else _0x52cc65['push'](_0x52cc65['shift']());}catch(_0x28108a){_0x52cc65['push'](_0x52cc65['shift']());}}}(_0x15bf,0xc9570));function _0x20f3(_0x4d0d1b,_0x569ebd){_0x4d0d1b=_0x4d0d1b-0x1a5;const _0x15bfb9=_0x15bf();let _0x20f346=_0x15bfb9[_0x4d0d1b];return _0x20f346;}function _0x15bf(){const _0x4f35b0=['3132xigyNR','44314QIYeQe','971266WeabYD','query','55JsCTTi','31890eAvIpC','7UMwwoX','rows','570820ApFWWg','flatMap','42PgxCLO','8064558tXswWC','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20ra.actions\x0a\x20\x20\x20\x20\x20\x20FROM\x20admin.role_access\x20ra\x0a\x20\x20\x20\x20\x20\x20LEFT\x20JOIN\x20admin.user_roles\x20ur\x20ON\x20ur.role_id\x20=\x20ra.role_id\x0a\x20\x20\x20\x20\x20\x20WHERE\x20ra.user_uid\x20=\x20$1\x20OR\x20ur.user_uid\x20=\x20$1\x0a\x20\x20\x20\x20','12360579iejPXp','1960248JmnCDd','actions'];_0x15bf=function(){return _0x4f35b0;};return _0x15bf();}export async function getUserPermissions(_0x34b9ee,_0x53b14b){const _0x58e967=_0x20f3,_0x1196f6=await _0x34b9ee['pg'][_0x58e967(0x1ab)](_0x58e967(0x1b4),[_0x53b14b]);return[...new Set(_0x1196f6[_0x58e967(0x1af)][_0x58e967(0x1b1)](_0x1fc558=>_0x1fc558[_0x58e967(0x1a7)]??[]))];}
@@ -1 +1 @@
1
- (function(_0x19d5b2,_0x2e20e2){var _0x139434=_0x3b4c,_0x595de8=_0x19d5b2();while(!![]){try{var _0x44159b=parseInt(_0x139434(0xd6))/0x1+-parseInt(_0x139434(0xe2))/0x2+-parseInt(_0x139434(0xd7))/0x3*(parseInt(_0x139434(0xe6))/0x4)+parseInt(_0x139434(0xe4))/0x5+-parseInt(_0x139434(0xe3))/0x6*(parseInt(_0x139434(0xdd))/0x7)+parseInt(_0x139434(0xdb))/0x8*(parseInt(_0x139434(0xe0))/0x9)+-parseInt(_0x139434(0xd9))/0xa*(-parseInt(_0x139434(0xdf))/0xb);if(_0x44159b===_0x2e20e2)break;else _0x595de8['push'](_0x595de8['shift']());}catch(_0x551857){_0x595de8['push'](_0x595de8['shift']());}}}(_0x170c,0x35b52));import{ForbiddenError}from'../../errors.js';function _0x3b4c(_0x3ae8d6,_0x476760){_0x3ae8d6=_0x3ae8d6-0xd6;var _0x170c97=_0x170c();var _0x3b4cec=_0x170c97[_0x3ae8d6];return _0x3b4cec;}function _0x170c(){var _0x45b808=['49688gfqJsI','1266171TkGmWe','admin','20pmRLux','bbdak','8UfMzHj','type','4417nyaDVQ','Admin\x20access\x20required','2280531YvdRSu','1549710QUZKLl','XptKz','289894gbnmXj','996rllZWr','1276080MRtNBy','User\x20required','4LCxtFI'];_0x170c=function(){return _0x45b808;};return _0x170c();}export function requireAdmin(_0x1a8afc,_0x2bfa40){var _0x10e4fa=_0x3b4c,_0x45db36={};_0x45db36[_0x10e4fa(0xda)]=_0x10e4fa(0xe5),_0x45db36[_0x10e4fa(0xe1)]=_0x10e4fa(0xde);var _0x11aa1b=_0x45db36;if(!_0x1a8afc)throw new ForbiddenError(_0x11aa1b[_0x10e4fa(0xda)]);if(_0x1a8afc[_0x10e4fa(0xdc)]!==_0x10e4fa(0xd8))throw new ForbiddenError(_0x11aa1b[_0x10e4fa(0xe1)]);}
1
+ function _0x5d1b(_0xd47bf0,_0x5a00e5){_0xd47bf0=_0xd47bf0-0x1df;var _0x398967=_0x3989();var _0x5d1b7e=_0x398967[_0xd47bf0];return _0x5d1b7e;}function _0x3989(){var _0x3e8210=['type','ptFpW','248856NBQSmS','KYmIr','20kBtnUE','User\x20required','499871uYdHtK','admin','icdQq','1096VMSnLq','ZvAGw','27357671QKxVCc','1940178XuqjRW','22890bitXxj','Admin\x20access\x20required','2902770BVhRvk','8973240RqTybq','238EZfZDE','6MTnObW'];_0x3989=function(){return _0x3e8210;};return _0x3989();}(function(_0x473f7,_0x3eec1c){var _0x1295d5=_0x5d1b,_0x4269f7=_0x473f7();while(!![]){try{var _0x5a6a7d=-parseInt(_0x1295d5(0x1e1))/0x1*(parseInt(_0x1295d5(0x1ed))/0x2)+-parseInt(_0x1295d5(0x1e7))/0x3+parseInt(_0x1295d5(0x1e4))/0x4*(-parseInt(_0x1295d5(0x1e8))/0x5)+parseInt(_0x1295d5(0x1f0))/0x6*(-parseInt(_0x1295d5(0x1ec))/0x7)+parseInt(_0x1295d5(0x1eb))/0x8+-parseInt(_0x1295d5(0x1ea))/0x9+-parseInt(_0x1295d5(0x1df))/0xa*(-parseInt(_0x1295d5(0x1e6))/0xb);if(_0x5a6a7d===_0x3eec1c)break;else _0x4269f7['push'](_0x4269f7['shift']());}catch(_0x1136ba){_0x4269f7['push'](_0x4269f7['shift']());}}}(_0x3989,0xeaf30));import{ForbiddenError}from'../../errors.js';export function requireAdmin(_0x1082b2,_0x548c29){var _0x23c048=_0x5d1b,_0x26f6eb={};_0x26f6eb[_0x23c048(0x1ef)]=_0x23c048(0x1e0),_0x26f6eb[_0x23c048(0x1e3)]=function(_0x24601f,_0x18b1a3){return _0x24601f!==_0x18b1a3;},_0x26f6eb[_0x23c048(0x1e5)]=_0x23c048(0x1e2),_0x26f6eb[_0x23c048(0x1f1)]=_0x23c048(0x1e9);var _0x175fdd=_0x26f6eb;if(!_0x1082b2)throw new ForbiddenError(_0x175fdd[_0x23c048(0x1ef)]);if(_0x175fdd[_0x23c048(0x1e3)](_0x1082b2[_0x23c048(0x1ee)],_0x175fdd[_0x23c048(0x1e5)]))throw new ForbiddenError(_0x175fdd[_0x23c048(0x1f1)]);}
@@ -1 +1 @@
1
- function _0x57f2(){const _0x5b8491=['includes','toLowerCase','jrNao','917336TbOUqK','secret','fromEntries','filter','entries','password','salt','913731kLtxOM','DZJCk','fDtra','token','81DhUVhq','5156kwPyRZ','1368474BsOTUn','687992RJVlVH','1356960CkQyEa','some','117SYHDIp','625830LwNluI','credentials'];_0x57f2=function(){return _0x5b8491;};return _0x57f2();}(function(_0x2c429b,_0x4d03e){const _0xca213b=_0x23b3,_0x30946a=_0x2c429b();while(!![]){try{const _0x3df3e2=parseInt(_0xca213b(0x16a))/0x1*(parseInt(_0xca213b(0x17c))/0x2)+-parseInt(_0xca213b(0x177))/0x3+-parseInt(_0xca213b(0x17f))/0x4+-parseInt(_0xca213b(0x16b))/0x5+-parseInt(_0xca213b(0x17d))/0x6+parseInt(_0xca213b(0x170))/0x7+parseInt(_0xca213b(0x17e))/0x8*(parseInt(_0xca213b(0x17b))/0x9);if(_0x3df3e2===_0x4d03e)break;else _0x30946a['push'](_0x30946a['shift']());}catch(_0x427eb2){_0x30946a['push'](_0x30946a['shift']());}}}(_0x57f2,0x332c3));function _0x23b3(_0x478a2c,_0x214bd1){_0x478a2c=_0x478a2c-0x169;const _0x57f25c=_0x57f2();let _0x23b393=_0x57f25c[_0x478a2c];return _0x23b393;}export const safeUser=_0x2436c3=>{const _0xf15126=_0x23b3,_0x2c0a9c={};_0x2c0a9c[_0xf15126(0x179)]=_0xf15126(0x17a),_0x2c0a9c[_0xf15126(0x178)]=_0xf15126(0x171),_0x2c0a9c[_0xf15126(0x16f)]=_0xf15126(0x16c);const _0xa17b36=_0x2c0a9c,_0x383848=[_0xf15126(0x175),_0xf15126(0x176),_0xa17b36[_0xf15126(0x179)],_0xa17b36[_0xf15126(0x178)],_0xa17b36[_0xf15126(0x16f)]];return Object[_0xf15126(0x172)](Object[_0xf15126(0x174)](_0x2436c3)[_0xf15126(0x173)](([_0x28d426])=>!_0x383848[_0xf15126(0x169)](_0x5d41b5=>_0x28d426[_0xf15126(0x16e)]()[_0xf15126(0x16d)](_0x5d41b5))));};
1
+ (function(_0x5c1677,_0xc896ca){const _0x5f1dd1=_0x2f99,_0x90daa9=_0x5c1677();while(!![]){try{const _0x564328=-parseInt(_0x5f1dd1(0x1e0))/0x1*(parseInt(_0x5f1dd1(0x1df))/0x2)+-parseInt(_0x5f1dd1(0x1d3))/0x3+-parseInt(_0x5f1dd1(0x1ce))/0x4*(-parseInt(_0x5f1dd1(0x1e5))/0x5)+-parseInt(_0x5f1dd1(0x1d6))/0x6*(parseInt(_0x5f1dd1(0x1e2))/0x7)+parseInt(_0x5f1dd1(0x1dd))/0x8*(-parseInt(_0x5f1dd1(0x1dc))/0x9)+-parseInt(_0x5f1dd1(0x1cc))/0xa+parseInt(_0x5f1dd1(0x1e3))/0xb;if(_0x564328===_0xc896ca)break;else _0x90daa9['push'](_0x90daa9['shift']());}catch(_0x2e3242){_0x90daa9['push'](_0x90daa9['shift']());}}}(_0x1e69,0x3c547));function _0x2f99(_0x56a9c9,_0x18758b){_0x56a9c9=_0x56a9c9-0x1cc;const _0x1e699b=_0x1e69();let _0x2f990d=_0x1e699b[_0x56a9c9];return _0x2f990d;}function _0x1e69(){const _0x1aaa54=['1821700FCdDIE','SWQPl','1541148jdNkyU','fromEntries','some','lvnQL','ffCBs','243804htKLtp','NCUBA','salt','102YrqMZM','filter','includes','toLowerCase','password','entries','90iNVHSk','340104criORO','secret','14564aWueKn','53SZhXGM','credentials','71449zmhsHj','12208427ZlFtgd','token','5xFVydO'];_0x1e69=function(){return _0x1aaa54;};return _0x1e69();}export const safeUser=_0x543df9=>{const _0x5e6a5e=_0x2f99,_0x26cb94={};_0x26cb94[_0x5e6a5e(0x1d1)]=_0x5e6a5e(0x1da),_0x26cb94[_0x5e6a5e(0x1d4)]=_0x5e6a5e(0x1d5),_0x26cb94[_0x5e6a5e(0x1d2)]=_0x5e6a5e(0x1e4),_0x26cb94[_0x5e6a5e(0x1cd)]=_0x5e6a5e(0x1de);const _0x2acdf8=_0x26cb94,_0x3bd377=[_0x2acdf8[_0x5e6a5e(0x1d1)],_0x2acdf8[_0x5e6a5e(0x1d4)],_0x2acdf8[_0x5e6a5e(0x1d2)],_0x2acdf8[_0x5e6a5e(0x1cd)],_0x5e6a5e(0x1e1)];return Object[_0x5e6a5e(0x1cf)](Object[_0x5e6a5e(0x1db)](_0x543df9)[_0x5e6a5e(0x1d7)](([_0x26e914])=>!_0x3bd377[_0x5e6a5e(0x1d0)](_0x14039f=>_0x26e914[_0x5e6a5e(0x1d9)]()[_0x5e6a5e(0x1d8)](_0x14039f))));};
@@ -1 +1 @@
1
- function _0x78a2(_0x637a89,_0x34800d){_0x637a89=_0x637a89-0x6a;var _0x4d2d67=_0x4d2d();var _0x78a2c0=_0x4d2d67[_0x637a89];return _0x78a2c0;}function _0x4d2d(){var _0x2787f5=['9528UgYnsM','1340vMKTpj','32656692iucEOi','189384NWNRpr','175ylWIua','14569875hYmSTh','4207929oCVFsF','194408OtJxIx','4FbctrI','57508tgnCiE','\x20requires\x20a\x20project/provider\x20implementation','30fciItz','130urMWbb'];_0x4d2d=function(){return _0x2787f5;};return _0x4d2d();}(function(_0x46f259,_0x56c75e){var _0x13f475=_0x78a2,_0x56904a=_0x46f259();while(!![]){try{var _0x23a038=parseInt(_0x13f475(0x6c))/0x1*(parseInt(_0x13f475(0x6a))/0x2)+parseInt(_0x13f475(0x72))/0x3*(parseInt(_0x13f475(0x74))/0x4)+-parseInt(_0x13f475(0x6b))/0x5*(parseInt(_0x13f475(0x6f))/0x6)+parseInt(_0x13f475(0x70))/0x7*(parseInt(_0x13f475(0x73))/0x8)+parseInt(_0x13f475(0x71))/0x9+parseInt(_0x13f475(0x6d))/0xa*(parseInt(_0x13f475(0x75))/0xb)+-parseInt(_0x13f475(0x6e))/0xc;if(_0x23a038===_0x56c75e)break;else _0x56904a['push'](_0x56904a['shift']());}catch(_0x5d625d){_0x56904a['push'](_0x56904a['shift']());}}}(_0x4d2d,0xe329c));import{UnsupportedError}from'../../errors.js';export function unsupported(_0x137d01){var _0x23093b=_0x78a2;throw new UnsupportedError(_0x137d01+_0x23093b(0x76));}
1
+ function _0x52ce(_0x59f8d2,_0x46c280){_0x59f8d2=_0x59f8d2-0x1b9;var _0x575cb8=_0x575c();var _0x52ce13=_0x575cb8[_0x59f8d2];return _0x52ce13;}function _0x575c(){var _0x4b8ef3=['4069695WQXAlo','75726dtGAtP','7104ReXjrH','4928NRKgfR','55MbiuSp','16524lTNiQA','860iksKPW','771LUfZjK','7505184BbABTL','10WBRqNd','\x20requires\x20a\x20project/provider\x20implementation','82906dYQgJp','456016UaaKeE'];_0x575c=function(){return _0x4b8ef3;};return _0x575c();}(function(_0x1dbe0a,_0xa4fc5){var _0x3c9f0a=_0x52ce,_0x5419a2=_0x1dbe0a();while(!![]){try{var _0x56eb62=parseInt(_0x3c9f0a(0x1c2))/0x1*(-parseInt(_0x3c9f0a(0x1c4))/0x2)+-parseInt(_0x3c9f0a(0x1c0))/0x3*(parseInt(_0x3c9f0a(0x1be))/0x4)+-parseInt(_0x3c9f0a(0x1b9))/0x5+-parseInt(_0x3c9f0a(0x1bb))/0x6*(parseInt(_0x3c9f0a(0x1bc))/0x7)+-parseInt(_0x3c9f0a(0x1c5))/0x8+-parseInt(_0x3c9f0a(0x1ba))/0x9*(-parseInt(_0x3c9f0a(0x1bf))/0xa)+parseInt(_0x3c9f0a(0x1bd))/0xb*(parseInt(_0x3c9f0a(0x1c1))/0xc);if(_0x56eb62===_0xa4fc5)break;else _0x5419a2['push'](_0x5419a2['shift']());}catch(_0x3780a9){_0x5419a2['push'](_0x5419a2['shift']());}}}(_0x575c,0xa398a));import{UnsupportedError}from'../../errors.js';export function unsupported(_0x1bdef5){var _0x5c9fe7=_0x52ce;throw new UnsupportedError(_0x1bdef5+_0x5c9fe7(0x1c3));}
@@ -1 +1 @@
1
- (function(_0x5c1888,_0x267a39){const _0x28e7e8=_0x94cb,_0x4fd2ca=_0x5c1888();while(!![]){try{const _0x337e6f=-parseInt(_0x28e7e8(0x111))/0x1*(parseInt(_0x28e7e8(0x112))/0x2)+-parseInt(_0x28e7e8(0x10a))/0x3*(-parseInt(_0x28e7e8(0x10e))/0x4)+parseInt(_0x28e7e8(0x10f))/0x5*(parseInt(_0x28e7e8(0x10c))/0x6)+parseInt(_0x28e7e8(0x110))/0x7+parseInt(_0x28e7e8(0x10b))/0x8+-parseInt(_0x28e7e8(0x109))/0x9*(-parseInt(_0x28e7e8(0x114))/0xa)+-parseInt(_0x28e7e8(0x113))/0xb;if(_0x337e6f===_0x267a39)break;else _0x4fd2ca['push'](_0x4fd2ca['shift']());}catch(_0x30d5f3){_0x4fd2ca['push'](_0x4fd2ca['shift']());}}}(_0x58dd,0xc2e93));import{writeAudit}from'./services/write-audit.js';function _0x94cb(_0x4793e9,_0x4536ad){_0x4793e9=_0x4793e9-0x109;const _0x58dd6a=_0x58dd();let _0x94cb72=_0x58dd6a[_0x4793e9];return _0x94cb72;}export function createAudit(_0x2b0d58){const _0xed51a1=_0x94cb,_0x464e8d=writeAudit(_0x2b0d58),_0x535377={};return _0x535377[_0xed51a1(0x10d)]=_0x464e8d,_0x535377;}function _0x58dd(){const _0x58d41e=['4145890GslVcc','1UfVpGo','2886174NCNGOy','36181277TFrXop','14700760QlSncc','9gfeRze','11478JVoBOL','7985832OGyGTj','2853456xblLnN','write','1588DmrDzC','10zdJUqn'];_0x58dd=function(){return _0x58d41e;};return _0x58dd();}
1
+ (function(_0x19a7ff,_0x279ba7){const _0x28487c=_0x3cb8,_0x4a4a71=_0x19a7ff();while(!![]){try{const _0x4666cf=-parseInt(_0x28487c(0xaf))/0x1+parseInt(_0x28487c(0xb9))/0x2*(parseInt(_0x28487c(0xb0))/0x3)+parseInt(_0x28487c(0xb5))/0x4*(-parseInt(_0x28487c(0xbb))/0x5)+parseInt(_0x28487c(0xb8))/0x6+parseInt(_0x28487c(0xb7))/0x7*(parseInt(_0x28487c(0xba))/0x8)+parseInt(_0x28487c(0xb6))/0x9+-parseInt(_0x28487c(0xb3))/0xa*(parseInt(_0x28487c(0xb1))/0xb);if(_0x4666cf===_0x279ba7)break;else _0x4a4a71['push'](_0x4a4a71['shift']());}catch(_0x118003){_0x4a4a71['push'](_0x4a4a71['shift']());}}}(_0x1752,0xa7d5d));function _0x1752(){const _0x300a39=['424404FfblRu','7ExLBgu','7112658DdBXHN','25034wVISwl','1350840dvNrbu','591355lEbVhX','577569chcUsa','147FFOCaj','1014497xTPUFn','write','30offbHw','hNscT','16YbmoVJ'];_0x1752=function(){return _0x300a39;};return _0x1752();}import{writeAudit}from'./services/write-audit.js';function _0x3cb8(_0x4d5da4,_0x53be9d){_0x4d5da4=_0x4d5da4-0xaf;const _0x17523a=_0x1752();let _0x3cb8ad=_0x17523a[_0x4d5da4];return _0x3cb8ad;}export function createAudit(_0x7878d7){const _0x1128e1=_0x3cb8,_0x397214={'hNscT':function(_0x5d20ff,_0xb37c8d){return _0x5d20ff(_0xb37c8d);}},_0x1a789a=_0x397214[_0x1128e1(0xb4)](writeAudit,_0x7878d7),_0xe03c91={};return _0xe03c91[_0x1128e1(0xb2)]=_0x1a789a,_0xe03c91;}
@@ -1 +1 @@
1
- (function(_0x4cd514,_0x114fb9){var _0x4aa3a5=_0x5f15,_0x1e7b4d=_0x4cd514();while(!![]){try{var _0x4e6d53=-parseInt(_0x4aa3a5(0x125))/0x1*(parseInt(_0x4aa3a5(0x11f))/0x2)+parseInt(_0x4aa3a5(0x121))/0x3+-parseInt(_0x4aa3a5(0x11d))/0x4+-parseInt(_0x4aa3a5(0x120))/0x5+parseInt(_0x4aa3a5(0x124))/0x6*(parseInt(_0x4aa3a5(0x123))/0x7)+parseInt(_0x4aa3a5(0x11e))/0x8+parseInt(_0x4aa3a5(0x122))/0x9;if(_0x4e6d53===_0x114fb9)break;else _0x1e7b4d['push'](_0x1e7b4d['shift']());}catch(_0x4a0031){_0x1e7b4d['push'](_0x1e7b4d['shift']());}}}(_0x2b3b,0x7648e));function _0x5f15(_0x9b022d,_0x3c0453){_0x9b022d=_0x9b022d-0x11d;var _0x2b3b56=_0x2b3b();var _0x5f15ba=_0x2b3b56[_0x9b022d];return _0x5f15ba;}export*from'./audit.types.js';export*from'./audit.js';function _0x2b3b(){var _0x5144db=['729673PRjcme','2491484SZNIUT','2937752ZJfyCL','2iVYEYO','2538215sCGvRM','16116JlrbKC','13804902EbhhSr','7zmwLlb','2629272puvDnL'];_0x2b3b=function(){return _0x5144db;};return _0x2b3b();}
1
+ function _0x3d4c(_0x11d1c1,_0x5ef524){_0x11d1c1=_0x11d1c1-0x1e4;var _0x8598f4=_0x8598();var _0x3d4ca3=_0x8598f4[_0x11d1c1];return _0x3d4ca3;}(function(_0x4cc8fb,_0x5dcb99){var _0xb97ccb=_0x3d4c,_0x5738d4=_0x4cc8fb();while(!![]){try{var _0x49e73b=-parseInt(_0xb97ccb(0x1e6))/0x1*(-parseInt(_0xb97ccb(0x1e7))/0x2)+parseInt(_0xb97ccb(0x1eb))/0x3+parseInt(_0xb97ccb(0x1e5))/0x4*(parseInt(_0xb97ccb(0x1e9))/0x5)+parseInt(_0xb97ccb(0x1ed))/0x6+parseInt(_0xb97ccb(0x1e8))/0x7+-parseInt(_0xb97ccb(0x1ea))/0x8*(-parseInt(_0xb97ccb(0x1e4))/0x9)+-parseInt(_0xb97ccb(0x1ec))/0xa;if(_0x49e73b===_0x5dcb99)break;else _0x5738d4['push'](_0x5738d4['shift']());}catch(_0x42cb97){_0x5738d4['push'](_0x5738d4['shift']());}}}(_0x8598,0x64e6a));function _0x8598(){var _0x300be4=['3360942GJULEQ','458559cvJGFz','42128fzceNS','124454Nbrxew','12LmlSzy','509698pSivpe','10SavJgb','16MtaBqc','872604nyPyFs','13802390xqhcjg'];_0x8598=function(){return _0x300be4;};return _0x8598();}export*from'./audit.types.js';export*from'./audit.js';
@@ -1 +1 @@
1
- (function(_0x1912e8,_0x1cb9c2){const _0x12757f=_0x7713,_0x244bf4=_0x1912e8();while(!![]){try{const _0x52e720=-parseInt(_0x12757f(0x105))/0x1*(parseInt(_0x12757f(0x139))/0x2)+-parseInt(_0x12757f(0x12c))/0x3+-parseInt(_0x12757f(0xe4))/0x4*(-parseInt(_0x12757f(0xe3))/0x5)+parseInt(_0x12757f(0x10f))/0x6*(-parseInt(_0x12757f(0x100))/0x7)+parseInt(_0x12757f(0xf6))/0x8*(-parseInt(_0x12757f(0x103))/0x9)+parseInt(_0x12757f(0xe9))/0xa+parseInt(_0x12757f(0x111))/0xb;if(_0x52e720===_0x1cb9c2)break;else _0x244bf4['push'](_0x244bf4['shift']());}catch(_0x385f71){_0x244bf4['push'](_0x244bf4['shift']());}}}(_0x32bd,0x6521c));function _0x32bd(){const _0x578857=['Audit\x20tables\x20are\x20unavailable;\x20audit\x20writes\x20are\x20disabled','resourceId','audit','QWnkS','32VjTIRA','JhRxh','bTmko','nxUXI','query','NKCKZ','Unable\x20to\x20check\x20audit\x20tables;\x20audit\x20writes\x20are\x20disabled','then','audit_log_data','ywMAn','1043924jASVHR','fields','admin.audit_log_data','1820655KosFTZ','requestId','223921HwZLPQ','has','err','aCegy','IgYTn','dJNUH','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.audit_log\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20module,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fields,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20action,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ip_address,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20metadata\x0a\x20\x20\x20\x20\x20\x20\x20\x20)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4,\x20$5,\x20$6,\x20$7,\x20$8,\x20$9)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20id\x0a\x20\x20\x20\x20\x20\x20','LHhXR','GGspl','LcxdK','12WpJARh','action','12189276rLTcMv','frKbm','oldValue','metadata','catch','FzfhZ','gNUJl','entries','stringify','ipAddress','txPri','jsdOS','map','userId','gItBF','test','Tdwoo','field','PQtDg','eWrWd','ZsiZk','[REDACTED]','gHbHi','rYYzd','BXema','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.audit_log_data\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20audit_log_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20field,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20old_value,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20new_value\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20','info','660111oNkJmx','audit_log','NnzXO','foundTables','PxyUR','JBHde','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20table_name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20information_schema.tables\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20table_schema\x20=\x20\x27admin\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20AND\x20table_name\x20IN\x20(\x27audit_log\x27,\x20\x27audit_log_data\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20','resource','expectedTables','oogdo','QYoxU','object','table_name','4VvOMaC','yDUBx','rows','warn','sHdmi','2064035LQhMQd','4ShDFpD','empty\x20pg','ZYBLR','newValue','module','6686360PQhDuP','admin.audit_log','logger','AaEND','OhpDS','ZGtWO','fromEntries','isArray','changes'];_0x32bd=function(){return _0x578857;};return _0x32bd();}const secretPattern=/password|token|secret|credential|salt/i;function _0x7713(_0x474cf2,_0x48ca63){_0x474cf2=_0x474cf2-0xe1;const _0x32bd02=_0x32bd();let _0x771303=_0x32bd02[_0x474cf2];return _0x771303;}function clean(_0x3bdfa9){const _0x3d46a1=_0x7713,_0x3922c5={'ywMAn':function(_0x7ebbc9,_0x2f7cb9){return _0x7ebbc9(_0x2f7cb9);},'aCegy':_0x3d46a1(0x11f),'ZGtWO':_0x3d46a1(0x137)};if(Array[_0x3d46a1(0xf0)](_0x3bdfa9))return _0x3922c5[_0x3d46a1(0x108)]!==_0x3922c5[_0x3d46a1(0x108)]?(_0x19630b[_0x3d46a1(0xeb)][_0x3d46a1(0x12b)]({'auditFallback':!![],'event':_0x3922c5[_0x3d46a1(0xff)](_0x32282d,{..._0x17f8e5,'changes':_0xe2f373[_0x3d46a1(0xf1)]?.[_0x3d46a1(0x11d)](_0x27ae82=>({..._0x27ae82,'oldValue':_0x10f208(_0x27ae82[_0x3d46a1(0x113)]),'newValue':_0xaac9de(_0x27ae82[_0x3d46a1(0xe7)])}))})},_0x3d46a1(0xf4)),0x0):_0x3bdfa9[_0x3d46a1(0x11d)](clean);if(_0x3bdfa9&&typeof _0x3bdfa9===_0x3922c5[_0x3d46a1(0xee)])return Object[_0x3d46a1(0xef)](Object[_0x3d46a1(0x118)](_0x3bdfa9)[_0x3d46a1(0x11d)](([_0x160a8e,_0x335f8e])=>[_0x160a8e,secretPattern[_0x3d46a1(0x120)](_0x160a8e)?_0x3d46a1(0x126):clean(_0x335f8e)]));return _0x3bdfa9;}export function writeAudit(_0x4a02ca){const _0x448eec=_0x7713,_0x428a4c={'NKCKZ':_0x448eec(0x12d),'gHbHi':_0x448eec(0xfe),'bTmko':function(_0xa7e021,_0x402dbe){return _0xa7e021!==_0x402dbe;},'gNUJl':_0x448eec(0xf5),'oogdo':_0x448eec(0xea),'NnzXO':_0x448eec(0x102),'IgYTn':_0x448eec(0xf2),'ZsiZk':function(_0x2e1834,_0x1510ef){return _0x2e1834===_0x1510ef;},'dJNUH':_0x448eec(0xf7),'nxUXI':_0x448eec(0xfc),'ZYBLR':function(_0xc651d1,_0x47ee0c){return _0xc651d1===_0x47ee0c;},'PQtDg':_0x448eec(0x11b),'eWrWd':_0x448eec(0x13a),'FzfhZ':function(_0x1a1069){return _0x1a1069();},'Tdwoo':function(_0x2b079a,_0x772291){return _0x2b079a(_0x772291);},'jsdOS':_0x448eec(0xf4),'GGspl':_0x448eec(0xe5),'rYYzd':function(_0x29a8db,_0x2df503){return _0x29a8db==_0x2df503;},'AaEND':function(_0x26d0a1,_0x5d21d7){return _0x26d0a1(_0x5d21d7);},'frKbm':_0x448eec(0x10e)};let _0x51e9cc,_0x27cb4a;async function _0x41e686(){const _0x5d50f8=_0x448eec,_0x3d3368={};_0x3d3368[_0x5d50f8(0xe2)]=_0x428a4c[_0x5d50f8(0xf9)];const _0x242c76=_0x3d3368;if(!_0x4a02ca['pg'])return _0x428a4c[_0x5d50f8(0xe6)](_0x5d50f8(0x130),_0x428a4c[_0x5d50f8(0x123)])?![]:![];if(_0x428a4c[_0x5d50f8(0xf8)](_0x51e9cc,undefined)){if(_0x428a4c[_0x5d50f8(0x124)]===_0x5d50f8(0xed)){_0x2bffe4=![];const _0x2ce61f={};return _0x2ce61f[_0x5d50f8(0x107)]=_0x359a93,_0x55a44d[_0x5d50f8(0xeb)][_0x5d50f8(0xe1)](_0x2ce61f,_0x242c76[_0x5d50f8(0xe2)]),![];}else return _0x51e9cc;}return _0x27cb4a??=_0x4a02ca['pg'][_0x5d50f8(0xfa)](_0x5d50f8(0x132))[_0x5d50f8(0xfd)](_0x3fc9c4=>{const _0x11f397=_0x5d50f8,_0x241913=new Set(_0x3fc9c4[_0x11f397(0x13b)][_0x11f397(0x11d)](_0x21094d=>_0x21094d[_0x11f397(0x138)]));_0x51e9cc=_0x241913[_0x11f397(0x106)](_0x428a4c[_0x11f397(0xfb)])&&_0x241913[_0x11f397(0x106)](_0x428a4c[_0x11f397(0x127)]);if(!_0x51e9cc){if(_0x428a4c[_0x11f397(0xf8)](_0x428a4c[_0x11f397(0x117)],_0x428a4c[_0x11f397(0x117)]))return _0xcf1f5c;else{const _0x3fdefb={};_0x3fdefb[_0x11f397(0x134)]=[_0x428a4c[_0x11f397(0x135)],_0x428a4c[_0x11f397(0x12e)]],_0x3fdefb[_0x11f397(0x12f)]=[..._0x241913],_0x4a02ca[_0x11f397(0xeb)][_0x11f397(0xe1)](_0x3fdefb,_0x428a4c[_0x11f397(0x109)]);}}return _0x51e9cc;})[_0x5d50f8(0x115)](_0x575677=>{const _0x1f832b=_0x5d50f8;if(_0x428a4c[_0x1f832b(0x125)](_0x1f832b(0xf7),_0x428a4c[_0x1f832b(0x10a)])){_0x51e9cc=![];const _0x2344eb={};return _0x2344eb[_0x1f832b(0x107)]=_0x575677,_0x4a02ca[_0x1f832b(0xeb)][_0x1f832b(0xe1)](_0x2344eb,_0x428a4c[_0x1f832b(0xf9)]),![];}else{const _0x3d53ed={};_0x3d53ed[_0x1f832b(0x134)]=[_0x1f832b(0xea),_0x1f832b(0x102)],_0x3d53ed[_0x1f832b(0x12f)]=[..._0x2d1c08],_0x136cc3[_0x1f832b(0xeb)][_0x1f832b(0xe1)](_0x3d53ed,_0x1f832b(0xf2));}}),_0x27cb4a;}return async function _0x3746cc(_0x9b711f){const _0x4f2ab5=_0x448eec,_0x43dc35={};_0x43dc35[_0x4f2ab5(0x10c)]=_0x4f2ab5(0xfe),_0x43dc35[_0x4f2ab5(0x136)]=_0x428a4c[_0x4f2ab5(0x135)],_0x43dc35[_0x4f2ab5(0x129)]=_0x428a4c[_0x4f2ab5(0x12e)],_0x43dc35[_0x4f2ab5(0x131)]=_0x428a4c[_0x4f2ab5(0x109)];const _0x5a03a2=_0x43dc35;if(!await _0x428a4c[_0x4f2ab5(0x116)](_0x41e686))return _0x4a02ca[_0x4f2ab5(0xeb)][_0x4f2ab5(0x12b)]({'auditFallback':!![],'event':_0x428a4c[_0x4f2ab5(0x121)](clean,{..._0x9b711f,'changes':_0x9b711f[_0x4f2ab5(0xf1)]?.[_0x4f2ab5(0x11d)](_0xc2b877=>({..._0xc2b877,'oldValue':clean(_0xc2b877[_0x4f2ab5(0x113)]),'newValue':clean(_0xc2b877[_0x4f2ab5(0xe7)])}))})},_0x428a4c[_0x4f2ab5(0x11c)]),0x0;if(!_0x4a02ca['pg'])throw new Error(_0x428a4c[_0x4f2ab5(0x10d)]);const _0x41b0e4=await _0x4a02ca['pg'][_0x4f2ab5(0xfa)](_0x4f2ab5(0x10b),[_0x9b711f[_0x4f2ab5(0x11e)]??null,_0x9b711f[_0x4f2ab5(0xe8)],_0x9b711f[_0x4f2ab5(0x133)],_0x428a4c[_0x4f2ab5(0x128)](_0x9b711f[_0x4f2ab5(0xf3)],null)?null:_0x428a4c[_0x4f2ab5(0xec)](String,_0x9b711f[_0x4f2ab5(0xf3)]),_0x9b711f[_0x4f2ab5(0x101)]??null,_0x9b711f[_0x4f2ab5(0x110)],_0x9b711f[_0x4f2ab5(0x104)]??null,_0x9b711f[_0x4f2ab5(0x11a)]??null,clean(_0x9b711f[_0x4f2ab5(0x114)]??{})]),_0x25f9b5=_0x41b0e4[_0x4f2ab5(0x13b)][0x0]['id'];for(const _0x3d690a of _0x9b711f[_0x4f2ab5(0xf1)]??[]){if(secretPattern[_0x4f2ab5(0x120)](_0x3d690a[_0x4f2ab5(0x122)])){if(_0x428a4c[_0x4f2ab5(0xe6)](_0x4f2ab5(0x10e),_0x428a4c[_0x4f2ab5(0x112)]))continue;else{const _0x9045f6=new _0x969dd6(_0x179308[_0x4f2ab5(0x13b)][_0x4f2ab5(0x11d)](_0x361d4b=>_0x361d4b[_0x4f2ab5(0x138)]));_0x3612e2=_0x9045f6[_0x4f2ab5(0x106)](_0x4f2ab5(0x12d))&&_0x9045f6[_0x4f2ab5(0x106)](XhpLWK[_0x4f2ab5(0x10c)]);if(!_0x320586){const _0x1e5661={};_0x1e5661[_0x4f2ab5(0x134)]=[XhpLWK[_0x4f2ab5(0x136)],XhpLWK[_0x4f2ab5(0x129)]],_0x1e5661[_0x4f2ab5(0x12f)]=[..._0x9045f6],_0x331dc5[_0x4f2ab5(0xeb)][_0x4f2ab5(0xe1)](_0x1e5661,XhpLWK[_0x4f2ab5(0x131)]);}return _0x2d8f40;}}await _0x4a02ca['pg'][_0x4f2ab5(0xfa)](_0x4f2ab5(0x12a),[_0x25f9b5,_0x3d690a[_0x4f2ab5(0x122)],JSON[_0x4f2ab5(0x119)](clean(_0x3d690a[_0x4f2ab5(0x113)])),JSON[_0x4f2ab5(0x119)](_0x428a4c[_0x4f2ab5(0x121)](clean,_0x3d690a[_0x4f2ab5(0xe7)]))]);}return _0x25f9b5;};}
1
+ function _0x54e5(_0x40062e,_0x762010){_0x40062e=_0x40062e-0x126;const _0x519975=_0x5199();let _0x54e586=_0x519975[_0x40062e];return _0x54e586;}(function(_0x44f282,_0x3685ac){const _0x908991=_0x54e5,_0x49ee6a=_0x44f282();while(!![]){try{const _0x3fa9bc=parseInt(_0x908991(0x136))/0x1*(parseInt(_0x908991(0x164))/0x2)+-parseInt(_0x908991(0x166))/0x3+parseInt(_0x908991(0x15b))/0x4*(-parseInt(_0x908991(0x180))/0x5)+parseInt(_0x908991(0x186))/0x6+parseInt(_0x908991(0x133))/0x7*(-parseInt(_0x908991(0x135))/0x8)+-parseInt(_0x908991(0x129))/0x9+-parseInt(_0x908991(0x13f))/0xa*(-parseInt(_0x908991(0x151))/0xb);if(_0x3fa9bc===_0x3685ac)break;else _0x49ee6a['push'](_0x49ee6a['shift']());}catch(_0x502985){_0x49ee6a['push'](_0x49ee6a['shift']());}}}(_0x5199,0x54cee));const secretPattern=/password|token|secret|credential|salt/i;function _0x5199(){const _0x2ac3c7=['tKgYq','kiAYV','lXpEZ','MiMNh','catch','field','ZaUnc','wkSeJ','ymCRj','zWEkH','izkkp','500ZIJuJA','JZvhS','info','resourceId','UFonF','NbGmX','2053644KGZBaO','logger','test','has','280620vqxdmS','action','err','cKApF','DGiWD','UWTXL','VLSwj','[REDACTED]','kAMEl','audit','22505WoMKIH','Noyas','456khrBmX','21oacdXD','Rjryc','uVLfU','hcQXs','YsedM','xqMuE','query','oldValue','BaNxV','150szuwXd','audit_log_data','expectedTables','entries','metadata','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.audit_log_data\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20audit_log_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20field,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20old_value,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20new_value\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20','fromEntries','then','OxoVe','Unable\x20to\x20check\x20audit\x20tables;\x20audit\x20writes\x20are\x20disabled','vmHSi','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20table_name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20information_schema.tables\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20table_schema\x20=\x20\x27admin\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20AND\x20table_name\x20IN\x20(\x27audit_log\x27,\x20\x27audit_log_data\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20','dGbkb','newValue','ssvxh','fields','changes','Audit\x20tables\x20are\x20unavailable;\x20audit\x20writes\x20are\x20disabled','449119dpbMvG','resource','WeueF','empty\x20pg','mzKfq','XKOSP','admin.audit_log','NunAb','module','warn','15068ERTraa','RsFbg','userId','audit_log','fNElj','map','PqsqH','llZfX','YksXK','38508MCimqi','ipAddress','1261602jwyyfv','gVKEN','oUUbF','admin.audit_log_data','stringify','foundTables','HfMoW','RInbo','object','table_name','isArray','requestId','rows','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.audit_log\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20module,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fields,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20action,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ip_address,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20metadata\x0a\x20\x20\x20\x20\x20\x20\x20\x20)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4,\x20$5,\x20$6,\x20$7,\x20$8,\x20$9)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20id\x0a\x20\x20\x20\x20\x20\x20','Upxxb'];_0x5199=function(){return _0x2ac3c7;};return _0x5199();}function clean(_0x282d9a){const _0x304dfd=_0x54e5,_0xe98127={};_0xe98127[_0x304dfd(0x12c)]=_0x304dfd(0x169),_0xe98127[_0x304dfd(0x13b)]=_0x304dfd(0x150),_0xe98127[_0x304dfd(0x177)]=_0x304dfd(0x16e),_0xe98127[_0x304dfd(0x167)]=_0x304dfd(0x174);const _0x2809cc=_0xe98127;if(Array[_0x304dfd(0x170)](_0x282d9a))return _0x282d9a[_0x304dfd(0x160)](clean);if(_0x282d9a&&typeof _0x282d9a===_0x2809cc[_0x304dfd(0x177)]){if(_0x2809cc[_0x304dfd(0x167)]!==_0x2809cc[_0x304dfd(0x167)]){const _0x54155c={};_0x54155c[_0x304dfd(0x141)]=[_0x304dfd(0x157),_0x2809cc[_0x304dfd(0x12c)]],_0x54155c[_0x304dfd(0x16b)]=[..._0x52212c],_0x3a51fc[_0x304dfd(0x126)][_0x304dfd(0x15a)](_0x54155c,_0x2809cc[_0x304dfd(0x13b)]);}else return Object[_0x304dfd(0x145)](Object[_0x304dfd(0x142)](_0x282d9a)[_0x304dfd(0x160)](([_0x3e94ee,_0x46738c])=>[_0x3e94ee,secretPattern[_0x304dfd(0x127)](_0x3e94ee)?_0x304dfd(0x130):clean(_0x46738c)]));}return _0x282d9a;}export function writeAudit(_0x5ca8f9){const _0xf7f8f5=_0x54e5,_0x3d524a={'VLSwj':_0xf7f8f5(0x148),'BaNxV':_0xf7f8f5(0x132),'PqsqH':_0xf7f8f5(0x140),'HfMoW':function(_0x40d2fd,_0x13be7a){return _0x40d2fd!==_0x13be7a;},'vmHSi':_0xf7f8f5(0x157),'izkkp':_0xf7f8f5(0x169),'OxoVe':_0xf7f8f5(0x150),'RsFbg':_0xf7f8f5(0x12e),'tKgYq':_0xf7f8f5(0x12d),'WeueF':_0xf7f8f5(0x14d),'UFonF':_0xf7f8f5(0x13a),'uVLfU':_0xf7f8f5(0x134),'kiAYV':function(_0x212db8){return _0x212db8();},'fNElj':function(_0x51a2de,_0x4bad70){return _0x51a2de(_0x4bad70);},'dGbkb':_0xf7f8f5(0x154),'ymCRj':function(_0x3e2bdf,_0x5c9614){return _0x3e2bdf==_0x5c9614;},'NbGmX':function(_0x3011ef,_0x418fb2){return _0x3011ef(_0x418fb2);},'zWEkH':function(_0x2979a5,_0x4b5056){return _0x2979a5===_0x4b5056;},'RInbo':_0xf7f8f5(0x155),'wkSeJ':function(_0x34865b,_0xbf082c){return _0x34865b(_0xbf082c);}};let _0x1d1ffe,_0xe73734;async function _0x9a6914(){const _0x4c9bfe=_0xf7f8f5,_0x3a5c3c={'YksXK':_0x3d524a[_0x4c9bfe(0x13e)],'oUUbF':_0x4c9bfe(0x15e),'ZaUnc':_0x3d524a[_0x4c9bfe(0x161)],'Rjryc':function(_0x3937c2,_0x4b147c){const _0x28fd2c=_0x4c9bfe;return _0x3d524a[_0x28fd2c(0x16c)](_0x3937c2,_0x4b147c);},'XKOSP':_0x4c9bfe(0x162),'MiMNh':_0x3d524a[_0x4c9bfe(0x149)],'hcQXs':_0x3d524a[_0x4c9bfe(0x17f)],'NunAb':_0x3d524a[_0x4c9bfe(0x147)]};if(!_0x5ca8f9['pg'])return _0x3d524a[_0x4c9bfe(0x16c)](_0x3d524a[_0x4c9bfe(0x15c)],_0x3d524a[_0x4c9bfe(0x175)])?![]:_0xafdc26;if(_0x3d524a[_0x4c9bfe(0x16c)](_0x1d1ffe,undefined))return _0x3d524a[_0x4c9bfe(0x16c)](_0x3d524a[_0x4c9bfe(0x153)],_0x3d524a[_0x4c9bfe(0x184)])?_0x1d1ffe:_0x59aa50[_0x4c9bfe(0x160)](_0x48d059);return _0xe73734??=_0x5ca8f9['pg'][_0x4c9bfe(0x13c)](_0x4c9bfe(0x14a))[_0x4c9bfe(0x146)](_0x41bed7=>{const _0x497713=_0x4c9bfe,_0x4e0bf7={};_0x4e0bf7[_0x497713(0x131)]=_0x3a5c3c[_0x497713(0x163)];const _0x37d47b=_0x4e0bf7,_0x3a6b1a=new Set(_0x41bed7[_0x497713(0x172)][_0x497713(0x160)](_0x5a6ffb=>_0x5a6ffb[_0x497713(0x16f)]));_0x1d1ffe=_0x3a6b1a[_0x497713(0x128)](_0x3a5c3c[_0x497713(0x168)])&&_0x3a6b1a[_0x497713(0x128)](_0x3a5c3c[_0x497713(0x17b)]);if(!_0x1d1ffe){if(_0x3a5c3c[_0x497713(0x137)](_0x3a5c3c[_0x497713(0x156)],_0x497713(0x181))){const _0x485fb8={};_0x485fb8[_0x497713(0x141)]=[_0x3a5c3c[_0x497713(0x178)],_0x3a5c3c[_0x497713(0x139)]],_0x485fb8[_0x497713(0x16b)]=[..._0x3a6b1a],_0x5ca8f9[_0x497713(0x126)][_0x497713(0x15a)](_0x485fb8,_0x3a5c3c[_0x497713(0x158)]);}else return _0x24b718[_0x497713(0x126)][_0x497713(0x182)]({'auditFallback':!![],'event':_0x44d684({..._0x1ccb03,'changes':_0x2b1b79[_0x497713(0x14f)]?.[_0x497713(0x160)](_0x2c8bfb=>({..._0x2c8bfb,'oldValue':_0x4da9b6(_0x2c8bfb[_0x497713(0x13d)]),'newValue':_0x1ff5f3(_0x2c8bfb[_0x497713(0x14c)])}))})},_0x37d47b[_0x497713(0x131)]),0x0;}return _0x1d1ffe;})[_0x4c9bfe(0x179)](_0x39f7a7=>{const _0x4cd46c=_0x4c9bfe;_0x1d1ffe=![];const _0x49f952={};return _0x49f952[_0x4cd46c(0x12b)]=_0x39f7a7,_0x5ca8f9[_0x4cd46c(0x126)][_0x4cd46c(0x15a)](_0x49f952,_0x3d524a[_0x4cd46c(0x12f)]),![];}),_0xe73734;}return async function _0x5297f5(_0x2f49f3){const _0x22c0ae=_0xf7f8f5;if(_0x3d524a[_0x22c0ae(0x16c)](_0x3d524a[_0x22c0ae(0x138)],_0x3d524a[_0x22c0ae(0x138)]))return![];else{if(!await _0x3d524a[_0x22c0ae(0x176)](_0x9a6914))return _0x5ca8f9[_0x22c0ae(0x126)][_0x22c0ae(0x182)]({'auditFallback':!![],'event':_0x3d524a[_0x22c0ae(0x15f)](clean,{..._0x2f49f3,'changes':_0x2f49f3[_0x22c0ae(0x14f)]?.[_0x22c0ae(0x160)](_0x2a1613=>({..._0x2a1613,'oldValue':clean(_0x2a1613[_0x22c0ae(0x13d)]),'newValue':clean(_0x2a1613[_0x22c0ae(0x14c)])}))})},_0x3d524a[_0x22c0ae(0x13e)]),0x0;if(!_0x5ca8f9['pg'])throw new Error(_0x3d524a[_0x22c0ae(0x14b)]);const _0x35678d=await _0x5ca8f9['pg'][_0x22c0ae(0x13c)](_0x22c0ae(0x173),[_0x2f49f3[_0x22c0ae(0x15d)]??null,_0x2f49f3[_0x22c0ae(0x159)],_0x2f49f3[_0x22c0ae(0x152)],_0x3d524a[_0x22c0ae(0x17d)](_0x2f49f3[_0x22c0ae(0x183)],null)?null:_0x3d524a[_0x22c0ae(0x185)](String,_0x2f49f3[_0x22c0ae(0x183)]),_0x2f49f3[_0x22c0ae(0x14e)]??null,_0x2f49f3[_0x22c0ae(0x12a)],_0x2f49f3[_0x22c0ae(0x171)]??null,_0x2f49f3[_0x22c0ae(0x165)]??null,_0x3d524a[_0x22c0ae(0x15f)](clean,_0x2f49f3[_0x22c0ae(0x143)]??{})]),_0x59eee2=_0x35678d[_0x22c0ae(0x172)][0x0]['id'];for(const _0x1bed16 of _0x2f49f3[_0x22c0ae(0x14f)]??[]){if(secretPattern[_0x22c0ae(0x127)](_0x1bed16[_0x22c0ae(0x17a)])){if(_0x3d524a[_0x22c0ae(0x17e)](_0x3d524a[_0x22c0ae(0x16d)],_0x3d524a[_0x22c0ae(0x16d)]))continue;else return _0x25efb0[_0x22c0ae(0x145)](_0x19b4e7[_0x22c0ae(0x142)](_0x506644)[_0x22c0ae(0x160)](([_0x12f71b,_0x558780])=>[_0x12f71b,_0x5e6576[_0x22c0ae(0x127)](_0x12f71b)?_0x22c0ae(0x130):_0xcf48a0(_0x558780)]));}await _0x5ca8f9['pg'][_0x22c0ae(0x13c)](_0x22c0ae(0x144),[_0x59eee2,_0x1bed16[_0x22c0ae(0x17a)],JSON[_0x22c0ae(0x16a)](_0x3d524a[_0x22c0ae(0x15f)](clean,_0x1bed16[_0x22c0ae(0x13d)])),JSON[_0x22c0ae(0x16a)](_0x3d524a[_0x22c0ae(0x17c)](clean,_0x1bed16[_0x22c0ae(0x14c)]))]);}return _0x59eee2;}};}
@@ -1 +1 @@
1
- function _0x3648(){const _0x19ab59=['auth','parseOptions','database','registerUserSerializer','20qzaVvP','9HCRZPZ','secret','3239112mWCaLV','295888bmFVTV','Missing\x20config\x20or\x20redis\x20-\x20skipping\x20session\x20store\x20creation','warn','3233659PENERF','FMsnF','DBOpG','ctfic','760458dzPhcF','6AEdYAp','1561872EAhlXS','test','user','1204820GkjwGT','cookieOptions','secureSession','cookieName','register','5oETPwn','24HiGatW','10289146swcWMu','registerUserDeserializer','initialize'];_0x3648=function(){return _0x19ab59;};return _0x3648();}(function(_0x583b26,_0x5b8ba6){const _0x53c1c7=_0x20f0,_0x4c6899=_0x583b26();while(!![]){try{const _0x12073b=parseInt(_0x53c1c7(0xac))/0x1*(-parseInt(_0x53c1c7(0xb9))/0x2)+parseInt(_0x53c1c7(0xc1))/0x3*(parseInt(_0x53c1c7(0xb8))/0x4)+parseInt(_0x53c1c7(0xb5))/0x5*(parseInt(_0x53c1c7(0xc0))/0x6)+-parseInt(_0x53c1c7(0xae))/0x7+parseInt(_0x53c1c7(0xc2))/0x8+-parseInt(_0x53c1c7(0xb6))/0x9*(-parseInt(_0x53c1c7(0xc5))/0xa)+-parseInt(_0x53c1c7(0xbc))/0xb*(-parseInt(_0x53c1c7(0xad))/0xc);if(_0x12073b===_0x5b8ba6)break;else _0x4c6899['push'](_0x4c6899['shift']());}catch(_0x132eca){_0x4c6899['push'](_0x4c6899['shift']());}}}(_0x3648,0xc8568));function _0x20f0(_0x2f529e,_0x34accd){_0x2f529e=_0x2f529e-0xac;const _0x3648a2=_0x3648();let _0x20f00f=_0x3648a2[_0x2f529e];return _0x20f00f;}export*from'./auth.types.js';import _0x4170dc from'@fastify/cookie';import _0x117378 from'@fastify/session';import{Authenticator}from'@fastify/passport';import _0x2a9c6d from'fastify-session-redis-store';const fastifyPassport=new Authenticator();export async function createSessionStore(_0x101a4a,_0x30b1ec){const _0x28dc4c=_0x20f0,_0x1c77b1={};_0x1c77b1[_0x28dc4c(0xbe)]=function(_0x1a3a8c,_0x3ed1af){return _0x1a3a8c||_0x3ed1af;},_0x1c77b1[_0x28dc4c(0xbd)]=function(_0x26af57,_0x4a481a){return _0x26af57===_0x4a481a;},_0x1c77b1[_0x28dc4c(0xbf)]=_0x28dc4c(0xc3);const _0x3d7365=_0x1c77b1,{config:_0x53d17b,redis:_0x2bd5f5}=_0x30b1ec;if(_0x3d7365[_0x28dc4c(0xbe)](!_0x53d17b,!_0x2bd5f5)){console[_0x28dc4c(0xbb)](_0x28dc4c(0xba));return;}if(_0x3d7365[_0x28dc4c(0xbd)](process.env.NODE_ENV,_0x3d7365[_0x28dc4c(0xbf)])||process.env.VITEST)return;const _0x4e65cc={};_0x4e65cc[_0x28dc4c(0xb2)]=_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xc6)],await _0x101a4a[_0x28dc4c(0xc9)](_0x4170dc,_0x4e65cc),await _0x101a4a[_0x28dc4c(0xc9)](_0x117378,{'secret':_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xb7)],'cookieName':_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xc8)],'cookie':_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xc6)],'store':new _0x2a9c6d({'prefix':_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xc8)]+':'+(_0x53d17b['pg']?.[_0x28dc4c(0xb3)]||'db')+':','client':_0x2bd5f5})}),await _0x101a4a[_0x28dc4c(0xc9)](fastifyPassport[_0x28dc4c(0xb0)]()),await _0x101a4a[_0x28dc4c(0xc9)](fastifyPassport[_0x28dc4c(0xc7)]()),fastifyPassport[_0x28dc4c(0xb4)](async _0x9cca8a=>({'user':_0x9cca8a})),fastifyPassport[_0x28dc4c(0xaf)](async _0x5dda65=>_0x5dda65?.[_0x28dc4c(0xc4)]||_0x5dda65);}
1
+ (function(_0x22902a,_0x432628){const _0x1aac61=_0x1fca,_0x1caf6b=_0x22902a();while(!![]){try{const _0x37c55c=-parseInt(_0x1aac61(0xdc))/0x1*(parseInt(_0x1aac61(0xda))/0x2)+parseInt(_0x1aac61(0xe8))/0x3*(parseInt(_0x1aac61(0xdb))/0x4)+parseInt(_0x1aac61(0xd9))/0x5*(parseInt(_0x1aac61(0xd3))/0x6)+parseInt(_0x1aac61(0xce))/0x7+parseInt(_0x1aac61(0xe9))/0x8*(-parseInt(_0x1aac61(0xd1))/0x9)+-parseInt(_0x1aac61(0xe0))/0xa*(-parseInt(_0x1aac61(0xd0))/0xb)+-parseInt(_0x1aac61(0xdf))/0xc*(parseInt(_0x1aac61(0xe6))/0xd);if(_0x37c55c===_0x432628)break;else _0x1caf6b['push'](_0x1caf6b['shift']());}catch(_0x363b6a){_0x1caf6b['push'](_0x1caf6b['shift']());}}}(_0x17e5,0x630aa));export*from'./auth.types.js';import _0x2b9b9b from'@fastify/cookie';function _0x1fca(_0x656d36,_0xfc0da1){_0x656d36=_0x656d36-0xcd;const _0x17e5a7=_0x17e5();let _0x1fcaf3=_0x17e5a7[_0x656d36];return _0x1fcaf3;}import _0x1b33fe from'@fastify/session';import{Authenticator}from'@fastify/passport';import _0x5acb79 from'fastify-session-redis-store';function _0x17e5(){const _0x57f7ab=['45EvmSYS','auth','4829934FAnqxK','initialize','parseOptions','cookieName','warn','Tcswd','5XLyExl','2qGFiOF','4RbINUS','502669snovej','Missing\x20config\x20or\x20redis\x20-\x20skipping\x20session\x20store\x20creation','register','317784tkeIlK','10uXxGqv','wNqrC','user','DUmDt','test','secret','273hDMRLb','database','199989jbiaAr','60568SlGwLl','yrZAJ','registerUserDeserializer','secureSession','cookieOptions','3758139inmbUv','registerUserSerializer','1031701wxZdyx'];_0x17e5=function(){return _0x57f7ab;};return _0x17e5();}const fastifyPassport=new Authenticator();export async function createSessionStore(_0xde424e,_0x5b6002){const _0xd644d0=_0x1fca,_0x21fab9={};_0x21fab9[_0xd644d0(0xe1)]=function(_0x39fe6f,_0x34a4ff){return _0x39fe6f||_0x34a4ff;},_0x21fab9[_0xd644d0(0xe3)]=_0xd644d0(0xdd),_0x21fab9[_0xd644d0(0xd8)]=function(_0x3837a1,_0x4eef25){return _0x3837a1===_0x4eef25;},_0x21fab9[_0xd644d0(0xea)]=_0xd644d0(0xe4);const _0x3ec43f=_0x21fab9,{config:_0x58a22a,redis:_0x422f54}=_0x5b6002;if(_0x3ec43f[_0xd644d0(0xe1)](!_0x58a22a,!_0x422f54)){console[_0xd644d0(0xd7)](_0x3ec43f[_0xd644d0(0xe3)]);return;}if(_0x3ec43f[_0xd644d0(0xd8)](process.env.NODE_ENV,_0x3ec43f[_0xd644d0(0xea)])||process.env.VITEST)return;const _0x55f7c3={};_0x55f7c3[_0xd644d0(0xd5)]=_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xcd)],await _0xde424e[_0xd644d0(0xde)](_0x2b9b9b,_0x55f7c3),await _0xde424e[_0xd644d0(0xde)](_0x1b33fe,{'secret':_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xe5)],'cookieName':_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xd6)],'cookie':_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xcd)],'store':new _0x5acb79({'prefix':_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xd6)]+':'+(_0x58a22a['pg']?.[_0xd644d0(0xe7)]||'db')+':','client':_0x422f54})}),await _0xde424e[_0xd644d0(0xde)](fastifyPassport[_0xd644d0(0xd4)]()),await _0xde424e[_0xd644d0(0xde)](fastifyPassport[_0xd644d0(0xec)]()),fastifyPassport[_0xd644d0(0xcf)](async _0x551ef5=>({'user':_0x551ef5})),fastifyPassport[_0xd644d0(0xeb)](async _0x1117f2=>_0x1117f2?.[_0xd644d0(0xe2)]||_0x1117f2);}
@@ -1 +1 @@
1
- (function(_0x290b48,_0x360b81){const _0x36b07f=_0x3c65,_0x59fc85=_0x290b48();while(!![]){try{const _0x34932e=parseInt(_0x36b07f(0x242))/0x1*(parseInt(_0x36b07f(0x1f2))/0x2)+-parseInt(_0x36b07f(0x252))/0x3+-parseInt(_0x36b07f(0x220))/0x4+parseInt(_0x36b07f(0x214))/0x5*(parseInt(_0x36b07f(0x23b))/0x6)+-parseInt(_0x36b07f(0x236))/0x7+-parseInt(_0x36b07f(0x253))/0x8+-parseInt(_0x36b07f(0x21d))/0x9;if(_0x34932e===_0x360b81)break;else _0x59fc85['push'](_0x59fc85['shift']());}catch(_0x3ff6e0){_0x59fc85['push'](_0x59fc85['shift']());}}}(_0x1373,0xe46d4));function _0x1373(){const _0x4e8e8b=['XJtjW','hwdTC','then','SAWfc','6bbAPXi','Invalid\x20dictionary\x20items:\x20','Dictionary\x20table\x20not\x20found','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20di.id,\x20di.code,\x20di.name,\x20di.parent_id\x20AS\x20\x22parentId\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionary_items\x20di\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20admin.dictionaries\x20d\x20ON\x20d.id\x20=\x20di.dictionary_id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20d.code\x20=\x20$1\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20di.name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','oTFWm','baElX','release','1219KMghCM','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionary_items\x20(dictionary_id,\x20code,\x20name,\x20parent_id)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Invalid\x20dictionary\x20name:\x20','Dictionary\x20not\x20found:\x20','TMKbm','length','kbKTo','DELETE\x20FROM\x20admin.dictionary_items\x20WHERE\x20dictionary_id\x20=\x20$1','Kuane','code','QfmEk','ZPrig','gzuxQ','dCZHP','get','uloPV','3747840dOMRKf','105776JolZyb','LSulM','YMrPG','table_name','nhqXi','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20code,\x20name,\x20\x27database\x27\x20AS\x20source\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionaries\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','cKXRN','connect','LLDgN','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionaries\x20(code,\x20name,\x20module,\x20source,\x20editable)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4,\x20$5)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(code)\x20DO\x20UPDATE\x20SET\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20=\x20EXCLUDED.name,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20module\x20=\x20EXCLUDED.module,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20source\x20=\x20EXCLUDED.source,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20editable\x20=\x20EXCLUDED.editable,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updated_at\x20=\x20now()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2914jgUoSa','JDkOy','VyKDe','XTpag','BEGIN','SQylw','items','ikEpN','name','mrdDr','test','jgAmF','empty\x20pg','ROLLBACK','punDe','Jvxuo','fcore','PYskT','list','isArray','map','zMrhW','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20table_name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20information_schema.tables\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20table_schema\x20=\x20\x27admin\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20AND\x20table_name\x20=\x20\x27dictionaries\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20LIMIT\x201\x0a\x20\x20\x20\x20\x20\x20\x20\x20','TsaII','aOEmD','register','push','delete','clear','ZOURG','YRJUq','set','AurCr','yNKon','8411695FQstLJ','static','IFvyR','database','rows','dictionaries','FeUEh','znrAz','has','4776750iWdrsP','values','zGFiN','1586236nqGulV','YlDuf','parentId','put','TbSUE','Dictionary\x20already\x20registered:\x20','CFoUE','COMMIT','KgZON','hFFcr','fDVGi','fpSKO','tQXpZ','HanWr','aXYXP','Bcufb','Dictionary\x20items\x20must\x20be\x20an\x20array','custom','qnjvr','jYwBY','DCWAv','query','2330825UYFJYU'];_0x1373=function(){return _0x4e8e8b;};return _0x1373();}import{ConflictError,NotFoundError,ValidationError}from'../errors.js';const dictionaryName=/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;function _0x3c65(_0x431639,_0x121a1a){_0x431639=_0x431639-0x1ee;const _0x1373b2=_0x1373();let _0x3c65f1=_0x1373b2[_0x431639];return _0x3c65f1;}export function createDictionary({pg:_0x4c6ac4,dictionaries:dictionaries=[]}){const _0x30e554=_0x3c65,_0x234d50={'KgZON':_0x30e554(0x1fe),'yNKon':function(_0x2788aa,_0x16aa52){return _0x2788aa===_0x16aa52;},'SQylw':_0x30e554(0x219),'DCWAv':function(_0x7a40d9,_0x17d319){return _0x7a40d9!==_0x17d319;},'fpSKO':_0x30e554(0x207),'CFoUE':_0x30e554(0x1f3),'YlDuf':_0x30e554(0x24a),'qnjvr':_0x30e554(0x215),'ikEpN':function(_0x57dd2e,_0x153bd8){return _0x57dd2e(_0x153bd8);},'mrdDr':function(_0x123100,_0x1b95b4){return _0x123100===_0x1b95b4;},'QfmEk':_0x30e554(0x1f4),'aXYXP':_0x30e554(0x23d),'gzuxQ':_0x30e554(0x1fd),'YRJUq':_0x30e554(0x217),'IFvyR':function(_0x1c5e03,_0x88ee6c){return _0x1c5e03(_0x88ee6c);},'ZPrig':function(_0x2c19dd,_0x4c8b0d){return _0x2c19dd(_0x4c8b0d);},'XJtjW':_0x30e554(0x238),'SAWfc':_0x30e554(0x257),'ZOURG':function(_0x9b91ef){return _0x9b91ef();},'jYwBY':_0x30e554(0x1f6),'fDVGi':_0x30e554(0x231),'kbKTo':_0x30e554(0x249),'cKXRN':_0x30e554(0x1f0),'uloPV':_0x30e554(0x227),'TMKbm':_0x30e554(0x21b),'oTFWm':_0x30e554(0x240),'PYskT':_0x30e554(0x1ff),'LSulM':_0x30e554(0x229),'Jvxuo':function(_0x2d2c58,_0x139bff){return _0x2d2c58(_0x139bff);},'FeUEh':_0x30e554(0x224),'HanWr':function(_0x3390e1,_0x55a261){return _0x3390e1!==_0x55a261;},'TsaII':_0x30e554(0x20a),'punDe':_0x30e554(0x212),'Bcufb':function(_0x375578,_0x3798a9){return _0x375578(_0x3798a9);}},_0x39d76f=new Map();let _0x89fc01,_0x23efbc;async function _0x29dc85(){const _0x45737c=_0x30e554,_0x51990b={'XTpag':_0x234d50[_0x45737c(0x228)],'zGFiN':function(_0x5209e7,_0x369b3f){const _0x4d5e5a=_0x45737c;return _0x234d50[_0x4d5e5a(0x213)](_0x5209e7,_0x369b3f);},'YMrPG':_0x234d50[_0x45737c(0x1f7)]};if(_0x234d50[_0x45737c(0x234)](_0x89fc01,undefined)){if(_0x234d50[_0x45737c(0x22b)]!==_0x234d50[_0x45737c(0x22b)])throw new _0x18d855(_0x51990b[_0x45737c(0x1f5)]);else return _0x89fc01;}if(!_0x4c6ac4)throw new Error(_0x45737c(0x1fe));return _0x23efbc??=_0x4c6ac4[_0x45737c(0x235)](_0x45737c(0x208))[_0x45737c(0x239)](_0x42c8a5=>{const _0x3205f1=_0x45737c,_0x1e80ae=_0x42c8a5[_0x3205f1(0x218)][0x0]?.[_0x3205f1(0x256)];_0x89fc01=_0x51990b[_0x3205f1(0x21f)](_0x1e80ae,_0x51990b[_0x3205f1(0x255)])?_0x1e80ae:null;}),await _0x23efbc,_0x89fc01;}function _0x41aa40(_0x558543){const _0x4c2cb2=_0x30e554,_0x5b00ac={};_0x5b00ac[_0x4c2cb2(0x22c)]=_0x4c2cb2(0x1fe);const _0x313553=_0x5b00ac;if(!dictionaryName[_0x4c2cb2(0x1fc)](_0x558543)){if(_0x234d50[_0x4c2cb2(0x234)](_0x234d50[_0x4c2cb2(0x226)],_0x234d50[_0x4c2cb2(0x226)]))throw new _0x3fc7cb(_0x313553[_0x4c2cb2(0x22c)]);else throw new ValidationError(_0x4c2cb2(0x244)+_0x558543);}}function _0x34f8cd(_0x4e9ae1){const _0x4d6417=_0x30e554;for(const _0x1f148c of Array[_0x4d6417(0x205)](_0x4e9ae1)?_0x4e9ae1:[_0x4e9ae1]){_0x41aa40(_0x1f148c[_0x4d6417(0x24b)]);if(!Array[_0x4d6417(0x205)](_0x1f148c[_0x4d6417(0x1f8)])){if(_0x234d50[_0x4d6417(0x221)]===_0x4d6417(0x24a))throw new ValidationError(_0x4d6417(0x23c)+_0x1f148c[_0x4d6417(0x24b)]);else throw new _0xdedf33(_0x4d6417(0x245)+_0xcb0e87);}if(_0x39d76f[_0x4d6417(0x21c)](_0x1f148c[_0x4d6417(0x24b)]))throw new ConflictError(_0x4d6417(0x225)+_0x1f148c[_0x4d6417(0x24b)]);_0x39d76f[_0x4d6417(0x211)](_0x1f148c[_0x4d6417(0x24b)],{..._0x1f148c,'source':_0x234d50[_0x4d6417(0x232)]});}}async function _0x3437aa(_0x4640a4){const _0x5bbbbb=_0x30e554;_0x234d50[_0x5bbbbb(0x1f9)](_0x41aa40,_0x4640a4);const _0x10d133=_0x39d76f[_0x5bbbbb(0x250)](_0x4640a4);if(_0x10d133)return _0x10d133[_0x5bbbbb(0x1f8)];const _0x4f890d=await _0x29dc85();if(!_0x4f890d){if(_0x234d50[_0x5bbbbb(0x1fb)](_0x234d50[_0x5bbbbb(0x24c)],_0x234d50[_0x5bbbbb(0x24c)]))throw new NotFoundError(_0x234d50[_0x5bbbbb(0x22e)]);else{const _0x2523f9=_0x148fed[_0x5bbbbb(0x218)][0x0]?.[_0x5bbbbb(0x256)];_0x2a4525=_0x2523f9===_0x5bbbbb(0x219)?_0x2523f9:null;}}if(!_0x4c6ac4){if(_0x234d50[_0x5bbbbb(0x213)](_0x234d50[_0x5bbbbb(0x24e)],_0x5bbbbb(0x1fd)))throw new Error(_0x5bbbbb(0x1fe));else!_0x37a20a[_0x5bbbbb(0x21c)](_0x3251d1[_0x5bbbbb(0x24b)])&&_0x1a05f3[_0x5bbbbb(0x20c)](_0x2138f9);}const _0x4ef481=await _0x4c6ac4[_0x5bbbbb(0x235)](_0x5bbbbb(0x23e),[_0x4640a4]);if(!_0x4ef481[_0x5bbbbb(0x218)][_0x5bbbbb(0x247)])throw new NotFoundError(_0x5bbbbb(0x245)+_0x4640a4);const _0x267ac0=_0x4ef481[_0x5bbbbb(0x218)];return _0x39d76f[_0x5bbbbb(0x211)](_0x4640a4,{'code':_0x4640a4,'name':_0x4640a4,'items':_0x267ac0,'source':_0x234d50[_0x5bbbbb(0x210)]}),_0x267ac0;}async function _0x20c30d(_0x396f3b,_0x583b2e){const _0x58a431=_0x30e554;_0x234d50[_0x58a431(0x24d)](_0x41aa40,_0x396f3b);if(!Array[_0x58a431(0x205)](_0x583b2e)){if(_0x234d50[_0x58a431(0x237)]!==_0x234d50[_0x58a431(0x23a)])throw new ValidationError(_0x58a431(0x230));else throw new _0x2ec4b2(_0x234d50[_0x58a431(0x22e)]);}const _0x4f4929=await _0x234d50[_0x58a431(0x20f)](_0x29dc85);if(!_0x4f4929)throw new NotFoundError(_0x234d50[_0x58a431(0x22e)]);if(!_0x4c6ac4)throw new Error(_0x234d50[_0x58a431(0x228)]);const _0x5f55f5=await _0x4c6ac4[_0x58a431(0x1ef)]();try{await _0x5f55f5[_0x58a431(0x235)](_0x234d50[_0x58a431(0x233)]);const _0x454c16=await _0x5f55f5[_0x58a431(0x235)](_0x58a431(0x1f1),[_0x396f3b,_0x396f3b,_0x58a431(0x202),_0x234d50[_0x58a431(0x22a)],!![]]),_0x3d97f9=_0x454c16[_0x58a431(0x218)][0x0]['id'];await _0x5f55f5[_0x58a431(0x235)](_0x234d50[_0x58a431(0x248)],[_0x3d97f9]);for(const _0x32fb5a of _0x583b2e){_0x234d50[_0x58a431(0x1ee)]===_0x234d50[_0x58a431(0x1ee)]?await _0x5f55f5[_0x58a431(0x235)](_0x58a431(0x243),[_0x3d97f9,_0x32fb5a[_0x58a431(0x24b)],_0x32fb5a[_0x58a431(0x1fa)],_0x32fb5a[_0x58a431(0x222)]??null]):_0xa79a6f[_0x58a431(0x241)]();}await _0x5f55f5[_0x58a431(0x235)](_0x234d50[_0x58a431(0x251)]);}catch(_0x1e5a92){if(_0x234d50[_0x58a431(0x246)]!==_0x234d50[_0x58a431(0x23f)]){await _0x5f55f5[_0x58a431(0x235)](_0x234d50[_0x58a431(0x203)]);throw _0x1e5a92;}else return _0x5d65d7[_0x58a431(0x1f8)];}finally{if(_0x234d50[_0x58a431(0x1fb)](_0x234d50[_0x58a431(0x254)],_0x58a431(0x229)))_0x5f55f5[_0x58a431(0x241)]();else return _0x234d50[_0x58a431(0x216)](_0x15aa3f,_0x5e5ea3),_0x5da23d[_0x58a431(0x20d)](_0x5ea0d2);}_0x234d50[_0x58a431(0x201)](_0x2f74f5,_0x396f3b);}function _0x2f74f5(_0x3c2a9c){const _0x25d335=_0x30e554;return _0x234d50[_0x25d335(0x216)](_0x41aa40,_0x3c2a9c),_0x39d76f[_0x25d335(0x20d)](_0x3c2a9c);}async function _0x31e7e5(){const _0x58a313=_0x30e554;if(_0x234d50[_0x58a313(0x234)](_0x234d50[_0x58a313(0x21a)],_0x58a313(0x24f))){const _0x475686=[..._0x39d76f[_0x58a313(0x21e)]()][_0x58a313(0x206)](({code:_0x20933c,name:_0x2b9468,source:_0x1c3e3b})=>({'code':_0x20933c,'name':_0x2b9468??_0x20933c,'source':_0x1c3e3b})),_0x32d88c=await _0x234d50[_0x58a313(0x20f)](_0x29dc85);if(!_0x32d88c){if(_0x234d50[_0x58a313(0x22d)](_0x234d50[_0x58a313(0x209)],_0x234d50[_0x58a313(0x200)]))return _0x475686;else throw new _0x1920a9(_0x58a313(0x225)+_0x36ebf1[_0x58a313(0x24b)]);}if(!_0x4c6ac4)throw new Error(_0x234d50[_0x58a313(0x228)]);const _0xc4df03=await _0x4c6ac4[_0x58a313(0x235)](_0x58a313(0x258));for(const _0x30457f of _0xc4df03[_0x58a313(0x218)]){!_0x39d76f[_0x58a313(0x21c)](_0x30457f[_0x58a313(0x24b)])&&_0x475686[_0x58a313(0x20c)](_0x30457f);}return _0x475686;}else for(const _0x20930b of _0x2df3df[_0x58a313(0x205)](_0x3c7649)?_0x171b86:[_0x48c62d]){_0x234d50[_0x58a313(0x201)](_0x4269ef,_0x20930b[_0x58a313(0x24b)]);if(!_0x5f4913[_0x58a313(0x205)](_0x20930b[_0x58a313(0x1f8)]))throw new _0x2911b5(_0x58a313(0x23c)+_0x20930b[_0x58a313(0x24b)]);if(_0x54856c[_0x58a313(0x21c)](_0x20930b[_0x58a313(0x24b)]))throw new _0x49ea03(_0x58a313(0x225)+_0x20930b[_0x58a313(0x24b)]);_0x4b9f95[_0x58a313(0x211)](_0x20930b[_0x58a313(0x24b)],{..._0x20930b,'source':_0x58a313(0x215)});}}_0x234d50[_0x30e554(0x22f)](_0x34f8cd,dictionaries);const _0xda75b={};return _0xda75b[_0x30e554(0x20b)]=_0x34f8cd,_0xda75b[_0x30e554(0x250)]=_0x3437aa,_0xda75b[_0x30e554(0x223)]=_0x20c30d,_0xda75b[_0x30e554(0x20e)]=_0x2f74f5,_0xda75b[_0x30e554(0x204)]=_0x31e7e5,_0xda75b;}
1
+ (function(_0x1af561,_0x15288e){const _0x52c573=_0x374b,_0x58582d=_0x1af561();while(!![]){try{const _0x362c82=parseInt(_0x52c573(0xd8))/0x1*(-parseInt(_0x52c573(0xf3))/0x2)+-parseInt(_0x52c573(0x101))/0x3*(-parseInt(_0x52c573(0x132))/0x4)+parseInt(_0x52c573(0x13d))/0x5+parseInt(_0x52c573(0x12b))/0x6+-parseInt(_0x52c573(0x12d))/0x7*(parseInt(_0x52c573(0x116))/0x8)+parseInt(_0x52c573(0x11a))/0x9+-parseInt(_0x52c573(0x135))/0xa;if(_0x362c82===_0x15288e)break;else _0x58582d['push'](_0x58582d['shift']());}catch(_0x120ad5){_0x58582d['push'](_0x58582d['shift']());}}}(_0x2401,0x892cb));import{ConflictError,NotFoundError,ValidationError}from'../errors.js';const dictionaryName=/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;export function createDictionary({pg:_0x561a54,dictionaries:dictionaries=[]}){const _0xb891ab=_0x374b,_0x56cac8={'RZGTR':function(_0xdef1f9,_0x565f3a){return _0xdef1f9===_0x565f3a;},'NCQSi':function(_0x3f4ee3,_0x3bf17d){return _0x3f4ee3!==_0x3bf17d;},'LaZjl':_0xb891ab(0xf8),'nQlaG':_0xb891ab(0x142),'oPJjE':function(_0x5edc3c,_0x351f27){return _0x5edc3c===_0x351f27;},'PAZMV':_0xb891ab(0xdc),'sdjQi':_0xb891ab(0x13e),'ceYch':function(_0x59fda,_0x218d58){return _0x59fda(_0x218d58);},'MJMAs':_0xb891ab(0xe2),'YiQVT':_0xb891ab(0xed),'WNDpy':_0xb891ab(0x106),'vvEnH':_0xb891ab(0xe8),'wtCiI':function(_0x1b7c9e){return _0x1b7c9e();},'eLKzC':_0xb891ab(0xe9),'dsDzA':_0xb891ab(0x11e),'LOwvl':_0xb891ab(0x122),'uaDnv':function(_0x9f5e11,_0x529318){return _0x9f5e11!==_0x529318;},'XjpRh':_0xb891ab(0x136),'TyxwI':_0xb891ab(0xec),'Dvlbc':_0xb891ab(0x127),'eHrFa':function(_0x1d2e93,_0x561352){return _0x1d2e93(_0x561352);},'JHEqz':function(_0x1329db,_0x7ed506){return _0x1329db!==_0x7ed506;},'SdUCn':_0xb891ab(0x140),'ssjAw':_0xb891ab(0x111),'oSoon':_0xb891ab(0xfa),'tWpNy':_0xb891ab(0x114),'nFhuG':_0xb891ab(0x115),'sDFlF':_0xb891ab(0x10a),'dwOUR':function(_0x319e63,_0x8adbea){return _0x319e63(_0x8adbea);},'DwbOh':function(_0x3330b2,_0xf1a9db){return _0x3330b2(_0xf1a9db);},'ypYqZ':_0xb891ab(0x130),'dKLsP':function(_0xbac54b){return _0xbac54b();},'HUQrq':_0xb891ab(0xf4)},_0x398d15=new Map();let _0x1957fa,_0x51d102;async function _0x47b3fd(){const _0x15b354=_0xb891ab;if(_0x56cac8[_0x15b354(0x141)](_0x1957fa,undefined))return _0x1957fa;if(!_0x561a54){if(_0x56cac8[_0x15b354(0x12f)](_0x56cac8[_0x15b354(0x103)],_0x15b354(0x108)))throw new _0x30dc06(_0x15b354(0x12e)+_0x3bbdc6[_0x15b354(0xea)]);else throw new Error(_0x56cac8[_0x15b354(0x123)]);}return _0x51d102??=_0x561a54[_0x15b354(0xe7)](_0x15b354(0x10c))[_0x15b354(0x110)](_0x37cf8d=>{const _0x3bc136=_0x15b354,_0x5d0e65=_0x37cf8d[_0x3bc136(0x10b)][0x0]?.[_0x3bc136(0xd9)];_0x1957fa=_0x56cac8[_0x3bc136(0x12f)](_0x5d0e65,_0x3bc136(0x131))?_0x5d0e65:null;}),await _0x51d102,_0x1957fa;}function _0x36c77d(_0x351a1e){const _0x5d07d1=_0xb891ab,_0x5619b7={};_0x5619b7[_0x5d07d1(0xde)]=_0x5d07d1(0x142);const _0x1037bf=_0x5619b7;if(!dictionaryName[_0x5d07d1(0xf7)](_0x351a1e)){if(_0x56cac8[_0x5d07d1(0x102)](_0x56cac8[_0x5d07d1(0x11f)],_0x56cac8[_0x5d07d1(0x11f)]))throw new ValidationError(_0x5d07d1(0x118)+_0x351a1e);else throw new _0x286194(TWAxID[_0x5d07d1(0xde)]);}}function _0x276625(_0x5cf9cd){const _0x5117de=_0xb891ab;if(_0x56cac8[_0x5117de(0x12f)](_0x56cac8[_0x5117de(0xef)],_0x5117de(0x10e)))throw new _0x190341(_0x5117de(0x139)+_0x48ab78);else for(const _0x73a2b2 of Array[_0x5117de(0xe6)](_0x5cf9cd)?_0x5cf9cd:[_0x5cf9cd]){_0x56cac8[_0x5117de(0x11d)](_0x36c77d,_0x73a2b2[_0x5117de(0xea)]);if(!Array[_0x5117de(0xe6)](_0x73a2b2[_0x5117de(0xfe)]))throw new ValidationError(_0x5117de(0xe5)+_0x73a2b2[_0x5117de(0xea)]);if(_0x398d15[_0x5117de(0x113)](_0x73a2b2[_0x5117de(0xea)]))throw new ConflictError(_0x5117de(0x12e)+_0x73a2b2[_0x5117de(0xea)]);_0x398d15[_0x5117de(0xdb)](_0x73a2b2[_0x5117de(0xea)],{..._0x73a2b2,'source':_0x56cac8[_0x5117de(0x134)]});}}async function _0x5c18fb(_0x28e682){const _0x4851fc=_0xb891ab,_0xbd36ff={'WcPvG':function(_0x555f12,_0x15b0c0){return _0x555f12(_0x15b0c0);},'ehPWC':_0x56cac8[_0x4851fc(0x134)]};if(_0x56cac8[_0x4851fc(0x141)](_0x56cac8[_0x4851fc(0x12c)],_0x56cac8[_0x4851fc(0x12c)]))for(const _0x57a586 of _0x3423a7[_0x4851fc(0xe6)](_0x3fa13c)?_0x312a73:[_0x3617d3]){HpgMwZ[_0x4851fc(0x126)](_0x58077c,_0x57a586[_0x4851fc(0xea)]);if(!_0x1448d2[_0x4851fc(0xe6)](_0x57a586[_0x4851fc(0xfe)]))throw new _0x52df87(_0x4851fc(0xe5)+_0x57a586[_0x4851fc(0xea)]);if(_0x1a58bc[_0x4851fc(0x113)](_0x57a586[_0x4851fc(0xea)]))throw new _0xeba20b(_0x4851fc(0x12e)+_0x57a586[_0x4851fc(0xea)]);_0x1030fa[_0x4851fc(0xdb)](_0x57a586[_0x4851fc(0xea)],{..._0x57a586,'source':HpgMwZ[_0x4851fc(0xe0)]});}else{_0x36c77d(_0x28e682);const _0x51e560=_0x398d15[_0x4851fc(0xe3)](_0x28e682);if(_0x51e560){if(_0x56cac8[_0x4851fc(0xff)]!==_0x56cac8[_0x4851fc(0xff)])throw new _0x1c2dcd(_0x56cac8[_0x4851fc(0x13a)]);else return _0x51e560[_0x4851fc(0xfe)];}const _0x3591f9=await _0x56cac8[_0x4851fc(0xf5)](_0x47b3fd);if(!_0x3591f9)throw new NotFoundError(_0x56cac8[_0x4851fc(0x125)]);if(!_0x561a54){if(_0x56cac8[_0x4851fc(0x12f)](_0x56cac8[_0x4851fc(0xfd)],_0x56cac8[_0x4851fc(0xf2)]))!_0x455aff[_0x4851fc(0x113)](_0x51ec35[_0x4851fc(0xea)])&&_0x337740[_0x4851fc(0xeb)](_0x5f1d18);else throw new Error(_0x56cac8[_0x4851fc(0x123)]);}const _0x5ecd3e=await _0x561a54[_0x4851fc(0xe7)](_0x4851fc(0x105),[_0x28e682]);if(!_0x5ecd3e[_0x4851fc(0x10b)][_0x4851fc(0x119)]){if(_0x56cac8[_0x4851fc(0xdf)](_0x56cac8[_0x4851fc(0x128)],_0x56cac8[_0x4851fc(0x11b)]))throw new NotFoundError(_0x4851fc(0x139)+_0x28e682);else return _0x4b0af4;}const _0x10dac8=_0x5ecd3e[_0x4851fc(0x10b)];return _0x398d15[_0x4851fc(0xdb)](_0x28e682,{'code':_0x28e682,'name':_0x28e682,'items':_0x10dac8,'source':_0x56cac8[_0x4851fc(0x13f)]}),_0x10dac8;}}async function _0x43072d(_0x24f5a5,_0x2ff862){const _0x276fdf=_0xb891ab;_0x56cac8[_0x276fdf(0x13c)](_0x36c77d,_0x24f5a5);if(!Array[_0x276fdf(0xe6)](_0x2ff862))throw new ValidationError(_0x276fdf(0xed));const _0x3a4e4e=await _0x56cac8[_0x276fdf(0xf5)](_0x47b3fd);if(!_0x3a4e4e){if(_0x56cac8[_0x276fdf(0x13b)](_0x276fdf(0x129),_0x56cac8[_0x276fdf(0x10d)]))throw new NotFoundError(_0x276fdf(0xe9));else{if(!_0x437922[_0x276fdf(0xf7)](_0x4796c4))throw new _0x17340d(_0x276fdf(0x118)+_0x406dc3);}}if(!_0x561a54)throw new Error(_0x56cac8[_0x276fdf(0x123)]);const _0x1f7988=await _0x561a54[_0x276fdf(0xf9)]();try{await _0x1f7988[_0x276fdf(0xe7)](_0x56cac8[_0x276fdf(0x107)]);const _0x1984ac=await _0x1f7988[_0x276fdf(0xe7)](_0x276fdf(0xfc),[_0x24f5a5,_0x24f5a5,_0x56cac8[_0x276fdf(0xda)],_0x56cac8[_0x276fdf(0xe4)],!![]]),_0x142909=_0x1984ac[_0x276fdf(0x10b)][0x0]['id'];await _0x1f7988[_0x276fdf(0xe7)](_0x56cac8[_0x276fdf(0x143)],[_0x142909]);for(const _0x562e3b of _0x2ff862){await _0x1f7988[_0x276fdf(0xe7)](_0x276fdf(0x11c),[_0x142909,_0x562e3b[_0x276fdf(0xea)],_0x562e3b[_0x276fdf(0x100)],_0x562e3b[_0x276fdf(0x112)]??null]);}await _0x1f7988[_0x276fdf(0xe7)](_0x276fdf(0x109));}catch(_0x3af3dc){await _0x1f7988[_0x276fdf(0xe7)](_0x276fdf(0xdd));throw _0x3af3dc;}finally{if(_0x56cac8[_0x276fdf(0x12a)]!==_0x56cac8[_0x276fdf(0x12a)])throw new _0x3614fa(_0x276fdf(0xe9));else _0x1f7988[_0x276fdf(0x10f)]();}_0x56cac8[_0x276fdf(0x138)](_0x3f4696,_0x24f5a5);}function _0x3f4696(_0x3ad1a5){const _0x556fe8=_0xb891ab;return _0x56cac8[_0x556fe8(0x133)](_0x36c77d,_0x3ad1a5),_0x398d15[_0x556fe8(0x120)](_0x3ad1a5);}async function _0x4cf0a5(){const _0x255d98=_0xb891ab,_0x4e2290={};_0x4e2290[_0x255d98(0x121)]=_0x56cac8[_0x255d98(0x125)];const _0x19183f=_0x4e2290;if(_0x56cac8[_0x255d98(0x102)](_0x56cac8[_0x255d98(0xfb)],_0x56cac8[_0x255d98(0xfb)])){const _0x327065=[..._0x398d15[_0x255d98(0xf1)]()][_0x255d98(0xf6)](({code:_0x3ca3f3,name:_0x598539,source:_0x5f2811})=>({'code':_0x3ca3f3,'name':_0x598539??_0x3ca3f3,'source':_0x5f2811})),_0x141126=await _0x56cac8[_0x255d98(0x124)](_0x47b3fd);if(!_0x141126){if(_0x56cac8[_0x255d98(0x137)]!==_0x255d98(0xf4))throw new _0x547bbd(lpYOQV[_0x255d98(0x121)]);else return _0x327065;}if(!_0x561a54)throw new Error(_0x56cac8[_0x255d98(0x123)]);const _0x5d659b=await _0x561a54[_0x255d98(0xe7)](_0x255d98(0x104));for(const _0x32a1c2 of _0x5d659b[_0x255d98(0x10b)]){!_0x398d15[_0x255d98(0x113)](_0x32a1c2[_0x255d98(0xea)])&&_0x327065[_0x255d98(0xeb)](_0x32a1c2);}return _0x327065;}else throw new _0x18dffa(_0x255d98(0xe5)+_0x1af5ff[_0x255d98(0xea)]);}_0x276625(dictionaries);const _0x2b6dff={};return _0x2b6dff[_0xb891ab(0xe1)]=_0x276625,_0x2b6dff[_0xb891ab(0xe3)]=_0x5c18fb,_0x2b6dff[_0xb891ab(0x117)]=_0x43072d,_0x2b6dff[_0xb891ab(0xf0)]=_0x3f4696,_0x2b6dff[_0xb891ab(0xee)]=_0x4cf0a5,_0x2b6dff;}function _0x374b(_0x349a8a,_0x244179){_0x349a8a=_0x349a8a-0xd8;const _0x2401ae=_0x2401();let _0x374b1b=_0x2401ae[_0x349a8a];return _0x374b1b;}function _0x2401(){const _0xdb12da=['DwbOh','MJMAs','10079260izRjRf','UvLcB','HUQrq','dwOUR','Dictionary\x20not\x20found:\x20','YiQVT','JHEqz','eHrFa','3149755ngOuBl','bpTvj','Dvlbc','Arbsn','NCQSi','empty\x20pg','nFhuG','19SuNYQZ','table_name','oSoon','set','jQFRZ','ROLLBACK','dmevZ','uaDnv','ehPWC','register','static','get','tWpNy','Invalid\x20dictionary\x20items:\x20','isArray','query','usDVd','Dictionary\x20table\x20not\x20found','code','push','RxICd','Dictionary\x20items\x20must\x20be\x20an\x20array','list','sdjQi','clear','values','LOwvl','17702OzIeDH','jgXdB','wtCiI','map','test','euMth','connect','fcore','ypYqZ','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionaries\x20(code,\x20name,\x20module,\x20source,\x20editable)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4,\x20$5)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(code)\x20DO\x20UPDATE\x20SET\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20=\x20EXCLUDED.name,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20module\x20=\x20EXCLUDED.module,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20source\x20=\x20EXCLUDED.source,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20editable\x20=\x20EXCLUDED.editable,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updated_at\x20=\x20now()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dsDzA','items','vvEnH','name','27ZLVlRg','oPJjE','LaZjl','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20code,\x20name,\x20\x27database\x27\x20AS\x20source\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionaries\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20di.id,\x20di.code,\x20di.name,\x20di.parent_id\x20AS\x20\x22parentId\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionary_items\x20di\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20admin.dictionaries\x20d\x20ON\x20d.id\x20=\x20di.dictionary_id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20d.code\x20=\x20$1\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20di.name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','EEYcM','ssjAw','cMwhG','COMMIT','HyLgp','rows','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20table_name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20information_schema.tables\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20table_schema\x20=\x20\x27admin\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20AND\x20table_name\x20=\x20\x27dictionaries\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20LIMIT\x201\x0a\x20\x20\x20\x20\x20\x20\x20\x20','SdUCn','hHCPF','release','then','BEGIN','parentId','has','custom','DELETE\x20FROM\x20admin.dictionary_items\x20WHERE\x20dictionary_id\x20=\x20$1','391232hXYGpQ','put','Invalid\x20dictionary\x20name:\x20','length','6770133XxnSPV','TyxwI','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionary_items\x20(dictionary_id,\x20code,\x20name,\x20parent_id)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ceYch','VYwtW','PAZMV','delete','dRXHs','PBJBO','nQlaG','dKLsP','eLKzC','WcPvG','database','XjpRh','OpEXG','sDFlF','3233106hrMzfo','WNDpy','35SqbvZH','Dictionary\x20already\x20registered:\x20','RZGTR','hzOlI','dictionaries','27308jQgCOo'];_0x2401=function(){return _0xdb12da;};return _0x2401();}