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

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 (89) 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.js +1 -1
  5. package/dist/fcore.js +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/migrations/cli.js +1 -1
  8. package/dist/migrations/runner.js +1 -1
  9. package/dist/modules/auth/index.js +1 -1
  10. package/dist/modules/auth/route.js +1 -1
  11. package/dist/modules/auth/schema.js +1 -1
  12. package/dist/modules/auth/services/get-current-user.js +1 -1
  13. package/dist/modules/auth/services/login.js +1 -1
  14. package/dist/modules/auth/services/logout.js +1 -1
  15. package/dist/modules/auth/services/verify-two-factor.js +1 -1
  16. package/dist/modules/auth/services/verifyPassword.js +1 -1
  17. package/dist/modules/file/index.js +1 -1
  18. package/dist/modules/file/route.js +1 -1
  19. package/dist/modules/file/schema.js +1 -1
  20. package/dist/modules/file/services/get-file.js +1 -1
  21. package/dist/modules/file/services/resize-file.js +1 -1
  22. package/dist/modules/file/services/upload-file.js +1 -1
  23. package/dist/modules/resource/index.js +1 -1
  24. package/dist/modules/resource/route.js +1 -1
  25. package/dist/modules/resource/schema.js +1 -1
  26. package/dist/modules/resource/services/add-note.js +1 -1
  27. package/dist/modules/resource/services/add-resource-file.js +1 -1
  28. package/dist/modules/resource/services/create-resource-relation.js +1 -1
  29. package/dist/modules/resource/services/create-resource.js +1 -1
  30. package/dist/modules/resource/services/delete-resource-relation.js +1 -1
  31. package/dist/modules/resource/services/delete-resource.js +1 -1
  32. package/dist/modules/resource/services/export-resource.js +1 -1
  33. package/dist/modules/resource/services/get-resource.js +1 -1
  34. package/dist/modules/resource/services/list-children.js +1 -1
  35. package/dist/modules/resource/services/list-resource-relation.js +1 -1
  36. package/dist/modules/resource/services/list-resources.js +1 -1
  37. package/dist/modules/resource/services/search-resource.js +1 -1
  38. package/dist/modules/resource/services/suggest-resource.js +1 -1
  39. package/dist/modules/resource/services/update-resource.js +1 -1
  40. package/dist/modules/resource/services/upload-resource-file.js +1 -1
  41. package/dist/modules/system/index.js +1 -1
  42. package/dist/modules/system/route.js +1 -1
  43. package/dist/modules/system/schema.js +1 -1
  44. package/dist/modules/system/services/check-system.js +1 -1
  45. package/dist/modules/system/services/get-api-list.js +1 -1
  46. package/dist/modules/system/services/get-audit-log.js +1 -1
  47. package/dist/modules/system/services/get-dictionary.js +1 -1
  48. package/dist/modules/system/services/get-system-log.js +1 -1
  49. package/dist/modules/system/services/get-system-settings.js +1 -1
  50. package/dist/modules/system/services/list-dictionaries.js +1 -1
  51. package/dist/modules/system/services/update-system-settings.js +1 -1
  52. package/dist/modules/utils/get-user-permissions.js +1 -1
  53. package/dist/modules/utils/require-admin.js +1 -1
  54. package/dist/modules/utils/safe-user.js +1 -1
  55. package/dist/modules/utils/unsupported.js +1 -1
  56. package/dist/plugins/audit/audit.js +1 -1
  57. package/dist/plugins/audit/index.js +1 -1
  58. package/dist/plugins/audit/services/write-audit.js +1 -1
  59. package/dist/plugins/auth/index.js +1 -1
  60. package/dist/plugins/dictionary.js +1 -1
  61. package/dist/plugins/file.js +1 -1
  62. package/dist/plugins/index.js +1 -1
  63. package/dist/plugins/logger/index.js +1 -1
  64. package/dist/plugins/logger/transport.js +1 -1
  65. package/dist/plugins/pg.js +1 -1
  66. package/dist/plugins/redis.js +1 -1
  67. package/dist/plugins/resource/index.js +1 -1
  68. package/dist/plugins/resource/resource.js +1 -1
  69. package/dist/plugins/resource/resource.registry.js +1 -1
  70. package/dist/plugins/resource/resource.types.d.ts +8 -0
  71. package/dist/plugins/resource/resource.types.d.ts.map +1 -1
  72. package/dist/plugins/resource/services/create.d.ts.map +1 -1
  73. package/dist/plugins/resource/services/create.js +1 -1
  74. package/dist/plugins/resource/services/delete.js +1 -1
  75. package/dist/plugins/resource/services/find-one.js +1 -1
  76. package/dist/plugins/resource/services/find.d.ts.map +1 -1
  77. package/dist/plugins/resource/services/find.js +1 -1
  78. package/dist/plugins/resource/services/update.d.ts.map +1 -1
  79. package/dist/plugins/resource/services/update.js +1 -1
  80. package/dist/plugins/resource/utils/fields.d.ts +8 -1
  81. package/dist/plugins/resource/utils/fields.d.ts.map +1 -1
  82. package/dist/plugins/resource/utils/fields.js +1 -1
  83. package/dist/plugins/resource/utils/filters.js +1 -1
  84. package/dist/plugins/resource/utils/permissions.d.ts.map +1 -1
  85. package/dist/plugins/resource/utils/permissions.js +1 -1
  86. package/dist/plugins/resource/utils/sort.js +1 -1
  87. package/dist/plugins/resource/utils/sql.js +1 -1
  88. package/dist/shared/getIP.js +1 -1
  89. package/package.json +1 -1
