@opengis/fcore 0.0.1-beta.2 → 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 (93) 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/resource.types.d.ts +8 -0
  75. package/dist/plugins/resource/resource.types.d.ts.map +1 -1
  76. package/dist/plugins/resource/services/create.d.ts.map +1 -1
  77. package/dist/plugins/resource/services/create.js +1 -1
  78. package/dist/plugins/resource/services/delete.js +1 -1
  79. package/dist/plugins/resource/services/find-one.js +1 -1
  80. package/dist/plugins/resource/services/find.d.ts.map +1 -1
  81. package/dist/plugins/resource/services/find.js +1 -1
  82. package/dist/plugins/resource/services/update.d.ts.map +1 -1
  83. package/dist/plugins/resource/services/update.js +1 -1
  84. package/dist/plugins/resource/utils/fields.d.ts +8 -1
  85. package/dist/plugins/resource/utils/fields.d.ts.map +1 -1
  86. package/dist/plugins/resource/utils/fields.js +1 -1
  87. package/dist/plugins/resource/utils/filters.js +1 -1
  88. package/dist/plugins/resource/utils/permissions.d.ts.map +1 -1
  89. package/dist/plugins/resource/utils/permissions.js +1 -1
  90. package/dist/plugins/resource/utils/sort.js +1 -1
  91. package/dist/plugins/resource/utils/sql.js +1 -1
  92. package/dist/shared/getIP.js +1 -1
  93. package/package.json +1 -2