@@ -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 _0x2d9d33=_0x3907;(function(_0x159b29,_0x412a47){const _0x3c6e8c=_0x3907,_0x2ff1c8=_0x159b29();while(!![]){try{const _0x287c99=parseInt(_0x3c6e8c(0xa4))/0x1+parseInt(_0x3c6e8c(0xa0))/0x2*(-parseInt(_0x3c6e8c(0xbf))/0x3)+parseInt(_0x3c6e8c(0x8c))/0x4+parseInt(_0x3c6e8c(0x9b))/0x5*(parseInt(_0x3c6e8c(0xa7))/0x6)+parseInt(_0x3c6e8c(0xd6))/0x7*(parseInt(_0x3c6e8c(0xb2))/0x8)+parseInt(_0x3c6e8c(0xac))/0x9+parseInt(_0x3c6e8c(0xa2))/0xa*(-parseInt(_0x3c6e8c(0x84))/0xb);if(_0x287c99===_0x412a47)break;else _0x2ff1c8['push'](_0x2ff1c8['shift']());}catch(_0x1cad4a){_0x2ff1c8['push'](_0x2ff1c8['shift']());}}}(_0x2100,0xb0856));import{getSystemSettings}from'./services/get-system-settings.js';import{updateSystemSettings}from'./services/update-system-settings.js';function _0x3907(_0x10ff9d,_0x5c9a21){_0x10ff9d=_0x10ff9d-0x83;const _0x210070=_0x2100();let _0x390704=_0x210070[_0x10ff9d];return _0x390704;}import{getAuditLog}from'./services/get-audit-log.js';import{checkSystem}from'./services/check-system.js';import{getApiList}from'./services/get-api-list.js';import{getSystemLog}from'./services/get-system-log.js';import{listDictionaries}from'./services/list-dictionaries.js';import{getDictionary}from'./services/get-dictionary.js';import{systemSchemas}from'./schema.js';const u=_0x2e131f=>_0x2e131f[_0x2d9d33(0x99)];export function systemRoutes(_0x4fe251){const _0x754485=_0x2d9d33,_0x1d8848={};_0x1d8848[_0x754485(0x83)]=_0x754485(0xc2),_0x1d8848[_0x754485(0x97)]=_0x754485(0xb1),_0x1d8848[_0x754485(0xcd)]=_0x754485(0xa3),_0x1d8848[_0x754485(0xba)]=_0x754485(0xc3),_0x1d8848[_0x754485(0x8b)]=_0x754485(0xae),_0x1d8848[_0x754485(0xa8)]=_0x754485(0xc6),_0x1d8848[_0x754485(0x8d)]=_0x754485(0xbb),_0x1d8848[_0x754485(0xc5)]=_0x754485(0xb9),_0x1d8848[_0x754485(0xb0)]=_0x754485(0x86),_0x1d8848[_0x754485(0x8e)]=_0x754485(0x9f),_0x1d8848[_0x754485(0x89)]=_0x754485(0xb5),_0x1d8848[_0x754485(0xd7)]=_0x754485(0xb3),_0x1d8848[_0x754485(0xaa)]=_0x754485(0xc9),_0x1d8848[_0x754485(0x95)]=_0x754485(0x93),_0x1d8848[_0x754485(0x9c)]=_0x754485(0x9a),_0x1d8848[_0x754485(0xca)]=_0x754485(0xb7),_0x1d8848[_0x754485(0xcf)]=_0x754485(0x90),_0x1d8848[_0x754485(0x8f)]=_0x754485(0xa6),_0x1d8848[_0x754485(0xbd)]=_0x754485(0x9d),_0x1d8848[_0x754485(0x88)]=_0x754485(0xc7),_0x1d8848[_0x754485(0x8a)]=_0x754485(0xaf),_0x1d8848[_0x754485(0x94)]=_0x754485(0xcb),_0x1d8848[_0x754485(0x85)]=_0x754485(0xa1),_0x1d8848[_0x754485(0xa9)]=_0x754485(0xa5),_0x1d8848[_0x754485(0xab)]=_0x754485(0x87),_0x1d8848[_0x754485(0xd2)]=_0x754485(0xad),_0x1d8848[_0x754485(0xb8)]=_0x754485(0xb4);const _0x1f09a8=_0x1d8848;return async _0x4769ed=>{const _0x29798b=_0x754485,_0x413068={};_0x413068[_0x29798b(0xce)]=[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],_0x413068[_0x29798b(0x91)]=_0x29798b(0xd4),_0x413068[_0x29798b(0xc0)]=_0x1f09a8[_0x29798b(0xcd)],_0x413068[_0x29798b(0xbc)]=_0x29798b(0xbb),_0x413068[_0x29798b(0x98)]=[];const _0x2d5134={};_0x2d5134[_0x29798b(0xd0)]=_0x413068,_0x4769ed[_0x29798b(0x96)](_0x29798b(0xd3),_0x2d5134,async _0x4394ee=>listDictionaries({'user':u(_0x4394ee)},_0x4fe251)),_0x4769ed[_0x29798b(0x96)](_0x1f09a8[_0x29798b(0xba)],{'schema':{'tags':[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0x8b)],'description':_0x1f09a8[_0x29798b(0xa8)],'access':_0x1f09a8[_0x29798b(0x8d)],'permissions':[],'params':systemSchemas[_0x29798b(0xb6)]}},async _0x5dcb63=>getDictionary({..._0x5dcb63[_0x29798b(0xc1)],'user':u(_0x5dcb63)},_0x4fe251)),_0x4769ed[_0x29798b(0x96)](_0x1f09a8[_0x29798b(0xc5)],{'schema':{'tags':[_0x29798b(0xc2),_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0xb0)],'description':_0x1f09a8[_0x29798b(0x8e)],'access':_0x1f09a8[_0x29798b(0x8d)],'permissions':[_0x29798b(0x92)]}},async _0x87d609=>getSystemSettings({..._0x87d609[_0x29798b(0xc1)],'user':u(_0x87d609)},_0x4fe251)),_0x4769ed[_0x29798b(0xcc)](_0x1f09a8[_0x29798b(0xc5)],{'schema':{'tags':[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0x89)],'description':_0x1f09a8[_0x29798b(0xd7)],'access':_0x1f09a8[_0x29798b(0x8d)],'permissions':[_0x1f09a8[_0x29798b(0xaa)]],'body':systemSchemas[_0x29798b(0xbe)]}},async _0x33d22d=>updateSystemSettings({..._0x33d22d[_0x29798b(0xc1)],'patch':_0x33d22d[_0x29798b(0xd5)],'user':u(_0x33d22d)},_0x4fe251)),_0x4769ed[_0x29798b(0x96)](_0x1f09a8[_0x29798b(0x95)],{'schema':{'tags':[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0x9c)],'description':_0x1f09a8[_0x29798b(0xca)],'access':_0x29798b(0xbb),'permissions':[_0x1f09a8[_0x29798b(0xcf)]],'params':systemSchemas[_0x29798b(0xc4)]}},async _0x3d44c1=>getSystemLog({..._0x3d44c1[_0x29798b(0xd1)],..._0x3d44c1[_0x29798b(0xc1)],'user':u(_0x3d44c1)},_0x4fe251));const _0x5dc115={};_0x5dc115[_0x29798b(0xce)]=[_0x29798b(0xc2),_0x29798b(0xb1)],_0x5dc115[_0x29798b(0x91)]=_0x1f09a8[_0x29798b(0x8f)],_0x5dc115[_0x29798b(0xc0)]=_0x1f09a8[_0x29798b(0xbd)],_0x5dc115[_0x29798b(0xbc)]=_0x1f09a8[_0x29798b(0x8d)],_0x5dc115[_0x29798b(0x98)]=[_0x1f09a8[_0x29798b(0x88)]];const _0x314644={};_0x314644[_0x29798b(0xd0)]=_0x5dc115,_0x4769ed[_0x29798b(0x96)](_0x29798b(0x9e),_0x314644,async _0xc8e208=>getAuditLog({..._0xc8e208[_0x29798b(0xd1)],'user':u(_0xc8e208)},_0x4fe251)),_0x4769ed[_0x29798b(0x96)](_0x1f09a8[_0x29798b(0x8a)],{'schema':{'tags':[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],'summary':_0x1f09a8[_0x29798b(0x94)],'description':_0x1f09a8[_0x29798b(0x85)],'access':_0x1f09a8[_0x29798b(0x8d)],'permissions':[_0x1f09a8[_0x29798b(0xa9)]]}},async _0x839e2d=>checkSystem({'user':u(_0x839e2d)},_0x4fe251));const _0x2dcde6={};_0x2dcde6[_0x29798b(0xce)]=[_0x1f09a8[_0x29798b(0x83)],_0x1f09a8[_0x29798b(0x97)]],_0x2dcde6[_0x29798b(0x91)]=_0x1f09a8[_0x29798b(0xab)],_0x2dcde6[_0x29798b(0xc0)]=_0x1f09a8[_0x29798b(0xd2)],_0x2dcde6[_0x29798b(0xbc)]=_0x1f09a8[_0x29798b(0x8d)],_0x2dcde6[_0x29798b(0x98)]=[_0x1f09a8[_0x29798b(0xb8)]];const _0x32bd6a={};_0x32bd6a[_0x29798b(0xd0)]=_0x2dcde6,_0x4769ed[_0x29798b(0x96)](_0x29798b(0xc8),_0x32bd6a,async _0x570518=>getApiList({'user':u(_0x570518)},_0x4fe251));};}function _0x2100(){const _0x8e7ba7=['45TQjryY','qnrdB','Returns\x20the\x20system\x20audit\x20log\x20entries.','/api/system/audit/','Returns\x20system\x20settings\x20as\x20nested\x20JSON.','2148CFkNdS','Checks\x20the\x20availability\x20of\x20system\x20dependencies.','150ENowZK','Returns\x20all\x20available\x20dictionaries\x20registered\x20by\x20the\x20platform.','609405oCygRz','system:check','Get\x20audit\x20log','541626flnMVv','uHzWQ','wkSDs','PTElO','pQBmL','12365910bhqUSp','Returns\x20the\x20list\x20of\x20registered\x20platform\x20APIs.','Get\x20platform\x20dictionary','/api/system/check','UboWi','system','488vZNTdK','Updates\x20system\x20settings\x20using\x20flat\x20dot-notation\x20keys.','system:api:read','Update\x20system\x20settings','dictionaryName','Returns\x20system\x20logger\x20entries\x20for\x20the\x20requested\x20path.','Lidys','/api/system/settings','VOoXT','admin','access','CqslB','settings','1191wofEsC','description','params','fcore','/api/dictionaries/:name','logger','HYdoE','Returns\x20a\x20registered\x20platform\x20dictionary\x20by\x20name.','audit:read','/api/system/api-list','system:settings:update','uRAqw','Check\x20system\x20health','post','FwcCs','tags','KBsEw','schema','query','JSghP','/api/dictionaries','List\x20platform\x20dictionaries','body','117131tZpizV','pSTpK','bnhUt','2323211xlacvu','YZOkZ','Get\x20system\x20settings','List\x20APIs','QOCbz','BFhVt','oJOEl','pdawe','2003504QApFAi','zmaiw','BEEny','yhnFZ','system:logs:read','summary','system:settings:read','/api/system/logger/*','FwFBC','zaREg','get','LtiTC','permissions','user','Get\x20system\x20log'];_0x2100=function(){return _0x8e7ba7;};return _0x2100();}
@@ -1 +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 _0xd8293e=_0x1ffe;function _0x4c9c(){const _0x48abdc=['Unknown','6306LyAAhh','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','2703yDaanD','String','108nCmRHG','210pkitvw','minLength','105054bGvmvQ','14648BtNZJU','330YdxqRY','Optional','295744GpjVzV','2024nhILKv','35870aQlkfy','Record','10680sKnGCM','maxLength','314GFOtFC','Object','name','pattern'];_0x4c9c=function(){return _0x48abdc;};return _0x4c9c();}function _0x1ffe(_0x3bd7c5,_0x121d4f){_0x3bd7c5=_0x3bd7c5-0x1b8;const _0x4c9c99=_0x4c9c();let _0x1ffe84=_0x4c9c99[_0x3bd7c5];return _0x1ffe84;}(function(_0x2e25b1,_0x5f5dcc){const _0xe8d30e=_0x1ffe,_0x3d2ea3=_0x2e25b1();while(!![]){try{const _0x31fd5e=-parseInt(_0xe8d30e(0x1c8))/0x1+parseInt(_0xe8d30e(0x1bc))/0x2*(parseInt(_0xe8d30e(0x1c3))/0x3)+parseInt(_0xe8d30e(0x1cc))/0x4+-parseInt(_0xe8d30e(0x1ca))/0x5*(parseInt(_0xe8d30e(0x1c1))/0x6)+parseInt(_0xe8d30e(0x1c6))/0x7*(-parseInt(_0xe8d30e(0x1c9))/0x8)+-parseInt(_0xe8d30e(0x1c5))/0x9*(parseInt(_0xe8d30e(0x1b8))/0xa)+-parseInt(_0xe8d30e(0x1cd))/0xb*(-parseInt(_0xe8d30e(0x1ba))/0xc);if(_0x31fd5e===_0x5f5dcc)break;else _0x3d2ea3['push'](_0x3d2ea3['shift']());}catch(_0x5f19b7){_0x3d2ea3['push'](_0x3d2ea3['shift']());}}}(_0x4c9c,0x1a107));import{Type}from'@sinclair/typebox';const _0x1ab7a3={};_0x1ab7a3[_0xd8293e(0x1c7)]=0x1,_0x1ab7a3[_0xd8293e(0x1bb)]=0x80,_0x1ab7a3[_0xd8293e(0x1bf)]=_0xd8293e(0x1c2);export const identifier=Type[_0xd8293e(0x1c4)](_0x1ab7a3);const _0x408833={};_0x408833[_0xd8293e(0x1be)]=identifier;const _0x3c8a69={};_0x3c8a69[_0xd8293e(0x1c7)]=0x1;const _0x1d86be={};_0x1d86be[_0xd8293e(0x1c7)]=0x1;export const systemSchemas={'dictionaryName':Type[_0xd8293e(0x1bd)](_0x408833),'settingsEntity':Type[_0xd8293e(0x1bd)]({'entity':Type[_0xd8293e(0x1cb)](identifier)}),'settings':Type[_0xd8293e(0x1b9)](Type[_0xd8293e(0x1c4)](_0x3c8a69),Type[_0xd8293e(0x1c0)]()),'logger':Type[_0xd8293e(0x1bd)]({'*':Type[_0xd8293e(0x1cb)](Type[_0xd8293e(0x1c4)](_0x1d86be))})};
@@ -1 +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(_0x5d01d9,_0x52167a){const _0x54aa42=_0x2c88,_0x28074a=_0x5d01d9();while(!![]){try{const _0x1e6767=-parseInt(_0x54aa42(0x17d))/0x1*(-parseInt(_0x54aa42(0x18d))/0x2)+parseInt(_0x54aa42(0x188))/0x3*(parseInt(_0x54aa42(0x17f))/0x4)+-parseInt(_0x54aa42(0x18b))/0x5*(-parseInt(_0x54aa42(0x180))/0x6)+parseInt(_0x54aa42(0x17b))/0x7*(parseInt(_0x54aa42(0x18e))/0x8)+parseInt(_0x54aa42(0x191))/0x9+-parseInt(_0x54aa42(0x17c))/0xa*(-parseInt(_0x54aa42(0x193))/0xb)+-parseInt(_0x54aa42(0x18a))/0xc*(parseInt(_0x54aa42(0x183))/0xd);if(_0x1e6767===_0x52167a)break;else _0x28074a['push'](_0x28074a['shift']());}catch(_0x3119d0){_0x28074a['push'](_0x28074a['shift']());}}}(_0x1b06,0x55719));function _0x1b06(){const _0x3ad982=['ping','redis','SFYHZ','IsHav','3363ehmFAI','status','12jihRtR','3185zWnmcL','query','6eoDlgK','132656WZRZfV','system:check','allSettled','1630620yvfmUd','fulfilled','11CDlfcy','SELECT\x201','133DbsTwj','3532390HZAPjG','59209TAgnJs','VpVxH','484YJRkxO','498LVoNOl','degraded','user','11253307XZZzrX'];_0x1b06=function(){return _0x3ad982;};return _0x1b06();}function _0x2c88(_0x132d0a,_0x5f7186){_0x132d0a=_0x132d0a-0x17b;const _0x1b0674=_0x1b06();let _0x2c888d=_0x1b0674[_0x132d0a];return _0x2c888d;}import{requireAdmin}from'../../utils/require-admin.js';export async function checkSystem(_0x27b03c,_0x242574){const _0x329fe9=_0x2c88,_0x57f1dd={};_0x57f1dd[_0x329fe9(0x186)]=_0x329fe9(0x194),_0x57f1dd[_0x329fe9(0x17e)]=function(_0x19dc44,_0x1f560b){return _0x19dc44===_0x1f560b;},_0x57f1dd[_0x329fe9(0x187)]=_0x329fe9(0x192);const _0x111c9e=_0x57f1dd;requireAdmin(_0x27b03c[_0x329fe9(0x182)],_0x329fe9(0x18f));const [_0x3200eb,_0x1e8cae]=await Promise[_0x329fe9(0x190)]([_0x242574['pg'][_0x329fe9(0x18c)](_0x111c9e[_0x329fe9(0x186)]),_0x242574[_0x329fe9(0x185)][_0x329fe9(0x184)]()]);return{'status':_0x111c9e[_0x329fe9(0x17e)](_0x3200eb[_0x329fe9(0x189)],_0x111c9e[_0x329fe9(0x187)])&&_0x111c9e[_0x329fe9(0x17e)](_0x1e8cae[_0x329fe9(0x189)],_0x111c9e[_0x329fe9(0x187)])?'ok':_0x329fe9(0x181),'pg':_0x3200eb[_0x329fe9(0x189)],'redis':_0x1e8cae[_0x329fe9(0x189)]};}
@@ -1 +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 _0x4ad3(){var _0x39a911=['DUBre','/api/templates','/files/*','286240axYsJz','/api/system/check','/api/dictionaries','5PYTrtE','/api/resource/:resource/:id','4025686RFVTnq','NhoPQ','1036728ZvAmMw','ejxQV','system:api:read','/api/user','user','YhUpv','GtzcK','VDFhV','15237856BlObKF','HgjFd','/api/resource/:resource','7543590NJOheM','1531960VTVUph','11558nfsUMG','/api/login','411pGbZBw','afvTT','/api/logout','MuWmf','150jCCMQt'];_0x4ad3=function(){return _0x39a911;};return _0x4ad3();}function _0x42e0(_0x90f189,_0x4148c6){_0x90f189=_0x90f189-0xaa;var _0x4ad34d=_0x4ad3();var _0x42e02b=_0x4ad34d[_0x90f189];return _0x42e02b;}(function(_0x433c4c,_0x16b279){var _0x10c2c9=_0x42e0,_0x4334ac=_0x433c4c();while(!![]){try{var _0x23f12c=-parseInt(_0x10c2c9(0xac))/0x1+-parseInt(_0x10c2c9(0xc0))/0x2*(parseInt(_0x10c2c9(0xc2))/0x3)+parseInt(_0x10c2c9(0xbf))/0x4*(parseInt(_0x10c2c9(0xaf))/0x5)+parseInt(_0x10c2c9(0xbe))/0x6+parseInt(_0x10c2c9(0xb1))/0x7+-parseInt(_0x10c2c9(0xbb))/0x8+-parseInt(_0x10c2c9(0xb3))/0x9*(-parseInt(_0x10c2c9(0xc6))/0xa);if(_0x23f12c===_0x16b279)break;else _0x4334ac['push'](_0x4334ac['shift']());}catch(_0xa57b34){_0x4334ac['push'](_0x4334ac['shift']());}}}(_0x4ad3,0xea81a));import{requireAdmin}from'../../utils/require-admin.js';export async function getApiList(_0x521232,_0xb1f468){var _0x45d644=_0x42e0,_0x470997={'VDFhV':function(_0x595e93,_0x392ba8,_0x4c0fc8){return _0x595e93(_0x392ba8,_0x4c0fc8);},'afvTT':_0x45d644(0xb5),'YhUpv':_0x45d644(0xc1),'NhoPQ':_0x45d644(0xc4),'HgjFd':_0x45d644(0xbd),'GtzcK':_0x45d644(0xae),'MuWmf':_0x45d644(0xab),'DUBre':_0x45d644(0xaa),'ejxQV':_0x45d644(0xad)};return _0x470997[_0x45d644(0xba)](requireAdmin,_0x521232[_0x45d644(0xb7)],_0x470997[_0x45d644(0xc3)]),[_0x470997[_0x45d644(0xb8)],_0x470997[_0x45d644(0xb2)],_0x45d644(0xb6),_0x470997[_0x45d644(0xbc)],_0x45d644(0xb0),_0x470997[_0x45d644(0xb9)],_0x470997[_0x45d644(0xc5)],_0x470997[_0x45d644(0xc7)],_0x470997[_0x45d644(0xb4)]];}
@@ -1 +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 _0xcb77(){const _0x29af3e=['7pHEHqc','user','228884yDgfex','144126lmOypV','min','zQNwQ','SzYNy','25316zUGclh','ySyFh','161946MFMCHI','query','max','3144mLWSXk','58201UbyLoA','SELECT\x20*\x20FROM\x20admin.audit_log\x20ORDER\x20BY\x20id\x20DESC\x20LIMIT\x20$1\x20OFFSET\x20$2','page','1893348jQPzeR','limit','audit:read','20DcJfqR','21KEarZo','455vGIEUP','LJWlE','565872lgmpMs','rows'];_0xcb77=function(){return _0x29af3e;};return _0xcb77();}function _0xe268(_0x520623,_0x546b80){_0x520623=_0x520623-0x1b4;const _0xcb7793=_0xcb77();let _0xe26839=_0xcb7793[_0x520623];return _0xe26839;}(function(_0x540a2e,_0x2b53fa){const _0x3974da=_0xe268,_0x58fa8b=_0x540a2e();while(!![]){try{const _0x45b33c=parseInt(_0x3974da(0x1b6))/0x1*(-parseInt(_0x3974da(0x1b8))/0x2)+-parseInt(_0x3974da(0x1c6))/0x3+-parseInt(_0x3974da(0x1bd))/0x4*(-parseInt(_0x3974da(0x1cb))/0x5)+parseInt(_0x3974da(0x1b9))/0x6*(-parseInt(_0x3974da(0x1ca))/0x7)+-parseInt(_0x3974da(0x1b4))/0x8+-parseInt(_0x3974da(0x1bf))/0x9*(-parseInt(_0x3974da(0x1c9))/0xa)+parseInt(_0x3974da(0x1c3))/0xb*(parseInt(_0x3974da(0x1c2))/0xc);if(_0x45b33c===_0x2b53fa)break;else _0x58fa8b['push'](_0x58fa8b['shift']());}catch(_0x132e05){_0x58fa8b['push'](_0x58fa8b['shift']());}}}(_0xcb77,0x674fa));import{requireAdmin}from'../../utils/require-admin.js';export async function getAuditLog(_0x3cf483,_0x9a69ea){const _0xf34866=_0xe268,_0x45c976={'ySyFh':function(_0x18a506,_0xc7202d,_0x528452){return _0x18a506(_0xc7202d,_0x528452);},'zQNwQ':_0xf34866(0x1c8),'SzYNy':function(_0x5cf070,_0x4aa9b7){return _0x5cf070*_0x4aa9b7;},'LJWlE':function(_0x12ea7c,_0x5bfb5c){return _0x12ea7c-_0x5bfb5c;}};_0x45c976[_0xf34866(0x1be)](requireAdmin,_0x3cf483[_0xf34866(0x1b7)],_0x45c976[_0xf34866(0x1bb)]);const _0x40f131=Math[_0xf34866(0x1ba)](Math[_0xf34866(0x1c1)](_0x3cf483[_0xf34866(0x1c7)]??0x32,0x1),0xc8),_0x387c2e=_0x45c976[_0xf34866(0x1bc)](Math[_0xf34866(0x1c1)](_0x45c976[_0xf34866(0x1cc)](_0x3cf483[_0xf34866(0x1c5)]??0x1,0x1),0x0),_0x40f131),_0x3545f4=await _0x9a69ea['pg'][_0xf34866(0x1c0)](_0xf34866(0x1c4),[_0x40f131,_0x387c2e]),_0x3e561f={};return _0x3e561f[_0xf34866(0x1b5)]=_0x3545f4[_0xf34866(0x1b5)],_0x3e561f[_0xf34866(0x1c5)]=_0x3cf483[_0xf34866(0x1c5)]??0x1,_0x3e561f[_0xf34866(0x1c7)]=_0x40f131,_0x3e561f;}
@@ -1 +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 _0x1754(){var _0x4cd952=['225VThBLB','169497aPdDBQ','name','4PGHEGm','17588HVbgiM','get','148335INvSXE','120smFCJo','121105sbQjsu','1468896VSAnnE','dictionary','18yFRjfk','5303130pVLwwp','10bypaPt','312310ZAejdH'];_0x1754=function(){return _0x4cd952;};return _0x1754();}(function(_0x42bcf8,_0x5d3935){var _0x7a0656=_0x7258,_0xf181b5=_0x42bcf8();while(!![]){try{var _0x3eea39=parseInt(_0x7a0656(0x164))/0x1*(-parseInt(_0x7a0656(0x15f))/0x2)+-parseInt(_0x7a0656(0x15c))/0x3*(parseInt(_0x7a0656(0x160))/0x4)+parseInt(_0x7a0656(0x15b))/0x5*(parseInt(_0x7a0656(0x167))/0x6)+parseInt(_0x7a0656(0x168))/0x7+parseInt(_0x7a0656(0x165))/0x8+-parseInt(_0x7a0656(0x15d))/0x9*(parseInt(_0x7a0656(0x15a))/0xa)+-parseInt(_0x7a0656(0x162))/0xb*(parseInt(_0x7a0656(0x163))/0xc);if(_0x3eea39===_0x5d3935)break;else _0xf181b5['push'](_0xf181b5['shift']());}catch(_0x270e53){_0xf181b5['push'](_0xf181b5['shift']());}}}(_0x1754,0x625e8));function _0x7258(_0x2cbdcc,_0x4a362d){_0x2cbdcc=_0x2cbdcc-0x15a;var _0x175473=_0x1754();var _0x7258ff=_0x175473[_0x2cbdcc];return _0x7258ff;}export async function getDictionary(_0x41dcc2,_0x11a2bb){var _0x591e3c=_0x7258;return _0x11a2bb[_0x591e3c(0x166)][_0x591e3c(0x161)](_0x41dcc2[_0x591e3c(0x15e)]);}
@@ -1 +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 _0x1fd8(){var _0x33df93=['1884708xaKwqP','769120RqMzDn','353701QeXCHK','83027zSUaex','9nZCWCJ','200IPrGwq','shysV','3YeLJbw','File\x20logger\x20backend','12734770zdoQyN','202185yImThz','1233884rKSOMY'];_0x1fd8=function(){return _0x33df93;};return _0x1fd8();}(function(_0x13ddfd,_0x33cb00){var _0x575cd8=_0x25e1,_0x25c147=_0x13ddfd();while(!![]){try{var _0x4620b2=-parseInt(_0x575cd8(0x131))/0x1+-parseInt(_0x575cd8(0x130))/0x2+parseInt(_0x575cd8(0x12a))/0x3*(parseInt(_0x575cd8(0x12e))/0x4)+-parseInt(_0x575cd8(0x12d))/0x5+-parseInt(_0x575cd8(0x12f))/0x6+-parseInt(_0x575cd8(0x132))/0x7*(parseInt(_0x575cd8(0x134))/0x8)+parseInt(_0x575cd8(0x133))/0x9*(parseInt(_0x575cd8(0x12c))/0xa);if(_0x4620b2===_0x33cb00)break;else _0x25c147['push'](_0x25c147['shift']());}catch(_0x3a3969){_0x25c147['push'](_0x25c147['shift']());}}}(_0x1fd8,0x2f05f));import{unsupported}from'../../utils/unsupported.js';function _0x25e1(_0x1c9e8e,_0x2c9d9a){_0x1c9e8e=_0x1c9e8e-0x12a;var _0x1fd84a=_0x1fd8();var _0x25e1d6=_0x1fd84a[_0x1c9e8e];return _0x25e1d6;}export async function getSystemLog(_0xe51d0f,_0x431518){var _0x6696af=_0x25e1,_0x312ffb={'shysV':function(_0x58e7ae,_0x37e7ee){return _0x58e7ae(_0x37e7ee);}};return _0x312ffb[_0x6696af(0x135)](unsupported,_0x6696af(0x12b));}
@@ -1 +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(_0x3b3aa6,_0x107991){const _0x132c89=_0x20a9,_0x3de76a=_0x3b3aa6();while(!![]){try{const _0x4b6809=parseInt(_0x132c89(0xc0))/0x1*(parseInt(_0x132c89(0xc9))/0x2)+-parseInt(_0x132c89(0xc8))/0x3*(-parseInt(_0x132c89(0xcc))/0x4)+parseInt(_0x132c89(0xbd))/0x5*(parseInt(_0x132c89(0xc7))/0x6)+-parseInt(_0x132c89(0xce))/0x7*(-parseInt(_0x132c89(0xcd))/0x8)+-parseInt(_0x132c89(0xcb))/0x9*(parseInt(_0x132c89(0xbe))/0xa)+parseInt(_0x132c89(0xcf))/0xb+-parseInt(_0x132c89(0xd1))/0xc;if(_0x4b6809===_0x107991)break;else _0x3de76a['push'](_0x3de76a['shift']());}catch(_0x4f9a6d){_0x3de76a['push'](_0x3de76a['shift']());}}}(_0x30f2,0xe04f0));function _0x30f2(){const _0x2639ed=['Hqgqk','82233btppoN','40fYQaCr','144896PmEOPv','301agiyRV','6534099jCrkyv','user','36251592ydTuDY','PGrds','system:settings:read','rows','93095VbnnAk','1010iLlrZp','key','694JYlZPZ','split','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20key,\x20value\x0a\x20\x20\x20\x20\x20\x20FROM\x20admin.settings\x0a\x20\x20\x20\x20\x20\x20WHERE\x20resource\x20=\x20\x27system\x27\x20AND\x20resource_id\x20IS\x20NULL\x0a\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20key\x0a\x20\x20\x20\x20','reduce','slice','query','value','276vmsPjj','316743deNGDn','4546ToNZOn'];_0x30f2=function(){return _0x2639ed;};return _0x30f2();}import{requireAdmin}from'../../utils/require-admin.js';function _0x20a9(_0x3cafbe,_0x2c5a97){_0x3cafbe=_0x3cafbe-0xbc;const _0x30f21b=_0x30f2();let _0x20a9ff=_0x30f21b[_0x3cafbe];return _0x20a9ff;}export async function getSystemSettings(_0x22da99,_0x1c343c){const _0x3fdb3f=_0x20a9,_0x19b7dc={'Hqgqk':function(_0xadef61,_0x3ac4f9){return _0xadef61(_0x3ac4f9);},'PGrds':function(_0x56785b,_0x502626,_0x2c5be2){return _0x56785b(_0x502626,_0x2c5be2);}};_0x19b7dc[_0x3fdb3f(0xd2)](requireAdmin,_0x22da99[_0x3fdb3f(0xd0)],_0x3fdb3f(0xd3));const _0x84d14a=await _0x1c343c['pg'][_0x3fdb3f(0xc5)](_0x3fdb3f(0xc2));return _0x84d14a[_0x3fdb3f(0xbc)][_0x3fdb3f(0xc3)]((_0x44ac15,_0x3dc9db)=>{const _0x2cd11e=_0x3fdb3f,_0x3e65e9=_0x19b7dc[_0x2cd11e(0xca)](String,_0x3dc9db[_0x2cd11e(0xbf)])[_0x2cd11e(0xc1)]('.');let _0x4bdce6=_0x44ac15;for(const _0x46d5cf of _0x3e65e9[_0x2cd11e(0xc4)](0x0,-0x1)){_0x4bdce6[_0x46d5cf]??={},_0x4bdce6=_0x4bdce6[_0x46d5cf];}return _0x4bdce6[_0x3e65e9['at'](-0x1)]=_0x3dc9db[_0x2cd11e(0xc6)],_0x44ac15;},{});}
@@ -1 +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(_0x5623c6,_0xf667fe){var _0x4745b1=_0x2ada,_0x522499=_0x5623c6();while(!![]){try{var _0x2c499d=parseInt(_0x4745b1(0xa0))/0x1+parseInt(_0x4745b1(0x9a))/0x2+parseInt(_0x4745b1(0x99))/0x3*(-parseInt(_0x4745b1(0x9f))/0x4)+-parseInt(_0x4745b1(0x96))/0x5*(parseInt(_0x4745b1(0xa2))/0x6)+-parseInt(_0x4745b1(0xa1))/0x7*(-parseInt(_0x4745b1(0x97))/0x8)+-parseInt(_0x4745b1(0x9c))/0x9+parseInt(_0x4745b1(0x98))/0xa*(parseInt(_0x4745b1(0x9b))/0xb);if(_0x2c499d===_0xf667fe)break;else _0x522499['push'](_0x522499['shift']());}catch(_0x447f7e){_0x522499['push'](_0x522499['shift']());}}}(_0x3da7,0x6efe3));function _0x2ada(_0x1760a9,_0x442b29){_0x1760a9=_0x1760a9-0x96;var _0x3da7af=_0x3da7();var _0x2ada70=_0x3da7af[_0x1760a9];return _0x2ada70;}function _0x3da7(){var _0x545183=['list','dictionary','4nikpgP','477632EbBgbN','10717EOvLxx','2131824EOgIUT','5zAPyuM','3688gjZZhH','2390jilqHn','11766SRzLxr','634312jrHSyB','1408hdwgQg','6455862eExSim'];_0x3da7=function(){return _0x545183;};return _0x3da7();}export async function listDictionaries(_0x3e3c4f,_0x5c7eb6){var _0x5709c5=_0x2ada;return _0x5c7eb6[_0x5709c5(0x9e)][_0x5709c5(0x9d)]();}
@@ -1 +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(_0x2901ab,_0x25405e){const _0x363c7a=_0x428c,_0x114338=_0x2901ab();while(!![]){try{const _0x187f15=parseInt(_0x363c7a(0x1a8))/0x1*(-parseInt(_0x363c7a(0x1b3))/0x2)+-parseInt(_0x363c7a(0x1aa))/0x3+parseInt(_0x363c7a(0x1a9))/0x4*(parseInt(_0x363c7a(0x1ba))/0x5)+parseInt(_0x363c7a(0x1af))/0x6+parseInt(_0x363c7a(0x1b0))/0x7*(-parseInt(_0x363c7a(0x1b1))/0x8)+-parseInt(_0x363c7a(0x1c0))/0x9*(-parseInt(_0x363c7a(0x1bb))/0xa)+parseInt(_0x363c7a(0x1ab))/0xb;if(_0x187f15===_0x25405e)break;else _0x114338['push'](_0x114338['shift']());}catch(_0x5e0225){_0x114338['push'](_0x114338['shift']());}}}(_0x3e23,0x857a0));function _0x428c(_0x1fd78f,_0x1a9756){_0x1fd78f=_0x1fd78f-0x1a6;const _0x3e23c5=_0x3e23();let _0x428cfe=_0x3e23c5[_0x1fd78f];return _0x428cfe;}function _0x3e23(){const _0x17da18=['JyhhP','5isZksK','327010xcURiK','query','trim','Settings\x20patch\x20is\x20empty','Invalid\x20setting\x20key:\x20','63eQZQVh','success','keys','1PQdPEx','3416772GmykvA','2377464yqKzTR','19734649kQvwsz','system:settings:update','patch','user','1735362ZYDTYZ','3353WytFrG','16424fpSACg','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.settings\x20(resource,\x20resource_id,\x20key,\x20value,\x20updated_by)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20(\x27system\x27,\x20NULL,\x20$1,\x20$2::jsonb,\x20$3)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(resource,\x20resource_id,\x20key)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DO\x20UPDATE\x20SET\x20value\x20=\x20EXCLUDED.value,\x20updated_by\x20=\x20EXCLUDED.updated_by,\x20updated_at\x20=\x20now()\x0a\x20\x20\x20\x20\x20\x20\x20\x20','1687582sFwRKo','entries','stringify','includes','length','XAGEy'];_0x3e23=function(){return _0x17da18;};return _0x3e23();}import{requireAdmin}from'../../utils/require-admin.js';import{ValidationError}from'../../../errors.js';export async function updateSystemSettings(_0x4954c7,_0x2af17c){const _0x203ce7=_0x428c,_0x2335af={};_0x2335af[_0x203ce7(0x1b8)]=_0x203ce7(0x1ac),_0x2335af[_0x203ce7(0x1b9)]=_0x203ce7(0x1be);const _0x1b8007=_0x2335af;requireAdmin(_0x4954c7[_0x203ce7(0x1ae)],_0x1b8007[_0x203ce7(0x1b8)]);if(!Object[_0x203ce7(0x1a7)](_0x4954c7[_0x203ce7(0x1ad)])[_0x203ce7(0x1b7)])throw new ValidationError(_0x1b8007[_0x203ce7(0x1b9)]);for(const [_0x2c8c70,_0x597cd7]of Object[_0x203ce7(0x1b4)](_0x4954c7[_0x203ce7(0x1ad)])){if(!_0x2c8c70[_0x203ce7(0x1bd)]()||_0x2c8c70[_0x203ce7(0x1b6)]('..'))throw new ValidationError(_0x203ce7(0x1bf)+_0x2c8c70);await _0x2af17c['pg'][_0x203ce7(0x1bc)](_0x203ce7(0x1b2),[_0x2c8c70,JSON[_0x203ce7(0x1b5)](_0x597cd7),_0x4954c7[_0x203ce7(0x1ae)]['id']]);}const _0x1f8160={};return _0x1f8160[_0x203ce7(0x1a6)]=!![],_0x1f8160;}
@@ -1 +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 _0x5977(){const _0x1e0443=['actions','1488706iYSAzC','query','1452ZKwSZk','200296HinmuT','98MPcpev','1TtBigU','3482347wMFbMA','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20ra.actions\x0a\x20\x20\x20\x20\x20\x20FROM\x20admin.role_access\x20ra\x0a\x20\x20\x20\x20\x20\x20LEFT\x20JOIN\x20admin.user_roles\x20ur\x20ON\x20ur.role_id\x20=\x20ra.role_id\x0a\x20\x20\x20\x20\x20\x20WHERE\x20ra.user_uid\x20=\x20$1\x20OR\x20ur.user_uid\x20=\x20$1\x0a\x20\x20\x20\x20','4177344heCnRX','2202CumXAz','2328318XBrzPm','flatMap','6219mivzUf','1610YNBltL','10qTNgrZ','rows'];_0x5977=function(){return _0x1e0443;};return _0x5977();}function _0x2d41(_0x4719eb,_0x5ebfaf){_0x4719eb=_0x4719eb-0x88;const _0x5977bc=_0x5977();let _0x2d41df=_0x5977bc[_0x4719eb];return _0x2d41df;}(function(_0x4159fd,_0x4fd3d9){const _0x2b2b2d=_0x2d41,_0xd472f=_0x4159fd();while(!![]){try{const _0x42adfe=parseInt(_0x2b2b2d(0x95))/0x1*(parseInt(_0x2b2b2d(0x90))/0x2)+parseInt(_0x2b2b2d(0x8b))/0x3*(-parseInt(_0x2b2b2d(0x92))/0x4)+parseInt(_0x2b2b2d(0x8c))/0x5*(-parseInt(_0x2b2b2d(0x88))/0x6)+-parseInt(_0x2b2b2d(0x94))/0x7*(parseInt(_0x2b2b2d(0x93))/0x8)+parseInt(_0x2b2b2d(0x89))/0x9*(parseInt(_0x2b2b2d(0x8d))/0xa)+parseInt(_0x2b2b2d(0x96))/0xb+parseInt(_0x2b2b2d(0x98))/0xc;if(_0x42adfe===_0x4fd3d9)break;else _0xd472f['push'](_0xd472f['shift']());}catch(_0x59de62){_0xd472f['push'](_0xd472f['shift']());}}}(_0x5977,0x6d059));export async function getUserPermissions(_0x36bef4,_0x54ea7e){const _0x42f146=_0x2d41,_0x4de4c8=await _0x36bef4['pg'][_0x42f146(0x91)](_0x42f146(0x97),[_0x54ea7e]);return[...new Set(_0x4de4c8[_0x42f146(0x8e)][_0x42f146(0x8a)](_0x92c168=>_0x92c168[_0x42f146(0x8f)]??[]))];}
@@ -1 +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(_0x19d5b2,_0x2e20e2){var _0x139434=_0x3b4c,_0x595de8=_0x19d5b2();while(!![]){try{var _0x44159b=parseInt(_0x139434(0xd6))/0x1+-parseInt(_0x139434(0xe2))/0x2+-parseInt(_0x139434(0xd7))/0x3*(parseInt(_0x139434(0xe6))/0x4)+parseInt(_0x139434(0xe4))/0x5+-parseInt(_0x139434(0xe3))/0x6*(parseInt(_0x139434(0xdd))/0x7)+parseInt(_0x139434(0xdb))/0x8*(parseInt(_0x139434(0xe0))/0x9)+-parseInt(_0x139434(0xd9))/0xa*(-parseInt(_0x139434(0xdf))/0xb);if(_0x44159b===_0x2e20e2)break;else _0x595de8['push'](_0x595de8['shift']());}catch(_0x551857){_0x595de8['push'](_0x595de8['shift']());}}}(_0x170c,0x35b52));import{ForbiddenError}from'../../errors.js';function _0x3b4c(_0x3ae8d6,_0x476760){_0x3ae8d6=_0x3ae8d6-0xd6;var _0x170c97=_0x170c();var _0x3b4cec=_0x170c97[_0x3ae8d6];return _0x3b4cec;}function _0x170c(){var _0x45b808=['49688gfqJsI','1266171TkGmWe','admin','20pmRLux','bbdak','8UfMzHj','type','4417nyaDVQ','Admin\x20access\x20required','2280531YvdRSu','1549710QUZKLl','XptKz','289894gbnmXj','996rllZWr','1276080MRtNBy','User\x20required','4LCxtFI'];_0x170c=function(){return _0x45b808;};return _0x170c();}export function requireAdmin(_0x1a8afc,_0x2bfa40){var _0x10e4fa=_0x3b4c,_0x45db36={};_0x45db36[_0x10e4fa(0xda)]=_0x10e4fa(0xe5),_0x45db36[_0x10e4fa(0xe1)]=_0x10e4fa(0xde);var _0x11aa1b=_0x45db36;if(!_0x1a8afc)throw new ForbiddenError(_0x11aa1b[_0x10e4fa(0xda)]);if(_0x1a8afc[_0x10e4fa(0xdc)]!==_0x10e4fa(0xd8))throw new ForbiddenError(_0x11aa1b[_0x10e4fa(0xe1)]);}
@@ -1 +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 _0x57f2(){const _0x5b8491=['includes','toLowerCase','jrNao','917336TbOUqK','secret','fromEntries','filter','entries','password','salt','913731kLtxOM','DZJCk','fDtra','token','81DhUVhq','5156kwPyRZ','1368474BsOTUn','687992RJVlVH','1356960CkQyEa','some','117SYHDIp','625830LwNluI','credentials'];_0x57f2=function(){return _0x5b8491;};return _0x57f2();}(function(_0x2c429b,_0x4d03e){const _0xca213b=_0x23b3,_0x30946a=_0x2c429b();while(!![]){try{const _0x3df3e2=parseInt(_0xca213b(0x16a))/0x1*(parseInt(_0xca213b(0x17c))/0x2)+-parseInt(_0xca213b(0x177))/0x3+-parseInt(_0xca213b(0x17f))/0x4+-parseInt(_0xca213b(0x16b))/0x5+-parseInt(_0xca213b(0x17d))/0x6+parseInt(_0xca213b(0x170))/0x7+parseInt(_0xca213b(0x17e))/0x8*(parseInt(_0xca213b(0x17b))/0x9);if(_0x3df3e2===_0x4d03e)break;else _0x30946a['push'](_0x30946a['shift']());}catch(_0x427eb2){_0x30946a['push'](_0x30946a['shift']());}}}(_0x57f2,0x332c3));function _0x23b3(_0x478a2c,_0x214bd1){_0x478a2c=_0x478a2c-0x169;const _0x57f25c=_0x57f2();let _0x23b393=_0x57f25c[_0x478a2c];return _0x23b393;}export const safeUser=_0x2436c3=>{const _0xf15126=_0x23b3,_0x2c0a9c={};_0x2c0a9c[_0xf15126(0x179)]=_0xf15126(0x17a),_0x2c0a9c[_0xf15126(0x178)]=_0xf15126(0x171),_0x2c0a9c[_0xf15126(0x16f)]=_0xf15126(0x16c);const _0xa17b36=_0x2c0a9c,_0x383848=[_0xf15126(0x175),_0xf15126(0x176),_0xa17b36[_0xf15126(0x179)],_0xa17b36[_0xf15126(0x178)],_0xa17b36[_0xf15126(0x16f)]];return Object[_0xf15126(0x172)](Object[_0xf15126(0x174)](_0x2436c3)[_0xf15126(0x173)](([_0x28d426])=>!_0x383848[_0xf15126(0x169)](_0x5d41b5=>_0x28d426[_0xf15126(0x16e)]()[_0xf15126(0x16d)](_0x5d41b5))));};
@@ -1 +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 _0x78a2(_0x637a89,_0x34800d){_0x637a89=_0x637a89-0x6a;var _0x4d2d67=_0x4d2d();var _0x78a2c0=_0x4d2d67[_0x637a89];return _0x78a2c0;}function _0x4d2d(){var _0x2787f5=['9528UgYnsM','1340vMKTpj','32656692iucEOi','189384NWNRpr','175ylWIua','14569875hYmSTh','4207929oCVFsF','194408OtJxIx','4FbctrI','57508tgnCiE','\x20requires\x20a\x20project/provider\x20implementation','30fciItz','130urMWbb'];_0x4d2d=function(){return _0x2787f5;};return _0x4d2d();}(function(_0x46f259,_0x56c75e){var _0x13f475=_0x78a2,_0x56904a=_0x46f259();while(!![]){try{var _0x23a038=parseInt(_0x13f475(0x6c))/0x1*(parseInt(_0x13f475(0x6a))/0x2)+parseInt(_0x13f475(0x72))/0x3*(parseInt(_0x13f475(0x74))/0x4)+-parseInt(_0x13f475(0x6b))/0x5*(parseInt(_0x13f475(0x6f))/0x6)+parseInt(_0x13f475(0x70))/0x7*(parseInt(_0x13f475(0x73))/0x8)+parseInt(_0x13f475(0x71))/0x9+parseInt(_0x13f475(0x6d))/0xa*(parseInt(_0x13f475(0x75))/0xb)+-parseInt(_0x13f475(0x6e))/0xc;if(_0x23a038===_0x56c75e)break;else _0x56904a['push'](_0x56904a['shift']());}catch(_0x5d625d){_0x56904a['push'](_0x56904a['shift']());}}}(_0x4d2d,0xe329c));import{UnsupportedError}from'../../errors.js';export function unsupported(_0x137d01){var _0x23093b=_0x78a2;throw new UnsupportedError(_0x137d01+_0x23093b(0x76));}
@@ -1 +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(_0x5c1888,_0x267a39){const _0x28e7e8=_0x94cb,_0x4fd2ca=_0x5c1888();while(!![]){try{const _0x337e6f=-parseInt(_0x28e7e8(0x111))/0x1*(parseInt(_0x28e7e8(0x112))/0x2)+-parseInt(_0x28e7e8(0x10a))/0x3*(-parseInt(_0x28e7e8(0x10e))/0x4)+parseInt(_0x28e7e8(0x10f))/0x5*(parseInt(_0x28e7e8(0x10c))/0x6)+parseInt(_0x28e7e8(0x110))/0x7+parseInt(_0x28e7e8(0x10b))/0x8+-parseInt(_0x28e7e8(0x109))/0x9*(-parseInt(_0x28e7e8(0x114))/0xa)+-parseInt(_0x28e7e8(0x113))/0xb;if(_0x337e6f===_0x267a39)break;else _0x4fd2ca['push'](_0x4fd2ca['shift']());}catch(_0x30d5f3){_0x4fd2ca['push'](_0x4fd2ca['shift']());}}}(_0x58dd,0xc2e93));import{writeAudit}from'./services/write-audit.js';function _0x94cb(_0x4793e9,_0x4536ad){_0x4793e9=_0x4793e9-0x109;const _0x58dd6a=_0x58dd();let _0x94cb72=_0x58dd6a[_0x4793e9];return _0x94cb72;}export function createAudit(_0x2b0d58){const _0xed51a1=_0x94cb,_0x464e8d=writeAudit(_0x2b0d58),_0x535377={};return _0x535377[_0xed51a1(0x10d)]=_0x464e8d,_0x535377;}function _0x58dd(){const _0x58d41e=['4145890GslVcc','1UfVpGo','2886174NCNGOy','36181277TFrXop','14700760QlSncc','9gfeRze','11478JVoBOL','7985832OGyGTj','2853456xblLnN','write','1588DmrDzC','10zdJUqn'];_0x58dd=function(){return _0x58d41e;};return _0x58dd();}
@@ -1 +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(_0x4cd514,_0x114fb9){var _0x4aa3a5=_0x5f15,_0x1e7b4d=_0x4cd514();while(!![]){try{var _0x4e6d53=-parseInt(_0x4aa3a5(0x125))/0x1*(parseInt(_0x4aa3a5(0x11f))/0x2)+parseInt(_0x4aa3a5(0x121))/0x3+-parseInt(_0x4aa3a5(0x11d))/0x4+-parseInt(_0x4aa3a5(0x120))/0x5+parseInt(_0x4aa3a5(0x124))/0x6*(parseInt(_0x4aa3a5(0x123))/0x7)+parseInt(_0x4aa3a5(0x11e))/0x8+parseInt(_0x4aa3a5(0x122))/0x9;if(_0x4e6d53===_0x114fb9)break;else _0x1e7b4d['push'](_0x1e7b4d['shift']());}catch(_0x4a0031){_0x1e7b4d['push'](_0x1e7b4d['shift']());}}}(_0x2b3b,0x7648e));function _0x5f15(_0x9b022d,_0x3c0453){_0x9b022d=_0x9b022d-0x11d;var _0x2b3b56=_0x2b3b();var _0x5f15ba=_0x2b3b56[_0x9b022d];return _0x5f15ba;}export*from'./audit.types.js';export*from'./audit.js';function _0x2b3b(){var _0x5144db=['729673PRjcme','2491484SZNIUT','2937752ZJfyCL','2iVYEYO','2538215sCGvRM','16116JlrbKC','13804902EbhhSr','7zmwLlb','2629272puvDnL'];_0x2b3b=function(){return _0x5144db;};return _0x2b3b();}
@@ -1 +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(_0x1912e8,_0x1cb9c2){const _0x12757f=_0x7713,_0x244bf4=_0x1912e8();while(!![]){try{const _0x52e720=-parseInt(_0x12757f(0x105))/0x1*(parseInt(_0x12757f(0x139))/0x2)+-parseInt(_0x12757f(0x12c))/0x3+-parseInt(_0x12757f(0xe4))/0x4*(-parseInt(_0x12757f(0xe3))/0x5)+parseInt(_0x12757f(0x10f))/0x6*(-parseInt(_0x12757f(0x100))/0x7)+parseInt(_0x12757f(0xf6))/0x8*(-parseInt(_0x12757f(0x103))/0x9)+parseInt(_0x12757f(0xe9))/0xa+parseInt(_0x12757f(0x111))/0xb;if(_0x52e720===_0x1cb9c2)break;else _0x244bf4['push'](_0x244bf4['shift']());}catch(_0x385f71){_0x244bf4['push'](_0x244bf4['shift']());}}}(_0x32bd,0x6521c));function _0x32bd(){const _0x578857=['Audit\x20tables\x20are\x20unavailable;\x20audit\x20writes\x20are\x20disabled','resourceId','audit','QWnkS','32VjTIRA','JhRxh','bTmko','nxUXI','query','NKCKZ','Unable\x20to\x20check\x20audit\x20tables;\x20audit\x20writes\x20are\x20disabled','then','audit_log_data','ywMAn','1043924jASVHR','fields','admin.audit_log_data','1820655KosFTZ','requestId','223921HwZLPQ','has','err','aCegy','IgYTn','dJNUH','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.audit_log\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20module,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fields,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20action,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ip_address,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20metadata\x0a\x20\x20\x20\x20\x20\x20\x20\x20)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4,\x20$5,\x20$6,\x20$7,\x20$8,\x20$9)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20id\x0a\x20\x20\x20\x20\x20\x20','LHhXR','GGspl','LcxdK','12WpJARh','action','12189276rLTcMv','frKbm','oldValue','metadata','catch','FzfhZ','gNUJl','entries','stringify','ipAddress','txPri','jsdOS','map','userId','gItBF','test','Tdwoo','field','PQtDg','eWrWd','ZsiZk','[REDACTED]','gHbHi','rYYzd','BXema','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.audit_log_data\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20audit_log_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20field,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20old_value,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20new_value\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20','info','660111oNkJmx','audit_log','NnzXO','foundTables','PxyUR','JBHde','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20table_name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20information_schema.tables\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20table_schema\x20=\x20\x27admin\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20AND\x20table_name\x20IN\x20(\x27audit_log\x27,\x20\x27audit_log_data\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20','resource','expectedTables','oogdo','QYoxU','object','table_name','4VvOMaC','yDUBx','rows','warn','sHdmi','2064035LQhMQd','4ShDFpD','empty\x20pg','ZYBLR','newValue','module','6686360PQhDuP','admin.audit_log','logger','AaEND','OhpDS','ZGtWO','fromEntries','isArray','changes'];_0x32bd=function(){return _0x578857;};return _0x32bd();}const secretPattern=/password|token|secret|credential|salt/i;function _0x7713(_0x474cf2,_0x48ca63){_0x474cf2=_0x474cf2-0xe1;const _0x32bd02=_0x32bd();let _0x771303=_0x32bd02[_0x474cf2];return _0x771303;}function clean(_0x3bdfa9){const _0x3d46a1=_0x7713,_0x3922c5={'ywMAn':function(_0x7ebbc9,_0x2f7cb9){return _0x7ebbc9(_0x2f7cb9);},'aCegy':_0x3d46a1(0x11f),'ZGtWO':_0x3d46a1(0x137)};if(Array[_0x3d46a1(0xf0)](_0x3bdfa9))return _0x3922c5[_0x3d46a1(0x108)]!==_0x3922c5[_0x3d46a1(0x108)]?(_0x19630b[_0x3d46a1(0xeb)][_0x3d46a1(0x12b)]({'auditFallback':!![],'event':_0x3922c5[_0x3d46a1(0xff)](_0x32282d,{..._0x17f8e5,'changes':_0xe2f373[_0x3d46a1(0xf1)]?.[_0x3d46a1(0x11d)](_0x27ae82=>({..._0x27ae82,'oldValue':_0x10f208(_0x27ae82[_0x3d46a1(0x113)]),'newValue':_0xaac9de(_0x27ae82[_0x3d46a1(0xe7)])}))})},_0x3d46a1(0xf4)),0x0):_0x3bdfa9[_0x3d46a1(0x11d)](clean);if(_0x3bdfa9&&typeof _0x3bdfa9===_0x3922c5[_0x3d46a1(0xee)])return Object[_0x3d46a1(0xef)](Object[_0x3d46a1(0x118)](_0x3bdfa9)[_0x3d46a1(0x11d)](([_0x160a8e,_0x335f8e])=>[_0x160a8e,secretPattern[_0x3d46a1(0x120)](_0x160a8e)?_0x3d46a1(0x126):clean(_0x335f8e)]));return _0x3bdfa9;}export function writeAudit(_0x4a02ca){const _0x448eec=_0x7713,_0x428a4c={'NKCKZ':_0x448eec(0x12d),'gHbHi':_0x448eec(0xfe),'bTmko':function(_0xa7e021,_0x402dbe){return _0xa7e021!==_0x402dbe;},'gNUJl':_0x448eec(0xf5),'oogdo':_0x448eec(0xea),'NnzXO':_0x448eec(0x102),'IgYTn':_0x448eec(0xf2),'ZsiZk':function(_0x2e1834,_0x1510ef){return _0x2e1834===_0x1510ef;},'dJNUH':_0x448eec(0xf7),'nxUXI':_0x448eec(0xfc),'ZYBLR':function(_0xc651d1,_0x47ee0c){return _0xc651d1===_0x47ee0c;},'PQtDg':_0x448eec(0x11b),'eWrWd':_0x448eec(0x13a),'FzfhZ':function(_0x1a1069){return _0x1a1069();},'Tdwoo':function(_0x2b079a,_0x772291){return _0x2b079a(_0x772291);},'jsdOS':_0x448eec(0xf4),'GGspl':_0x448eec(0xe5),'rYYzd':function(_0x29a8db,_0x2df503){return _0x29a8db==_0x2df503;},'AaEND':function(_0x26d0a1,_0x5d21d7){return _0x26d0a1(_0x5d21d7);},'frKbm':_0x448eec(0x10e)};let _0x51e9cc,_0x27cb4a;async function _0x41e686(){const _0x5d50f8=_0x448eec,_0x3d3368={};_0x3d3368[_0x5d50f8(0xe2)]=_0x428a4c[_0x5d50f8(0xf9)];const _0x242c76=_0x3d3368;if(!_0x4a02ca['pg'])return _0x428a4c[_0x5d50f8(0xe6)](_0x5d50f8(0x130),_0x428a4c[_0x5d50f8(0x123)])?![]:![];if(_0x428a4c[_0x5d50f8(0xf8)](_0x51e9cc,undefined)){if(_0x428a4c[_0x5d50f8(0x124)]===_0x5d50f8(0xed)){_0x2bffe4=![];const _0x2ce61f={};return _0x2ce61f[_0x5d50f8(0x107)]=_0x359a93,_0x55a44d[_0x5d50f8(0xeb)][_0x5d50f8(0xe1)](_0x2ce61f,_0x242c76[_0x5d50f8(0xe2)]),![];}else return _0x51e9cc;}return _0x27cb4a??=_0x4a02ca['pg'][_0x5d50f8(0xfa)](_0x5d50f8(0x132))[_0x5d50f8(0xfd)](_0x3fc9c4=>{const _0x11f397=_0x5d50f8,_0x241913=new Set(_0x3fc9c4[_0x11f397(0x13b)][_0x11f397(0x11d)](_0x21094d=>_0x21094d[_0x11f397(0x138)]));_0x51e9cc=_0x241913[_0x11f397(0x106)](_0x428a4c[_0x11f397(0xfb)])&&_0x241913[_0x11f397(0x106)](_0x428a4c[_0x11f397(0x127)]);if(!_0x51e9cc){if(_0x428a4c[_0x11f397(0xf8)](_0x428a4c[_0x11f397(0x117)],_0x428a4c[_0x11f397(0x117)]))return _0xcf1f5c;else{const _0x3fdefb={};_0x3fdefb[_0x11f397(0x134)]=[_0x428a4c[_0x11f397(0x135)],_0x428a4c[_0x11f397(0x12e)]],_0x3fdefb[_0x11f397(0x12f)]=[..._0x241913],_0x4a02ca[_0x11f397(0xeb)][_0x11f397(0xe1)](_0x3fdefb,_0x428a4c[_0x11f397(0x109)]);}}return _0x51e9cc;})[_0x5d50f8(0x115)](_0x575677=>{const _0x1f832b=_0x5d50f8;if(_0x428a4c[_0x1f832b(0x125)](_0x1f832b(0xf7),_0x428a4c[_0x1f832b(0x10a)])){_0x51e9cc=![];const _0x2344eb={};return _0x2344eb[_0x1f832b(0x107)]=_0x575677,_0x4a02ca[_0x1f832b(0xeb)][_0x1f832b(0xe1)](_0x2344eb,_0x428a4c[_0x1f832b(0xf9)]),![];}else{const _0x3d53ed={};_0x3d53ed[_0x1f832b(0x134)]=[_0x1f832b(0xea),_0x1f832b(0x102)],_0x3d53ed[_0x1f832b(0x12f)]=[..._0x2d1c08],_0x136cc3[_0x1f832b(0xeb)][_0x1f832b(0xe1)](_0x3d53ed,_0x1f832b(0xf2));}}),_0x27cb4a;}return async function _0x3746cc(_0x9b711f){const _0x4f2ab5=_0x448eec,_0x43dc35={};_0x43dc35[_0x4f2ab5(0x10c)]=_0x4f2ab5(0xfe),_0x43dc35[_0x4f2ab5(0x136)]=_0x428a4c[_0x4f2ab5(0x135)],_0x43dc35[_0x4f2ab5(0x129)]=_0x428a4c[_0x4f2ab5(0x12e)],_0x43dc35[_0x4f2ab5(0x131)]=_0x428a4c[_0x4f2ab5(0x109)];const _0x5a03a2=_0x43dc35;if(!await _0x428a4c[_0x4f2ab5(0x116)](_0x41e686))return _0x4a02ca[_0x4f2ab5(0xeb)][_0x4f2ab5(0x12b)]({'auditFallback':!![],'event':_0x428a4c[_0x4f2ab5(0x121)](clean,{..._0x9b711f,'changes':_0x9b711f[_0x4f2ab5(0xf1)]?.[_0x4f2ab5(0x11d)](_0xc2b877=>({..._0xc2b877,'oldValue':clean(_0xc2b877[_0x4f2ab5(0x113)]),'newValue':clean(_0xc2b877[_0x4f2ab5(0xe7)])}))})},_0x428a4c[_0x4f2ab5(0x11c)]),0x0;if(!_0x4a02ca['pg'])throw new Error(_0x428a4c[_0x4f2ab5(0x10d)]);const _0x41b0e4=await _0x4a02ca['pg'][_0x4f2ab5(0xfa)](_0x4f2ab5(0x10b),[_0x9b711f[_0x4f2ab5(0x11e)]??null,_0x9b711f[_0x4f2ab5(0xe8)],_0x9b711f[_0x4f2ab5(0x133)],_0x428a4c[_0x4f2ab5(0x128)](_0x9b711f[_0x4f2ab5(0xf3)],null)?null:_0x428a4c[_0x4f2ab5(0xec)](String,_0x9b711f[_0x4f2ab5(0xf3)]),_0x9b711f[_0x4f2ab5(0x101)]??null,_0x9b711f[_0x4f2ab5(0x110)],_0x9b711f[_0x4f2ab5(0x104)]??null,_0x9b711f[_0x4f2ab5(0x11a)]??null,clean(_0x9b711f[_0x4f2ab5(0x114)]??{})]),_0x25f9b5=_0x41b0e4[_0x4f2ab5(0x13b)][0x0]['id'];for(const _0x3d690a of _0x9b711f[_0x4f2ab5(0xf1)]??[]){if(secretPattern[_0x4f2ab5(0x120)](_0x3d690a[_0x4f2ab5(0x122)])){if(_0x428a4c[_0x4f2ab5(0xe6)](_0x4f2ab5(0x10e),_0x428a4c[_0x4f2ab5(0x112)]))continue;else{const _0x9045f6=new _0x969dd6(_0x179308[_0x4f2ab5(0x13b)][_0x4f2ab5(0x11d)](_0x361d4b=>_0x361d4b[_0x4f2ab5(0x138)]));_0x3612e2=_0x9045f6[_0x4f2ab5(0x106)](_0x4f2ab5(0x12d))&&_0x9045f6[_0x4f2ab5(0x106)](XhpLWK[_0x4f2ab5(0x10c)]);if(!_0x320586){const _0x1e5661={};_0x1e5661[_0x4f2ab5(0x134)]=[XhpLWK[_0x4f2ab5(0x136)],XhpLWK[_0x4f2ab5(0x129)]],_0x1e5661[_0x4f2ab5(0x12f)]=[..._0x9045f6],_0x331dc5[_0x4f2ab5(0xeb)][_0x4f2ab5(0xe1)](_0x1e5661,XhpLWK[_0x4f2ab5(0x131)]);}return _0x2d8f40;}}await _0x4a02ca['pg'][_0x4f2ab5(0xfa)](_0x4f2ab5(0x12a),[_0x25f9b5,_0x3d690a[_0x4f2ab5(0x122)],JSON[_0x4f2ab5(0x119)](clean(_0x3d690a[_0x4f2ab5(0x113)])),JSON[_0x4f2ab5(0x119)](_0x428a4c[_0x4f2ab5(0x121)](clean,_0x3d690a[_0x4f2ab5(0xe7)]))]);}return _0x25f9b5;};}
@@ -1 +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 _0x3648(){const _0x19ab59=['auth','parseOptions','database','registerUserSerializer','20qzaVvP','9HCRZPZ','secret','3239112mWCaLV','295888bmFVTV','Missing\x20config\x20or\x20redis\x20-\x20skipping\x20session\x20store\x20creation','warn','3233659PENERF','FMsnF','DBOpG','ctfic','760458dzPhcF','6AEdYAp','1561872EAhlXS','test','user','1204820GkjwGT','cookieOptions','secureSession','cookieName','register','5oETPwn','24HiGatW','10289146swcWMu','registerUserDeserializer','initialize'];_0x3648=function(){return _0x19ab59;};return _0x3648();}(function(_0x583b26,_0x5b8ba6){const _0x53c1c7=_0x20f0,_0x4c6899=_0x583b26();while(!![]){try{const _0x12073b=parseInt(_0x53c1c7(0xac))/0x1*(-parseInt(_0x53c1c7(0xb9))/0x2)+parseInt(_0x53c1c7(0xc1))/0x3*(parseInt(_0x53c1c7(0xb8))/0x4)+parseInt(_0x53c1c7(0xb5))/0x5*(parseInt(_0x53c1c7(0xc0))/0x6)+-parseInt(_0x53c1c7(0xae))/0x7+parseInt(_0x53c1c7(0xc2))/0x8+-parseInt(_0x53c1c7(0xb6))/0x9*(-parseInt(_0x53c1c7(0xc5))/0xa)+-parseInt(_0x53c1c7(0xbc))/0xb*(-parseInt(_0x53c1c7(0xad))/0xc);if(_0x12073b===_0x5b8ba6)break;else _0x4c6899['push'](_0x4c6899['shift']());}catch(_0x132eca){_0x4c6899['push'](_0x4c6899['shift']());}}}(_0x3648,0xc8568));function _0x20f0(_0x2f529e,_0x34accd){_0x2f529e=_0x2f529e-0xac;const _0x3648a2=_0x3648();let _0x20f00f=_0x3648a2[_0x2f529e];return _0x20f00f;}export*from'./auth.types.js';import _0x4170dc from'@fastify/cookie';import _0x117378 from'@fastify/session';import{Authenticator}from'@fastify/passport';import _0x2a9c6d from'fastify-session-redis-store';const fastifyPassport=new Authenticator();export async function createSessionStore(_0x101a4a,_0x30b1ec){const _0x28dc4c=_0x20f0,_0x1c77b1={};_0x1c77b1[_0x28dc4c(0xbe)]=function(_0x1a3a8c,_0x3ed1af){return _0x1a3a8c||_0x3ed1af;},_0x1c77b1[_0x28dc4c(0xbd)]=function(_0x26af57,_0x4a481a){return _0x26af57===_0x4a481a;},_0x1c77b1[_0x28dc4c(0xbf)]=_0x28dc4c(0xc3);const _0x3d7365=_0x1c77b1,{config:_0x53d17b,redis:_0x2bd5f5}=_0x30b1ec;if(_0x3d7365[_0x28dc4c(0xbe)](!_0x53d17b,!_0x2bd5f5)){console[_0x28dc4c(0xbb)](_0x28dc4c(0xba));return;}if(_0x3d7365[_0x28dc4c(0xbd)](process.env.NODE_ENV,_0x3d7365[_0x28dc4c(0xbf)])||process.env.VITEST)return;const _0x4e65cc={};_0x4e65cc[_0x28dc4c(0xb2)]=_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xc6)],await _0x101a4a[_0x28dc4c(0xc9)](_0x4170dc,_0x4e65cc),await _0x101a4a[_0x28dc4c(0xc9)](_0x117378,{'secret':_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xb7)],'cookieName':_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xc8)],'cookie':_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xc6)],'store':new _0x2a9c6d({'prefix':_0x53d17b[_0x28dc4c(0xb1)][_0x28dc4c(0xc8)]+':'+(_0x53d17b['pg']?.[_0x28dc4c(0xb3)]||'db')+':','client':_0x2bd5f5})}),await _0x101a4a[_0x28dc4c(0xc9)](fastifyPassport[_0x28dc4c(0xb0)]()),await _0x101a4a[_0x28dc4c(0xc9)](fastifyPassport[_0x28dc4c(0xc7)]()),fastifyPassport[_0x28dc4c(0xb4)](async _0x9cca8a=>({'user':_0x9cca8a})),fastifyPassport[_0x28dc4c(0xaf)](async _0x5dda65=>_0x5dda65?.[_0x28dc4c(0xc4)]||_0x5dda65);}
@@ -1 +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(_0x290b48,_0x360b81){const _0x36b07f=_0x3c65,_0x59fc85=_0x290b48();while(!![]){try{const _0x34932e=parseInt(_0x36b07f(0x242))/0x1*(parseInt(_0x36b07f(0x1f2))/0x2)+-parseInt(_0x36b07f(0x252))/0x3+-parseInt(_0x36b07f(0x220))/0x4+parseInt(_0x36b07f(0x214))/0x5*(parseInt(_0x36b07f(0x23b))/0x6)+-parseInt(_0x36b07f(0x236))/0x7+-parseInt(_0x36b07f(0x253))/0x8+-parseInt(_0x36b07f(0x21d))/0x9;if(_0x34932e===_0x360b81)break;else _0x59fc85['push'](_0x59fc85['shift']());}catch(_0x3ff6e0){_0x59fc85['push'](_0x59fc85['shift']());}}}(_0x1373,0xe46d4));function _0x1373(){const _0x4e8e8b=['XJtjW','hwdTC','then','SAWfc','6bbAPXi','Invalid\x20dictionary\x20items:\x20','Dictionary\x20table\x20not\x20found','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20di.id,\x20di.code,\x20di.name,\x20di.parent_id\x20AS\x20\x22parentId\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionary_items\x20di\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20admin.dictionaries\x20d\x20ON\x20d.id\x20=\x20di.dictionary_id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20d.code\x20=\x20$1\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20di.name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','oTFWm','baElX','release','1219KMghCM','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionary_items\x20(dictionary_id,\x20code,\x20name,\x20parent_id)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Invalid\x20dictionary\x20name:\x20','Dictionary\x20not\x20found:\x20','TMKbm','length','kbKTo','DELETE\x20FROM\x20admin.dictionary_items\x20WHERE\x20dictionary_id\x20=\x20$1','Kuane','code','QfmEk','ZPrig','gzuxQ','dCZHP','get','uloPV','3747840dOMRKf','105776JolZyb','LSulM','YMrPG','table_name','nhqXi','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20code,\x20name,\x20\x27database\x27\x20AS\x20source\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionaries\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','cKXRN','connect','LLDgN','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionaries\x20(code,\x20name,\x20module,\x20source,\x20editable)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4,\x20$5)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(code)\x20DO\x20UPDATE\x20SET\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20=\x20EXCLUDED.name,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20module\x20=\x20EXCLUDED.module,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20source\x20=\x20EXCLUDED.source,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20editable\x20=\x20EXCLUDED.editable,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updated_at\x20=\x20now()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2914jgUoSa','JDkOy','VyKDe','XTpag','BEGIN','SQylw','items','ikEpN','name','mrdDr','test','jgAmF','empty\x20pg','ROLLBACK','punDe','Jvxuo','fcore','PYskT','list','isArray','map','zMrhW','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20table_name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20information_schema.tables\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20table_schema\x20=\x20\x27admin\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20AND\x20table_name\x20=\x20\x27dictionaries\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20LIMIT\x201\x0a\x20\x20\x20\x20\x20\x20\x20\x20','TsaII','aOEmD','register','push','delete','clear','ZOURG','YRJUq','set','AurCr','yNKon','8411695FQstLJ','static','IFvyR','database','rows','dictionaries','FeUEh','znrAz','has','4776750iWdrsP','values','zGFiN','1586236nqGulV','YlDuf','parentId','put','TbSUE','Dictionary\x20already\x20registered:\x20','CFoUE','COMMIT','KgZON','hFFcr','fDVGi','fpSKO','tQXpZ','HanWr','aXYXP','Bcufb','Dictionary\x20items\x20must\x20be\x20an\x20array','custom','qnjvr','jYwBY','DCWAv','query','2330825UYFJYU'];_0x1373=function(){return _0x4e8e8b;};return _0x1373();}import{ConflictError,NotFoundError,ValidationError}from'../errors.js';const dictionaryName=/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;function _0x3c65(_0x431639,_0x121a1a){_0x431639=_0x431639-0x1ee;const _0x1373b2=_0x1373();let _0x3c65f1=_0x1373b2[_0x431639];return _0x3c65f1;}export function createDictionary({pg:_0x4c6ac4,dictionaries:dictionaries=[]}){const _0x30e554=_0x3c65,_0x234d50={'KgZON':_0x30e554(0x1fe),'yNKon':function(_0x2788aa,_0x16aa52){return _0x2788aa===_0x16aa52;},'SQylw':_0x30e554(0x219),'DCWAv':function(_0x7a40d9,_0x17d319){return _0x7a40d9!==_0x17d319;},'fpSKO':_0x30e554(0x207),'CFoUE':_0x30e554(0x1f3),'YlDuf':_0x30e554(0x24a),'qnjvr':_0x30e554(0x215),'ikEpN':function(_0x57dd2e,_0x153bd8){return _0x57dd2e(_0x153bd8);},'mrdDr':function(_0x123100,_0x1b95b4){return _0x123100===_0x1b95b4;},'QfmEk':_0x30e554(0x1f4),'aXYXP':_0x30e554(0x23d),'gzuxQ':_0x30e554(0x1fd),'YRJUq':_0x30e554(0x217),'IFvyR':function(_0x1c5e03,_0x88ee6c){return _0x1c5e03(_0x88ee6c);},'ZPrig':function(_0x2c19dd,_0x4c8b0d){return _0x2c19dd(_0x4c8b0d);},'XJtjW':_0x30e554(0x238),'SAWfc':_0x30e554(0x257),'ZOURG':function(_0x9b91ef){return _0x9b91ef();},'jYwBY':_0x30e554(0x1f6),'fDVGi':_0x30e554(0x231),'kbKTo':_0x30e554(0x249),'cKXRN':_0x30e554(0x1f0),'uloPV':_0x30e554(0x227),'TMKbm':_0x30e554(0x21b),'oTFWm':_0x30e554(0x240),'PYskT':_0x30e554(0x1ff),'LSulM':_0x30e554(0x229),'Jvxuo':function(_0x2d2c58,_0x139bff){return _0x2d2c58(_0x139bff);},'FeUEh':_0x30e554(0x224),'HanWr':function(_0x3390e1,_0x55a261){return _0x3390e1!==_0x55a261;},'TsaII':_0x30e554(0x20a),'punDe':_0x30e554(0x212),'Bcufb':function(_0x375578,_0x3798a9){return _0x375578(_0x3798a9);}},_0x39d76f=new Map();let _0x89fc01,_0x23efbc;async function _0x29dc85(){const _0x45737c=_0x30e554,_0x51990b={'XTpag':_0x234d50[_0x45737c(0x228)],'zGFiN':function(_0x5209e7,_0x369b3f){const _0x4d5e5a=_0x45737c;return _0x234d50[_0x4d5e5a(0x213)](_0x5209e7,_0x369b3f);},'YMrPG':_0x234d50[_0x45737c(0x1f7)]};if(_0x234d50[_0x45737c(0x234)](_0x89fc01,undefined)){if(_0x234d50[_0x45737c(0x22b)]!==_0x234d50[_0x45737c(0x22b)])throw new _0x18d855(_0x51990b[_0x45737c(0x1f5)]);else return _0x89fc01;}if(!_0x4c6ac4)throw new Error(_0x45737c(0x1fe));return _0x23efbc??=_0x4c6ac4[_0x45737c(0x235)](_0x45737c(0x208))[_0x45737c(0x239)](_0x42c8a5=>{const _0x3205f1=_0x45737c,_0x1e80ae=_0x42c8a5[_0x3205f1(0x218)][0x0]?.[_0x3205f1(0x256)];_0x89fc01=_0x51990b[_0x3205f1(0x21f)](_0x1e80ae,_0x51990b[_0x3205f1(0x255)])?_0x1e80ae:null;}),await _0x23efbc,_0x89fc01;}function _0x41aa40(_0x558543){const _0x4c2cb2=_0x30e554,_0x5b00ac={};_0x5b00ac[_0x4c2cb2(0x22c)]=_0x4c2cb2(0x1fe);const _0x313553=_0x5b00ac;if(!dictionaryName[_0x4c2cb2(0x1fc)](_0x558543)){if(_0x234d50[_0x4c2cb2(0x234)](_0x234d50[_0x4c2cb2(0x226)],_0x234d50[_0x4c2cb2(0x226)]))throw new _0x3fc7cb(_0x313553[_0x4c2cb2(0x22c)]);else throw new ValidationError(_0x4c2cb2(0x244)+_0x558543);}}function _0x34f8cd(_0x4e9ae1){const _0x4d6417=_0x30e554;for(const _0x1f148c of Array[_0x4d6417(0x205)](_0x4e9ae1)?_0x4e9ae1:[_0x4e9ae1]){_0x41aa40(_0x1f148c[_0x4d6417(0x24b)]);if(!Array[_0x4d6417(0x205)](_0x1f148c[_0x4d6417(0x1f8)])){if(_0x234d50[_0x4d6417(0x221)]===_0x4d6417(0x24a))throw new ValidationError(_0x4d6417(0x23c)+_0x1f148c[_0x4d6417(0x24b)]);else throw new _0xdedf33(_0x4d6417(0x245)+_0xcb0e87);}if(_0x39d76f[_0x4d6417(0x21c)](_0x1f148c[_0x4d6417(0x24b)]))throw new ConflictError(_0x4d6417(0x225)+_0x1f148c[_0x4d6417(0x24b)]);_0x39d76f[_0x4d6417(0x211)](_0x1f148c[_0x4d6417(0x24b)],{..._0x1f148c,'source':_0x234d50[_0x4d6417(0x232)]});}}async function _0x3437aa(_0x4640a4){const _0x5bbbbb=_0x30e554;_0x234d50[_0x5bbbbb(0x1f9)](_0x41aa40,_0x4640a4);const _0x10d133=_0x39d76f[_0x5bbbbb(0x250)](_0x4640a4);if(_0x10d133)return _0x10d133[_0x5bbbbb(0x1f8)];const _0x4f890d=await _0x29dc85();if(!_0x4f890d){if(_0x234d50[_0x5bbbbb(0x1fb)](_0x234d50[_0x5bbbbb(0x24c)],_0x234d50[_0x5bbbbb(0x24c)]))throw new NotFoundError(_0x234d50[_0x5bbbbb(0x22e)]);else{const _0x2523f9=_0x148fed[_0x5bbbbb(0x218)][0x0]?.[_0x5bbbbb(0x256)];_0x2a4525=_0x2523f9===_0x5bbbbb(0x219)?_0x2523f9:null;}}if(!_0x4c6ac4){if(_0x234d50[_0x5bbbbb(0x213)](_0x234d50[_0x5bbbbb(0x24e)],_0x5bbbbb(0x1fd)))throw new Error(_0x5bbbbb(0x1fe));else!_0x37a20a[_0x5bbbbb(0x21c)](_0x3251d1[_0x5bbbbb(0x24b)])&&_0x1a05f3[_0x5bbbbb(0x20c)](_0x2138f9);}const _0x4ef481=await _0x4c6ac4[_0x5bbbbb(0x235)](_0x5bbbbb(0x23e),[_0x4640a4]);if(!_0x4ef481[_0x5bbbbb(0x218)][_0x5bbbbb(0x247)])throw new NotFoundError(_0x5bbbbb(0x245)+_0x4640a4);const _0x267ac0=_0x4ef481[_0x5bbbbb(0x218)];return _0x39d76f[_0x5bbbbb(0x211)](_0x4640a4,{'code':_0x4640a4,'name':_0x4640a4,'items':_0x267ac0,'source':_0x234d50[_0x5bbbbb(0x210)]}),_0x267ac0;}async function _0x20c30d(_0x396f3b,_0x583b2e){const _0x58a431=_0x30e554;_0x234d50[_0x58a431(0x24d)](_0x41aa40,_0x396f3b);if(!Array[_0x58a431(0x205)](_0x583b2e)){if(_0x234d50[_0x58a431(0x237)]!==_0x234d50[_0x58a431(0x23a)])throw new ValidationError(_0x58a431(0x230));else throw new _0x2ec4b2(_0x234d50[_0x58a431(0x22e)]);}const _0x4f4929=await _0x234d50[_0x58a431(0x20f)](_0x29dc85);if(!_0x4f4929)throw new NotFoundError(_0x234d50[_0x58a431(0x22e)]);if(!_0x4c6ac4)throw new Error(_0x234d50[_0x58a431(0x228)]);const _0x5f55f5=await _0x4c6ac4[_0x58a431(0x1ef)]();try{await _0x5f55f5[_0x58a431(0x235)](_0x234d50[_0x58a431(0x233)]);const _0x454c16=await _0x5f55f5[_0x58a431(0x235)](_0x58a431(0x1f1),[_0x396f3b,_0x396f3b,_0x58a431(0x202),_0x234d50[_0x58a431(0x22a)],!![]]),_0x3d97f9=_0x454c16[_0x58a431(0x218)][0x0]['id'];await _0x5f55f5[_0x58a431(0x235)](_0x234d50[_0x58a431(0x248)],[_0x3d97f9]);for(const _0x32fb5a of _0x583b2e){_0x234d50[_0x58a431(0x1ee)]===_0x234d50[_0x58a431(0x1ee)]?await _0x5f55f5[_0x58a431(0x235)](_0x58a431(0x243),[_0x3d97f9,_0x32fb5a[_0x58a431(0x24b)],_0x32fb5a[_0x58a431(0x1fa)],_0x32fb5a[_0x58a431(0x222)]??null]):_0xa79a6f[_0x58a431(0x241)]();}await _0x5f55f5[_0x58a431(0x235)](_0x234d50[_0x58a431(0x251)]);}catch(_0x1e5a92){if(_0x234d50[_0x58a431(0x246)]!==_0x234d50[_0x58a431(0x23f)]){await _0x5f55f5[_0x58a431(0x235)](_0x234d50[_0x58a431(0x203)]);throw _0x1e5a92;}else return _0x5d65d7[_0x58a431(0x1f8)];}finally{if(_0x234d50[_0x58a431(0x1fb)](_0x234d50[_0x58a431(0x254)],_0x58a431(0x229)))_0x5f55f5[_0x58a431(0x241)]();else return _0x234d50[_0x58a431(0x216)](_0x15aa3f,_0x5e5ea3),_0x5da23d[_0x58a431(0x20d)](_0x5ea0d2);}_0x234d50[_0x58a431(0x201)](_0x2f74f5,_0x396f3b);}function _0x2f74f5(_0x3c2a9c){const _0x25d335=_0x30e554;return _0x234d50[_0x25d335(0x216)](_0x41aa40,_0x3c2a9c),_0x39d76f[_0x25d335(0x20d)](_0x3c2a9c);}async function _0x31e7e5(){const _0x58a313=_0x30e554;if(_0x234d50[_0x58a313(0x234)](_0x234d50[_0x58a313(0x21a)],_0x58a313(0x24f))){const _0x475686=[..._0x39d76f[_0x58a313(0x21e)]()][_0x58a313(0x206)](({code:_0x20933c,name:_0x2b9468,source:_0x1c3e3b})=>({'code':_0x20933c,'name':_0x2b9468??_0x20933c,'source':_0x1c3e3b})),_0x32d88c=await _0x234d50[_0x58a313(0x20f)](_0x29dc85);if(!_0x32d88c){if(_0x234d50[_0x58a313(0x22d)](_0x234d50[_0x58a313(0x209)],_0x234d50[_0x58a313(0x200)]))return _0x475686;else throw new _0x1920a9(_0x58a313(0x225)+_0x36ebf1[_0x58a313(0x24b)]);}if(!_0x4c6ac4)throw new Error(_0x234d50[_0x58a313(0x228)]);const _0xc4df03=await _0x4c6ac4[_0x58a313(0x235)](_0x58a313(0x258));for(const _0x30457f of _0xc4df03[_0x58a313(0x218)]){!_0x39d76f[_0x58a313(0x21c)](_0x30457f[_0x58a313(0x24b)])&&_0x475686[_0x58a313(0x20c)](_0x30457f);}return _0x475686;}else for(const _0x20930b of _0x2df3df[_0x58a313(0x205)](_0x3c7649)?_0x171b86:[_0x48c62d]){_0x234d50[_0x58a313(0x201)](_0x4269ef,_0x20930b[_0x58a313(0x24b)]);if(!_0x5f4913[_0x58a313(0x205)](_0x20930b[_0x58a313(0x1f8)]))throw new _0x2911b5(_0x58a313(0x23c)+_0x20930b[_0x58a313(0x24b)]);if(_0x54856c[_0x58a313(0x21c)](_0x20930b[_0x58a313(0x24b)]))throw new _0x49ea03(_0x58a313(0x225)+_0x20930b[_0x58a313(0x24b)]);_0x4b9f95[_0x58a313(0x211)](_0x20930b[_0x58a313(0x24b)],{..._0x20930b,'source':_0x58a313(0x215)});}}_0x234d50[_0x30e554(0x22f)](_0x34f8cd,dictionaries);const _0xda75b={};return _0xda75b[_0x30e554(0x20b)]=_0x34f8cd,_0xda75b[_0x30e554(0x250)]=_0x3437aa,_0xda75b[_0x30e554(0x223)]=_0x20c30d,_0xda75b[_0x30e554(0x20e)]=_0x2f74f5,_0xda75b[_0x30e554(0x204)]=_0x31e7e5,_0xda75b;}