@@ -1 +1 @@
1
- (function(_0x3ea55d,_0x5b612c){var _0x32ad9e=_0x598d,_0x29cb5b=_0x3ea55d();while(!![]){try{var _0x50829d=-parseInt(_0x32ad9e(0xaf))/0x1*(-parseInt(_0x32ad9e(0xad))/0x2)+parseInt(_0x32ad9e(0xaa))/0x3*(parseInt(_0x32ad9e(0xb3))/0x4)+-parseInt(_0x32ad9e(0xa9))/0x5+-parseInt(_0x32ad9e(0xb1))/0x6+-parseInt(_0x32ad9e(0xb2))/0x7*(-parseInt(_0x32ad9e(0xae))/0x8)+-parseInt(_0x32ad9e(0xac))/0x9*(parseInt(_0x32ad9e(0xb0))/0xa)+parseInt(_0x32ad9e(0xb4))/0xb*(parseInt(_0x32ad9e(0xab))/0xc);if(_0x50829d===_0x5b612c)break;else _0x29cb5b['push'](_0x29cb5b['shift']());}catch(_0x5c4b97){_0x29cb5b['push'](_0x29cb5b['shift']());}}}(_0x58cc,0xbd611));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 _0x598d(_0xe38d7,_0x3d4b9b){_0xe38d7=_0xe38d7-0xa9;var _0x58cc2a=_0x58cc();var _0x598dfe=_0x58cc2a[_0xe38d7];return _0x598dfe;}export*from'./services/get-dictionary.js';function _0x58cc(){var _0x5e9198=['13WjYZul','20zlNovm','5013408kbWwuJ','1179115wQJbQD','1644brEXGa','18358439rTkmFd','7252045wjtYOT','1569SNptjt','12vTUBlO','3752874rVaixs','179926UZPTUN','40KCJqaD'];_0x58cc=function(){return _0x5e9198;};return _0x58cc();}
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 _0x3989f8=_0x1ed5;function _0x2417(){const _0x1d88d8=['5906929hoKuKJ','summary','HOatp','body','gjCfQ','jnqZT','Returns\x20the\x20list\x20of\x20registered\x20platform\x20APIs.','12JbXbqm','ZYaOG','system:logs:read','dictionaryName','SWXCd','/api/system/audit/','SObmH','Updates\x20system\x20settings\x20using\x20flat\x20dot-notation\x20keys.','List\x20APIs','Returns\x20system\x20logger\x20entries\x20for\x20the\x20requested\x20path.','admin','schema','fbeTS','post','DvoWb','RXyyM','system:settings:read','Get\x20platform\x20dictionary','access','tags','/api/system/check','/api/dictionaries/:name','system:check','system:api:read','26270621zRoZPo','9SbLWhy','15982DVeaqK','/api/system/api-list','fcore','Get\x20system\x20settings','system:settings:update','iCQEE','ECkZs','88tvsuZA','6dmwXMW','zTEWC','FgrEu','XMAAh','Returns\x20system\x20settings\x20as\x20nested\x20JSON.','/api/system/settings','YPqxv','List\x20platform\x20dictionaries','settings','Check\x20system\x20health','JlPgQ','get','EGJZG','user','clnPE','ZibPd','Update\x20system\x20settings','/api/dictionaries','Returns\x20a\x20registered\x20platform\x20dictionary\x20by\x20name.','params','iTVlN','339110GAigZg','description','33ceUGXT','system','query','nZHaE','33DjmJch','zDRQB','497416UNxwVd','Returns\x20the\x20system\x20audit\x20log\x20entries.','Get\x20audit\x20log','NBXxQ','Returns\x20all\x20available\x20dictionaries\x20registered\x20by\x20the\x20platform.','801513qAKHJF','bXQcv','iEJmw','/api/system/logger/*','mPevZ','Checks\x20the\x20availability\x20of\x20system\x20dependencies.','audit:read','1999500mnLwcS','Get\x20system\x20log','logger','permissions'];_0x2417=function(){return _0x1d88d8;};return _0x2417();}function _0x1ed5(_0x3dcde4,_0x5619af){_0x3dcde4=_0x3dcde4-0xfd;const _0x24175f=_0x2417();let _0x1ed585=_0x24175f[_0x3dcde4];return _0x1ed585;}(function(_0x3c5d02,_0x2ae42a){const _0x4d1b8e=_0x1ed5,_0x36c6a5=_0x3c5d02();while(!![]){try{const _0x1054f6=parseInt(_0x4d1b8e(0x116))/0x1*(parseInt(_0x4d1b8e(0x14d))/0x2)+-parseInt(_0x4d1b8e(0x14c))/0x3*(parseInt(_0x4d1b8e(0x11c))/0x4)+parseInt(_0x4d1b8e(0x128))/0x5+parseInt(_0x4d1b8e(0xff))/0x6*(-parseInt(_0x4d1b8e(0x12c))/0x7)+-parseInt(_0x4d1b8e(0xfe))/0x8*(parseInt(_0x4d1b8e(0x121))/0x9)+parseInt(_0x4d1b8e(0x114))/0xa*(parseInt(_0x4d1b8e(0x11a))/0xb)+parseInt(_0x4d1b8e(0x133))/0xc*(parseInt(_0x4d1b8e(0x14b))/0xd);if(_0x1054f6===_0x2ae42a)break;else _0x36c6a5['push'](_0x36c6a5['shift']());}catch(_0x55b3cc){_0x36c6a5['push'](_0x36c6a5['shift']());}}}(_0x2417,0x8ff31));import{getSystemSettings}from'./services/get-system-settings.js';import{updateSystemSettings}from'./services/update-system-settings.js';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=_0x192ab9=>_0x192ab9[_0x3989f8(0x10c)];export function systemRoutes(_0x4e9cf5){const _0x19afec=_0x3989f8,_0x33d1f9={};_0x33d1f9[_0x19afec(0x142)]=_0x19afec(0x110),_0x33d1f9[_0x19afec(0x10e)]=_0x19afec(0x117),_0x33d1f9[_0x19afec(0x139)]=_0x19afec(0x106),_0x33d1f9[_0x19afec(0x152)]=_0x19afec(0x120),_0x33d1f9[_0x19afec(0x134)]=_0x19afec(0x13d),_0x33d1f9[_0x19afec(0x11f)]=_0x19afec(0x148),_0x33d1f9[_0x19afec(0x13f)]=_0x19afec(0x14f),_0x33d1f9[_0x19afec(0x105)]=_0x19afec(0x144),_0x33d1f9[_0x19afec(0xfd)]=_0x19afec(0x111),_0x33d1f9[_0x19afec(0x102)]=_0x19afec(0x103),_0x33d1f9[_0x19afec(0x141)]=_0x19afec(0x143),_0x33d1f9[_0x19afec(0x125)]=_0x19afec(0x104),_0x33d1f9[_0x19afec(0x123)]=_0x19afec(0x10f),_0x33d1f9[_0x19afec(0x10b)]=_0x19afec(0x13a),_0x33d1f9[_0x19afec(0x119)]=_0x19afec(0x151),_0x33d1f9[_0x19afec(0x109)]=_0x19afec(0x124),_0x33d1f9[_0x19afec(0x113)]=_0x19afec(0x13c),_0x33d1f9[_0x19afec(0x131)]=_0x19afec(0x138),_0x33d1f9[_0x19afec(0x10d)]=_0x19afec(0x11e),_0x33d1f9[_0x19afec(0x122)]=_0x19afec(0x11d),_0x33d1f9[_0x19afec(0x100)]=_0x19afec(0x127),_0x33d1f9[_0x19afec(0x130)]=_0x19afec(0x108),_0x33d1f9[_0x19afec(0x12e)]=_0x19afec(0x126),_0x33d1f9[_0x19afec(0x101)]=_0x19afec(0x149),_0x33d1f9[_0x19afec(0x137)]=_0x19afec(0x132),_0x33d1f9[_0x19afec(0x11b)]=_0x19afec(0x14a);const _0x503dee=_0x33d1f9;return async _0x2da0a4=>{const _0x19e2db=_0x19afec;_0x2da0a4[_0x19e2db(0x10a)](_0x503dee[_0x19e2db(0x142)],{'schema':{'tags':[_0x19e2db(0x14f),_0x503dee[_0x19e2db(0x10e)]],'summary':_0x503dee[_0x19e2db(0x139)],'description':_0x503dee[_0x19e2db(0x152)],'access':_0x503dee[_0x19e2db(0x134)],'permissions':[]}},async _0x4b7c1c=>listDictionaries({'user':u(_0x4b7c1c)},_0x4e9cf5)),_0x2da0a4[_0x19e2db(0x10a)](_0x503dee[_0x19e2db(0x11f)],{'schema':{'tags':[_0x503dee[_0x19e2db(0x13f)],_0x503dee[_0x19e2db(0x10e)]],'summary':_0x503dee[_0x19e2db(0x105)],'description':_0x503dee[_0x19e2db(0xfd)],'access':_0x503dee[_0x19e2db(0x134)],'permissions':[],'params':systemSchemas[_0x19e2db(0x136)]}},async _0x5a2927=>getDictionary({..._0x5a2927[_0x19e2db(0x112)],'user':u(_0x5a2927)},_0x4e9cf5));const _0x2d9896={};_0x2d9896[_0x19e2db(0x146)]=[_0x19e2db(0x14f),_0x503dee[_0x19e2db(0x10e)]],_0x2d9896[_0x19e2db(0x12d)]=_0x19e2db(0x150),_0x2d9896[_0x19e2db(0x115)]=_0x503dee[_0x19e2db(0x102)],_0x2d9896[_0x19e2db(0x145)]=_0x503dee[_0x19e2db(0x134)],_0x2d9896[_0x19e2db(0x12b)]=[_0x503dee[_0x19e2db(0x141)]];const _0x3f9e94={};_0x3f9e94[_0x19e2db(0x13e)]=_0x2d9896,_0x2da0a4[_0x19e2db(0x10a)](_0x19e2db(0x104),_0x3f9e94,async _0x317829=>getSystemSettings({..._0x317829[_0x19e2db(0x112)],'user':u(_0x317829)},_0x4e9cf5)),_0x2da0a4[_0x19e2db(0x140)](_0x503dee[_0x19e2db(0x125)],{'schema':{'tags':[_0x503dee[_0x19e2db(0x13f)],_0x503dee[_0x19e2db(0x10e)]],'summary':_0x503dee[_0x19e2db(0x123)],'description':_0x503dee[_0x19e2db(0x10b)],'access':_0x503dee[_0x19e2db(0x134)],'permissions':[_0x503dee[_0x19e2db(0x119)]],'body':systemSchemas[_0x19e2db(0x107)]}},async _0x4852b6=>updateSystemSettings({..._0x4852b6[_0x19e2db(0x112)],'patch':_0x4852b6[_0x19e2db(0x12f)],'user':u(_0x4852b6)},_0x4e9cf5)),_0x2da0a4[_0x19e2db(0x10a)](_0x503dee[_0x19e2db(0x109)],{'schema':{'tags':[_0x19e2db(0x14f),_0x503dee[_0x19e2db(0x10e)]],'summary':_0x19e2db(0x129),'description':_0x503dee[_0x19e2db(0x113)],'access':_0x19e2db(0x13d),'permissions':[_0x19e2db(0x135)],'params':systemSchemas[_0x19e2db(0x12a)]}},async _0x1a2789=>getSystemLog({..._0x1a2789[_0x19e2db(0x118)],..._0x1a2789[_0x19e2db(0x112)],'user':u(_0x1a2789)},_0x4e9cf5)),_0x2da0a4[_0x19e2db(0x10a)](_0x503dee[_0x19e2db(0x131)],{'schema':{'tags':[_0x19e2db(0x14f),_0x503dee[_0x19e2db(0x10e)]],'summary':_0x503dee[_0x19e2db(0x10d)],'description':_0x503dee[_0x19e2db(0x122)],'access':_0x503dee[_0x19e2db(0x134)],'permissions':[_0x503dee[_0x19e2db(0x100)]]}},async _0xb32540=>getAuditLog({..._0xb32540[_0x19e2db(0x118)],'user':u(_0xb32540)},_0x4e9cf5));const _0x58cec6={};_0x58cec6[_0x19e2db(0x146)]=[_0x503dee[_0x19e2db(0x13f)],_0x19e2db(0x117)],_0x58cec6[_0x19e2db(0x12d)]=_0x503dee[_0x19e2db(0x130)],_0x58cec6[_0x19e2db(0x115)]=_0x503dee[_0x19e2db(0x12e)],_0x58cec6[_0x19e2db(0x145)]=_0x503dee[_0x19e2db(0x134)],_0x58cec6[_0x19e2db(0x12b)]=[_0x503dee[_0x19e2db(0x101)]];const _0x1102b9={};_0x1102b9[_0x19e2db(0x13e)]=_0x58cec6,_0x2da0a4[_0x19e2db(0x10a)](_0x19e2db(0x147),_0x1102b9,async _0x52c2e2=>checkSystem({'user':u(_0x52c2e2)},_0x4e9cf5));const _0x26f084={};_0x26f084[_0x19e2db(0x146)]=[_0x503dee[_0x19e2db(0x13f)],_0x503dee[_0x19e2db(0x10e)]],_0x26f084[_0x19e2db(0x12d)]=_0x19e2db(0x13b),_0x26f084[_0x19e2db(0x115)]=_0x503dee[_0x19e2db(0x137)],_0x26f084[_0x19e2db(0x145)]=_0x503dee[_0x19e2db(0x134)],_0x26f084[_0x19e2db(0x12b)]=[_0x503dee[_0x19e2db(0x11b)]];const _0x1c73ad={};_0x1c73ad[_0x19e2db(0x13e)]=_0x26f084,_0x2da0a4[_0x19e2db(0x10a)](_0x19e2db(0x14e),_0x1c73ad,async _0x1b4925=>getApiList({'user':u(_0x1b4925)},_0x4e9cf5));};}
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 _0x23ddcc=_0x12a0;(function(_0x4cbcbd,_0x583aa3){const _0x52b9db=_0x12a0,_0x1cc125=_0x4cbcbd();while(!![]){try{const _0x3845e6=-parseInt(_0x52b9db(0x119))/0x1*(-parseInt(_0x52b9db(0x116))/0x2)+-parseInt(_0x52b9db(0x111))/0x3+parseInt(_0x52b9db(0x115))/0x4*(-parseInt(_0x52b9db(0x11d))/0x5)+parseInt(_0x52b9db(0x11f))/0x6+-parseInt(_0x52b9db(0x117))/0x7+-parseInt(_0x52b9db(0x110))/0x8*(-parseInt(_0x52b9db(0x121))/0x9)+parseInt(_0x52b9db(0x11b))/0xa;if(_0x3845e6===_0x583aa3)break;else _0x1cc125['push'](_0x1cc125['shift']());}catch(_0xba90e2){_0x1cc125['push'](_0x1cc125['shift']());}}}(_0x4329,0xb0f6f));import{Type}from'@sinclair/typebox';const _0x1aeb7b={};function _0x4329(){const _0x440dc9=['name','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','Record','28szAZuZ','148qSyQOD','2159654ySjALo','String','10939epBwzt','Optional','14153600pWcRuS','pattern','453095clOJoP','Unknown','1462608ZKgFDX','maxLength','711378LhDMPs','Object','minLength','16geOaHM','2876988vYDGGq'];_0x4329=function(){return _0x440dc9;};return _0x4329();}_0x1aeb7b[_0x23ddcc(0x123)]=0x1,_0x1aeb7b[_0x23ddcc(0x120)]=0x80,_0x1aeb7b[_0x23ddcc(0x11c)]=_0x23ddcc(0x113);export const identifier=Type[_0x23ddcc(0x118)](_0x1aeb7b);function _0x12a0(_0x2a6c4a,_0x3403cb){_0x2a6c4a=_0x2a6c4a-0x110;const _0x432976=_0x4329();let _0x12a015=_0x432976[_0x2a6c4a];return _0x12a015;}const _0x4b16ed={};_0x4b16ed[_0x23ddcc(0x112)]=identifier;const _0x5a9a09={};_0x5a9a09[_0x23ddcc(0x123)]=0x1;const _0x4cbbae={};_0x4cbbae[_0x23ddcc(0x123)]=0x1;export const systemSchemas={'dictionaryName':Type[_0x23ddcc(0x122)](_0x4b16ed),'settingsEntity':Type[_0x23ddcc(0x122)]({'entity':Type[_0x23ddcc(0x11a)](identifier)}),'settings':Type[_0x23ddcc(0x114)](Type[_0x23ddcc(0x118)](_0x5a9a09),Type[_0x23ddcc(0x11e)]()),'logger':Type[_0x23ddcc(0x122)]({'*':Type[_0x23ddcc(0x11a)](Type[_0x23ddcc(0x118)](_0x4cbbae))})};
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(_0x47cbce,_0x318989){const _0x5dcef2=_0x4130,_0x12da6c=_0x47cbce();while(!![]){try{const _0x552f5f=parseInt(_0x5dcef2(0x177))/0x1+parseInt(_0x5dcef2(0x17b))/0x2*(parseInt(_0x5dcef2(0x172))/0x3)+parseInt(_0x5dcef2(0x165))/0x4*(-parseInt(_0x5dcef2(0x163))/0x5)+parseInt(_0x5dcef2(0x175))/0x6*(parseInt(_0x5dcef2(0x164))/0x7)+parseInt(_0x5dcef2(0x178))/0x8+-parseInt(_0x5dcef2(0x17c))/0x9+-parseInt(_0x5dcef2(0x16b))/0xa*(parseInt(_0x5dcef2(0x169))/0xb);if(_0x552f5f===_0x318989)break;else _0x12da6c['push'](_0x12da6c['shift']());}catch(_0x5c2781){_0x12da6c['push'](_0x12da6c['shift']());}}}(_0x12f1,0x3fea9));function _0x4130(_0x46012d,_0x39dc4a){_0x46012d=_0x46012d-0x163;const _0x12f1a0=_0x12f1();let _0x413005=_0x12f1a0[_0x46012d];return _0x413005;}import{requireAdmin}from'../../utils/require-admin.js';export async function checkSystem(_0x8b1045,_0x40c8dd){const _0x873853=_0x4130,_0xac69f1={};_0xac69f1[_0x873853(0x17a)]=_0x873853(0x170),_0xac69f1[_0x873853(0x174)]=_0x873853(0x179),_0xac69f1[_0x873853(0x166)]=function(_0x146172,_0x3bccdd){return _0x146172===_0x3bccdd;},_0xac69f1[_0x873853(0x173)]=_0x873853(0x16d),_0xac69f1[_0x873853(0x176)]=_0x873853(0x16a);const _0x12909e=_0xac69f1;requireAdmin(_0x8b1045[_0x873853(0x171)],_0x12909e[_0x873853(0x17a)]);const [_0x4f6c1b,_0x4a28e4]=await Promise[_0x873853(0x168)]([_0x40c8dd['pg'][_0x873853(0x167)](_0x12909e[_0x873853(0x174)]),_0x40c8dd[_0x873853(0x16f)][_0x873853(0x16c)]()]);return{'status':_0x12909e[_0x873853(0x166)](_0x4f6c1b[_0x873853(0x16e)],_0x12909e[_0x873853(0x173)])&&_0x4a28e4[_0x873853(0x16e)]===_0x873853(0x16d)?'ok':_0x12909e[_0x873853(0x176)],'pg':_0x4f6c1b[_0x873853(0x16e)],'redis':_0x4a28e4[_0x873853(0x16e)]};}function _0x12f1(){const _0x7932e1=['status','redis','system:check','user','3FmAklI','NoPGw','iImFL','5922ZUffeL','haiBi','491652eJqAim','3469112YJDSDB','SELECT\x201','GETRn','266566SMolcn','2804049xWQErb','920150arBuFo','1498fneRJR','8cRmIMb','PfHCj','query','allSettled','11TVaVjF','degraded','3283700OjUXPF','ping','fulfilled'];_0x12f1=function(){return _0x7932e1;};return _0x12f1();}
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 _0x12d8(_0x1ad52a,_0x4bbdd0){_0x1ad52a=_0x1ad52a-0xfd;var _0x5786f6=_0x5786();var _0x12d865=_0x5786f6[_0x1ad52a];return _0x12d865;}function _0x5786(){var _0x4f1786=['1353272hakdeS','/api/system/check','157BSiTfz','2169520TWyzaZ','icDsx','5284BuMiCg','/api/login','1660245aFGDKI','ofcSg','/api/logout','lCFYK','QZYcF','/api/templates','/api/dictionaries','/files/*','3348576XhObqZ','system:api:read','/api/user','/api/resource/:resource/:id','/api/resource/:resource','XLZRd','1571292weaoCh','user','eEwKq','14UJpgnp','voGDT','INdFq','537798TeYEdf'];_0x5786=function(){return _0x4f1786;};return _0x5786();}(function(_0x5e73fe,_0x4891b9){var _0x5a6bbb=_0x12d8,_0x20a84b=_0x5e73fe();while(!![]){try{var _0x5afece=parseInt(_0x5a6bbb(0x10a))/0x1*(parseInt(_0x5a6bbb(0x10d))/0x2)+parseInt(_0x5a6bbb(0x101))/0x3+-parseInt(_0x5a6bbb(0x108))/0x4+-parseInt(_0x5a6bbb(0x10f))/0x5+parseInt(_0x5a6bbb(0x107))/0x6*(parseInt(_0x5a6bbb(0x104))/0x7)+parseInt(_0x5a6bbb(0x10b))/0x8+-parseInt(_0x5a6bbb(0x117))/0x9;if(_0x5afece===_0x4891b9)break;else _0x20a84b['push'](_0x20a84b['shift']());}catch(_0xdfe9b0){_0x20a84b['push'](_0x20a84b['shift']());}}}(_0x5786,0x549d7));import{requireAdmin}from'../../utils/require-admin.js';export async function getApiList(_0x51d4f1,_0x5b930d){var _0x5f057f=_0x12d8,_0x4cf0ba={'XLZRd':function(_0x5a93ab,_0x3fa8dd,_0x3fa000){return _0x5a93ab(_0x3fa8dd,_0x3fa000);},'voGDT':_0x5f057f(0x118),'lCFYK':_0x5f057f(0xfd),'QZYcF':_0x5f057f(0xff),'ofcSg':_0x5f057f(0xfe),'eEwKq':_0x5f057f(0x115),'INdFq':_0x5f057f(0x116),'icDsx':_0x5f057f(0x109)};return _0x4cf0ba[_0x5f057f(0x100)](requireAdmin,_0x51d4f1[_0x5f057f(0x102)],_0x4cf0ba[_0x5f057f(0x105)]),[_0x5f057f(0x10e),_0x5f057f(0x111),_0x4cf0ba[_0x5f057f(0x112)],_0x4cf0ba[_0x5f057f(0x113)],_0x4cf0ba[_0x5f057f(0x110)],_0x4cf0ba[_0x5f057f(0x103)],_0x4cf0ba[_0x5f057f(0x106)],_0x5f057f(0x114),_0x4cf0ba[_0x5f057f(0x10c)]];}
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 _0x16c0(_0x524c71,_0xbce4e2){_0x524c71=_0x524c71-0xdb;const _0x29661b=_0x2966();let _0x16c026=_0x29661b[_0x524c71];return _0x16c026;}(function(_0x4fb78f,_0x378ed3){const _0x302c89=_0x16c0,_0x20e620=_0x4fb78f();while(!![]){try{const _0x1f8f95=parseInt(_0x302c89(0xe1))/0x1+parseInt(_0x302c89(0xe5))/0x2+parseInt(_0x302c89(0xe0))/0x3*(-parseInt(_0x302c89(0xdc))/0x4)+parseInt(_0x302c89(0xe6))/0x5+parseInt(_0x302c89(0xe4))/0x6+parseInt(_0x302c89(0xdf))/0x7+-parseInt(_0x302c89(0xdb))/0x8;if(_0x1f8f95===_0x378ed3)break;else _0x20e620['push'](_0x20e620['shift']());}catch(_0x4f3f3b){_0x20e620['push'](_0x20e620['shift']());}}}(_0x2966,0x86b10));function _0x2966(){const _0x245cbd=['user','limit','sHWvU','8121136DRtpuv','4109284BbqQFN','query','audit:read','3311700WtFkuC','3ZrQDfx','395277oBekmC','SELECT\x20*\x20FROM\x20admin.audit_log\x20ORDER\x20BY\x20id\x20DESC\x20LIMIT\x20$1\x20OFFSET\x20$2','bWltg','6254928CWGBUK','567418cHAUOj','1997925XAzEde','QZQhy','ZkPIE','rows','max','min','page'];_0x2966=function(){return _0x245cbd;};return _0x2966();}import{requireAdmin}from'../../utils/require-admin.js';export async function getAuditLog(_0x2a271e,_0x13d0db){const _0x1f9038=_0x16c0,_0x44cb4f={};_0x44cb4f[_0x1f9038(0xef)]=_0x1f9038(0xde),_0x44cb4f[_0x1f9038(0xe8)]=function(_0x54c297,_0x45ca05){return _0x54c297*_0x45ca05;},_0x44cb4f[_0x1f9038(0xe3)]=function(_0x411811,_0x85d557){return _0x411811-_0x85d557;},_0x44cb4f[_0x1f9038(0xe7)]=_0x1f9038(0xe2);const _0x2b6ac8=_0x44cb4f;requireAdmin(_0x2a271e[_0x1f9038(0xed)],_0x2b6ac8[_0x1f9038(0xef)]);const _0x512701=Math[_0x1f9038(0xeb)](Math[_0x1f9038(0xea)](_0x2a271e[_0x1f9038(0xee)]??0x32,0x1),0xc8),_0x1e5e89=_0x2b6ac8[_0x1f9038(0xe8)](Math[_0x1f9038(0xea)](_0x2b6ac8[_0x1f9038(0xe3)](_0x2a271e[_0x1f9038(0xec)]??0x1,0x1),0x0),_0x512701),_0x357ab5=await _0x13d0db['pg'][_0x1f9038(0xdd)](_0x2b6ac8[_0x1f9038(0xe7)],[_0x512701,_0x1e5e89]),_0x25eccf={};return _0x25eccf[_0x1f9038(0xe9)]=_0x357ab5[_0x1f9038(0xe9)],_0x25eccf[_0x1f9038(0xec)]=_0x2a271e[_0x1f9038(0xec)]??0x1,_0x25eccf[_0x1f9038(0xee)]=_0x512701,_0x25eccf;}
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 _0xf179(){var _0x5b3862=['810052nKHZtr','name','612212BTBMmy','3632619ExkAjC','8656848oHrTwJ','3548360iksKDG','6288632zHlirj','get','dictionary','4UnKtLn','7002600EWRSIt'];_0xf179=function(){return _0x5b3862;};return _0xf179();}(function(_0x3828bf,_0x178d88){var _0x213e92=_0xe853,_0x21c570=_0x3828bf();while(!![]){try{var _0x1279bd=parseInt(_0x213e92(0x9e))/0x1+parseInt(_0x213e92(0xa0))/0x2+-parseInt(_0x213e92(0xa1))/0x3*(-parseInt(_0x213e92(0x9c))/0x4)+-parseInt(_0x213e92(0xa3))/0x5+-parseInt(_0x213e92(0x9d))/0x6+-parseInt(_0x213e92(0xa4))/0x7+parseInt(_0x213e92(0xa2))/0x8;if(_0x1279bd===_0x178d88)break;else _0x21c570['push'](_0x21c570['shift']());}catch(_0xa9d0f8){_0x21c570['push'](_0x21c570['shift']());}}}(_0xf179,0x9ac85));function _0xe853(_0xacfdfe,_0x2741f2){_0xacfdfe=_0xacfdfe-0x9a;var _0xf1792c=_0xf179();var _0xe85365=_0xf1792c[_0xacfdfe];return _0xe85365;}export async function getDictionary(_0x5c30a4,_0x596fe8){var _0x4f726b=_0xe853;return _0x596fe8[_0x4f726b(0x9b)][_0x4f726b(0x9a)](_0x5c30a4[_0x4f726b(0x9f)]);}
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(_0x1030b5,_0x252bec){var _0x35640b=_0x2c96,_0x52a031=_0x1030b5();while(!![]){try{var _0x162e1d=parseInt(_0x35640b(0x6c))/0x1+parseInt(_0x35640b(0x72))/0x2*(-parseInt(_0x35640b(0x6f))/0x3)+-parseInt(_0x35640b(0x70))/0x4*(-parseInt(_0x35640b(0x6b))/0x5)+parseInt(_0x35640b(0x74))/0x6+parseInt(_0x35640b(0x71))/0x7*(parseInt(_0x35640b(0x6e))/0x8)+-parseInt(_0x35640b(0x73))/0x9+-parseInt(_0x35640b(0x6a))/0xa;if(_0x162e1d===_0x252bec)break;else _0x52a031['push'](_0x52a031['shift']());}catch(_0x19b99c){_0x52a031['push'](_0x52a031['shift']());}}}(_0x2f30,0x8ca09));function _0x2f30(){var _0x37470b=['24yLYVFp','33OhrLwI','2204gTBVCU','1190665ipiEkG','57366yhYRlJ','9352008TyTAxz','4486830WOsvSD','OECcq','6147740hQGRCH','1715Tnlvqn','1098325VUBfMt','File\x20logger\x20backend'];_0x2f30=function(){return _0x37470b;};return _0x2f30();}import{unsupported}from'../../utils/unsupported.js';function _0x2c96(_0x183efb,_0x1f910b){_0x183efb=_0x183efb-0x69;var _0x2f3011=_0x2f30();var _0x2c9648=_0x2f3011[_0x183efb];return _0x2c9648;}export async function getSystemLog(_0x58eadc,_0x36a68b){var _0x3212ff=_0x2c96,_0x370727={'OECcq':function(_0x5f3dbd,_0x4f03df){return _0x5f3dbd(_0x4f03df);}};return _0x370727[_0x3212ff(0x69)](unsupported,_0x3212ff(0x6d));}
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 _0x4e6c(_0x7f09b9,_0x42aa30){_0x7f09b9=_0x7f09b9-0x13f;const _0x4a1e23=_0x4a1e();let _0x4e6c95=_0x4a1e23[_0x7f09b9];return _0x4e6c95;}function _0x4a1e(){const _0x469752=['split','slice','query','9HqbiHv','reduce','value','23523fLyOML','345744ZOOoAB','12InSgkt','3148896WUlGzM','rows','user','118740kVbtUI','key','421557BHkmft','\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','800275bdWsgw','TqlVq','system:settings:read','576060kOXgqW'];_0x4a1e=function(){return _0x469752;};return _0x4a1e();}(function(_0x16c74f,_0x56a51e){const _0x4f472b=_0x4e6c,_0x49e6d8=_0x16c74f();while(!![]){try{const _0x529f09=-parseInt(_0x4f472b(0x152))/0x1+-parseInt(_0x4f472b(0x13f))/0x2+-parseInt(_0x4f472b(0x146))/0x3+parseInt(_0x4f472b(0x140))/0x4*(parseInt(_0x4f472b(0x144))/0x5)+parseInt(_0x4f472b(0x14b))/0x6+-parseInt(_0x4f472b(0x148))/0x7+-parseInt(_0x4f472b(0x141))/0x8*(-parseInt(_0x4f472b(0x14f))/0x9);if(_0x529f09===_0x56a51e)break;else _0x49e6d8['push'](_0x49e6d8['shift']());}catch(_0x54612b){_0x49e6d8['push'](_0x49e6d8['shift']());}}}(_0x4a1e,0x1ac3b));import{requireAdmin}from'../../utils/require-admin.js';export async function getSystemSettings(_0x5e589a,_0x2c0abf){const _0x2d943e=_0x4e6c,_0x2da517={'TqlVq':function(_0x6c6316,_0x246267,_0x55930f){return _0x6c6316(_0x246267,_0x55930f);}};_0x2da517[_0x2d943e(0x149)](requireAdmin,_0x5e589a[_0x2d943e(0x143)],_0x2d943e(0x14a));const _0x498922=await _0x2c0abf['pg'][_0x2d943e(0x14e)](_0x2d943e(0x147));return _0x498922[_0x2d943e(0x142)][_0x2d943e(0x150)]((_0x3aaf11,_0x4cc7a6)=>{const _0x13458c=_0x2d943e,_0x21bb94=String(_0x4cc7a6[_0x13458c(0x145)])[_0x13458c(0x14c)]('.');let _0x39bd71=_0x3aaf11;for(const _0x12aa93 of _0x21bb94[_0x13458c(0x14d)](0x0,-0x1)){_0x39bd71[_0x12aa93]??={},_0x39bd71=_0x39bd71[_0x12aa93];}return _0x39bd71[_0x21bb94['at'](-0x1)]=_0x4cc7a6[_0x13458c(0x151)],_0x3aaf11;},{});}
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 _0x4a7e(_0x13b089,_0x2a4040){_0x13b089=_0x13b089-0x1eb;var _0x38dc4a=_0x38dc();var _0x4a7e06=_0x38dc4a[_0x13b089];return _0x4a7e06;}function _0x38dc(){var _0x4da873=['4947975XqSKLu','24BLxPfL','2qYVTeP','2582190jptGOZ','list','7039076aVhTRv','1289643AKCiUZ','120381WsNezW','6zqBQuM','dictionary','11997657BbSEJz','10596750OCQWpX'];_0x38dc=function(){return _0x4da873;};return _0x38dc();}(function(_0x38f046,_0xd72dc7){var _0x1a989b=_0x4a7e,_0x134eaf=_0x38f046();while(!![]){try{var _0x2001a2=-parseInt(_0x1a989b(0x1f6))/0x1+parseInt(_0x1a989b(0x1f2))/0x2*(parseInt(_0x1a989b(0x1eb))/0x3)+-parseInt(_0x1a989b(0x1f5))/0x4+-parseInt(_0x1a989b(0x1f3))/0x5+-parseInt(_0x1a989b(0x1ec))/0x6*(-parseInt(_0x1a989b(0x1ee))/0x7)+-parseInt(_0x1a989b(0x1f1))/0x8*(-parseInt(_0x1a989b(0x1f0))/0x9)+parseInt(_0x1a989b(0x1ef))/0xa;if(_0x2001a2===_0xd72dc7)break;else _0x134eaf['push'](_0x134eaf['shift']());}catch(_0x65a788){_0x134eaf['push'](_0x134eaf['shift']());}}}(_0x38dc,0xdb0cc));export async function listDictionaries(_0x479c69,_0x505319){var _0x2f8557=_0x4a7e;return _0x505319[_0x2f8557(0x1ed)][_0x2f8557(0x1f4)]();}
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 _0x2726(){const _0x261c1d=['17508mQjAac','user','patch','Settings\x20patch\x20is\x20empty','query','16630jDxkMb','\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','340902gwlpxA','keys','122508ZQjhBW','vbozY','Invalid\x20setting\x20key:\x20','2877kpyDUd','length','312UDASfP','41833eNyijV','includes','stringify','entries','2443731GEdemq','trim','531471RIrYyy','success','system:settings:update','1724iPgJSL','9470dhtiQv','UWZzZ'];_0x2726=function(){return _0x261c1d;};return _0x2726();}(function(_0x539da6,_0x10ac94){const _0xa3db85=_0x20c5,_0x18bf46=_0x539da6();while(!![]){try{const _0x32d1b9=parseInt(_0xa3db85(0x199))/0x1+-parseInt(_0xa3db85(0x18d))/0x2+parseInt(_0xa3db85(0x197))/0x3+-parseInt(_0xa3db85(0x181))/0x4*(parseInt(_0xa3db85(0x189))/0x5)+parseInt(_0xa3db85(0x184))/0x6*(-parseInt(_0xa3db85(0x190))/0x7)+parseInt(_0xa3db85(0x192))/0x8*(-parseInt(_0xa3db85(0x18b))/0x9)+-parseInt(_0xa3db85(0x182))/0xa*(-parseInt(_0xa3db85(0x193))/0xb);if(_0x32d1b9===_0x10ac94)break;else _0x18bf46['push'](_0x18bf46['shift']());}catch(_0x2c3b77){_0x18bf46['push'](_0x18bf46['shift']());}}}(_0x2726,0xbd7fd));import{requireAdmin}from'../../utils/require-admin.js';function _0x20c5(_0x560271,_0x5c023f){_0x560271=_0x560271-0x180;const _0x2726b8=_0x2726();let _0x20c54b=_0x2726b8[_0x560271];return _0x20c54b;}import{ValidationError}from'../../../errors.js';export async function updateSystemSettings(_0x2ce161,_0x3383ee){const _0x52c7bb=_0x20c5,_0xf270e6={'UWZzZ':function(_0x294178,_0x5e47a2,_0x7e38eb){return _0x294178(_0x5e47a2,_0x7e38eb);},'vbozY':_0x52c7bb(0x187)};_0xf270e6[_0x52c7bb(0x183)](requireAdmin,_0x2ce161[_0x52c7bb(0x185)],_0x52c7bb(0x180));if(!Object[_0x52c7bb(0x18c)](_0x2ce161[_0x52c7bb(0x186)])[_0x52c7bb(0x191)])throw new ValidationError(_0xf270e6[_0x52c7bb(0x18e)]);for(const [_0x254d9,_0x32a5ab]of Object[_0x52c7bb(0x196)](_0x2ce161[_0x52c7bb(0x186)])){if(!_0x254d9[_0x52c7bb(0x198)]()||_0x254d9[_0x52c7bb(0x194)]('..'))throw new ValidationError(_0x52c7bb(0x18f)+_0x254d9);await _0x3383ee['pg'][_0x52c7bb(0x188)](_0x52c7bb(0x18a),[_0x254d9,JSON[_0x52c7bb(0x195)](_0x32a5ab),_0x2ce161[_0x52c7bb(0x185)]['id']]);}const _0xcf1d08={};return _0xcf1d08[_0x52c7bb(0x19a)]=!![],_0xcf1d08;}
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 _0x1a68(_0x124d9a,_0x2ed281){_0x124d9a=_0x124d9a-0x11c;const _0xb112e4=_0xb112();let _0x1a6824=_0xb112e4[_0x124d9a];return _0x1a6824;}(function(_0x517c9e,_0x363f97){const _0x44bce9=_0x1a68,_0x39baff=_0x517c9e();while(!![]){try{const _0x42c0d3=-parseInt(_0x44bce9(0x11e))/0x1+parseInt(_0x44bce9(0x127))/0x2*(parseInt(_0x44bce9(0x123))/0x3)+-parseInt(_0x44bce9(0x125))/0x4*(-parseInt(_0x44bce9(0x121))/0x5)+-parseInt(_0x44bce9(0x122))/0x6*(parseInt(_0x44bce9(0x12b))/0x7)+parseInt(_0x44bce9(0x126))/0x8*(parseInt(_0x44bce9(0x11f))/0x9)+parseInt(_0x44bce9(0x124))/0xa*(-parseInt(_0x44bce9(0x12c))/0xb)+-parseInt(_0x44bce9(0x11c))/0xc;if(_0x42c0d3===_0x363f97)break;else _0x39baff['push'](_0x39baff['shift']());}catch(_0x478ab3){_0x39baff['push'](_0x39baff['shift']());}}}(_0xb112,0x417df));function _0xb112(){const _0x5a9342=['flatMap','actions','5929DjYvSW','33zRzbMY','2321040OcjQrW','rows','101016rPWyPw','99VdkiAf','\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','2048885ccCzbz','1374VxlwWt','3aDvfGu','939220HydxtD','4KVaJyy','279632rDaEwo','488298AEDNSz','query'];_0xb112=function(){return _0x5a9342;};return _0xb112();}export async function getUserPermissions(_0x1d45b7,_0x50577a){const _0x1bd5d2=_0x1a68,_0x1612b1=await _0x1d45b7['pg'][_0x1bd5d2(0x128)](_0x1bd5d2(0x120),[_0x50577a]);return[...new Set(_0x1612b1[_0x1bd5d2(0x11d)][_0x1bd5d2(0x129)](_0xf96176=>_0xf96176[_0x1bd5d2(0x12a)]??[]))];}
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(_0x5a3178,_0x24ba9f){var _0x5c45c5=_0x4d1d,_0x21d827=_0x5a3178();while(!![]){try{var _0x2944d2=-parseInt(_0x5c45c5(0x156))/0x1*(parseInt(_0x5c45c5(0x165))/0x2)+-parseInt(_0x5c45c5(0x163))/0x3*(-parseInt(_0x5c45c5(0x161))/0x4)+-parseInt(_0x5c45c5(0x155))/0x5*(parseInt(_0x5c45c5(0x154))/0x6)+parseInt(_0x5c45c5(0x162))/0x7+parseInt(_0x5c45c5(0x164))/0x8*(parseInt(_0x5c45c5(0x15b))/0x9)+-parseInt(_0x5c45c5(0x15a))/0xa*(-parseInt(_0x5c45c5(0x159))/0xb)+parseInt(_0x5c45c5(0x15c))/0xc*(parseInt(_0x5c45c5(0x160))/0xd);if(_0x2944d2===_0x24ba9f)break;else _0x21d827['push'](_0x21d827['shift']());}catch(_0x3de82f){_0x21d827['push'](_0x21d827['shift']());}}}(_0x2dcc,0x416ad));function _0x4d1d(_0x51f328,_0x1604b0){_0x51f328=_0x51f328-0x154;var _0x2dcc1e=_0x2dcc();var _0x4d1de9=_0x2dcc1e[_0x51f328];return _0x4d1de9;}function _0x2dcc(){var _0x14374e=['540cXDzkP','522EssYde','12ZYNpop','type','admin','Ntutz','1076296pCBqsJ','316KYkDeg','1274847IvZeHh','12234TbHtQH','14248lrYwLa','7606FZzMKf','197466CJvgHc','65dRZQIr','133eMZMVt','Admin\x20access\x20required','User\x20required','104137ROdMNk'];_0x2dcc=function(){return _0x14374e;};return _0x2dcc();}import{ForbiddenError}from'../../errors.js';export function requireAdmin(_0x272e17,_0x150783){var _0x395d25=_0x4d1d,_0x5db33f={};_0x5db33f[_0x395d25(0x15f)]=_0x395d25(0x15e);var _0x4d9ae2=_0x5db33f;if(!_0x272e17)throw new ForbiddenError(_0x395d25(0x158));if(_0x272e17[_0x395d25(0x15d)]!==_0x4d9ae2[_0x395d25(0x15f)])throw new ForbiddenError(_0x395d25(0x157));}
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 _0x11e2(_0x3b7efa,_0x4e00cf){_0x3b7efa=_0x3b7efa-0x1d4;const _0x255d9e=_0x255d();let _0x11e20e=_0x255d9e[_0x3b7efa];return _0x11e20e;}function _0x255d(){const _0x5d374e=['password','46KPYQgs','secret','2349590XenVwJ','filter','entries','190267fHDQJr','21380MExBxI','credentials','4751336pZPevk','salt','7093510aKAXYX','31646mlVpNe','fromEntries','some','1392pyFavz','KOrxw','includes','token','9fmcvAD','35cRYTgy','toLowerCase','260676tNQYDJ','Afoia','333buOrZM','bzjbk'];_0x255d=function(){return _0x5d374e;};return _0x255d();}(function(_0x2c59a4,_0x3d0a29){const _0x446cef=_0x11e2,_0x4844e9=_0x2c59a4();while(!![]){try{const _0x5a9392=-parseInt(_0x446cef(0x1e9))/0x1*(-parseInt(_0x446cef(0x1da))/0x2)+parseInt(_0x446cef(0x1e6))/0x3*(parseInt(_0x446cef(0x1d5))/0x4)+-parseInt(_0x446cef(0x1eb))/0x5+parseInt(_0x446cef(0x1e4))/0x6*(parseInt(_0x446cef(0x1e2))/0x7)+parseInt(_0x446cef(0x1d7))/0x8+parseInt(_0x446cef(0x1e1))/0x9*(parseInt(_0x446cef(0x1d9))/0xa)+parseInt(_0x446cef(0x1d4))/0xb*(-parseInt(_0x446cef(0x1dd))/0xc);if(_0x5a9392===_0x3d0a29)break;else _0x4844e9['push'](_0x4844e9['shift']());}catch(_0x18cb21){_0x4844e9['push'](_0x4844e9['shift']());}}}(_0x255d,0x592e1));export const safeUser=_0x2c4e5c=>{const _0x17dcbb=_0x11e2,_0x3d66b9={};_0x3d66b9[_0x17dcbb(0x1de)]=_0x17dcbb(0x1e0),_0x3d66b9[_0x17dcbb(0x1e5)]=_0x17dcbb(0x1ea),_0x3d66b9[_0x17dcbb(0x1e7)]=_0x17dcbb(0x1d6);const _0x4e614a=_0x3d66b9,_0x357790=[_0x17dcbb(0x1e8),_0x17dcbb(0x1d8),_0x4e614a[_0x17dcbb(0x1de)],_0x4e614a[_0x17dcbb(0x1e5)],_0x4e614a[_0x17dcbb(0x1e7)]];return Object[_0x17dcbb(0x1db)](Object[_0x17dcbb(0x1ed)](_0x2c4e5c)[_0x17dcbb(0x1ec)](([_0x510556])=>!_0x357790[_0x17dcbb(0x1dc)](_0x1ee210=>_0x510556[_0x17dcbb(0x1e3)]()[_0x17dcbb(0x1df)](_0x1ee210))));};
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(_0x5963cc,_0x1b1901){var _0x3e2e69=_0x3940,_0x2b7892=_0x5963cc();while(!![]){try{var _0x1ed558=parseInt(_0x3e2e69(0xbc))/0x1+parseInt(_0x3e2e69(0xba))/0x2*(-parseInt(_0x3e2e69(0xb7))/0x3)+parseInt(_0x3e2e69(0xbe))/0x4+parseInt(_0x3e2e69(0xb4))/0x5*(parseInt(_0x3e2e69(0xb9))/0x6)+-parseInt(_0x3e2e69(0xb5))/0x7*(-parseInt(_0x3e2e69(0xbd))/0x8)+parseInt(_0x3e2e69(0xb6))/0x9+-parseInt(_0x3e2e69(0xbb))/0xa;if(_0x1ed558===_0x1b1901)break;else _0x2b7892['push'](_0x2b7892['shift']());}catch(_0x4e4c10){_0x2b7892['push'](_0x2b7892['shift']());}}}(_0x1bee,0x642d3));function _0x1bee(){var _0x4dd8c3=['326807cxXXjh','536XGJYhk','1534508iXjrbb','33395dzpXQN','903tJtEjQ','2725020whlKkR','222qrWioh','\x20requires\x20a\x20project/provider\x20implementation','42nYEsvI','12398XzXUrv','1995610gIhGbc'];_0x1bee=function(){return _0x4dd8c3;};return _0x1bee();}import{UnsupportedError}from'../../errors.js';function _0x3940(_0x26dda4,_0x5bf3b9){_0x26dda4=_0x26dda4-0xb4;var _0x1bee4b=_0x1bee();var _0x3940f1=_0x1bee4b[_0x26dda4];return _0x3940f1;}export function unsupported(_0x2d7317){var _0x5b567d=_0x3940;throw new UnsupportedError(_0x2d7317+_0x5b567d(0xb8));}
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(_0x4d18fa,_0x2f14e1){const _0x3483e8=_0x292d,_0x2cb8d1=_0x4d18fa();while(!![]){try{const _0x2d21f3=parseInt(_0x3483e8(0x6c))/0x1+-parseInt(_0x3483e8(0x6a))/0x2+parseInt(_0x3483e8(0x6e))/0x3+parseInt(_0x3483e8(0x68))/0x4*(-parseInt(_0x3483e8(0x6d))/0x5)+-parseInt(_0x3483e8(0x66))/0x6+-parseInt(_0x3483e8(0x67))/0x7*(-parseInt(_0x3483e8(0x6b))/0x8)+parseInt(_0x3483e8(0x6f))/0x9;if(_0x2d21f3===_0x2f14e1)break;else _0x2cb8d1['push'](_0x2cb8d1['shift']());}catch(_0x1205d0){_0x2cb8d1['push'](_0x2cb8d1['shift']());}}}(_0x5bb3,0xbe79b));function _0x292d(_0x15dcad,_0x535a0f){_0x15dcad=_0x15dcad-0x66;const _0x5bb3c9=_0x5bb3();let _0x292d00=_0x5bb3c9[_0x15dcad];return _0x292d00;}import{writeAudit}from'./services/write-audit.js';export function createAudit(_0x238d8f){const _0x38cca5=_0x292d,_0x1a250a=writeAudit(_0x238d8f),_0x3724eb={};return _0x3724eb[_0x38cca5(0x69)]=_0x1a250a,_0x3724eb;}function _0x5bb3(){const _0x15120e=['7890708XYedNd','112NVcVMW','148ZETYSo','write','1246798xpTJaX','385864OkFVJl','865902jLFrTz','156410SurUQN','1134672GwKhPR','16742556mlgySs'];_0x5bb3=function(){return _0x15120e;};return _0x5bb3();}
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(_0x3ef8e8,_0x2b32a4){var _0x4200be=_0x340a,_0x3ce8ad=_0x3ef8e8();while(!![]){try{var _0x4af070=parseInt(_0x4200be(0x94))/0x1+-parseInt(_0x4200be(0x96))/0x2*(parseInt(_0x4200be(0x98))/0x3)+parseInt(_0x4200be(0x9b))/0x4+parseInt(_0x4200be(0x92))/0x5*(parseInt(_0x4200be(0x95))/0x6)+parseInt(_0x4200be(0x9a))/0x7*(parseInt(_0x4200be(0x97))/0x8)+-parseInt(_0x4200be(0x93))/0x9+-parseInt(_0x4200be(0x99))/0xa;if(_0x4af070===_0x2b32a4)break;else _0x3ce8ad['push'](_0x3ce8ad['shift']());}catch(_0x52ff98){_0x3ce8ad['push'](_0x3ce8ad['shift']());}}}(_0x40f1,0x5dbfc));function _0x340a(_0x150697,_0x420d61){_0x150697=_0x150697-0x92;var _0x40f173=_0x40f1();var _0x340a5c=_0x40f173[_0x150697];return _0x340a5c;}export*from'./audit.types.js';function _0x40f1(){var _0x20b4de=['31446eUXyjE','427658WuTvNg','8PAtlPw','3apjrYB','4763590dsOzow','3148173lnayWC','1790496xEyFKM','105BnioOq','1183761oKWtEc','198289iPNngl'];_0x40f1=function(){return _0x20b4de;};return _0x40f1();}export*from'./audit.js';
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(_0x48f5f4,_0x4acdd8){const _0x2521dc=_0x3163,_0x2a4df5=_0x48f5f4();while(!![]){try{const _0x414779=-parseInt(_0x2521dc(0x1ed))/0x1*(-parseInt(_0x2521dc(0x202))/0x2)+-parseInt(_0x2521dc(0x21a))/0x3*(-parseInt(_0x2521dc(0x1f7))/0x4)+-parseInt(_0x2521dc(0x1f1))/0x5*(parseInt(_0x2521dc(0x216))/0x6)+parseInt(_0x2521dc(0x1fd))/0x7+parseInt(_0x2521dc(0x229))/0x8*(parseInt(_0x2521dc(0x1ec))/0x9)+-parseInt(_0x2521dc(0x22d))/0xa*(parseInt(_0x2521dc(0x218))/0xb)+-parseInt(_0x2521dc(0x1f9))/0xc*(parseInt(_0x2521dc(0x1fa))/0xd);if(_0x414779===_0x4acdd8)break;else _0x2a4df5['push'](_0x2a4df5['shift']());}catch(_0x293d1b){_0x2a4df5['push'](_0x2a4df5['shift']());}}}(_0x479a,0x36a8a));const secretPattern=/password|token|secret|credential|salt/i;function _0x3163(_0x207293,_0x2f455e){_0x207293=_0x207293-0x1e8;const _0x479a07=_0x479a();let _0x316395=_0x479a07[_0x207293];return _0x316395;}function _0x479a(){const _0x4b9978=['err','catch','\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','CDSFW','162epHNJg','429061eHzatA','qRsXy','HnMwQ','resource','25ulzXII','logger','warn','query','expectedTables','fields','28qxejMl','map','3100452KPVDKj','26EXLYpf','fromEntries','requestId','1746304fKpuxL','DyHJY','hZbtT','cFZYb','swtUp','2gSuoom','FYKIB','xGqKq','nLuAY','action','EUldO','isArray','metadata','table_name','has','\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','SjPlV','Aadjh','ipAddress','oldValue','rows','wwBiP','BlXDz','VkBVF','ajZWx','524022QAmySv','admin.audit_log_data','11JIAjiH','RMBrC','163659BvPVsv','resourceId','BchJR','VnWXa','test','\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','audit','newValue','YVOnw','ZZIog','[REDACTED]','admin.audit_log','VIdjt','Gvzkc','pKhBG','133832xMLoKh','YAvlU','info','stringify','1842170pEAzfa','empty\x20pg','then','nxVFA','module','audit_log','field','wcVui','xkjsa','Unable\x20to\x20check\x20audit\x20tables;\x20audit\x20writes\x20are\x20disabled','FitOx','userId','object','iJJvu','foundTables','wmicj','hTjbt','caJsy','entries','ROBVm','audit_log_data','YjXGY','RCOAf','changes','Audit\x20tables\x20are\x20unavailable;\x20audit\x20writes\x20are\x20disabled','wGrGz'];_0x479a=function(){return _0x4b9978;};return _0x479a();}function clean(_0x4f2a6e){const _0x1c1c73=_0x3163,_0x22f81c={};_0x22f81c[_0x1c1c73(0x226)]=_0x1c1c73(0x225),_0x22f81c[_0x1c1c73(0x207)]=_0x1c1c73(0x245),_0x22f81c[_0x1c1c73(0x20e)]=function(_0x4e28d0,_0x50c174){return _0x4e28d0!==_0x50c174;},_0x22f81c[_0x1c1c73(0x23a)]=_0x1c1c73(0x1eb),_0x22f81c[_0x1c1c73(0x230)]=function(_0xce1914,_0x44e14b){return _0xce1914===_0x44e14b;},_0x22f81c[_0x1c1c73(0x219)]=_0x1c1c73(0x239);const _0x1089f4=_0x22f81c;if(Array[_0x1c1c73(0x208)](_0x4f2a6e)){if(_0x1089f4[_0x1c1c73(0x20e)](_0x1089f4[_0x1c1c73(0x23a)],_0x1c1c73(0x240)))return _0x4f2a6e[_0x1c1c73(0x1f8)](clean);else{const _0xe072a2={};_0xe072a2[_0x1c1c73(0x1f5)]=[_0x1089f4[_0x1c1c73(0x226)],_0x1c1c73(0x217)],_0xe072a2[_0x1c1c73(0x23b)]=[..._0x4a9a58],_0x6065be[_0x1c1c73(0x1f2)][_0x1c1c73(0x1f3)](_0xe072a2,_0x1089f4[_0x1c1c73(0x207)]);}}if(_0x4f2a6e&&_0x1089f4[_0x1c1c73(0x230)](typeof _0x4f2a6e,_0x1089f4[_0x1c1c73(0x219)]))return Object[_0x1c1c73(0x1fb)](Object[_0x1c1c73(0x23f)](_0x4f2a6e)[_0x1c1c73(0x1f8)](([_0x45c46d,_0x1d7d51])=>[_0x45c46d,secretPattern[_0x1c1c73(0x21e)](_0x45c46d)?_0x1c1c73(0x224):clean(_0x1d7d51)]));return _0x4f2a6e;}export function writeAudit(_0x1e29eb){const _0x6b841=_0x3163,_0x3df46a={'HnMwQ':_0x6b841(0x22e),'ZZIog':_0x6b841(0x212),'xkjsa':_0x6b841(0x1ff),'ajZWx':_0x6b841(0x232),'hTjbt':_0x6b841(0x217),'caJsy':_0x6b841(0x236),'FYKIB':function(_0x5223d7,_0x1a4d51){return _0x5223d7===_0x1a4d51;},'VnWXa':function(_0x537999,_0x5b268b){return _0x537999!==_0x5b268b;},'cFZYb':_0x6b841(0x241),'YAvlU':_0x6b841(0x225),'Gvzkc':_0x6b841(0x245),'wGrGz':function(_0x5dad8e,_0x495ce5){return _0x5dad8e===_0x495ce5;},'BlXDz':_0x6b841(0x205),'wmicj':function(_0x36f60f){return _0x36f60f();},'YjXGY':_0x6b841(0x237),'YVOnw':_0x6b841(0x220),'qRsXy':function(_0x541365,_0x40fe19){return _0x541365==_0x40fe19;},'xGqKq':function(_0x480d53,_0x51c1a5){return _0x480d53(_0x51c1a5);},'wcVui':function(_0x2a1a1f,_0xe35a13){return _0x2a1a1f(_0xe35a13);}};let _0x590371,_0x54e87c;async function _0x31e956(){const _0x3573a2=_0x6b841,_0x1c4127={};_0x1c4127[_0x3573a2(0x1fe)]=_0x3df46a[_0x3573a2(0x23e)];const _0x5ab3e5=_0x1c4127;if(!_0x1e29eb['pg']){if(_0x3df46a[_0x3573a2(0x203)](_0x3573a2(0x20d),_0x3573a2(0x20d)))return![];else throw new _0x3b9ee6(_0x3df46a[_0x3573a2(0x1ef)]);}if(_0x3df46a[_0x3573a2(0x21d)](_0x590371,undefined))return _0x590371;return _0x54e87c??=_0x1e29eb['pg'][_0x3573a2(0x1f4)](_0x3573a2(0x1ea))[_0x3573a2(0x22f)](_0x54c036=>{const _0x2b6401=_0x3573a2;if(_0x3df46a[_0x2b6401(0x223)]!==_0x3df46a[_0x2b6401(0x235)]){const _0x441e20=new Set(_0x54c036[_0x2b6401(0x211)][_0x2b6401(0x1f8)](_0x4a06df=>_0x4a06df[_0x2b6401(0x20a)]));_0x590371=_0x441e20[_0x2b6401(0x20b)](_0x3df46a[_0x2b6401(0x215)])&&_0x441e20[_0x2b6401(0x20b)](_0x2b6401(0x241));if(!_0x590371){const _0x16e2c5={};_0x16e2c5[_0x2b6401(0x1f5)]=[_0x2b6401(0x225),_0x3df46a[_0x2b6401(0x23d)]],_0x16e2c5[_0x2b6401(0x23b)]=[..._0x441e20],_0x1e29eb[_0x2b6401(0x1f2)][_0x2b6401(0x1f3)](_0x16e2c5,_0x2b6401(0x245));}return _0x590371;}else{_0x31ce89=![];const _0x4d9fd8={};return _0x4d9fd8[_0x2b6401(0x1e8)]=_0x4233db,_0x3875dc[_0x2b6401(0x1f2)][_0x2b6401(0x1f3)](_0x4d9fd8,_0x5ab3e5[_0x2b6401(0x1fe)]),![];}})[_0x3573a2(0x1e9)](_0x2d66db=>{const _0x5a6bb8=_0x3573a2;_0x590371=![];const _0x5c7310={};return _0x5c7310[_0x5a6bb8(0x1e8)]=_0x2d66db,_0x1e29eb[_0x5a6bb8(0x1f2)][_0x5a6bb8(0x1f3)](_0x5c7310,_0x3df46a[_0x5a6bb8(0x23e)]),![];}),_0x54e87c;}return async function _0x328138(_0x11a880){const _0x378417=_0x6b841,_0x5c0f22={};_0x5c0f22[_0x378417(0x228)]=_0x3df46a[_0x378417(0x200)],_0x5c0f22[_0x378417(0x214)]=_0x3df46a[_0x378417(0x22a)],_0x5c0f22[_0x378417(0x201)]=_0x3df46a[_0x378417(0x23d)],_0x5c0f22[_0x378417(0x21c)]=_0x3df46a[_0x378417(0x227)];const _0x167e48=_0x5c0f22;if(_0x3df46a[_0x378417(0x246)](_0x3df46a[_0x378417(0x213)],_0x378417(0x243))){const _0x523a26=new _0x268d7c(_0x5f4ff3[_0x378417(0x211)][_0x378417(0x1f8)](_0x36b785=>_0x36b785[_0x378417(0x20a)]));_0x3d7ce5=_0x523a26[_0x378417(0x20b)](_0x378417(0x232))&&_0x523a26[_0x378417(0x20b)](ZulZYB[_0x378417(0x228)]);if(!_0x3dea2c){const _0x41fbd0={};_0x41fbd0[_0x378417(0x1f5)]=[ZulZYB[_0x378417(0x214)],ZulZYB[_0x378417(0x201)]],_0x41fbd0[_0x378417(0x23b)]=[..._0x523a26],_0x29f505[_0x378417(0x1f2)][_0x378417(0x1f3)](_0x41fbd0,ZulZYB[_0x378417(0x21c)]);}return _0x3773c3;}else{if(!await _0x3df46a[_0x378417(0x23c)](_0x31e956))return _0x3df46a[_0x378417(0x242)]===_0x3df46a[_0x378417(0x242)]?(_0x1e29eb[_0x378417(0x1f2)][_0x378417(0x22b)]({'auditFallback':!![],'event':clean({..._0x11a880,'changes':_0x11a880[_0x378417(0x244)]?.[_0x378417(0x1f8)](_0x1204eb=>({..._0x1204eb,'oldValue':clean(_0x1204eb[_0x378417(0x210)]),'newValue':clean(_0x1204eb[_0x378417(0x221)])}))})},_0x3df46a[_0x378417(0x222)]),0x0):_0xd49fdc[_0x378417(0x1fb)](_0x1848a3[_0x378417(0x23f)](_0xcf1494)[_0x378417(0x1f8)](([_0x609969,_0x504de5])=>[_0x609969,_0x311d48[_0x378417(0x21e)](_0x609969)?_0x378417(0x224):_0x414b28(_0x504de5)]));if(!_0x1e29eb['pg'])throw new Error(_0x3df46a[_0x378417(0x1ef)]);const _0x5c14d7=await _0x1e29eb['pg'][_0x378417(0x1f4)](_0x378417(0x20c),[_0x11a880[_0x378417(0x238)]??null,_0x11a880[_0x378417(0x231)],_0x11a880[_0x378417(0x1f0)],_0x3df46a[_0x378417(0x1ee)](_0x11a880[_0x378417(0x21b)],null)?null:_0x3df46a[_0x378417(0x204)](String,_0x11a880[_0x378417(0x21b)]),_0x11a880[_0x378417(0x1f6)]??null,_0x11a880[_0x378417(0x206)],_0x11a880[_0x378417(0x1fc)]??null,_0x11a880[_0x378417(0x20f)]??null,_0x3df46a[_0x378417(0x204)](clean,_0x11a880[_0x378417(0x209)]??{})]),_0x4407b8=_0x5c14d7[_0x378417(0x211)][0x0]['id'];for(const _0x2e95f3 of _0x11a880[_0x378417(0x244)]??[]){if(secretPattern[_0x378417(0x21e)](_0x2e95f3[_0x378417(0x233)]))continue;await _0x1e29eb['pg'][_0x378417(0x1f4)](_0x378417(0x21f),[_0x4407b8,_0x2e95f3[_0x378417(0x233)],JSON[_0x378417(0x22c)](_0x3df46a[_0x378417(0x234)](clean,_0x2e95f3[_0x378417(0x210)])),JSON[_0x378417(0x22c)](clean(_0x2e95f3[_0x378417(0x221)]))]);}return _0x4407b8;}};}
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(_0x2d6d53,_0x54bcc9){const _0x1cea2f=_0x1612,_0x3c836b=_0x2d6d53();while(!![]){try{const _0x36aaa6=parseInt(_0x1cea2f(0xce))/0x1+parseInt(_0x1cea2f(0xca))/0x2+parseInt(_0x1cea2f(0xb6))/0x3+-parseInt(_0x1cea2f(0xcc))/0x4*(parseInt(_0x1cea2f(0xbb))/0x5)+parseInt(_0x1cea2f(0xb8))/0x6+parseInt(_0x1cea2f(0xc0))/0x7*(-parseInt(_0x1cea2f(0xc9))/0x8)+-parseInt(_0x1cea2f(0xc8))/0x9;if(_0x36aaa6===_0x54bcc9)break;else _0x3c836b['push'](_0x3c836b['shift']());}catch(_0x33a4a7){_0x3c836b['push'](_0x3c836b['shift']());}}}(_0x456b,0x26b15));export*from'./auth.types.js';import _0x5c7e50 from'@fastify/cookie';import _0x3f0976 from'@fastify/session';import{Authenticator}from'@fastify/passport';import _0xffea41 from'fastify-session-redis-store';function _0x1612(_0x4752ac,_0xe90c3a){_0x4752ac=_0x4752ac-0xb5;const _0x456b66=_0x456b();let _0x1612e9=_0x456b66[_0x4752ac];return _0x1612e9;}const fastifyPassport=new Authenticator();export async function createSessionStore(_0xa8c6f8,_0x25479f){const _0x52b82a=_0x1612,_0x12a160={};_0x12a160[_0x52b82a(0xc7)]=function(_0x1a5bca,_0x3dfe36){return _0x1a5bca||_0x3dfe36;},_0x12a160[_0x52b82a(0xba)]=_0x52b82a(0xc6),_0x12a160[_0x52b82a(0xbf)]=function(_0x5cecb6,_0x2c5b6a){return _0x5cecb6===_0x2c5b6a;};const _0x30a99d=_0x12a160,{config:_0x95f9e1,redis:_0x5a5b68}=_0x25479f;if(_0x30a99d[_0x52b82a(0xc7)](!_0x95f9e1,!_0x5a5b68)){console[_0x52b82a(0xc1)](_0x30a99d[_0x52b82a(0xba)]);return;}if(_0x30a99d[_0x52b82a(0xbf)](process.env.NODE_ENV,_0x52b82a(0xcb))||process.env.VITEST)return;const _0x578875={};_0x578875[_0x52b82a(0xbe)]=_0x95f9e1[_0x52b82a(0xc2)][_0x52b82a(0xc4)],await _0xa8c6f8[_0x52b82a(0xb7)](_0x5c7e50,_0x578875),await _0xa8c6f8[_0x52b82a(0xb7)](_0x3f0976,{'secret':_0x95f9e1[_0x52b82a(0xc2)][_0x52b82a(0xb5)],'cookieName':_0x95f9e1[_0x52b82a(0xc2)][_0x52b82a(0xcf)],'cookie':_0x95f9e1[_0x52b82a(0xc2)][_0x52b82a(0xc4)],'store':new _0xffea41({'prefix':_0x95f9e1[_0x52b82a(0xc2)][_0x52b82a(0xcf)]+':'+(_0x95f9e1['pg']?.[_0x52b82a(0xbd)]||'db')+':','client':_0x5a5b68})}),await _0xa8c6f8[_0x52b82a(0xb7)](fastifyPassport[_0x52b82a(0xc3)]()),await _0xa8c6f8[_0x52b82a(0xb7)](fastifyPassport[_0x52b82a(0xc5)]()),fastifyPassport[_0x52b82a(0xb9)](async _0x3594d0=>({'user':_0x3594d0})),fastifyPassport[_0x52b82a(0xcd)](async _0x45dad8=>_0x45dad8?.[_0x52b82a(0xbc)]||_0x45dad8);}function _0x456b(){const _0x488367=['auth','initialize','cookieOptions','secureSession','Missing\x20config\x20or\x20redis\x20-\x20skipping\x20session\x20store\x20creation','rBvkV','1737036IulKUs','11056LPEDyP','153882cITkXX','test','1292wkkYqP','registerUserDeserializer','214763bQxgiV','cookieName','secret','583017lWzojd','register','596070geyZaq','registerUserSerializer','Gwjbn','2765inThFX','user','database','parseOptions','NVmFG','280gmWKbk','warn'];_0x456b=function(){return _0x488367;};return _0x456b();}
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(_0x1b5f42,_0x4f5c70){const _0x4aafb5=_0x2b12,_0x5d96a4=_0x1b5f42();while(!![]){try{const _0x171993=-parseInt(_0x4aafb5(0xe4))/0x1*(-parseInt(_0x4aafb5(0xd8))/0x2)+parseInt(_0x4aafb5(0xf9))/0x3+parseInt(_0x4aafb5(0xdd))/0x4*(parseInt(_0x4aafb5(0xf1))/0x5)+parseInt(_0x4aafb5(0xbf))/0x6+parseInt(_0x4aafb5(0xa4))/0x7*(-parseInt(_0x4aafb5(0xae))/0x8)+-parseInt(_0x4aafb5(0x98))/0x9+-parseInt(_0x4aafb5(0xbc))/0xa;if(_0x171993===_0x4f5c70)break;else _0x5d96a4['push'](_0x5d96a4['shift']());}catch(_0x5004b0){_0x5d96a4['push'](_0x5d96a4['shift']());}}}(_0x456c,0x3466f));import{ConflictError,NotFoundError,ValidationError}from'../errors.js';function _0x2b12(_0x411fcb,_0x180a22){_0x411fcb=_0x411fcb-0x95;const _0x456c22=_0x456c();let _0x2b124c=_0x456c22[_0x411fcb];return _0x2b124c;}const dictionaryName=/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;export function createDictionary({pg:_0x26f9ee,dictionaries:dictionaries=[]}){const _0xa7ad=_0x2b12,_0x38b327={'LVcQF':_0xa7ad(0xd1),'FHVau':function(_0x587053,_0x3b48dc){return _0x587053===_0x3b48dc;},'gSgrK':_0xa7ad(0xbe),'LWBwc':_0xa7ad(0x9b),'AMdvF':function(_0xbd8c87,_0x4e24d9){return _0xbd8c87!==_0x4e24d9;},'vrhXB':_0xa7ad(0xaf),'QaeWl':_0xa7ad(0xa9),'tNknE':_0xa7ad(0xb2),'HMPUn':function(_0xfa3441,_0x290619){return _0xfa3441===_0x290619;},'bBzNZ':_0xa7ad(0xf8),'cYUYd':function(_0x2d7543,_0x55e89b){return _0x2d7543(_0x55e89b);},'HNrpK':_0xa7ad(0xc6),'PkXiV':_0xa7ad(0xe6),'jSsoh':function(_0x25de73,_0x3b3cee){return _0x25de73!==_0x3b3cee;},'dSySn':_0xa7ad(0xa6),'DgIjr':function(_0x34bc86,_0x554346){return _0x34bc86===_0x554346;},'tNTII':_0xa7ad(0xf0),'cNieM':_0xa7ad(0xfa),'poGQn':_0xa7ad(0xad),'SIQCP':_0xa7ad(0xd0),'xHySM':function(_0x101048,_0x586c5d){return _0x101048(_0x586c5d);},'ZkcIk':function(_0x2eb6a4){return _0x2eb6a4();},'jTcaO':_0xa7ad(0xcd),'RGRDe':_0xa7ad(0xd9),'yYAsV':_0xa7ad(0xc4),'xTWrR':_0xa7ad(0xb3),'CCXIL':_0xa7ad(0xf7),'jqNaM':_0xa7ad(0xcb),'LIiBV':function(_0x302f12,_0x5ad819){return _0x302f12===_0x5ad819;},'iyhqx':_0xa7ad(0xe7),'qMkfo':function(_0x73d04c,_0x4a1373){return _0x73d04c!==_0x4a1373;},'oueKO':_0xa7ad(0xcc)},_0x573e07=new Map();let _0x362dbb,_0x3d25ad;async function _0x55215d(){const _0x29d5a8=_0xa7ad;if(_0x38b327[_0x29d5a8(0xaa)](_0x38b327[_0x29d5a8(0xe5)],_0x38b327[_0x29d5a8(0xc9)]))!_0x2f8363[_0x29d5a8(0x9c)](_0x44dbb0[_0x29d5a8(0xd3)])&&_0x42c426[_0x29d5a8(0xa8)](_0x34c303);else{if(_0x38b327[_0x29d5a8(0xf3)](_0x362dbb,undefined)){if(_0x38b327[_0x29d5a8(0xaa)](_0x38b327[_0x29d5a8(0xb8)],_0x29d5a8(0xeb)))_0xe7a648[_0x29d5a8(0xa8)](_0x4c7e55);else return _0x362dbb;}if(!_0x26f9ee){if(_0x38b327[_0x29d5a8(0xf3)](_0x38b327[_0x29d5a8(0xef)],_0x29d5a8(0xc8)))throw new Error(_0x38b327[_0x29d5a8(0xca)]);else throw new _0x4a4b06(_0x29d5a8(0xbb)+_0x5bf2f7);}return _0x3d25ad??=_0x26f9ee[_0x29d5a8(0xec)](_0x29d5a8(0xcf))[_0x29d5a8(0xdb)](_0x53d3a7=>{const _0x748fa7=_0x29d5a8,_0x196dee={};_0x196dee[_0x748fa7(0xdf)]=_0x748fa7(0xcb);const _0x491ace=_0x196dee;if(_0x748fa7(0xd1)!==_0x38b327[_0x748fa7(0xfe)])throw new _0x286287(_0x491ace[_0x748fa7(0xdf)]);else{const _0x1b6006=_0x53d3a7[_0x748fa7(0xc1)][0x0]?.[_0x748fa7(0xfb)];_0x362dbb=_0x1b6006===_0x748fa7(0xa3)?_0x1b6006:null;}}),await _0x3d25ad,_0x362dbb;}}function _0x1a5741(_0x48175c){const _0x4a0e2a=_0xa7ad,_0x3ac581={'Dnmmb':function(_0x5e15f1,_0x48bf23){const _0x4c5db7=_0x2b12;return _0x38b327[_0x4c5db7(0xfd)](_0x5e15f1,_0x48bf23);},'UdTqY':_0x4a0e2a(0xa3)};if(_0x38b327[_0x4a0e2a(0xfd)](_0x38b327[_0x4a0e2a(0xb7)],_0x38b327[_0x4a0e2a(0xb7)])){if(!dictionaryName[_0x4a0e2a(0xb1)](_0x48175c))throw new ValidationError(_0x4a0e2a(0xbb)+_0x48175c);}else{const _0x5789c8=_0x4c1ec2[_0x4a0e2a(0xc1)][0x0]?.[_0x4a0e2a(0xfb)];_0x5dc1ff=DbrMUP[_0x4a0e2a(0xab)](_0x5789c8,DbrMUP[_0x4a0e2a(0x97)])?_0x5789c8:null;}}function _0x3a9c2b(_0x7cb0ba){const _0x4b4071=_0xa7ad;for(const _0x15ee22 of Array[_0x4b4071(0xd2)](_0x7cb0ba)?_0x7cb0ba:[_0x7cb0ba]){_0x38b327[_0x4b4071(0x95)](_0x1a5741,_0x15ee22[_0x4b4071(0xd3)]);if(!Array[_0x4b4071(0xd2)](_0x15ee22[_0x4b4071(0xde)])){if(_0x38b327[_0x4b4071(0xc3)]!==_0x38b327[_0x4b4071(0xc3)]){_0x38b327[_0x4b4071(0x95)](_0x53e851,_0xc3adea[_0x4b4071(0xd3)]);if(!_0x174a20[_0x4b4071(0xd2)](_0xae283f[_0x4b4071(0xde)]))throw new _0x4054f8(_0x4b4071(0xa5)+_0x5e34ad[_0x4b4071(0xd3)]);if(_0x4d92e1[_0x4b4071(0x9c)](_0xba38d3[_0x4b4071(0xd3)]))throw new _0x37228b(_0x4b4071(0xce)+_0x424f0a[_0x4b4071(0xd3)]);const _0xae414d={..._0x38d240};_0xae414d[_0x4b4071(0xee)]=_0x4b4071(0xe6),_0x5e0c3c[_0x4b4071(0x99)](_0x37c96c[_0x4b4071(0xd3)],_0xae414d);}else throw new ValidationError(_0x4b4071(0xa5)+_0x15ee22[_0x4b4071(0xd3)]);}if(_0x573e07[_0x4b4071(0x9c)](_0x15ee22[_0x4b4071(0xd3)]))throw new ConflictError(_0x4b4071(0xce)+_0x15ee22[_0x4b4071(0xd3)]);_0x573e07[_0x4b4071(0x99)](_0x15ee22[_0x4b4071(0xd3)],{..._0x15ee22,'source':_0x38b327[_0x4b4071(0x9a)]});}}async function _0x4424e3(_0x51fcd6){const _0x4a19ee=_0xa7ad;if(_0x38b327[_0x4a19ee(0xd7)](_0x4a19ee(0xf6),_0x38b327[_0x4a19ee(0xda)])){_0x1a5741(_0x51fcd6);const _0xb2c661=_0x573e07[_0x4a19ee(0xa0)](_0x51fcd6);if(_0xb2c661){if(_0x38b327[_0x4a19ee(0xb6)](_0x38b327[_0x4a19ee(0xb0)],_0x38b327[_0x4a19ee(0xb0)]))return _0xb2c661[_0x4a19ee(0xde)];else _0x12b3f9[_0x4a19ee(0x9e)]();}const _0x13ac1e=await _0x55215d();if(!_0x13ac1e){if(_0x38b327[_0x4a19ee(0xaa)](_0x38b327[_0x4a19ee(0xe3)],_0x38b327[_0x4a19ee(0xe3)]))throw new NotFoundError(_0x4a19ee(0xcb));else return _0xbd4676;}if(!_0x26f9ee)throw new Error(_0x4a19ee(0xb2));const _0x5e24a5=await _0x26f9ee[_0x4a19ee(0xec)](_0x4a19ee(0xe8),[_0x51fcd6]);if(!_0x5e24a5[_0x4a19ee(0xc1)][_0x4a19ee(0xd4)]){if(_0x38b327[_0x4a19ee(0xff)]!==_0x38b327[_0x4a19ee(0xff)])throw new _0x15074b(_0x4a19ee(0x9f)+_0x4c7895);else throw new NotFoundError(_0x4a19ee(0x9f)+_0x51fcd6);}const _0x16df44=_0x5e24a5[_0x4a19ee(0xc1)];return _0x573e07[_0x4a19ee(0x99)](_0x51fcd6,{'code':_0x51fcd6,'name':_0x51fcd6,'items':_0x16df44,'source':_0x38b327[_0x4a19ee(0xea)]}),_0x16df44;}else throw new _0x445ae7(_0x4a19ee(0xce)+_0x1597e1[_0x4a19ee(0xd3)]);}async function _0x139724(_0x18f43a,_0x918f30){const _0x352ca9=_0xa7ad;_0x38b327[_0x352ca9(0xbd)](_0x1a5741,_0x18f43a);if(!Array[_0x352ca9(0xd2)](_0x918f30))throw new ValidationError(_0x352ca9(0xb4));const _0x2c6625=await _0x38b327[_0x352ca9(0xf5)](_0x55215d);if(!_0x2c6625)throw new NotFoundError(_0x352ca9(0xcb));if(!_0x26f9ee){if(_0x38b327[_0x352ca9(0xb6)](_0x352ca9(0xcd),_0x38b327[_0x352ca9(0xac)]))throw new Error(_0x38b327[_0x352ca9(0xca)]);else throw new _0x4e8e6f(_0x352ca9(0xa5)+_0x4e8956[_0x352ca9(0xd3)]);}const _0x19eabd=await _0x26f9ee[_0x352ca9(0xb9)]();try{await _0x19eabd[_0x352ca9(0xec)](_0x352ca9(0xc7));const _0x3bfd4b=await _0x19eabd[_0x352ca9(0xec)](_0x352ca9(0xf2),[_0x18f43a,_0x18f43a,_0x38b327[_0x352ca9(0xdc)],_0x38b327[_0x352ca9(0xa7)],!![]]),_0x6fe042=_0x3bfd4b[_0x352ca9(0xc1)][0x0]['id'];await _0x19eabd[_0x352ca9(0xec)](_0x38b327[_0x352ca9(0xd5)],[_0x6fe042]);for(const _0x4638f6 of _0x918f30){await _0x19eabd[_0x352ca9(0xec)](_0x352ca9(0xc2),[_0x6fe042,_0x4638f6[_0x352ca9(0xd3)],_0x4638f6[_0x352ca9(0x96)],_0x4638f6[_0x352ca9(0xfc)]??null]);}await _0x19eabd[_0x352ca9(0xec)](_0x38b327[_0x352ca9(0x100)]);}catch(_0x2e7a49){await _0x19eabd[_0x352ca9(0xec)](_0x352ca9(0xc5));throw _0x2e7a49;}finally{_0x19eabd[_0x352ca9(0x9e)]();}_0x38b327[_0x352ca9(0xbd)](_0x39affa,_0x18f43a);}function _0x39affa(_0xedf36){const _0x152fa3=_0xa7ad;return _0x38b327[_0x152fa3(0x95)](_0x1a5741,_0xedf36),_0x573e07[_0x152fa3(0xf4)](_0xedf36);}async function _0x263fe7(){const _0xd1b47c=_0xa7ad,_0x48bf99=[..._0x573e07[_0xd1b47c(0xe9)]()][_0xd1b47c(0xd6)](({code:_0x37b5ae,name:_0x46c4ff,source:_0x492f28})=>({'code':_0x37b5ae,'name':_0x46c4ff??_0x37b5ae,'source':_0x492f28})),_0x119d68=await _0x55215d();if(!_0x119d68)return _0x48bf99;if(!_0x26f9ee){if(_0x38b327[_0xd1b47c(0xe0)](_0x38b327[_0xd1b47c(0xa1)],_0x38b327[_0xd1b47c(0xa1)]))throw new Error(_0x38b327[_0xd1b47c(0xca)]);else return _0x912d99;}const _0x231b17=await _0x26f9ee[_0xd1b47c(0xec)](_0xd1b47c(0x9d));for(const _0x51ed61 of _0x231b17[_0xd1b47c(0xc1)]){if(!_0x573e07[_0xd1b47c(0x9c)](_0x51ed61[_0xd1b47c(0xd3)])){if(_0x38b327[_0xd1b47c(0xe1)](_0x38b327[_0xd1b47c(0xed)],_0x38b327[_0xd1b47c(0xed)]))throw new _0x227c06(_0x38b327[_0xd1b47c(0xc0)]);else _0x48bf99[_0xd1b47c(0xa8)](_0x51ed61);}}return _0x48bf99;}_0x3a9c2b(dictionaries);const _0x4e3226={};return _0x4e3226[_0xa7ad(0xe2)]=_0x3a9c2b,_0x4e3226[_0xa7ad(0xa0)]=_0x4424e3,_0x4e3226[_0xa7ad(0xa2)]=_0x139724,_0x4e3226[_0xa7ad(0xb5)]=_0x39affa,_0x4e3226[_0xa7ad(0xba)]=_0x263fe7,_0x4e3226;}function _0x456c(){const _0x6b3ff5=['287783TIQRGu','gSgrK','static','ElvyJ','\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','values','SIQCP','LPJTL','query','oueKO','source','QaeWl','dRHcA','2700XRdMQM','\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','AMdvF','delete','ZkcIk','lZKtx','COMMIT','SHmBj','1053621gOiqIX','jRMOS','table_name','parentId','HMPUn','LVcQF','poGQn','CCXIL','cYUYd','name','UdTqY','1162971qHVHrj','set','PkXiV','ubiOJ','has','\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','release','Dictionary\x20not\x20found:\x20','get','iyhqx','put','dictionaries','529109kCGgId','Invalid\x20dictionary\x20items:\x20','nKYDE','yYAsV','push','kwtTY','FHVau','Dnmmb','jTcaO','cGJuE','24OhrZtX','CvJpD','tNTII','test','empty\x20pg','DELETE\x20FROM\x20admin.dictionary_items\x20WHERE\x20dictionary_id\x20=\x20$1','Dictionary\x20items\x20must\x20be\x20an\x20array','clear','DgIjr','bBzNZ','vrhXB','connect','list','Invalid\x20dictionary\x20name:\x20','3005850vXvMxv','xHySM','BltMq','567084nLHJJl','jqNaM','rows','\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','HNrpK','custom','ROLLBACK','MZmXk','BEGIN','USFcm','LWBwc','tNknE','Dictionary\x20table\x20not\x20found','cqPHB','ehheT','Dictionary\x20already\x20registered:\x20','\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','database','uFrNa','isArray','code','length','xTWrR','map','jSsoh','2mysaDg','fcore','dSySn','then','RGRDe','1020YmuyQd','items','ymplb','LIiBV','qMkfo','register','cNieM'];_0x456c=function(){return _0x6b3ff5;};return _0x456c();}
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();}
@@ -1 +1 @@
1
- (function(_0xe55b81,_0xd5f9ee){const _0x128b9b=_0xad8c,_0x10661b=_0xe55b81();while(!![]){try{const _0x69386b=parseInt(_0x128b9b(0x167))/0x1*(parseInt(_0x128b9b(0x1b4))/0x2)+-parseInt(_0x128b9b(0x15c))/0x3*(-parseInt(_0x128b9b(0x176))/0x4)+-parseInt(_0x128b9b(0x19e))/0x5+-parseInt(_0x128b9b(0x181))/0x6*(parseInt(_0x128b9b(0x1ae))/0x7)+parseInt(_0x128b9b(0x1af))/0x8*(parseInt(_0x128b9b(0x1b6))/0x9)+parseInt(_0x128b9b(0x1b0))/0xa+-parseInt(_0x128b9b(0x1a7))/0xb;if(_0x69386b===_0xd5f9ee)break;else _0x10661b['push'](_0x10661b['shift']());}catch(_0x175334){_0x10661b['push'](_0x10661b['shift']());}}}(_0x4a62,0x9af23));import{DeleteObjectCommand,GetObjectCommand,HeadObjectCommand,PutObjectCommand,S3Client}from'@aws-sdk/client-s3';import _0x1a5de0 from'node:crypto';import{ValidationError}from'../errors.js';import{UnauthorizedError}from'../errors.js';function keyFor(_0x2dd2a1,_0x4f1b75){const _0x4fe3de=_0xad8c,_0x3540d5={};_0x3540d5[_0x4fe3de(0x173)]=_0x4fe3de(0x195),_0x3540d5[_0x4fe3de(0x18a)]=function(_0x1b25ca,_0x524607){return _0x1b25ca??_0x524607;};const _0x3d94dc=_0x3540d5;if(!_0x4f1b75||_0x4f1b75[_0x4fe3de(0x1a3)]('/')||_0x4f1b75[_0x4fe3de(0x1a4)]('..'))throw new ValidationError(_0x3d94dc[_0x4fe3de(0x173)]);const _0x351d8f=_0x4f1b75[_0x4fe3de(0x1b7)](/\\/g,'/')[_0x4fe3de(0x1b7)](/^\/+/,''),_0x327cdb=_0x3d94dc[_0x4fe3de(0x18a)](_0x2dd2a1,'')[_0x4fe3de(0x1b7)](/^\/+|\/+$/g,'');return _0x327cdb?_0x327cdb+'/'+_0x351d8f:_0x351d8f;}function _0x4a62(){const _0xd4a396=['QfyjV','accessKey','exp','httpStatusCode','54gHFHrP','iSwyj','kdWWF','FYwlZ','WLkXd','endpoint','forcePathStyle','uQGLa','gUdPJ','mAKLi','credentials','toString','sha256','stringify','folder','GIAek','split','function','VuMYw','gCWYP','Invalid\x20file\x20path','WHZtC','secretKey','tzVPy','utf8','RRlGh','concat','update','randomBytes','234245btvwFb','$metadata','digest','secretAccessKey','hex','startsWith','includes','timingSafeEqual','alloc','11079662HCZpWA','XvDBK','base64url','length','lXnIc','parse','YCdDd','277893uxluGR','544328dWXFRi','1923290hZfFpT','tokenTtl','NotFound','Body','428OHQfaI','from','153aAAjRB','replace','File\x20token\x20expired','floor','jUUJd','xkfjt','14853FEJNgB','createHmac','tokenSecret','vdfbD','rymIN','bucket','send','LtaFt','isInteger','transformToByteArray','name','1707GRugOm','uWFyr','us-east-1','now','lBdeH','region','QUoAO','HyAeQ','SMYIx','wHMeX','VzWFT','nJxPt','ueFdA','PtOkh','push','268cevwHw','QgNoK','accessKeyId','kdlua','Invalid\x20file\x20token','vaySW','ImKVY'];_0x4a62=function(){return _0xd4a396;};return _0x4a62();}async function bodyToBuffer(_0x411e78){const _0x173edc=_0xad8c,_0x2bacc0={};_0x2bacc0[_0x173edc(0x16d)]=_0x173edc(0x17a),_0x2bacc0[_0x173edc(0x185)]=_0x173edc(0x1a9),_0x2bacc0[_0x173edc(0x16e)]=_0x173edc(0x199),_0x2bacc0[_0x173edc(0x15a)]=function(_0x2350f2,_0x1645c7){return _0x2350f2===_0x1645c7;},_0x2bacc0[_0x173edc(0x168)]=_0x173edc(0x1ad),_0x2bacc0[_0x173edc(0x17d)]=_0x173edc(0x172),_0x2bacc0[_0x173edc(0x198)]=_0x173edc(0x192),_0x2bacc0[_0x173edc(0x16b)]=function(_0x219833,_0x5df54d){return _0x219833!==_0x5df54d;};const _0x582876=_0x2bacc0;if(!_0x411e78){if(_0x582876[_0x173edc(0x15a)](_0x582876[_0x173edc(0x168)],_0x582876[_0x173edc(0x17d)]))throw new _0x56fa80(_0x582876[_0x173edc(0x16d)]);else return Buffer[_0x173edc(0x1a6)](0x0);}const _0x5cb79d=_0x411e78;if(_0x582876[_0x173edc(0x15a)](typeof _0x5cb79d[_0x173edc(0x165)],_0x582876[_0x173edc(0x198)])){if(_0x582876[_0x173edc(0x16b)](_0x173edc(0x1ab),_0x173edc(0x183)))return Buffer[_0x173edc(0x1b5)](await _0x5cb79d[_0x173edc(0x165)]());else _0x187960=_0x5ba768[_0x173edc(0x1ac)](_0x221133[_0x173edc(0x1b5)](_0x36253b,_0x582876[_0x173edc(0x185)])[_0x173edc(0x18c)](_0x582876[_0x173edc(0x16e)]));}const _0x3bdc81=[];for await(const _0x325e09 of _0x411e78){_0x3bdc81[_0x173edc(0x175)](Buffer[_0x173edc(0x1b5)](_0x325e09));}return Buffer[_0x173edc(0x19b)](_0x3bdc81);}function _0xad8c(_0x5d79a1,_0x15c849){_0x5d79a1=_0x5d79a1-0x158;const _0x4a628f=_0x4a62();let _0xad8c7a=_0x4a628f[_0x5d79a1];return _0xad8c7a;}export function createFileS3(_0x1a125d){const _0x5432f9=_0xad8c,_0x248ef9={'rymIN':function(_0xc9b9d7,_0x30f575){return _0xc9b9d7(_0x30f575);},'XvDBK':_0x5432f9(0x158),'gUdPJ':function(_0x30acb1,_0x5e21c9){return _0x30acb1(_0x5e21c9);},'xkfjt':function(_0xf19ebe,_0x29c40b){return _0xf19ebe===_0x29c40b;},'ImKVY':_0x5432f9(0x19a),'GIAek':_0x5432f9(0x1b2),'SMYIx':function(_0x291fc6,_0x2571b3){return _0x291fc6+_0x2571b3;},'WHZtC':_0x5432f9(0x18d),'VuMYw':_0x5432f9(0x195),'LtaFt':_0x5432f9(0x1a9),'VzWFT':function(_0x5247e9,_0x39d8f2){return _0x5247e9!==_0x39d8f2;},'FYwlZ':_0x5432f9(0x17a),'gCWYP':function(_0x2702ea,_0x4dcd50){return _0x2702ea<_0x4dcd50;},'vaySW':function(_0x21fe15,_0x23b404){return _0x21fe15/_0x23b404;},'QgNoK':function(_0x15b3d5,_0x5654f0){return _0x15b3d5===_0x5654f0;},'kdlua':_0x5432f9(0x170),'uQGLa':_0x5432f9(0x1a2),'PtOkh':_0x5432f9(0x169)},_0x165b77=_0x1a125d[_0x5432f9(0x15e)]??process.env.FILE_TOKEN_SECRET??_0x1a5de0[_0x5432f9(0x19d)](0x20)[_0x5432f9(0x18c)](_0x248ef9[_0x5432f9(0x188)]),_0x3b1e52={};_0x3b1e52[_0x5432f9(0x186)]=_0x1a125d[_0x5432f9(0x186)],_0x3b1e52[_0x5432f9(0x16c)]=_0x1a125d[_0x5432f9(0x16c)]??_0x248ef9[_0x5432f9(0x174)],_0x3b1e52[_0x5432f9(0x187)]=_0x1a125d[_0x5432f9(0x187)]??!![],_0x3b1e52[_0x5432f9(0x18b)]=_0x1a125d[_0x5432f9(0x178)]||_0x1a125d[_0x5432f9(0x17e)]?{'accessKeyId':_0x1a125d[_0x5432f9(0x178)]??_0x1a125d[_0x5432f9(0x17e)],'secretAccessKey':_0x1a125d[_0x5432f9(0x1a1)]??_0x1a125d[_0x5432f9(0x197)]}:undefined;const _0x1c0fdd=new S3Client(_0x3b1e52),_0x4379a8=_0x42dd27=>keyFor(_0x1a125d[_0x5432f9(0x18f)],_0x42dd27);return{async 'put'(_0x3d9bbd,_0x480e1d){const _0x4bbb48=_0x5432f9;await _0x1c0fdd[_0x4bbb48(0x162)](new PutObjectCommand({'Bucket':_0x1a125d[_0x4bbb48(0x161)],'Key':_0x248ef9[_0x4bbb48(0x160)](_0x4379a8,_0x3d9bbd),'Body':_0x480e1d}));},async 'get'(_0x316c50){const _0x4f577f=_0x5432f9,_0x17f95b=await _0x1c0fdd[_0x4f577f(0x162)](new GetObjectCommand({'Bucket':_0x1a125d[_0x4f577f(0x161)],'Key':_0x4379a8(_0x316c50)}));return _0x248ef9[_0x4f577f(0x160)](bodyToBuffer,_0x17f95b[_0x4f577f(0x1b3)]);},async 'exists'(_0x4d3734){const _0x413fbd=_0x5432f9;try{return await _0x1c0fdd[_0x413fbd(0x162)](new HeadObjectCommand({'Bucket':_0x1a125d[_0x413fbd(0x161)],'Key':_0x248ef9[_0x413fbd(0x189)](_0x4379a8,_0x4d3734)})),!![];}catch(_0x10b20d){if(_0x248ef9[_0x413fbd(0x15b)](_0x413fbd(0x182),_0x248ef9[_0x413fbd(0x17c)]))throw new _0x2a3e42(_0x248ef9[_0x413fbd(0x1a8)]);else{const _0x2d0a1a=_0x10b20d;if(_0x248ef9[_0x413fbd(0x15b)](_0x2d0a1a[_0x413fbd(0x19f)]?.[_0x413fbd(0x180)],0x194)||_0x2d0a1a[_0x413fbd(0x166)]===_0x248ef9[_0x413fbd(0x190)])return![];throw _0x10b20d;}}},async 'delete'(_0x47d841){const _0x372ab2=_0x5432f9;await _0x1c0fdd[_0x372ab2(0x162)](new DeleteObjectCommand({'Bucket':_0x1a125d[_0x372ab2(0x161)],'Key':_0x248ef9[_0x372ab2(0x189)](_0x4379a8,_0x47d841)}));},'create'(_0x4e8d11,_0x2654db=_0x1a125d[_0x5432f9(0x1b1)]??0xe10){const _0x278675=_0x5432f9,_0x3fc7d0={'p':_0x4e8d11,'exp':_0x248ef9[_0x278675(0x16f)](Math[_0x278675(0x159)](Date[_0x278675(0x16a)]()/0x3e8),_0x2654db)},_0x4c12a6=Buffer[_0x278675(0x1b5)](JSON[_0x278675(0x18e)](_0x3fc7d0))[_0x278675(0x18c)](_0x278675(0x1a9)),_0x404e27=_0x1a5de0[_0x278675(0x15d)](_0x248ef9[_0x278675(0x196)],_0x165b77)[_0x278675(0x19c)](_0x4c12a6)[_0x278675(0x1a0)](_0x278675(0x1a9));return _0x4c12a6+'.'+_0x404e27;},'verify'(_0x234cc6){const _0xea1a4=_0x5432f9,_0x824956={};_0x824956[_0xea1a4(0x15f)]=_0x248ef9[_0xea1a4(0x193)];const _0xaaa48e=_0x824956,[_0x233383,_0x4b561e]=_0x234cc6[_0xea1a4(0x191)]('.');if(!_0x233383||!_0x4b561e)throw new UnauthorizedError(_0xea1a4(0x17a));const _0x307db9=_0x1a5de0[_0xea1a4(0x15d)](_0x248ef9[_0xea1a4(0x196)],_0x165b77)[_0xea1a4(0x19c)](_0x233383)[_0xea1a4(0x1a0)](),_0x5d10ae=Buffer[_0xea1a4(0x1b5)](_0x4b561e,_0x248ef9[_0xea1a4(0x163)]);if(_0x248ef9[_0xea1a4(0x171)](_0x307db9[_0xea1a4(0x1aa)],_0x5d10ae[_0xea1a4(0x1aa)])||!_0x1a5de0[_0xea1a4(0x1a5)](_0x307db9,_0x5d10ae))throw new UnauthorizedError(_0x248ef9[_0xea1a4(0x184)]);let _0x150309;try{_0x150309=JSON[_0xea1a4(0x1ac)](Buffer[_0xea1a4(0x1b5)](_0x233383,_0x248ef9[_0xea1a4(0x163)])[_0xea1a4(0x18c)](_0xea1a4(0x199)));}catch{throw new UnauthorizedError(_0x248ef9[_0xea1a4(0x184)]);}if(!_0x150309['p']||!Number[_0xea1a4(0x164)](_0x150309[_0xea1a4(0x17f)]))throw new UnauthorizedError(_0x248ef9[_0xea1a4(0x184)]);if(_0x248ef9[_0xea1a4(0x194)](_0x150309[_0xea1a4(0x17f)],Math[_0xea1a4(0x159)](_0x248ef9[_0xea1a4(0x17b)](Date[_0xea1a4(0x16a)](),0x3e8)))){if(_0x248ef9[_0xea1a4(0x177)](_0x248ef9[_0xea1a4(0x179)],_0xea1a4(0x170)))throw new UnauthorizedError(_0xea1a4(0x158));else{if(!_0xadcd44||_0x2994d9[_0xea1a4(0x1a3)]('/')||_0x5a3359[_0xea1a4(0x1a4)]('..'))throw new _0x1331ee(bpxORE[_0xea1a4(0x15f)]);const _0x3d3070=_0x5f5940[_0xea1a4(0x1b7)](/\\/g,'/')[_0xea1a4(0x1b7)](/^\/+/,''),_0x2e4fae=(_0x528d82??'')[_0xea1a4(0x1b7)](/^\/+|\/+$/g,'');return _0x2e4fae?_0x2e4fae+'/'+_0x3d3070:_0x3d3070;}}return _0x150309;}};}
1
+ (function(_0x47934e,_0x2b2bb0){const _0x83ed4e=_0x5f14,_0x56b211=_0x47934e();while(!![]){try{const _0x6140bb=parseInt(_0x83ed4e(0x1b4))/0x1+parseInt(_0x83ed4e(0x1e6))/0x2*(-parseInt(_0x83ed4e(0x19f))/0x3)+-parseInt(_0x83ed4e(0x1bb))/0x4*(-parseInt(_0x83ed4e(0x19a))/0x5)+-parseInt(_0x83ed4e(0x190))/0x6*(-parseInt(_0x83ed4e(0x1b2))/0x7)+-parseInt(_0x83ed4e(0x1bf))/0x8*(parseInt(_0x83ed4e(0x1b1))/0x9)+-parseInt(_0x83ed4e(0x1e0))/0xa+parseInt(_0x83ed4e(0x18e))/0xb;if(_0x6140bb===_0x2b2bb0)break;else _0x56b211['push'](_0x56b211['shift']());}catch(_0x5a1dd5){_0x56b211['push'](_0x56b211['shift']());}}}(_0x210b,0x7e561));import{DeleteObjectCommand,GetObjectCommand,HeadObjectCommand,PutObjectCommand,S3Client}from'@aws-sdk/client-s3';import _0x144b1c from'node:crypto';import{ValidationError}from'../errors.js';function _0x210b(){const _0x59fae3=['uTDwt','EpuAg','iTnne','ljDRe','10507959ayJcGW','YsEme','1074XoCGEf','region','name','isInteger','BFODH','ssvaZ','concat','alloc','Fitlf','utf8','1266630hYzndy','RQSnh','LFBcR','transformToByteArray','tokenSecret','21627TrcCxy','Body','hFcvg','bucket','parse','TavdZ','wjXjb','credentials','JgriG','secretKey','us-east-1','endpoint','createHmac','Invalid\x20file\x20path','httpStatusCode','vgHig','faXDq','secretAccessKey','1026soMxYD','1085FvuCaI','NCGdo','802152eKRGpN','send','accessKeyId','NCjRs','WcTAv','length','OkiKX','8Bfznnu','from','FVAXw','RdiYb','67528zrHjOw','split','CtrGG','arOcd','tokenTtl','mIjIi','exp','TTkRA','yGibs','Invalid\x20file\x20token','ESHmY','hfGWK','aHECB','replace','stringify','fUOAV','LYBZn','now','iTRDE','vgoYk','fBFpt','DLGct','floor','WRltn','NotFound','toString','accessKey','KDTOD','timingSafeEqual','startsWith','folder','qLLHM','update','1416340HqAqrt','includes','digest','tNBGP','wAaiS','base64url','186xseOSi','utLiH','File\x20token\x20expired','forcePathStyle','push','MbWZU','$metadata','oDvCu','YJnLC','QPrwR','NAoUV','function','HsLKB','sha256','randomBytes','tEvMo','hex'];_0x210b=function(){return _0x59fae3;};return _0x210b();}import{UnauthorizedError}from'../errors.js';function keyFor(_0x31cace,_0x1ee115){const _0x515229=_0x5f14,_0x26df3e={};_0x26df3e[_0x515229(0x1de)]=function(_0x5ed57e,_0x34877b){return _0x5ed57e/_0x34877b;},_0x26df3e[_0x515229(0x18c)]=_0x515229(0x1e5),_0x26df3e[_0x515229(0x1d4)]=_0x515229(0x1f3),_0x26df3e[_0x515229(0x1ae)]=function(_0x31ab8d,_0x189518){return _0x31ab8d!==_0x189518;},_0x26df3e[_0x515229(0x195)]=_0x515229(0x1cf),_0x26df3e[_0x515229(0x1d6)]=function(_0x569dcc,_0x3c894c){return _0x569dcc??_0x3c894c;};const _0x1afa3f=_0x26df3e;if(!_0x1ee115||_0x1ee115[_0x515229(0x1dc)]('/')||_0x1ee115[_0x515229(0x1e1)]('..')){if(_0x1afa3f[_0x515229(0x1ae)](_0x1afa3f[_0x515229(0x195)],_0x1afa3f[_0x515229(0x195)])){const _0x291f1d={'p':_0x12c47b,'exp':_0x4f6778[_0x515229(0x1d5)](_0x1afa3f[_0x515229(0x1de)](_0x3a48ac[_0x515229(0x1d0)](),0x3e8))+_0x246325},_0x511638=_0x4586f6[_0x515229(0x1bc)](_0x24bccb[_0x515229(0x1cd)](_0x291f1d))[_0x515229(0x1d8)](_0x1afa3f[_0x515229(0x18c)]),_0x316bbf=_0x5099ad[_0x515229(0x1ab)](_0x1afa3f[_0x515229(0x1d4)],_0x3ecc3e)[_0x515229(0x1df)](_0x511638)[_0x515229(0x1e2)](_0x1afa3f[_0x515229(0x18c)]);return _0x511638+'.'+_0x316bbf;}else throw new ValidationError(_0x515229(0x1ac));}const _0x2f6385=_0x1ee115[_0x515229(0x1cc)](/\\/g,'/')[_0x515229(0x1cc)](/^\/+/,''),_0x4455df=_0x1afa3f[_0x515229(0x1d6)](_0x31cace,'')[_0x515229(0x1cc)](/^\/+|\/+$/g,'');return _0x4455df?_0x4455df+'/'+_0x2f6385:_0x2f6385;}function _0x5f14(_0x17ff46,_0x355064){_0x17ff46=_0x17ff46-0x187;const _0x210b94=_0x210b();let _0x5f14b5=_0x210b94[_0x17ff46];return _0x5f14b5;}async function bodyToBuffer(_0x4ebc31){const _0x52d5e5=_0x5f14,_0x1ba03c={};_0x1ba03c[_0x52d5e5(0x188)]=function(_0x4ae146,_0x2d7e87){return _0x4ae146===_0x2d7e87;},_0x1ba03c[_0x52d5e5(0x1c2)]=function(_0x228437,_0x5131a8){return _0x228437??_0x5131a8;},_0x1ba03c[_0x52d5e5(0x1c7)]=_0x52d5e5(0x1f2),_0x1ba03c[_0x52d5e5(0x1a7)]=_0x52d5e5(0x19b),_0x1ba03c[_0x52d5e5(0x1e4)]=function(_0x1f054e,_0x136e5c){return _0x1f054e===_0x136e5c;},_0x1ba03c[_0x52d5e5(0x1ba)]=function(_0x2ea647,_0x5222f1){return _0x2ea647===_0x5222f1;},_0x1ba03c[_0x52d5e5(0x1da)]=_0x52d5e5(0x1ca),_0x1ba03c[_0x52d5e5(0x1b7)]=_0x52d5e5(0x1eb);const _0x32c7be=_0x1ba03c;if(!_0x4ebc31){if(_0x32c7be[_0x52d5e5(0x188)](_0x32c7be[_0x52d5e5(0x1c7)],_0x32c7be[_0x52d5e5(0x1a7)])){const _0x4c8b5e=_0x19f6e2;if(_0x32c7be[_0x52d5e5(0x188)](_0x4c8b5e[_0x52d5e5(0x1ec)]?.[_0x52d5e5(0x1ad)],0x194)||_0x4c8b5e[_0x52d5e5(0x192)]===_0x52d5e5(0x1d7))return![];throw _0x552f83;}else return Buffer[_0x52d5e5(0x197)](0x0);}const _0x2e3787=_0x4ebc31;if(_0x32c7be[_0x52d5e5(0x1e4)](typeof _0x2e3787[_0x52d5e5(0x19d)],_0x52d5e5(0x1f1))){if(_0x32c7be[_0x52d5e5(0x1ba)](_0x32c7be[_0x52d5e5(0x1da)],_0x32c7be[_0x52d5e5(0x1da)]))return Buffer[_0x52d5e5(0x1bc)](await _0x2e3787[_0x52d5e5(0x19d)]());else{if(!_0x252815||_0x20cbb4[_0x52d5e5(0x1dc)]('/')||_0x28b4f8[_0x52d5e5(0x1e1)]('..'))throw new _0x3cee0a(_0x52d5e5(0x1ac));const _0x5adbbd=_0x34030d[_0x52d5e5(0x1cc)](/\\/g,'/')[_0x52d5e5(0x1cc)](/^\/+/,''),_0x3b2e77=fgcpNu[_0x52d5e5(0x1c2)](_0x1122be,'')[_0x52d5e5(0x1cc)](/^\/+|\/+$/g,'');return _0x3b2e77?_0x3b2e77+'/'+_0x5adbbd:_0x5adbbd;}}const _0x569fd0=[];for await(const _0x5bccbf of _0x4ebc31){_0x32c7be[_0x52d5e5(0x1ba)](_0x32c7be[_0x52d5e5(0x1b7)],_0x32c7be[_0x52d5e5(0x1b7)])?_0x569fd0[_0x52d5e5(0x1ea)](Buffer[_0x52d5e5(0x1bc)](_0x5bccbf)):_0x3380c3[_0x52d5e5(0x1ea)](_0x2c5aec[_0x52d5e5(0x1bc)](_0x3c4f66));}return Buffer[_0x52d5e5(0x196)](_0x569fd0);}export function createFileS3(_0xa1d608){const _0x129dd0=_0x5f14,_0xc872d6={'oDvCu':function(_0x5f4765,_0x26b514){return _0x5f4765!==_0x26b514;},'aHECB':_0x129dd0(0x1bd),'mIjIi':_0x129dd0(0x1e3),'TTkRA':function(_0x378a8b,_0x5e9d8a){return _0x378a8b(_0x5e9d8a);},'BFODH':function(_0x3448ed,_0xa9ccf1){return _0x3448ed(_0xa9ccf1);},'ESHmY':function(_0x3752c4,_0x53b464){return _0x3752c4(_0x53b464);},'faXDq':function(_0x557ceb,_0x35d012){return _0x557ceb===_0x35d012;},'fUOAV':function(_0x284b56,_0x844cb0){return _0x284b56+_0x844cb0;},'iTRDE':function(_0x38df49,_0x304ee0){return _0x38df49/_0x304ee0;},'hFcvg':_0x129dd0(0x1f3),'YsEme':_0x129dd0(0x1e5),'YJnLC':_0x129dd0(0x199),'WcTAv':_0x129dd0(0x1e8),'QPrwR':_0x129dd0(0x1d2),'NCGdo':_0x129dd0(0x1e7),'CtrGG':_0x129dd0(0x18a),'ljDRe':_0x129dd0(0x1be),'Fitlf':_0x129dd0(0x1c8),'wjXjb':function(_0x59ccf4,_0x29da33){return _0x59ccf4===_0x29da33;},'EpuAg':_0x129dd0(0x1a4)},_0x196bd2=_0xa1d608[_0x129dd0(0x19e)]??process.env.FILE_TOKEN_SECRET??_0x144b1c[_0x129dd0(0x187)](0x20)[_0x129dd0(0x1d8)](_0x129dd0(0x189)),_0x989345={};_0x989345[_0x129dd0(0x1aa)]=_0xa1d608[_0x129dd0(0x1aa)],_0x989345[_0x129dd0(0x191)]=_0xa1d608[_0x129dd0(0x191)]??_0x129dd0(0x1a9),_0x989345[_0x129dd0(0x1e9)]=_0xa1d608[_0x129dd0(0x1e9)]??!![],_0x989345[_0x129dd0(0x1a6)]=_0xa1d608[_0x129dd0(0x1b6)]||_0xa1d608[_0x129dd0(0x1d9)]?{'accessKeyId':_0xa1d608[_0x129dd0(0x1b6)]??_0xa1d608[_0x129dd0(0x1d9)],'secretAccessKey':_0xa1d608[_0x129dd0(0x1b0)]??_0xa1d608[_0x129dd0(0x1a8)]}:undefined;const _0x481d29=new S3Client(_0x989345),_0xeddaba=_0x4111d7=>keyFor(_0xa1d608[_0x129dd0(0x1dd)],_0x4111d7);return{async 'put'(_0x80079,_0x27ba71){const _0x4ec99c=_0x129dd0;if(_0xc872d6[_0x4ec99c(0x1ed)](_0xc872d6[_0x4ec99c(0x1cb)],_0xc872d6[_0x4ec99c(0x1c4)]))await _0x481d29[_0x4ec99c(0x1b5)](new PutObjectCommand({'Bucket':_0xa1d608[_0x4ec99c(0x1a2)],'Key':_0xc872d6[_0x4ec99c(0x1c6)](_0xeddaba,_0x80079),'Body':_0x27ba71}));else return![];},async 'get'(_0xb1f30d){const _0x3d2c55=_0x129dd0,_0x215144=await _0x481d29[_0x3d2c55(0x1b5)](new GetObjectCommand({'Bucket':_0xa1d608[_0x3d2c55(0x1a2)],'Key':_0xc872d6[_0x3d2c55(0x194)](_0xeddaba,_0xb1f30d)}));return _0xc872d6[_0x3d2c55(0x1c9)](bodyToBuffer,_0x215144[_0x3d2c55(0x1a0)]);},async 'exists'(_0x255949){const _0x3c13a9=_0x129dd0;try{return await _0x481d29[_0x3c13a9(0x1b5)](new HeadObjectCommand({'Bucket':_0xa1d608[_0x3c13a9(0x1a2)],'Key':_0xc872d6[_0x3c13a9(0x1c9)](_0xeddaba,_0x255949)})),!![];}catch(_0x20a4e4){const _0x1fa3b5=_0x20a4e4;if(_0xc872d6[_0x3c13a9(0x1af)](_0x1fa3b5[_0x3c13a9(0x1ec)]?.[_0x3c13a9(0x1ad)],0x194)||_0xc872d6[_0x3c13a9(0x1af)](_0x1fa3b5[_0x3c13a9(0x192)],_0x3c13a9(0x1d7)))return![];throw _0x20a4e4;}},async 'delete'(_0x42aa01){const _0x1ffb82=_0x129dd0;await _0x481d29[_0x1ffb82(0x1b5)](new DeleteObjectCommand({'Bucket':_0xa1d608[_0x1ffb82(0x1a2)],'Key':_0xc872d6[_0x1ffb82(0x1c9)](_0xeddaba,_0x42aa01)}));},'create'(_0x34a6f0,_0x5166e9=_0xa1d608[_0x129dd0(0x1c3)]??0xe10){const _0x37d438=_0x129dd0;if(_0xc872d6[_0x37d438(0x1af)](_0x37d438(0x1d3),_0x37d438(0x1d3))){const _0x11056c={'p':_0x34a6f0,'exp':_0xc872d6[_0x37d438(0x1ce)](Math[_0x37d438(0x1d5)](_0xc872d6[_0x37d438(0x1d1)](Date[_0x37d438(0x1d0)](),0x3e8)),_0x5166e9)},_0x2ef074=Buffer[_0x37d438(0x1bc)](JSON[_0x37d438(0x1cd)](_0x11056c))[_0x37d438(0x1d8)](_0x37d438(0x1e5)),_0xf39503=_0x144b1c[_0x37d438(0x1ab)](_0xc872d6[_0x37d438(0x1a1)],_0x196bd2)[_0x37d438(0x1df)](_0x2ef074)[_0x37d438(0x1e2)](_0x37d438(0x1e5));return _0x2ef074+'.'+_0xf39503;}else throw new _0x3bdbf1(_0x37d438(0x1ac));},'verify'(_0xa7c70a){const _0x3d6fed=_0x129dd0,_0x3749dd={};_0x3749dd[_0x3d6fed(0x1f0)]=_0x3d6fed(0x1c8),_0x3749dd[_0x3d6fed(0x19c)]=_0xc872d6[_0x3d6fed(0x1b8)];const _0x437b83=_0x3749dd;if(_0xc872d6[_0x3d6fed(0x1af)](_0xc872d6[_0x3d6fed(0x1ef)],_0xc872d6[_0x3d6fed(0x1b3)]))_0x1dcd58=_0x26eb4c[_0x3d6fed(0x1a3)](_0x57fe90[_0x3d6fed(0x1bc)](_0x15f390,_0xc872d6[_0x3d6fed(0x18f)])[_0x3d6fed(0x1d8)](_0xc872d6[_0x3d6fed(0x1ee)]));else{const [_0x25a1d0,_0xa8ea5f]=_0xa7c70a[_0x3d6fed(0x1c0)]('.');if(!_0x25a1d0||!_0xa8ea5f){if(_0xc872d6[_0x3d6fed(0x1c1)]!==_0x3d6fed(0x18a))throw new _0x15e055(_0x437b83[_0x3d6fed(0x1f0)]);else throw new UnauthorizedError(_0x3d6fed(0x1c8));}const _0x2df351=_0x144b1c[_0x3d6fed(0x1ab)](_0xc872d6[_0x3d6fed(0x1a1)],_0x196bd2)[_0x3d6fed(0x1df)](_0x25a1d0)[_0x3d6fed(0x1e2)](),_0x579789=Buffer[_0x3d6fed(0x1bc)](_0xa8ea5f,_0xc872d6[_0x3d6fed(0x18f)]);if(_0x2df351[_0x3d6fed(0x1b9)]!==_0x579789[_0x3d6fed(0x1b9)]||!_0x144b1c[_0x3d6fed(0x1db)](_0x2df351,_0x579789)){if(_0xc872d6[_0x3d6fed(0x18d)]!==_0xc872d6[_0x3d6fed(0x18d)])return _0x42e839[_0x3d6fed(0x197)](0x0);else throw new UnauthorizedError(_0xc872d6[_0x3d6fed(0x198)]);}let _0x422eed;try{_0x422eed=JSON[_0x3d6fed(0x1a3)](Buffer[_0x3d6fed(0x1bc)](_0x25a1d0,_0x3d6fed(0x1e5))[_0x3d6fed(0x1d8)](_0xc872d6[_0x3d6fed(0x1ee)]));}catch{if(_0xc872d6[_0x3d6fed(0x1a5)](_0xc872d6[_0x3d6fed(0x18b)],_0xc872d6[_0x3d6fed(0x18b)]))throw new UnauthorizedError(_0xc872d6[_0x3d6fed(0x198)]);else throw new _0x3d9f6f(_0x437b83[_0x3d6fed(0x19c)]);}if(!_0x422eed['p']||!Number[_0x3d6fed(0x193)](_0x422eed[_0x3d6fed(0x1c5)]))throw new UnauthorizedError(_0x3d6fed(0x1c8));if(_0x422eed[_0x3d6fed(0x1c5)]<Math[_0x3d6fed(0x1d5)](_0xc872d6[_0x3d6fed(0x1d1)](Date[_0x3d6fed(0x1d0)](),0x3e8)))throw new UnauthorizedError(_0xc872d6[_0x3d6fed(0x1b8)]);return _0x422eed;}}};}