@opengis/fcore 0.0.1-beta.2 → 0.0.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +1 -1
- package/dist/context.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/fastify.d.ts +4 -5
- package/dist/fastify.d.ts.map +1 -1
- package/dist/fastify.js +1 -1
- package/dist/fcore.js +1 -1
- package/dist/index.js +1 -1
- package/dist/migrations/cli.js +1 -1
- package/dist/migrations/runner.js +1 -1
- package/dist/modules/auth/index.js +1 -1
- package/dist/modules/auth/route.js +1 -1
- package/dist/modules/auth/schema.js +1 -1
- package/dist/modules/auth/services/get-current-user.js +1 -1
- package/dist/modules/auth/services/login.js +1 -1
- package/dist/modules/auth/services/logout.js +1 -1
- package/dist/modules/auth/services/verify-two-factor.js +1 -1
- package/dist/modules/auth/services/verifyPassword.js +1 -1
- package/dist/modules/file/index.js +1 -1
- package/dist/modules/file/route.js +1 -1
- package/dist/modules/file/schema.js +1 -1
- package/dist/modules/file/services/get-file.js +1 -1
- package/dist/modules/file/services/resize-file.js +1 -1
- package/dist/modules/file/services/upload-file.js +1 -1
- package/dist/modules/resource/index.js +1 -1
- package/dist/modules/resource/route.js +1 -1
- package/dist/modules/resource/schema.js +1 -1
- package/dist/modules/resource/services/add-note.js +1 -1
- package/dist/modules/resource/services/add-resource-file.js +1 -1
- package/dist/modules/resource/services/create-resource-relation.js +1 -1
- package/dist/modules/resource/services/create-resource.js +1 -1
- package/dist/modules/resource/services/delete-resource-relation.js +1 -1
- package/dist/modules/resource/services/delete-resource.js +1 -1
- package/dist/modules/resource/services/export-resource.js +1 -1
- package/dist/modules/resource/services/get-resource.js +1 -1
- package/dist/modules/resource/services/list-children.js +1 -1
- package/dist/modules/resource/services/list-resource-relation.js +1 -1
- package/dist/modules/resource/services/list-resources.js +1 -1
- package/dist/modules/resource/services/search-resource.js +1 -1
- package/dist/modules/resource/services/suggest-resource.d.ts +7 -4
- package/dist/modules/resource/services/suggest-resource.d.ts.map +1 -1
- package/dist/modules/resource/services/suggest-resource.js +1 -1
- package/dist/modules/resource/services/update-resource.js +1 -1
- package/dist/modules/resource/services/upload-resource-file.js +1 -1
- package/dist/modules/system/index.js +1 -1
- package/dist/modules/system/route.js +1 -1
- package/dist/modules/system/schema.js +1 -1
- package/dist/modules/system/services/check-system.js +1 -1
- package/dist/modules/system/services/get-api-list.js +1 -1
- package/dist/modules/system/services/get-audit-log.js +1 -1
- package/dist/modules/system/services/get-dictionary.js +1 -1
- package/dist/modules/system/services/get-system-log.js +1 -1
- package/dist/modules/system/services/get-system-settings.js +1 -1
- package/dist/modules/system/services/list-dictionaries.js +1 -1
- package/dist/modules/system/services/update-system-settings.js +1 -1
- package/dist/modules/utils/get-user-permissions.js +1 -1
- package/dist/modules/utils/require-admin.js +1 -1
- package/dist/modules/utils/safe-user.js +1 -1
- package/dist/modules/utils/unsupported.js +1 -1
- package/dist/plugins/audit/audit.js +1 -1
- package/dist/plugins/audit/index.js +1 -1
- package/dist/plugins/audit/services/write-audit.js +1 -1
- package/dist/plugins/auth/index.js +1 -1
- package/dist/plugins/dictionary.js +1 -1
- package/dist/plugins/file.js +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/logger/index.js +1 -1
- package/dist/plugins/logger/transport.js +1 -1
- package/dist/plugins/pg.js +1 -1
- package/dist/plugins/redis.js +1 -1
- package/dist/plugins/resource/index.js +1 -1
- package/dist/plugins/resource/resource.js +1 -1
- package/dist/plugins/resource/resource.registry.js +1 -1
- package/dist/plugins/resource/resource.types.d.ts +8 -0
- package/dist/plugins/resource/resource.types.d.ts.map +1 -1
- package/dist/plugins/resource/services/create.d.ts.map +1 -1
- package/dist/plugins/resource/services/create.js +1 -1
- package/dist/plugins/resource/services/delete.js +1 -1
- package/dist/plugins/resource/services/find-one.js +1 -1
- package/dist/plugins/resource/services/find.d.ts.map +1 -1
- package/dist/plugins/resource/services/find.js +1 -1
- package/dist/plugins/resource/services/update.d.ts.map +1 -1
- package/dist/plugins/resource/services/update.js +1 -1
- package/dist/plugins/resource/utils/fields.d.ts +8 -1
- package/dist/plugins/resource/utils/fields.d.ts.map +1 -1
- package/dist/plugins/resource/utils/fields.js +1 -1
- package/dist/plugins/resource/utils/filters.js +1 -1
- package/dist/plugins/resource/utils/permissions.d.ts.map +1 -1
- package/dist/plugins/resource/utils/permissions.js +1 -1
- package/dist/plugins/resource/utils/sort.js +1 -1
- package/dist/plugins/resource/utils/sql.js +1 -1
- package/dist/shared/getIP.js +1 -1
- package/package.json +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4201ba,_0x52e27c){var _0x27322e=_0x399e,_0x428830=_0x4201ba();while(!![]){try{var _0x2bc1b8=-parseInt(_0x27322e(0x124))/0x1*(parseInt(_0x27322e(0x129))/0x2)+parseInt(_0x27322e(0x125))/0x3*(-parseInt(_0x27322e(0x123))/0x4)+parseInt(_0x27322e(0x126))/0x5+-parseInt(_0x27322e(0x128))/0x6+parseInt(_0x27322e(0x12a))/0x7+-parseInt(_0x27322e(0x127))/0x8+parseInt(_0x27322e(0x122))/0x9;if(_0x2bc1b8===_0x52e27c)break;else _0x428830['push'](_0x428830['shift']());}catch(_0x33fb17){_0x428830['push'](_0x428830['shift']());}}}(_0x413b,0x68dd5));function _0x399e(_0xe28f87,_0x18f1d9){_0xe28f87=_0xe28f87-0x122;var _0x413ba4=_0x413b();var _0x399e50=_0x413ba4[_0xe28f87];return _0x399e50;}export*from'./route.js';export*from'./services/get-system-settings.js';export*from'./services/update-system-settings.js';export*from'./services/get-system-log.js';export*from'./services/get-audit-log.js';export*from'./services/check-system.js';export*from'./services/get-api-list.js';function _0x413b(){var _0x3ebb46=['18827577kFYFMI','8xPvnpj','15226oWTVgZ','849795GHFmGG','95145RRfiVf','4583864UiipoT','4328670WQLaAF','38JCEhtq','3281565tSGwzt'];_0x413b=function(){return _0x3ebb46;};return _0x413b();}export*from'./services/list-dictionaries.js';export*from'./services/get-dictionary.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5891bf=_0x90f9;(function(_0xd617c6,_0xc27c6e){const _0x571202=_0x90f9,_0x5a52e7=_0xd617c6();while(!![]){try{const _0xefef18=parseInt(_0x571202(0x9a))/0x1*(-parseInt(_0x571202(0xc6))/0x2)+parseInt(_0x571202(0xb3))/0x3+-parseInt(_0x571202(0xd6))/0x4+-parseInt(_0x571202(0xce))/0x5+parseInt(_0x571202(0xe0))/0x6+-parseInt(_0x571202(0x9c))/0x7+-parseInt(_0x571202(0xaa))/0x8*(-parseInt(_0x571202(0x9b))/0x9);if(_0xefef18===_0xc27c6e)break;else _0x5a52e7['push'](_0x5a52e7['shift']());}catch(_0xed1b37){_0x5a52e7['push'](_0x5a52e7['shift']());}}}(_0x3557,0x43209));import{getSystemSettings}from'./services/get-system-settings.js';import{updateSystemSettings}from'./services/update-system-settings.js';function _0x90f9(_0xb751f1,_0x453ce5){_0xb751f1=_0xb751f1-0x93;const _0x3557c3=_0x3557();let _0x90f9fe=_0x3557c3[_0xb751f1];return _0x90f9fe;}import{getAuditLog}from'./services/get-audit-log.js';import{checkSystem}from'./services/check-system.js';import{getApiList}from'./services/get-api-list.js';function _0x3557(){const _0x2503bf=['List\x20APIs','lWUrg','settings','MPgyA','gtAkB','/api/system/check','/api/system/audit/','admin','Get\x20platform\x20dictionary','system:settings:update','logger','Checks\x20the\x20availability\x20of\x20system\x20dependencies.','FDdby','17858hShFbZ','213813SUksJy','3444854gOwvvk','/api/dictionaries','Get\x20system\x20settings','summary','post','rWXvs','trrRV','SLFzz','Get\x20system\x20log','system:api:read','fCnsG','tLluZ','Returns\x20system\x20settings\x20as\x20nested\x20JSON.','hyWfY','384UMICNf','Returns\x20a\x20registered\x20platform\x20dictionary\x20by\x20name.','get','yipGP','iXIkX','system:check','/api/dictionaries/:name','description','access','1055163bcJgsG','user','Returns\x20system\x20logger\x20entries\x20for\x20the\x20requested\x20path.','jAGGk','dgkrD','system:settings:read','Updates\x20system\x20settings\x20using\x20flat\x20dot-notation\x20keys.','eWBMS','iTCKw','vkyOS','fcore','Returns\x20the\x20list\x20of\x20registered\x20platform\x20APIs.','/api/system/api-list','OewIw','JVPzK','params','dictionaryName','yUEJa','FVRMb','32IVedBN','system','FVUZD','audit:read','permissions','system:logs:read','Update\x20system\x20settings','Returns\x20the\x20system\x20audit\x20log\x20entries.','1903690oKmdTV','query','body','PamjZ','tags','List\x20platform\x20dictionaries','ORNfV','Returns\x20all\x20available\x20dictionaries\x20registered\x20by\x20the\x20platform.','1984788XrxoZL','Check\x20system\x20health','rXNbU','Get\x20audit\x20log','schema','/api/system/settings','khIZC','WeOSS','/api/system/logger/*','split','2626086yvRoVa','2|5|1|4|6|3|0|7','rDXns'];_0x3557=function(){return _0x2503bf;};return _0x3557();}import{getSystemLog}from'./services/get-system-log.js';import{listDictionaries}from'./services/list-dictionaries.js';import{getDictionary}from'./services/get-dictionary.js';import{systemSchemas}from'./schema.js';const u=_0x5cf289=>_0x5cf289[_0x5891bf(0xb4)];export function systemRoutes(_0x369a22){const _0x24d22e=_0x5891bf,_0x231f1e={};_0x231f1e[_0x24d22e(0xa7)]=_0x24d22e(0xe1),_0x231f1e[_0x24d22e(0xe7)]=_0x24d22e(0xe8),_0x231f1e[_0x24d22e(0xe4)]=_0x24d22e(0xbd),_0x231f1e[_0x24d22e(0xad)]=_0x24d22e(0xd7),_0x231f1e[_0x24d22e(0xb6)]=_0x24d22e(0x98),_0x231f1e[_0x24d22e(0xd1)]=_0x24d22e(0xaf),_0x231f1e[_0x24d22e(0xd4)]=_0x24d22e(0xdb),_0x231f1e[_0x24d22e(0xd8)]=_0x24d22e(0xc7),_0x231f1e[_0x24d22e(0xb7)]=_0x24d22e(0x9e),_0x231f1e[_0x24d22e(0xc5)]=_0x24d22e(0xa8),_0x231f1e[_0x24d22e(0xc4)]=_0x24d22e(0x94),_0x231f1e[_0x24d22e(0xc1)]=_0x24d22e(0xb8),_0x231f1e[_0x24d22e(0xa1)]=_0x24d22e(0x9d),_0x231f1e[_0x24d22e(0xa6)]=_0x24d22e(0xd5),_0x231f1e[_0x24d22e(0xc8)]=_0x24d22e(0xd9),_0x231f1e[_0x24d22e(0xba)]=_0x24d22e(0xcc),_0x231f1e[_0x24d22e(0xbc)]=_0x24d22e(0x96),_0x231f1e[_0x24d22e(0x99)]=_0x24d22e(0xb0),_0x231f1e[_0x24d22e(0xdc)]=_0x24d22e(0x95),_0x231f1e[_0x24d22e(0xa2)]=_0x24d22e(0xab),_0x231f1e[_0x24d22e(0xa9)]=_0x24d22e(0xde),_0x231f1e[_0x24d22e(0xa3)]=_0x24d22e(0xa4),_0x231f1e[_0x24d22e(0xae)]=_0x24d22e(0xb5),_0x231f1e[_0x24d22e(0xe6)]=_0x24d22e(0xcb),_0x231f1e[_0x24d22e(0xc0)]=_0x24d22e(0xbf),_0x231f1e[_0x24d22e(0xdd)]=_0x24d22e(0xe3),_0x231f1e[_0x24d22e(0xe2)]=_0x24d22e(0xbe),_0x231f1e[_0x24d22e(0xbb)]=_0x24d22e(0xa5);const _0x13a15b=_0x231f1e;return async _0x33b410=>{const _0x1b3200=_0x24d22e,_0x9ee801=_0x13a15b[_0x1b3200(0xa7)][_0x1b3200(0xdf)]('|');let _0x127676=0x0;while(!![]){switch(_0x9ee801[_0x127676++]){case'0':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xe7)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x1b3200(0xc7)],'summary':_0x13a15b[_0x1b3200(0xad)],'description':_0x13a15b[_0x1b3200(0xb6)],'access':_0x1b3200(0x94),'permissions':[_0x13a15b[_0x1b3200(0xd1)]]}},async _0x1d9201=>checkSystem({'user':u(_0x1d9201)},_0x369a22));continue;case'1':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xd4)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],'summary':_0x13a15b[_0x1b3200(0xb7)],'description':_0x13a15b[_0x1b3200(0xc5)],'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[_0x13a15b[_0x1b3200(0xc1)]]}},async _0x5cdf88=>getSystemSettings({..._0x5cdf88[_0x1b3200(0xc2)],'user':u(_0x5cdf88)},_0x369a22));continue;case'2':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xa1)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],'summary':_0x1b3200(0xd3),'description':_0x13a15b[_0x1b3200(0xa6)],'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[]}},async _0xd6a30d=>listDictionaries({'user':u(_0xd6a30d)},_0x369a22));continue;case'3':const _0x58f4c4={};_0x58f4c4[_0x1b3200(0xd2)]=[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],_0x58f4c4[_0x1b3200(0x9f)]=_0x13a15b[_0x1b3200(0xc8)],_0x58f4c4[_0x1b3200(0xb1)]=_0x1b3200(0xcd),_0x58f4c4[_0x1b3200(0xb2)]=_0x1b3200(0x94),_0x58f4c4[_0x1b3200(0xca)]=[_0x1b3200(0xc9)];const _0x4b6fd6={};_0x4b6fd6[_0x1b3200(0xda)]=_0x58f4c4,_0x33b410[_0x1b3200(0xac)](_0x1b3200(0x93),_0x4b6fd6,async _0x49e793=>getAuditLog({..._0x49e793[_0x1b3200(0xcf)],'user':u(_0x49e793)},_0x369a22));continue;case'4':_0x33b410[_0x1b3200(0xa0)](_0x13a15b[_0x1b3200(0xd4)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],'summary':_0x13a15b[_0x1b3200(0xba)],'description':_0x1b3200(0xb9),'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[_0x13a15b[_0x1b3200(0xbc)]],'body':systemSchemas[_0x1b3200(0xe5)]}},async _0x5d15c6=>updateSystemSettings({..._0x5d15c6[_0x1b3200(0xc2)],'patch':_0x5d15c6[_0x1b3200(0xd0)],'user':u(_0x5d15c6)},_0x369a22));continue;case'5':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0x99)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x1b3200(0xc7)],'summary':_0x13a15b[_0x1b3200(0xdc)],'description':_0x13a15b[_0x1b3200(0xa2)],'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[],'params':systemSchemas[_0x1b3200(0xc3)]}},async _0x24864f=>getDictionary({..._0x24864f[_0x1b3200(0xc2)],'user':u(_0x24864f)},_0x369a22));continue;case'6':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xa9)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x13a15b[_0x1b3200(0xd8)]],'summary':_0x13a15b[_0x1b3200(0xa3)],'description':_0x13a15b[_0x1b3200(0xae)],'access':_0x1b3200(0x94),'permissions':[_0x13a15b[_0x1b3200(0xe6)]],'params':systemSchemas[_0x1b3200(0x97)]}},async _0xd4facf=>getSystemLog({..._0xd4facf[_0x1b3200(0xcf)],..._0xd4facf[_0x1b3200(0xc2)],'user':u(_0xd4facf)},_0x369a22));continue;case'7':_0x33b410[_0x1b3200(0xac)](_0x13a15b[_0x1b3200(0xc0)],{'schema':{'tags':[_0x13a15b[_0x1b3200(0xe4)],_0x1b3200(0xc7)],'summary':_0x13a15b[_0x1b3200(0xdd)],'description':_0x13a15b[_0x1b3200(0xe2)],'access':_0x13a15b[_0x1b3200(0xc4)],'permissions':[_0x13a15b[_0x1b3200(0xbb)]]}},async _0x4ed74c=>getApiList({'user':u(_0x4ed74c)},_0x369a22));continue;}break;}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9f464=_0x2540;(function(_0x3dd861,_0x1074a1){const _0x5ababf=_0x2540,_0xebd154=_0x3dd861();while(!![]){try{const _0x1062d8=-parseInt(_0x5ababf(0xed))/0x1+-parseInt(_0x5ababf(0xe6))/0x2*(-parseInt(_0x5ababf(0xe9))/0x3)+-parseInt(_0x5ababf(0xdf))/0x4*(parseInt(_0x5ababf(0xe7))/0x5)+-parseInt(_0x5ababf(0xdd))/0x6+parseInt(_0x5ababf(0xeb))/0x7+parseInt(_0x5ababf(0xe2))/0x8+-parseInt(_0x5ababf(0xdb))/0x9*(-parseInt(_0x5ababf(0xda))/0xa);if(_0x1062d8===_0x1074a1)break;else _0xebd154['push'](_0xebd154['shift']());}catch(_0x2b2289){_0xebd154['push'](_0xebd154['shift']());}}}(_0x1935,0x1dbba));import{Type}from'@sinclair/typebox';const _0x5d22d2={};function _0x2540(_0x1b8bcf,_0x2119a3){_0x1b8bcf=_0x1b8bcf-0xda;const _0x1935b5=_0x1935();let _0x254050=_0x1935b5[_0x1b8bcf];return _0x254050;}_0x5d22d2[_0x9f464(0xdc)]=0x1,_0x5d22d2[_0x9f464(0xe4)]=0x80,_0x5d22d2[_0x9f464(0xe1)]=_0x9f464(0xe5);export const identifier=Type[_0x9f464(0xe8)](_0x5d22d2);const _0x4f0531={};function _0x1935(){const _0x95ac25=['Optional','maxLength','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','2WKqNAS','285xinzvu','String','197931egtUWA','Object','524125swOUJx','Unknown','167248hFtUHg','10niGHzp','3255849RHqfFP','minLength','912006xsOvUO','name','4516sdwdzt','Record','pattern','22200owIqvD'];_0x1935=function(){return _0x95ac25;};return _0x1935();}_0x4f0531[_0x9f464(0xde)]=identifier;const _0x479737={};_0x479737[_0x9f464(0xdc)]=0x1;const _0x473b22={};_0x473b22[_0x9f464(0xdc)]=0x1;export const systemSchemas={'dictionaryName':Type[_0x9f464(0xea)](_0x4f0531),'settingsEntity':Type[_0x9f464(0xea)]({'entity':Type[_0x9f464(0xe3)](identifier)}),'settings':Type[_0x9f464(0xe0)](Type[_0x9f464(0xe8)](_0x479737),Type[_0x9f464(0xec)]()),'logger':Type[_0x9f464(0xea)]({'*':Type[_0x9f464(0xe3)](Type[_0x9f464(0xe8)](_0x473b22))})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x15f7(_0x113c82,_0x594863){_0x113c82=_0x113c82-0x1be;const _0x4dcfc7=_0x4dcf();let _0x15f75d=_0x4dcfc7[_0x113c82];return _0x15f75d;}(function(_0x4d0ef0,_0x570269){const _0x5bbb9b=_0x15f7,_0x30fde2=_0x4d0ef0();while(!![]){try{const _0x3ca0c0=parseInt(_0x5bbb9b(0x1c8))/0x1+parseInt(_0x5bbb9b(0x1c7))/0x2+-parseInt(_0x5bbb9b(0x1d7))/0x3+parseInt(_0x5bbb9b(0x1cc))/0x4*(parseInt(_0x5bbb9b(0x1be))/0x5)+parseInt(_0x5bbb9b(0x1c0))/0x6*(-parseInt(_0x5bbb9b(0x1c3))/0x7)+parseInt(_0x5bbb9b(0x1bf))/0x8*(parseInt(_0x5bbb9b(0x1d8))/0x9)+parseInt(_0x5bbb9b(0x1d3))/0xa*(-parseInt(_0x5bbb9b(0x1c2))/0xb);if(_0x3ca0c0===_0x570269)break;else _0x30fde2['push'](_0x30fde2['shift']());}catch(_0x36e512){_0x30fde2['push'](_0x30fde2['shift']());}}}(_0x4dcf,0xe5002));import{requireAdmin}from'../../utils/require-admin.js';export async function checkSystem(_0x4d1c09,_0x11dd3c){const _0x3d6bce=_0x15f7,_0x47b179={'sDFAT':function(_0x1e5a45,_0x1738fb,_0x3f8e62){return _0x1e5a45(_0x1738fb,_0x3f8e62);},'hTHMZ':_0x3d6bce(0x1ce),'aGgNE':function(_0x2606ed,_0xf91ab9){return _0x2606ed===_0xf91ab9;},'cDTeY':_0x3d6bce(0x1cd),'cRJlQ':function(_0x3a1880,_0x50810d){return _0x3a1880===_0x50810d;},'QXDzo':_0x3d6bce(0x1d6)};_0x47b179[_0x3d6bce(0x1d0)](requireAdmin,_0x4d1c09[_0x3d6bce(0x1ca)],_0x3d6bce(0x1d2));const [_0x3ce95b,_0x381e7f]=await Promise[_0x3d6bce(0x1c4)]([_0x11dd3c['pg'][_0x3d6bce(0x1cb)](_0x47b179[_0x3d6bce(0x1c1)]),_0x11dd3c[_0x3d6bce(0x1c5)][_0x3d6bce(0x1d1)]()]);return{'status':_0x47b179[_0x3d6bce(0x1c9)](_0x3ce95b[_0x3d6bce(0x1cf)],_0x47b179[_0x3d6bce(0x1c6)])&&_0x47b179[_0x3d6bce(0x1d4)](_0x381e7f[_0x3d6bce(0x1cf)],_0x47b179[_0x3d6bce(0x1c6)])?'ok':_0x47b179[_0x3d6bce(0x1d5)],'pg':_0x3ce95b[_0x3d6bce(0x1cf)],'redis':_0x381e7f[_0x3d6bce(0x1cf)]};}function _0x4dcf(){const _0x1bae6a=['6kXkbOm','hTHMZ','2011427tvixpm','10554621JZnVeV','allSettled','redis','cDTeY','2814006fGfmRP','1402766UagpIZ','aGgNE','user','query','788AWjQtS','fulfilled','SELECT\x201','status','sDFAT','ping','system:check','130GmqBkd','cRJlQ','QXDzo','degraded','623502EVwaHi','1900116LQQRdQ','40295rEhOgZ','24HFVmBE'];_0x4dcf=function(){return _0x1bae6a;};return _0x4dcf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x3ebabb,_0x310972){var _0x37bfb4=_0x3e9e,_0x155fa2=_0x3ebabb();while(!![]){try{var _0xa89827=-parseInt(_0x37bfb4(0x1e0))/0x1+parseInt(_0x37bfb4(0x1d9))/0x2+parseInt(_0x37bfb4(0x1db))/0x3*(parseInt(_0x37bfb4(0x1e2))/0x4)+-parseInt(_0x37bfb4(0x1d3))/0x5*(-parseInt(_0x37bfb4(0x1d4))/0x6)+parseInt(_0x37bfb4(0x1de))/0x7*(parseInt(_0x37bfb4(0x1cd))/0x8)+parseInt(_0x37bfb4(0x1cc))/0x9*(-parseInt(_0x37bfb4(0x1c8))/0xa)+-parseInt(_0x37bfb4(0x1c9))/0xb;if(_0xa89827===_0x310972)break;else _0x155fa2['push'](_0x155fa2['shift']());}catch(_0x4578f2){_0x155fa2['push'](_0x155fa2['shift']());}}}(_0x3acb,0x2343b));function _0x3acb(){var _0x748eec=['/api/user','547858pAJMCF','user','33hbPFDF','/api/logout','ASUxo','35VSMdCD','system:api:read','122205jhCpTS','jabkv','87756JQXlGr','pYvBZ','1390DHUPUn','2216500dYLhKN','/files/*','/api/templates','14895nRuXKw','17504BVcFvj','/api/resource/:resource/:id','/api/login','cOsqz','/api/resource/:resource','/api/system/check','20975Uejnvz','246nKGkTc','ODmsZ','/api/dictionaries','FMAlZ'];_0x3acb=function(){return _0x748eec;};return _0x3acb();}function _0x3e9e(_0x43d833,_0x59198f){_0x43d833=_0x43d833-0x1c7;var _0x3acb29=_0x3acb();var _0x3e9e91=_0x3acb29[_0x43d833];return _0x3e9e91;}import{requireAdmin}from'../../utils/require-admin.js';export async function getApiList(_0x12d939,_0x51c333){var _0x91ac79=_0x3e9e,_0x14db73={'ASUxo':function(_0x35a049,_0x36951d,_0x52a0af){return _0x35a049(_0x36951d,_0x52a0af);},'ODmsZ':_0x91ac79(0x1df),'pYvBZ':_0x91ac79(0x1ce),'cOsqz':_0x91ac79(0x1ca),'jabkv':_0x91ac79(0x1cb),'FMAlZ':_0x91ac79(0x1d2)};return _0x14db73[_0x91ac79(0x1dd)](requireAdmin,_0x12d939[_0x91ac79(0x1da)],_0x14db73[_0x91ac79(0x1d5)]),[_0x91ac79(0x1cf),_0x91ac79(0x1dc),_0x91ac79(0x1d8),_0x91ac79(0x1d1),_0x14db73[_0x91ac79(0x1c7)],_0x91ac79(0x1d6),_0x14db73[_0x91ac79(0x1d0)],_0x14db73[_0x91ac79(0x1e1)],_0x14db73[_0x91ac79(0x1d7)]];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x38ee(){const _0x191119=['max','295dISJpd','query','audit:read','limit','rows','11046reWYPl','3798192TvDXlC','2512OxiMmr','page','5556803ulNOwM','user','1179253FswfvS','KXjcM','98308cokpUd','DjTAR','6zQfNWP','2946390pLKRvI','min','156wRvaRp','27639pYCKyg','SELECT\x20*\x20FROM\x20admin.audit_log\x20ORDER\x20BY\x20id\x20DESC\x20LIMIT\x20$1\x20OFFSET\x20$2','CPXRn','11laZsAA','945TrIZbo','JzdGq'];_0x38ee=function(){return _0x191119;};return _0x38ee();}(function(_0x76e224,_0x5c61e8){const _0x275523=_0x3fb3,_0x1940cd=_0x76e224();while(!![]){try{const _0x2c52bb=-parseInt(_0x275523(0x18b))/0x1+-parseInt(_0x275523(0x19f))/0x2*(parseInt(_0x275523(0x197))/0x3)+-parseInt(_0x275523(0x18d))/0x4*(parseInt(_0x275523(0x19a))/0x5)+-parseInt(_0x275523(0x18f))/0x6*(-parseInt(_0x275523(0x1a3))/0x7)+parseInt(_0x275523(0x1a1))/0x8*(parseInt(_0x275523(0x193))/0x9)+parseInt(_0x275523(0x190))/0xa*(-parseInt(_0x275523(0x196))/0xb)+parseInt(_0x275523(0x1a0))/0xc*(parseInt(_0x275523(0x192))/0xd);if(_0x2c52bb===_0x5c61e8)break;else _0x1940cd['push'](_0x1940cd['shift']());}catch(_0x2f26ca){_0x1940cd['push'](_0x1940cd['shift']());}}}(_0x38ee,0xd9edb));import{requireAdmin}from'../../utils/require-admin.js';function _0x3fb3(_0x24324c,_0x333e78){_0x24324c=_0x24324c-0x18a;const _0x38eed3=_0x38ee();let _0x3fb32c=_0x38eed3[_0x24324c];return _0x3fb32c;}export async function getAuditLog(_0x205afc,_0x3d8bcf){const _0x4cf5eb=_0x3fb3,_0x2b1a60={'JzdGq':function(_0x186ceb,_0x2ecdef,_0xb6e4da){return _0x186ceb(_0x2ecdef,_0xb6e4da);},'DjTAR':_0x4cf5eb(0x19c),'KXjcM':function(_0x330220,_0x6165d2){return _0x330220*_0x6165d2;},'CPXRn':_0x4cf5eb(0x194)};_0x2b1a60[_0x4cf5eb(0x198)](requireAdmin,_0x205afc[_0x4cf5eb(0x18a)],_0x2b1a60[_0x4cf5eb(0x18e)]);const _0x4a46ce=Math[_0x4cf5eb(0x191)](Math[_0x4cf5eb(0x199)](_0x205afc[_0x4cf5eb(0x19d)]??0x32,0x1),0xc8),_0x482f9a=_0x2b1a60[_0x4cf5eb(0x18c)](Math[_0x4cf5eb(0x199)]((_0x205afc[_0x4cf5eb(0x1a2)]??0x1)-0x1,0x0),_0x4a46ce),_0x16e56d=await _0x3d8bcf['pg'][_0x4cf5eb(0x19b)](_0x2b1a60[_0x4cf5eb(0x195)],[_0x4a46ce,_0x482f9a]),_0x1d0c17={};return _0x1d0c17[_0x4cf5eb(0x19e)]=_0x16e56d[_0x4cf5eb(0x19e)],_0x1d0c17[_0x4cf5eb(0x1a2)]=_0x205afc[_0x4cf5eb(0x1a2)]??0x1,_0x1d0c17[_0x4cf5eb(0x19d)]=_0x4a46ce,_0x1d0c17;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4deb(){var _0x4e5f75=['21714bccOSZ','dictionary','name','get','6393uIrKGY','37345UhwvjM','16YzrQHR','11MvAqSv','2587VxLSgT','2379937ZPFQoM','11cTpuDq','51982HhxSBl','60Qxwlgr','13256340LOAYlU','1732rEWBSA','12NAipak','1676619TBMbmn'];_0x4deb=function(){return _0x4e5f75;};return _0x4deb();}(function(_0x5ef49e,_0x589cfd){var _0x16a472=_0x3dd2,_0x30b98b=_0x5ef49e();while(!![]){try{var _0x47a28c=-parseInt(_0x16a472(0x8d))/0x1*(-parseInt(_0x16a472(0x97))/0x2)+-parseInt(_0x16a472(0x9b))/0x3*(parseInt(_0x16a472(0x94))/0x4)+parseInt(_0x16a472(0x8b))/0x5*(-parseInt(_0x16a472(0x95))/0x6)+parseInt(_0x16a472(0x8f))/0x7*(parseInt(_0x16a472(0x8c))/0x8)+-parseInt(_0x16a472(0x96))/0x9*(parseInt(_0x16a472(0x92))/0xa)+-parseInt(_0x16a472(0x90))/0xb*(-parseInt(_0x16a472(0x93))/0xc)+-parseInt(_0x16a472(0x8e))/0xd*(-parseInt(_0x16a472(0x91))/0xe);if(_0x47a28c===_0x589cfd)break;else _0x30b98b['push'](_0x30b98b['shift']());}catch(_0x16d885){_0x30b98b['push'](_0x30b98b['shift']());}}}(_0x4deb,0x8f740));function _0x3dd2(_0xe5a67c,_0x58abf1){_0xe5a67c=_0xe5a67c-0x8b;var _0x4debda=_0x4deb();var _0x3dd231=_0x4debda[_0xe5a67c];return _0x3dd231;}export async function getDictionary(_0x220001,_0x5d4163){var _0x56f4dd=_0x3dd2;return _0x5d4163[_0x56f4dd(0x98)][_0x56f4dd(0x9a)](_0x220001[_0x56f4dd(0x99)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5c5a(){var _0x4239e3=['9710408FvaWYk','2zTKOAQ','9052590cRFTLh','7hASbLb','23874895OWFVFI','282231wtAEHK','RbJXF','admTi','293584FjFgeh','File\x20logger\x20backend','9QbdmRs','1986456yeLAKz','373645gelowV','28ywxjOx'];_0x5c5a=function(){return _0x4239e3;};return _0x5c5a();}function _0x1202(_0x3fecfb,_0x5429d3){_0x3fecfb=_0x3fecfb-0x1b6;var _0x5c5ac4=_0x5c5a();var _0x120286=_0x5c5ac4[_0x3fecfb];return _0x120286;}(function(_0x557bb9,_0x48059e){var _0x5234f8=_0x1202,_0x36b52c=_0x557bb9();while(!![]){try{var _0x5c474e=parseInt(_0x5234f8(0x1bd))/0x1+parseInt(_0x5234f8(0x1b6))/0x2*(parseInt(_0x5234f8(0x1ba))/0x3)+-parseInt(_0x5234f8(0x1c2))/0x4*(-parseInt(_0x5234f8(0x1c1))/0x5)+-parseInt(_0x5234f8(0x1c0))/0x6+parseInt(_0x5234f8(0x1b8))/0x7*(-parseInt(_0x5234f8(0x1c3))/0x8)+-parseInt(_0x5234f8(0x1bf))/0x9*(parseInt(_0x5234f8(0x1b7))/0xa)+parseInt(_0x5234f8(0x1b9))/0xb;if(_0x5c474e===_0x48059e)break;else _0x36b52c['push'](_0x36b52c['shift']());}catch(_0x200b81){_0x36b52c['push'](_0x36b52c['shift']());}}}(_0x5c5a,0x9a121));import{unsupported}from'../../utils/unsupported.js';export async function getSystemLog(_0x1d23a4,_0x29e45d){var _0x3131ca=_0x1202,_0x11a329={'admTi':function(_0x41114f,_0x4af3c7){return _0x41114f(_0x4af3c7);},'RbJXF':_0x3131ca(0x1be)};return _0x11a329[_0x3131ca(0x1bc)](unsupported,_0x11a329[_0x3131ca(0x1bb)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x31e350,_0x3d0dae){const _0x56d259=_0x2213,_0x559606=_0x31e350();while(!![]){try{const _0x5f0a5d=parseInt(_0x56d259(0x12b))/0x1*(-parseInt(_0x56d259(0x132))/0x2)+-parseInt(_0x56d259(0x139))/0x3*(-parseInt(_0x56d259(0x13a))/0x4)+parseInt(_0x56d259(0x137))/0x5+-parseInt(_0x56d259(0x131))/0x6+parseInt(_0x56d259(0x12a))/0x7+parseInt(_0x56d259(0x135))/0x8*(-parseInt(_0x56d259(0x13f))/0x9)+-parseInt(_0x56d259(0x130))/0xa*(parseInt(_0x56d259(0x133))/0xb);if(_0x5f0a5d===_0x3d0dae)break;else _0x559606['push'](_0x559606['shift']());}catch(_0x40c830){_0x559606['push'](_0x559606['shift']());}}}(_0x5006,0x6cb55));import{requireAdmin}from'../../utils/require-admin.js';export async function getSystemSettings(_0x3cff9c,_0x3e99f9){const _0x2f8c7b=_0x2213,_0x2c3df4={'ZySQh':function(_0x1b0660,_0x919c22){return _0x1b0660(_0x919c22);},'sGbaj':function(_0x532bd8,_0x321bc8,_0x47e8e8){return _0x532bd8(_0x321bc8,_0x47e8e8);}};_0x2c3df4[_0x2f8c7b(0x129)](requireAdmin,_0x3cff9c[_0x2f8c7b(0x13c)],_0x2f8c7b(0x138));const _0x53a50b=await _0x3e99f9['pg'][_0x2f8c7b(0x12c)](_0x2f8c7b(0x13e));return _0x53a50b[_0x2f8c7b(0x134)][_0x2f8c7b(0x136)]((_0x2c96c9,_0x488cce)=>{const _0x5619d0=_0x2f8c7b,_0x446535=_0x2c3df4[_0x5619d0(0x12f)](String,_0x488cce[_0x5619d0(0x12e)])[_0x5619d0(0x13b)]('.');let _0x577f0d=_0x2c96c9;for(const _0x190888 of _0x446535[_0x5619d0(0x13d)](0x0,-0x1)){_0x577f0d[_0x190888]??={},_0x577f0d=_0x577f0d[_0x190888];}return _0x577f0d[_0x446535['at'](-0x1)]=_0x488cce[_0x5619d0(0x12d)],_0x2c96c9;},{});}function _0x2213(_0x3bcdc8,_0x55e3f9){_0x3bcdc8=_0x3bcdc8-0x129;const _0x500699=_0x5006();let _0x22134f=_0x500699[_0x3bcdc8];return _0x22134f;}function _0x5006(){const _0x8bcaad=['ZySQh','126920caRGww','3917400dElPZV','261666PeRFGJ','44fywZyH','rows','8TSdOsd','reduce','252900pwgOFS','system:settings:read','114dNlvws','90564rFrECO','split','user','slice','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20key,\x20value\x0a\x20\x20\x20\x20\x20\x20FROM\x20admin.settings\x0a\x20\x20\x20\x20\x20\x20WHERE\x20resource\x20=\x20\x27system\x27\x20AND\x20resource_id\x20IS\x20NULL\x0a\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20key\x0a\x20\x20\x20\x20','3954294OdoIxT','sGbaj','5657386iXAvYe','1XSfGnj','query','value','key'];_0x5006=function(){return _0x8bcaad;};return _0x5006();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x397e82,_0x1a97c2){var _0x199900=_0x1409,_0x4a91ad=_0x397e82();while(!![]){try{var _0x2bee45=-parseInt(_0x199900(0xd9))/0x1*(parseInt(_0x199900(0xde))/0x2)+parseInt(_0x199900(0xda))/0x3*(-parseInt(_0x199900(0xdf))/0x4)+parseInt(_0x199900(0xd7))/0x5*(parseInt(_0x199900(0xdd))/0x6)+parseInt(_0x199900(0xe4))/0x7*(-parseInt(_0x199900(0xe0))/0x8)+parseInt(_0x199900(0xdc))/0x9+-parseInt(_0x199900(0xdb))/0xa+-parseInt(_0x199900(0xe1))/0xb*(-parseInt(_0x199900(0xe2))/0xc);if(_0x2bee45===_0x1a97c2)break;else _0x4a91ad['push'](_0x4a91ad['shift']());}catch(_0x10abbe){_0x4a91ad['push'](_0x4a91ad['shift']());}}}(_0x1ad2,0x3b4ee));function _0x1ad2(){var _0x17d3ba=['7YIwROZ','5OjsEJp','list','28031fVMvDn','18xdQhcF','146110lWHxQV','949248oDndKs','2773218fMAYOp','8mmtyJL','254824oxqpxJ','2473976QYhVOk','407iAzDUY','160044iuMhwB','dictionary'];_0x1ad2=function(){return _0x17d3ba;};return _0x1ad2();}function _0x1409(_0x2fc2ad,_0x148faf){_0x2fc2ad=_0x2fc2ad-0xd7;var _0x1ad20e=_0x1ad2();var _0x140963=_0x1ad20e[_0x2fc2ad];return _0x140963;}export async function listDictionaries(_0x1a9b7c,_0x35642e){var _0xf34856=_0x1409;return _0x35642e[_0xf34856(0xe3)][_0xf34856(0xd8)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4a76(_0x1e37f5,_0x3de284){_0x1e37f5=_0x1e37f5-0x100;const _0x25fd7c=_0x25fd();let _0x4a76fc=_0x25fd7c[_0x1e37f5];return _0x4a76fc;}(function(_0x488ea3,_0x293ad1){const _0x1c5306=_0x4a76,_0x2049e8=_0x488ea3();while(!![]){try{const _0x3381ff=-parseInt(_0x1c5306(0x10c))/0x1+-parseInt(_0x1c5306(0x10d))/0x2*(parseInt(_0x1c5306(0x10f))/0x3)+parseInt(_0x1c5306(0x103))/0x4*(-parseInt(_0x1c5306(0x10a))/0x5)+-parseInt(_0x1c5306(0x106))/0x6+-parseInt(_0x1c5306(0x10b))/0x7+-parseInt(_0x1c5306(0x10e))/0x8*(parseInt(_0x1c5306(0x102))/0x9)+parseInt(_0x1c5306(0x113))/0xa;if(_0x3381ff===_0x293ad1)break;else _0x2049e8['push'](_0x2049e8['shift']());}catch(_0x48d1bb){_0x2049e8['push'](_0x2049e8['shift']());}}}(_0x25fd,0x58ea3));function _0x25fd(){const _0x459b34=['length','2499024ehhlSD','query','entries','patch','3815hTlqKG','1806364qqCNlY','26531DfFJVb','218378HUhnlR','8nYdyAI','3nbIaSD','Settings\x20patch\x20is\x20empty','user','includes','21218620DhCITx','keys','Invalid\x20setting\x20key:\x20','otRKi','iXkBW','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.settings\x20(resource,\x20resource_id,\x20key,\x20value,\x20updated_by)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20(\x27system\x27,\x20NULL,\x20$1,\x20$2::jsonb,\x20$3)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(resource,\x20resource_id,\x20key)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DO\x20UPDATE\x20SET\x20value\x20=\x20EXCLUDED.value,\x20updated_by\x20=\x20EXCLUDED.updated_by,\x20updated_at\x20=\x20now()\x0a\x20\x20\x20\x20\x20\x20\x20\x20','system:settings:update','trim','success','3829491tNiVUY','2736sBNQth','stringify'];_0x25fd=function(){return _0x459b34;};return _0x25fd();}import{requireAdmin}from'../../utils/require-admin.js';import{ValidationError}from'../../../errors.js';export async function updateSystemSettings(_0x2cd5c7,_0x11223c){const _0x1b6aea=_0x4a76,_0x28e13b={'otRKi':function(_0x18d5ce,_0x209e10,_0xb76ddf){return _0x18d5ce(_0x209e10,_0xb76ddf);},'iXkBW':_0x1b6aea(0x110)};_0x28e13b[_0x1b6aea(0x116)](requireAdmin,_0x2cd5c7[_0x1b6aea(0x111)],_0x1b6aea(0x119));if(!Object[_0x1b6aea(0x114)](_0x2cd5c7[_0x1b6aea(0x109)])[_0x1b6aea(0x105)])throw new ValidationError(_0x28e13b[_0x1b6aea(0x117)]);for(const [_0x418a56,_0x3d9176]of Object[_0x1b6aea(0x108)](_0x2cd5c7[_0x1b6aea(0x109)])){if(!_0x418a56[_0x1b6aea(0x100)]()||_0x418a56[_0x1b6aea(0x112)]('..'))throw new ValidationError(_0x1b6aea(0x115)+_0x418a56);await _0x11223c['pg'][_0x1b6aea(0x107)](_0x1b6aea(0x118),[_0x418a56,JSON[_0x1b6aea(0x104)](_0x3d9176),_0x2cd5c7[_0x1b6aea(0x111)]['id']]);}const _0xac0bc2={};return _0xac0bc2[_0x1b6aea(0x101)]=!![],_0xac0bc2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x903c70,_0x1cf25d){const _0x5afac2=_0x20f3,_0x52cc65=_0x903c70();while(!![]){try{const _0x1edf9a=parseInt(_0x5afac2(0x1aa))/0x1+-parseInt(_0x5afac2(0x1a9))/0x2*(-parseInt(_0x5afac2(0x1b2))/0x3)+parseInt(_0x5afac2(0x1b0))/0x4*(-parseInt(_0x5afac2(0x1ac))/0x5)+parseInt(_0x5afac2(0x1b3))/0x6+-parseInt(_0x5afac2(0x1ae))/0x7*(parseInt(_0x5afac2(0x1a6))/0x8)+-parseInt(_0x5afac2(0x1a8))/0x9*(parseInt(_0x5afac2(0x1ad))/0xa)+parseInt(_0x5afac2(0x1a5))/0xb;if(_0x1edf9a===_0x1cf25d)break;else _0x52cc65['push'](_0x52cc65['shift']());}catch(_0x28108a){_0x52cc65['push'](_0x52cc65['shift']());}}}(_0x15bf,0xc9570));function _0x20f3(_0x4d0d1b,_0x569ebd){_0x4d0d1b=_0x4d0d1b-0x1a5;const _0x15bfb9=_0x15bf();let _0x20f346=_0x15bfb9[_0x4d0d1b];return _0x20f346;}function _0x15bf(){const _0x4f35b0=['3132xigyNR','44314QIYeQe','971266WeabYD','query','55JsCTTi','31890eAvIpC','7UMwwoX','rows','570820ApFWWg','flatMap','42PgxCLO','8064558tXswWC','\x0a\x20\x20\x20\x20\x20\x20SELECT\x20ra.actions\x0a\x20\x20\x20\x20\x20\x20FROM\x20admin.role_access\x20ra\x0a\x20\x20\x20\x20\x20\x20LEFT\x20JOIN\x20admin.user_roles\x20ur\x20ON\x20ur.role_id\x20=\x20ra.role_id\x0a\x20\x20\x20\x20\x20\x20WHERE\x20ra.user_uid\x20=\x20$1\x20OR\x20ur.user_uid\x20=\x20$1\x0a\x20\x20\x20\x20','12360579iejPXp','1960248JmnCDd','actions'];_0x15bf=function(){return _0x4f35b0;};return _0x15bf();}export async function getUserPermissions(_0x34b9ee,_0x53b14b){const _0x58e967=_0x20f3,_0x1196f6=await _0x34b9ee['pg'][_0x58e967(0x1ab)](_0x58e967(0x1b4),[_0x53b14b]);return[...new Set(_0x1196f6[_0x58e967(0x1af)][_0x58e967(0x1b1)](_0x1fc558=>_0x1fc558[_0x58e967(0x1a7)]??[]))];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5d1b(_0xd47bf0,_0x5a00e5){_0xd47bf0=_0xd47bf0-0x1df;var _0x398967=_0x3989();var _0x5d1b7e=_0x398967[_0xd47bf0];return _0x5d1b7e;}function _0x3989(){var _0x3e8210=['type','ptFpW','248856NBQSmS','KYmIr','20kBtnUE','User\x20required','499871uYdHtK','admin','icdQq','1096VMSnLq','ZvAGw','27357671QKxVCc','1940178XuqjRW','22890bitXxj','Admin\x20access\x20required','2902770BVhRvk','8973240RqTybq','238EZfZDE','6MTnObW'];_0x3989=function(){return _0x3e8210;};return _0x3989();}(function(_0x473f7,_0x3eec1c){var _0x1295d5=_0x5d1b,_0x4269f7=_0x473f7();while(!![]){try{var _0x5a6a7d=-parseInt(_0x1295d5(0x1e1))/0x1*(parseInt(_0x1295d5(0x1ed))/0x2)+-parseInt(_0x1295d5(0x1e7))/0x3+parseInt(_0x1295d5(0x1e4))/0x4*(-parseInt(_0x1295d5(0x1e8))/0x5)+parseInt(_0x1295d5(0x1f0))/0x6*(-parseInt(_0x1295d5(0x1ec))/0x7)+parseInt(_0x1295d5(0x1eb))/0x8+-parseInt(_0x1295d5(0x1ea))/0x9+-parseInt(_0x1295d5(0x1df))/0xa*(-parseInt(_0x1295d5(0x1e6))/0xb);if(_0x5a6a7d===_0x3eec1c)break;else _0x4269f7['push'](_0x4269f7['shift']());}catch(_0x1136ba){_0x4269f7['push'](_0x4269f7['shift']());}}}(_0x3989,0xeaf30));import{ForbiddenError}from'../../errors.js';export function requireAdmin(_0x1082b2,_0x548c29){var _0x23c048=_0x5d1b,_0x26f6eb={};_0x26f6eb[_0x23c048(0x1ef)]=_0x23c048(0x1e0),_0x26f6eb[_0x23c048(0x1e3)]=function(_0x24601f,_0x18b1a3){return _0x24601f!==_0x18b1a3;},_0x26f6eb[_0x23c048(0x1e5)]=_0x23c048(0x1e2),_0x26f6eb[_0x23c048(0x1f1)]=_0x23c048(0x1e9);var _0x175fdd=_0x26f6eb;if(!_0x1082b2)throw new ForbiddenError(_0x175fdd[_0x23c048(0x1ef)]);if(_0x175fdd[_0x23c048(0x1e3)](_0x1082b2[_0x23c048(0x1ee)],_0x175fdd[_0x23c048(0x1e5)]))throw new ForbiddenError(_0x175fdd[_0x23c048(0x1f1)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5c1677,_0xc896ca){const _0x5f1dd1=_0x2f99,_0x90daa9=_0x5c1677();while(!![]){try{const _0x564328=-parseInt(_0x5f1dd1(0x1e0))/0x1*(parseInt(_0x5f1dd1(0x1df))/0x2)+-parseInt(_0x5f1dd1(0x1d3))/0x3+-parseInt(_0x5f1dd1(0x1ce))/0x4*(-parseInt(_0x5f1dd1(0x1e5))/0x5)+-parseInt(_0x5f1dd1(0x1d6))/0x6*(parseInt(_0x5f1dd1(0x1e2))/0x7)+parseInt(_0x5f1dd1(0x1dd))/0x8*(-parseInt(_0x5f1dd1(0x1dc))/0x9)+-parseInt(_0x5f1dd1(0x1cc))/0xa+parseInt(_0x5f1dd1(0x1e3))/0xb;if(_0x564328===_0xc896ca)break;else _0x90daa9['push'](_0x90daa9['shift']());}catch(_0x2e3242){_0x90daa9['push'](_0x90daa9['shift']());}}}(_0x1e69,0x3c547));function _0x2f99(_0x56a9c9,_0x18758b){_0x56a9c9=_0x56a9c9-0x1cc;const _0x1e699b=_0x1e69();let _0x2f990d=_0x1e699b[_0x56a9c9];return _0x2f990d;}function _0x1e69(){const _0x1aaa54=['1821700FCdDIE','SWQPl','1541148jdNkyU','fromEntries','some','lvnQL','ffCBs','243804htKLtp','NCUBA','salt','102YrqMZM','filter','includes','toLowerCase','password','entries','90iNVHSk','340104criORO','secret','14564aWueKn','53SZhXGM','credentials','71449zmhsHj','12208427ZlFtgd','token','5xFVydO'];_0x1e69=function(){return _0x1aaa54;};return _0x1e69();}export const safeUser=_0x543df9=>{const _0x5e6a5e=_0x2f99,_0x26cb94={};_0x26cb94[_0x5e6a5e(0x1d1)]=_0x5e6a5e(0x1da),_0x26cb94[_0x5e6a5e(0x1d4)]=_0x5e6a5e(0x1d5),_0x26cb94[_0x5e6a5e(0x1d2)]=_0x5e6a5e(0x1e4),_0x26cb94[_0x5e6a5e(0x1cd)]=_0x5e6a5e(0x1de);const _0x2acdf8=_0x26cb94,_0x3bd377=[_0x2acdf8[_0x5e6a5e(0x1d1)],_0x2acdf8[_0x5e6a5e(0x1d4)],_0x2acdf8[_0x5e6a5e(0x1d2)],_0x2acdf8[_0x5e6a5e(0x1cd)],_0x5e6a5e(0x1e1)];return Object[_0x5e6a5e(0x1cf)](Object[_0x5e6a5e(0x1db)](_0x543df9)[_0x5e6a5e(0x1d7)](([_0x26e914])=>!_0x3bd377[_0x5e6a5e(0x1d0)](_0x14039f=>_0x26e914[_0x5e6a5e(0x1d9)]()[_0x5e6a5e(0x1d8)](_0x14039f))));};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x52ce(_0x59f8d2,_0x46c280){_0x59f8d2=_0x59f8d2-0x1b9;var _0x575cb8=_0x575c();var _0x52ce13=_0x575cb8[_0x59f8d2];return _0x52ce13;}function _0x575c(){var _0x4b8ef3=['4069695WQXAlo','75726dtGAtP','7104ReXjrH','4928NRKgfR','55MbiuSp','16524lTNiQA','860iksKPW','771LUfZjK','7505184BbABTL','10WBRqNd','\x20requires\x20a\x20project/provider\x20implementation','82906dYQgJp','456016UaaKeE'];_0x575c=function(){return _0x4b8ef3;};return _0x575c();}(function(_0x1dbe0a,_0xa4fc5){var _0x3c9f0a=_0x52ce,_0x5419a2=_0x1dbe0a();while(!![]){try{var _0x56eb62=parseInt(_0x3c9f0a(0x1c2))/0x1*(-parseInt(_0x3c9f0a(0x1c4))/0x2)+-parseInt(_0x3c9f0a(0x1c0))/0x3*(parseInt(_0x3c9f0a(0x1be))/0x4)+-parseInt(_0x3c9f0a(0x1b9))/0x5+-parseInt(_0x3c9f0a(0x1bb))/0x6*(parseInt(_0x3c9f0a(0x1bc))/0x7)+-parseInt(_0x3c9f0a(0x1c5))/0x8+-parseInt(_0x3c9f0a(0x1ba))/0x9*(-parseInt(_0x3c9f0a(0x1bf))/0xa)+parseInt(_0x3c9f0a(0x1bd))/0xb*(parseInt(_0x3c9f0a(0x1c1))/0xc);if(_0x56eb62===_0xa4fc5)break;else _0x5419a2['push'](_0x5419a2['shift']());}catch(_0x3780a9){_0x5419a2['push'](_0x5419a2['shift']());}}}(_0x575c,0xa398a));import{UnsupportedError}from'../../errors.js';export function unsupported(_0x1bdef5){var _0x5c9fe7=_0x52ce;throw new UnsupportedError(_0x1bdef5+_0x5c9fe7(0x1c3));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19a7ff,_0x279ba7){const _0x28487c=_0x3cb8,_0x4a4a71=_0x19a7ff();while(!![]){try{const _0x4666cf=-parseInt(_0x28487c(0xaf))/0x1+parseInt(_0x28487c(0xb9))/0x2*(parseInt(_0x28487c(0xb0))/0x3)+parseInt(_0x28487c(0xb5))/0x4*(-parseInt(_0x28487c(0xbb))/0x5)+parseInt(_0x28487c(0xb8))/0x6+parseInt(_0x28487c(0xb7))/0x7*(parseInt(_0x28487c(0xba))/0x8)+parseInt(_0x28487c(0xb6))/0x9+-parseInt(_0x28487c(0xb3))/0xa*(parseInt(_0x28487c(0xb1))/0xb);if(_0x4666cf===_0x279ba7)break;else _0x4a4a71['push'](_0x4a4a71['shift']());}catch(_0x118003){_0x4a4a71['push'](_0x4a4a71['shift']());}}}(_0x1752,0xa7d5d));function _0x1752(){const _0x300a39=['424404FfblRu','7ExLBgu','7112658DdBXHN','25034wVISwl','1350840dvNrbu','591355lEbVhX','577569chcUsa','147FFOCaj','1014497xTPUFn','write','30offbHw','hNscT','16YbmoVJ'];_0x1752=function(){return _0x300a39;};return _0x1752();}import{writeAudit}from'./services/write-audit.js';function _0x3cb8(_0x4d5da4,_0x53be9d){_0x4d5da4=_0x4d5da4-0xaf;const _0x17523a=_0x1752();let _0x3cb8ad=_0x17523a[_0x4d5da4];return _0x3cb8ad;}export function createAudit(_0x7878d7){const _0x1128e1=_0x3cb8,_0x397214={'hNscT':function(_0x5d20ff,_0xb37c8d){return _0x5d20ff(_0xb37c8d);}},_0x1a789a=_0x397214[_0x1128e1(0xb4)](writeAudit,_0x7878d7),_0xe03c91={};return _0xe03c91[_0x1128e1(0xb2)]=_0x1a789a,_0xe03c91;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3d4c(_0x11d1c1,_0x5ef524){_0x11d1c1=_0x11d1c1-0x1e4;var _0x8598f4=_0x8598();var _0x3d4ca3=_0x8598f4[_0x11d1c1];return _0x3d4ca3;}(function(_0x4cc8fb,_0x5dcb99){var _0xb97ccb=_0x3d4c,_0x5738d4=_0x4cc8fb();while(!![]){try{var _0x49e73b=-parseInt(_0xb97ccb(0x1e6))/0x1*(-parseInt(_0xb97ccb(0x1e7))/0x2)+parseInt(_0xb97ccb(0x1eb))/0x3+parseInt(_0xb97ccb(0x1e5))/0x4*(parseInt(_0xb97ccb(0x1e9))/0x5)+parseInt(_0xb97ccb(0x1ed))/0x6+parseInt(_0xb97ccb(0x1e8))/0x7+-parseInt(_0xb97ccb(0x1ea))/0x8*(-parseInt(_0xb97ccb(0x1e4))/0x9)+-parseInt(_0xb97ccb(0x1ec))/0xa;if(_0x49e73b===_0x5dcb99)break;else _0x5738d4['push'](_0x5738d4['shift']());}catch(_0x42cb97){_0x5738d4['push'](_0x5738d4['shift']());}}}(_0x8598,0x64e6a));function _0x8598(){var _0x300be4=['3360942GJULEQ','458559cvJGFz','42128fzceNS','124454Nbrxew','12LmlSzy','509698pSivpe','10SavJgb','16MtaBqc','872604nyPyFs','13802390xqhcjg'];_0x8598=function(){return _0x300be4;};return _0x8598();}export*from'./audit.types.js';export*from'./audit.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x54e5(_0x40062e,_0x762010){_0x40062e=_0x40062e-0x126;const _0x519975=_0x5199();let _0x54e586=_0x519975[_0x40062e];return _0x54e586;}(function(_0x44f282,_0x3685ac){const _0x908991=_0x54e5,_0x49ee6a=_0x44f282();while(!![]){try{const _0x3fa9bc=parseInt(_0x908991(0x136))/0x1*(parseInt(_0x908991(0x164))/0x2)+-parseInt(_0x908991(0x166))/0x3+parseInt(_0x908991(0x15b))/0x4*(-parseInt(_0x908991(0x180))/0x5)+parseInt(_0x908991(0x186))/0x6+parseInt(_0x908991(0x133))/0x7*(-parseInt(_0x908991(0x135))/0x8)+-parseInt(_0x908991(0x129))/0x9+-parseInt(_0x908991(0x13f))/0xa*(-parseInt(_0x908991(0x151))/0xb);if(_0x3fa9bc===_0x3685ac)break;else _0x49ee6a['push'](_0x49ee6a['shift']());}catch(_0x502985){_0x49ee6a['push'](_0x49ee6a['shift']());}}}(_0x5199,0x54cee));const secretPattern=/password|token|secret|credential|salt/i;function _0x5199(){const _0x2ac3c7=['tKgYq','kiAYV','lXpEZ','MiMNh','catch','field','ZaUnc','wkSeJ','ymCRj','zWEkH','izkkp','500ZIJuJA','JZvhS','info','resourceId','UFonF','NbGmX','2053644KGZBaO','logger','test','has','280620vqxdmS','action','err','cKApF','DGiWD','UWTXL','VLSwj','[REDACTED]','kAMEl','audit','22505WoMKIH','Noyas','456khrBmX','21oacdXD','Rjryc','uVLfU','hcQXs','YsedM','xqMuE','query','oldValue','BaNxV','150szuwXd','audit_log_data','expectedTables','entries','metadata','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.audit_log_data\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20audit_log_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20field,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20old_value,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20new_value\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20','fromEntries','then','OxoVe','Unable\x20to\x20check\x20audit\x20tables;\x20audit\x20writes\x20are\x20disabled','vmHSi','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20table_name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20information_schema.tables\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20table_schema\x20=\x20\x27admin\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20AND\x20table_name\x20IN\x20(\x27audit_log\x27,\x20\x27audit_log_data\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20','dGbkb','newValue','ssvxh','fields','changes','Audit\x20tables\x20are\x20unavailable;\x20audit\x20writes\x20are\x20disabled','449119dpbMvG','resource','WeueF','empty\x20pg','mzKfq','XKOSP','admin.audit_log','NunAb','module','warn','15068ERTraa','RsFbg','userId','audit_log','fNElj','map','PqsqH','llZfX','YksXK','38508MCimqi','ipAddress','1261602jwyyfv','gVKEN','oUUbF','admin.audit_log_data','stringify','foundTables','HfMoW','RInbo','object','table_name','isArray','requestId','rows','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.audit_log\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20module,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fields,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20action,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request_id,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ip_address,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20metadata\x0a\x20\x20\x20\x20\x20\x20\x20\x20)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4,\x20$5,\x20$6,\x20$7,\x20$8,\x20$9)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20id\x0a\x20\x20\x20\x20\x20\x20','Upxxb'];_0x5199=function(){return _0x2ac3c7;};return _0x5199();}function clean(_0x282d9a){const _0x304dfd=_0x54e5,_0xe98127={};_0xe98127[_0x304dfd(0x12c)]=_0x304dfd(0x169),_0xe98127[_0x304dfd(0x13b)]=_0x304dfd(0x150),_0xe98127[_0x304dfd(0x177)]=_0x304dfd(0x16e),_0xe98127[_0x304dfd(0x167)]=_0x304dfd(0x174);const _0x2809cc=_0xe98127;if(Array[_0x304dfd(0x170)](_0x282d9a))return _0x282d9a[_0x304dfd(0x160)](clean);if(_0x282d9a&&typeof _0x282d9a===_0x2809cc[_0x304dfd(0x177)]){if(_0x2809cc[_0x304dfd(0x167)]!==_0x2809cc[_0x304dfd(0x167)]){const _0x54155c={};_0x54155c[_0x304dfd(0x141)]=[_0x304dfd(0x157),_0x2809cc[_0x304dfd(0x12c)]],_0x54155c[_0x304dfd(0x16b)]=[..._0x52212c],_0x3a51fc[_0x304dfd(0x126)][_0x304dfd(0x15a)](_0x54155c,_0x2809cc[_0x304dfd(0x13b)]);}else return Object[_0x304dfd(0x145)](Object[_0x304dfd(0x142)](_0x282d9a)[_0x304dfd(0x160)](([_0x3e94ee,_0x46738c])=>[_0x3e94ee,secretPattern[_0x304dfd(0x127)](_0x3e94ee)?_0x304dfd(0x130):clean(_0x46738c)]));}return _0x282d9a;}export function writeAudit(_0x5ca8f9){const _0xf7f8f5=_0x54e5,_0x3d524a={'VLSwj':_0xf7f8f5(0x148),'BaNxV':_0xf7f8f5(0x132),'PqsqH':_0xf7f8f5(0x140),'HfMoW':function(_0x40d2fd,_0x13be7a){return _0x40d2fd!==_0x13be7a;},'vmHSi':_0xf7f8f5(0x157),'izkkp':_0xf7f8f5(0x169),'OxoVe':_0xf7f8f5(0x150),'RsFbg':_0xf7f8f5(0x12e),'tKgYq':_0xf7f8f5(0x12d),'WeueF':_0xf7f8f5(0x14d),'UFonF':_0xf7f8f5(0x13a),'uVLfU':_0xf7f8f5(0x134),'kiAYV':function(_0x212db8){return _0x212db8();},'fNElj':function(_0x51a2de,_0x4bad70){return _0x51a2de(_0x4bad70);},'dGbkb':_0xf7f8f5(0x154),'ymCRj':function(_0x3e2bdf,_0x5c9614){return _0x3e2bdf==_0x5c9614;},'NbGmX':function(_0x3011ef,_0x418fb2){return _0x3011ef(_0x418fb2);},'zWEkH':function(_0x2979a5,_0x4b5056){return _0x2979a5===_0x4b5056;},'RInbo':_0xf7f8f5(0x155),'wkSeJ':function(_0x34865b,_0xbf082c){return _0x34865b(_0xbf082c);}};let _0x1d1ffe,_0xe73734;async function _0x9a6914(){const _0x4c9bfe=_0xf7f8f5,_0x3a5c3c={'YksXK':_0x3d524a[_0x4c9bfe(0x13e)],'oUUbF':_0x4c9bfe(0x15e),'ZaUnc':_0x3d524a[_0x4c9bfe(0x161)],'Rjryc':function(_0x3937c2,_0x4b147c){const _0x28fd2c=_0x4c9bfe;return _0x3d524a[_0x28fd2c(0x16c)](_0x3937c2,_0x4b147c);},'XKOSP':_0x4c9bfe(0x162),'MiMNh':_0x3d524a[_0x4c9bfe(0x149)],'hcQXs':_0x3d524a[_0x4c9bfe(0x17f)],'NunAb':_0x3d524a[_0x4c9bfe(0x147)]};if(!_0x5ca8f9['pg'])return _0x3d524a[_0x4c9bfe(0x16c)](_0x3d524a[_0x4c9bfe(0x15c)],_0x3d524a[_0x4c9bfe(0x175)])?![]:_0xafdc26;if(_0x3d524a[_0x4c9bfe(0x16c)](_0x1d1ffe,undefined))return _0x3d524a[_0x4c9bfe(0x16c)](_0x3d524a[_0x4c9bfe(0x153)],_0x3d524a[_0x4c9bfe(0x184)])?_0x1d1ffe:_0x59aa50[_0x4c9bfe(0x160)](_0x48d059);return _0xe73734??=_0x5ca8f9['pg'][_0x4c9bfe(0x13c)](_0x4c9bfe(0x14a))[_0x4c9bfe(0x146)](_0x41bed7=>{const _0x497713=_0x4c9bfe,_0x4e0bf7={};_0x4e0bf7[_0x497713(0x131)]=_0x3a5c3c[_0x497713(0x163)];const _0x37d47b=_0x4e0bf7,_0x3a6b1a=new Set(_0x41bed7[_0x497713(0x172)][_0x497713(0x160)](_0x5a6ffb=>_0x5a6ffb[_0x497713(0x16f)]));_0x1d1ffe=_0x3a6b1a[_0x497713(0x128)](_0x3a5c3c[_0x497713(0x168)])&&_0x3a6b1a[_0x497713(0x128)](_0x3a5c3c[_0x497713(0x17b)]);if(!_0x1d1ffe){if(_0x3a5c3c[_0x497713(0x137)](_0x3a5c3c[_0x497713(0x156)],_0x497713(0x181))){const _0x485fb8={};_0x485fb8[_0x497713(0x141)]=[_0x3a5c3c[_0x497713(0x178)],_0x3a5c3c[_0x497713(0x139)]],_0x485fb8[_0x497713(0x16b)]=[..._0x3a6b1a],_0x5ca8f9[_0x497713(0x126)][_0x497713(0x15a)](_0x485fb8,_0x3a5c3c[_0x497713(0x158)]);}else return _0x24b718[_0x497713(0x126)][_0x497713(0x182)]({'auditFallback':!![],'event':_0x44d684({..._0x1ccb03,'changes':_0x2b1b79[_0x497713(0x14f)]?.[_0x497713(0x160)](_0x2c8bfb=>({..._0x2c8bfb,'oldValue':_0x4da9b6(_0x2c8bfb[_0x497713(0x13d)]),'newValue':_0x1ff5f3(_0x2c8bfb[_0x497713(0x14c)])}))})},_0x37d47b[_0x497713(0x131)]),0x0;}return _0x1d1ffe;})[_0x4c9bfe(0x179)](_0x39f7a7=>{const _0x4cd46c=_0x4c9bfe;_0x1d1ffe=![];const _0x49f952={};return _0x49f952[_0x4cd46c(0x12b)]=_0x39f7a7,_0x5ca8f9[_0x4cd46c(0x126)][_0x4cd46c(0x15a)](_0x49f952,_0x3d524a[_0x4cd46c(0x12f)]),![];}),_0xe73734;}return async function _0x5297f5(_0x2f49f3){const _0x22c0ae=_0xf7f8f5;if(_0x3d524a[_0x22c0ae(0x16c)](_0x3d524a[_0x22c0ae(0x138)],_0x3d524a[_0x22c0ae(0x138)]))return![];else{if(!await _0x3d524a[_0x22c0ae(0x176)](_0x9a6914))return _0x5ca8f9[_0x22c0ae(0x126)][_0x22c0ae(0x182)]({'auditFallback':!![],'event':_0x3d524a[_0x22c0ae(0x15f)](clean,{..._0x2f49f3,'changes':_0x2f49f3[_0x22c0ae(0x14f)]?.[_0x22c0ae(0x160)](_0x2a1613=>({..._0x2a1613,'oldValue':clean(_0x2a1613[_0x22c0ae(0x13d)]),'newValue':clean(_0x2a1613[_0x22c0ae(0x14c)])}))})},_0x3d524a[_0x22c0ae(0x13e)]),0x0;if(!_0x5ca8f9['pg'])throw new Error(_0x3d524a[_0x22c0ae(0x14b)]);const _0x35678d=await _0x5ca8f9['pg'][_0x22c0ae(0x13c)](_0x22c0ae(0x173),[_0x2f49f3[_0x22c0ae(0x15d)]??null,_0x2f49f3[_0x22c0ae(0x159)],_0x2f49f3[_0x22c0ae(0x152)],_0x3d524a[_0x22c0ae(0x17d)](_0x2f49f3[_0x22c0ae(0x183)],null)?null:_0x3d524a[_0x22c0ae(0x185)](String,_0x2f49f3[_0x22c0ae(0x183)]),_0x2f49f3[_0x22c0ae(0x14e)]??null,_0x2f49f3[_0x22c0ae(0x12a)],_0x2f49f3[_0x22c0ae(0x171)]??null,_0x2f49f3[_0x22c0ae(0x165)]??null,_0x3d524a[_0x22c0ae(0x15f)](clean,_0x2f49f3[_0x22c0ae(0x143)]??{})]),_0x59eee2=_0x35678d[_0x22c0ae(0x172)][0x0]['id'];for(const _0x1bed16 of _0x2f49f3[_0x22c0ae(0x14f)]??[]){if(secretPattern[_0x22c0ae(0x127)](_0x1bed16[_0x22c0ae(0x17a)])){if(_0x3d524a[_0x22c0ae(0x17e)](_0x3d524a[_0x22c0ae(0x16d)],_0x3d524a[_0x22c0ae(0x16d)]))continue;else return _0x25efb0[_0x22c0ae(0x145)](_0x19b4e7[_0x22c0ae(0x142)](_0x506644)[_0x22c0ae(0x160)](([_0x12f71b,_0x558780])=>[_0x12f71b,_0x5e6576[_0x22c0ae(0x127)](_0x12f71b)?_0x22c0ae(0x130):_0xcf48a0(_0x558780)]));}await _0x5ca8f9['pg'][_0x22c0ae(0x13c)](_0x22c0ae(0x144),[_0x59eee2,_0x1bed16[_0x22c0ae(0x17a)],JSON[_0x22c0ae(0x16a)](_0x3d524a[_0x22c0ae(0x15f)](clean,_0x1bed16[_0x22c0ae(0x13d)])),JSON[_0x22c0ae(0x16a)](_0x3d524a[_0x22c0ae(0x17c)](clean,_0x1bed16[_0x22c0ae(0x14c)]))]);}return _0x59eee2;}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22902a,_0x432628){const _0x1aac61=_0x1fca,_0x1caf6b=_0x22902a();while(!![]){try{const _0x37c55c=-parseInt(_0x1aac61(0xdc))/0x1*(parseInt(_0x1aac61(0xda))/0x2)+parseInt(_0x1aac61(0xe8))/0x3*(parseInt(_0x1aac61(0xdb))/0x4)+parseInt(_0x1aac61(0xd9))/0x5*(parseInt(_0x1aac61(0xd3))/0x6)+parseInt(_0x1aac61(0xce))/0x7+parseInt(_0x1aac61(0xe9))/0x8*(-parseInt(_0x1aac61(0xd1))/0x9)+-parseInt(_0x1aac61(0xe0))/0xa*(-parseInt(_0x1aac61(0xd0))/0xb)+-parseInt(_0x1aac61(0xdf))/0xc*(parseInt(_0x1aac61(0xe6))/0xd);if(_0x37c55c===_0x432628)break;else _0x1caf6b['push'](_0x1caf6b['shift']());}catch(_0x363b6a){_0x1caf6b['push'](_0x1caf6b['shift']());}}}(_0x17e5,0x630aa));export*from'./auth.types.js';import _0x2b9b9b from'@fastify/cookie';function _0x1fca(_0x656d36,_0xfc0da1){_0x656d36=_0x656d36-0xcd;const _0x17e5a7=_0x17e5();let _0x1fcaf3=_0x17e5a7[_0x656d36];return _0x1fcaf3;}import _0x1b33fe from'@fastify/session';import{Authenticator}from'@fastify/passport';import _0x5acb79 from'fastify-session-redis-store';function _0x17e5(){const _0x57f7ab=['45EvmSYS','auth','4829934FAnqxK','initialize','parseOptions','cookieName','warn','Tcswd','5XLyExl','2qGFiOF','4RbINUS','502669snovej','Missing\x20config\x20or\x20redis\x20-\x20skipping\x20session\x20store\x20creation','register','317784tkeIlK','10uXxGqv','wNqrC','user','DUmDt','test','secret','273hDMRLb','database','199989jbiaAr','60568SlGwLl','yrZAJ','registerUserDeserializer','secureSession','cookieOptions','3758139inmbUv','registerUserSerializer','1031701wxZdyx'];_0x17e5=function(){return _0x57f7ab;};return _0x17e5();}const fastifyPassport=new Authenticator();export async function createSessionStore(_0xde424e,_0x5b6002){const _0xd644d0=_0x1fca,_0x21fab9={};_0x21fab9[_0xd644d0(0xe1)]=function(_0x39fe6f,_0x34a4ff){return _0x39fe6f||_0x34a4ff;},_0x21fab9[_0xd644d0(0xe3)]=_0xd644d0(0xdd),_0x21fab9[_0xd644d0(0xd8)]=function(_0x3837a1,_0x4eef25){return _0x3837a1===_0x4eef25;},_0x21fab9[_0xd644d0(0xea)]=_0xd644d0(0xe4);const _0x3ec43f=_0x21fab9,{config:_0x58a22a,redis:_0x422f54}=_0x5b6002;if(_0x3ec43f[_0xd644d0(0xe1)](!_0x58a22a,!_0x422f54)){console[_0xd644d0(0xd7)](_0x3ec43f[_0xd644d0(0xe3)]);return;}if(_0x3ec43f[_0xd644d0(0xd8)](process.env.NODE_ENV,_0x3ec43f[_0xd644d0(0xea)])||process.env.VITEST)return;const _0x55f7c3={};_0x55f7c3[_0xd644d0(0xd5)]=_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xcd)],await _0xde424e[_0xd644d0(0xde)](_0x2b9b9b,_0x55f7c3),await _0xde424e[_0xd644d0(0xde)](_0x1b33fe,{'secret':_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xe5)],'cookieName':_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xd6)],'cookie':_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xcd)],'store':new _0x5acb79({'prefix':_0x58a22a[_0xd644d0(0xd2)][_0xd644d0(0xd6)]+':'+(_0x58a22a['pg']?.[_0xd644d0(0xe7)]||'db')+':','client':_0x422f54})}),await _0xde424e[_0xd644d0(0xde)](fastifyPassport[_0xd644d0(0xd4)]()),await _0xde424e[_0xd644d0(0xde)](fastifyPassport[_0xd644d0(0xec)]()),fastifyPassport[_0xd644d0(0xcf)](async _0x551ef5=>({'user':_0x551ef5})),fastifyPassport[_0xd644d0(0xeb)](async _0x1117f2=>_0x1117f2?.[_0xd644d0(0xe2)]||_0x1117f2);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1b5f42,_0x4f5c70){const _0x4aafb5=_0x2b12,_0x5d96a4=_0x1b5f42();while(!![]){try{const _0x171993=-parseInt(_0x4aafb5(0xe4))/0x1*(-parseInt(_0x4aafb5(0xd8))/0x2)+parseInt(_0x4aafb5(0xf9))/0x3+parseInt(_0x4aafb5(0xdd))/0x4*(parseInt(_0x4aafb5(0xf1))/0x5)+parseInt(_0x4aafb5(0xbf))/0x6+parseInt(_0x4aafb5(0xa4))/0x7*(-parseInt(_0x4aafb5(0xae))/0x8)+-parseInt(_0x4aafb5(0x98))/0x9+-parseInt(_0x4aafb5(0xbc))/0xa;if(_0x171993===_0x4f5c70)break;else _0x5d96a4['push'](_0x5d96a4['shift']());}catch(_0x5004b0){_0x5d96a4['push'](_0x5d96a4['shift']());}}}(_0x456c,0x3466f));import{ConflictError,NotFoundError,ValidationError}from'../errors.js';function _0x2b12(_0x411fcb,_0x180a22){_0x411fcb=_0x411fcb-0x95;const _0x456c22=_0x456c();let _0x2b124c=_0x456c22[_0x411fcb];return _0x2b124c;}const dictionaryName=/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;export function createDictionary({pg:_0x26f9ee,dictionaries:dictionaries=[]}){const _0xa7ad=_0x2b12,_0x38b327={'LVcQF':_0xa7ad(0xd1),'FHVau':function(_0x587053,_0x3b48dc){return _0x587053===_0x3b48dc;},'gSgrK':_0xa7ad(0xbe),'LWBwc':_0xa7ad(0x9b),'AMdvF':function(_0xbd8c87,_0x4e24d9){return _0xbd8c87!==_0x4e24d9;},'vrhXB':_0xa7ad(0xaf),'QaeWl':_0xa7ad(0xa9),'tNknE':_0xa7ad(0xb2),'HMPUn':function(_0xfa3441,_0x290619){return _0xfa3441===_0x290619;},'bBzNZ':_0xa7ad(0xf8),'cYUYd':function(_0x2d7543,_0x55e89b){return _0x2d7543(_0x55e89b);},'HNrpK':_0xa7ad(0xc6),'PkXiV':_0xa7ad(0xe6),'jSsoh':function(_0x25de73,_0x3b3cee){return _0x25de73!==_0x3b3cee;},'dSySn':_0xa7ad(0xa6),'DgIjr':function(_0x34bc86,_0x554346){return _0x34bc86===_0x554346;},'tNTII':_0xa7ad(0xf0),'cNieM':_0xa7ad(0xfa),'poGQn':_0xa7ad(0xad),'SIQCP':_0xa7ad(0xd0),'xHySM':function(_0x101048,_0x586c5d){return _0x101048(_0x586c5d);},'ZkcIk':function(_0x2eb6a4){return _0x2eb6a4();},'jTcaO':_0xa7ad(0xcd),'RGRDe':_0xa7ad(0xd9),'yYAsV':_0xa7ad(0xc4),'xTWrR':_0xa7ad(0xb3),'CCXIL':_0xa7ad(0xf7),'jqNaM':_0xa7ad(0xcb),'LIiBV':function(_0x302f12,_0x5ad819){return _0x302f12===_0x5ad819;},'iyhqx':_0xa7ad(0xe7),'qMkfo':function(_0x73d04c,_0x4a1373){return _0x73d04c!==_0x4a1373;},'oueKO':_0xa7ad(0xcc)},_0x573e07=new Map();let _0x362dbb,_0x3d25ad;async function _0x55215d(){const _0x29d5a8=_0xa7ad;if(_0x38b327[_0x29d5a8(0xaa)](_0x38b327[_0x29d5a8(0xe5)],_0x38b327[_0x29d5a8(0xc9)]))!_0x2f8363[_0x29d5a8(0x9c)](_0x44dbb0[_0x29d5a8(0xd3)])&&_0x42c426[_0x29d5a8(0xa8)](_0x34c303);else{if(_0x38b327[_0x29d5a8(0xf3)](_0x362dbb,undefined)){if(_0x38b327[_0x29d5a8(0xaa)](_0x38b327[_0x29d5a8(0xb8)],_0x29d5a8(0xeb)))_0xe7a648[_0x29d5a8(0xa8)](_0x4c7e55);else return _0x362dbb;}if(!_0x26f9ee){if(_0x38b327[_0x29d5a8(0xf3)](_0x38b327[_0x29d5a8(0xef)],_0x29d5a8(0xc8)))throw new Error(_0x38b327[_0x29d5a8(0xca)]);else throw new _0x4a4b06(_0x29d5a8(0xbb)+_0x5bf2f7);}return _0x3d25ad??=_0x26f9ee[_0x29d5a8(0xec)](_0x29d5a8(0xcf))[_0x29d5a8(0xdb)](_0x53d3a7=>{const _0x748fa7=_0x29d5a8,_0x196dee={};_0x196dee[_0x748fa7(0xdf)]=_0x748fa7(0xcb);const _0x491ace=_0x196dee;if(_0x748fa7(0xd1)!==_0x38b327[_0x748fa7(0xfe)])throw new _0x286287(_0x491ace[_0x748fa7(0xdf)]);else{const _0x1b6006=_0x53d3a7[_0x748fa7(0xc1)][0x0]?.[_0x748fa7(0xfb)];_0x362dbb=_0x1b6006===_0x748fa7(0xa3)?_0x1b6006:null;}}),await _0x3d25ad,_0x362dbb;}}function _0x1a5741(_0x48175c){const _0x4a0e2a=_0xa7ad,_0x3ac581={'Dnmmb':function(_0x5e15f1,_0x48bf23){const _0x4c5db7=_0x2b12;return _0x38b327[_0x4c5db7(0xfd)](_0x5e15f1,_0x48bf23);},'UdTqY':_0x4a0e2a(0xa3)};if(_0x38b327[_0x4a0e2a(0xfd)](_0x38b327[_0x4a0e2a(0xb7)],_0x38b327[_0x4a0e2a(0xb7)])){if(!dictionaryName[_0x4a0e2a(0xb1)](_0x48175c))throw new ValidationError(_0x4a0e2a(0xbb)+_0x48175c);}else{const _0x5789c8=_0x4c1ec2[_0x4a0e2a(0xc1)][0x0]?.[_0x4a0e2a(0xfb)];_0x5dc1ff=DbrMUP[_0x4a0e2a(0xab)](_0x5789c8,DbrMUP[_0x4a0e2a(0x97)])?_0x5789c8:null;}}function _0x3a9c2b(_0x7cb0ba){const _0x4b4071=_0xa7ad;for(const _0x15ee22 of Array[_0x4b4071(0xd2)](_0x7cb0ba)?_0x7cb0ba:[_0x7cb0ba]){_0x38b327[_0x4b4071(0x95)](_0x1a5741,_0x15ee22[_0x4b4071(0xd3)]);if(!Array[_0x4b4071(0xd2)](_0x15ee22[_0x4b4071(0xde)])){if(_0x38b327[_0x4b4071(0xc3)]!==_0x38b327[_0x4b4071(0xc3)]){_0x38b327[_0x4b4071(0x95)](_0x53e851,_0xc3adea[_0x4b4071(0xd3)]);if(!_0x174a20[_0x4b4071(0xd2)](_0xae283f[_0x4b4071(0xde)]))throw new _0x4054f8(_0x4b4071(0xa5)+_0x5e34ad[_0x4b4071(0xd3)]);if(_0x4d92e1[_0x4b4071(0x9c)](_0xba38d3[_0x4b4071(0xd3)]))throw new _0x37228b(_0x4b4071(0xce)+_0x424f0a[_0x4b4071(0xd3)]);const _0xae414d={..._0x38d240};_0xae414d[_0x4b4071(0xee)]=_0x4b4071(0xe6),_0x5e0c3c[_0x4b4071(0x99)](_0x37c96c[_0x4b4071(0xd3)],_0xae414d);}else throw new ValidationError(_0x4b4071(0xa5)+_0x15ee22[_0x4b4071(0xd3)]);}if(_0x573e07[_0x4b4071(0x9c)](_0x15ee22[_0x4b4071(0xd3)]))throw new ConflictError(_0x4b4071(0xce)+_0x15ee22[_0x4b4071(0xd3)]);_0x573e07[_0x4b4071(0x99)](_0x15ee22[_0x4b4071(0xd3)],{..._0x15ee22,'source':_0x38b327[_0x4b4071(0x9a)]});}}async function _0x4424e3(_0x51fcd6){const _0x4a19ee=_0xa7ad;if(_0x38b327[_0x4a19ee(0xd7)](_0x4a19ee(0xf6),_0x38b327[_0x4a19ee(0xda)])){_0x1a5741(_0x51fcd6);const _0xb2c661=_0x573e07[_0x4a19ee(0xa0)](_0x51fcd6);if(_0xb2c661){if(_0x38b327[_0x4a19ee(0xb6)](_0x38b327[_0x4a19ee(0xb0)],_0x38b327[_0x4a19ee(0xb0)]))return _0xb2c661[_0x4a19ee(0xde)];else _0x12b3f9[_0x4a19ee(0x9e)]();}const _0x13ac1e=await _0x55215d();if(!_0x13ac1e){if(_0x38b327[_0x4a19ee(0xaa)](_0x38b327[_0x4a19ee(0xe3)],_0x38b327[_0x4a19ee(0xe3)]))throw new NotFoundError(_0x4a19ee(0xcb));else return _0xbd4676;}if(!_0x26f9ee)throw new Error(_0x4a19ee(0xb2));const _0x5e24a5=await _0x26f9ee[_0x4a19ee(0xec)](_0x4a19ee(0xe8),[_0x51fcd6]);if(!_0x5e24a5[_0x4a19ee(0xc1)][_0x4a19ee(0xd4)]){if(_0x38b327[_0x4a19ee(0xff)]!==_0x38b327[_0x4a19ee(0xff)])throw new _0x15074b(_0x4a19ee(0x9f)+_0x4c7895);else throw new NotFoundError(_0x4a19ee(0x9f)+_0x51fcd6);}const _0x16df44=_0x5e24a5[_0x4a19ee(0xc1)];return _0x573e07[_0x4a19ee(0x99)](_0x51fcd6,{'code':_0x51fcd6,'name':_0x51fcd6,'items':_0x16df44,'source':_0x38b327[_0x4a19ee(0xea)]}),_0x16df44;}else throw new _0x445ae7(_0x4a19ee(0xce)+_0x1597e1[_0x4a19ee(0xd3)]);}async function _0x139724(_0x18f43a,_0x918f30){const _0x352ca9=_0xa7ad;_0x38b327[_0x352ca9(0xbd)](_0x1a5741,_0x18f43a);if(!Array[_0x352ca9(0xd2)](_0x918f30))throw new ValidationError(_0x352ca9(0xb4));const _0x2c6625=await _0x38b327[_0x352ca9(0xf5)](_0x55215d);if(!_0x2c6625)throw new NotFoundError(_0x352ca9(0xcb));if(!_0x26f9ee){if(_0x38b327[_0x352ca9(0xb6)](_0x352ca9(0xcd),_0x38b327[_0x352ca9(0xac)]))throw new Error(_0x38b327[_0x352ca9(0xca)]);else throw new _0x4e8e6f(_0x352ca9(0xa5)+_0x4e8956[_0x352ca9(0xd3)]);}const _0x19eabd=await _0x26f9ee[_0x352ca9(0xb9)]();try{await _0x19eabd[_0x352ca9(0xec)](_0x352ca9(0xc7));const _0x3bfd4b=await _0x19eabd[_0x352ca9(0xec)](_0x352ca9(0xf2),[_0x18f43a,_0x18f43a,_0x38b327[_0x352ca9(0xdc)],_0x38b327[_0x352ca9(0xa7)],!![]]),_0x6fe042=_0x3bfd4b[_0x352ca9(0xc1)][0x0]['id'];await _0x19eabd[_0x352ca9(0xec)](_0x38b327[_0x352ca9(0xd5)],[_0x6fe042]);for(const _0x4638f6 of _0x918f30){await _0x19eabd[_0x352ca9(0xec)](_0x352ca9(0xc2),[_0x6fe042,_0x4638f6[_0x352ca9(0xd3)],_0x4638f6[_0x352ca9(0x96)],_0x4638f6[_0x352ca9(0xfc)]??null]);}await _0x19eabd[_0x352ca9(0xec)](_0x38b327[_0x352ca9(0x100)]);}catch(_0x2e7a49){await _0x19eabd[_0x352ca9(0xec)](_0x352ca9(0xc5));throw _0x2e7a49;}finally{_0x19eabd[_0x352ca9(0x9e)]();}_0x38b327[_0x352ca9(0xbd)](_0x39affa,_0x18f43a);}function _0x39affa(_0xedf36){const _0x152fa3=_0xa7ad;return _0x38b327[_0x152fa3(0x95)](_0x1a5741,_0xedf36),_0x573e07[_0x152fa3(0xf4)](_0xedf36);}async function _0x263fe7(){const _0xd1b47c=_0xa7ad,_0x48bf99=[..._0x573e07[_0xd1b47c(0xe9)]()][_0xd1b47c(0xd6)](({code:_0x37b5ae,name:_0x46c4ff,source:_0x492f28})=>({'code':_0x37b5ae,'name':_0x46c4ff??_0x37b5ae,'source':_0x492f28})),_0x119d68=await _0x55215d();if(!_0x119d68)return _0x48bf99;if(!_0x26f9ee){if(_0x38b327[_0xd1b47c(0xe0)](_0x38b327[_0xd1b47c(0xa1)],_0x38b327[_0xd1b47c(0xa1)]))throw new Error(_0x38b327[_0xd1b47c(0xca)]);else return _0x912d99;}const _0x231b17=await _0x26f9ee[_0xd1b47c(0xec)](_0xd1b47c(0x9d));for(const _0x51ed61 of _0x231b17[_0xd1b47c(0xc1)]){if(!_0x573e07[_0xd1b47c(0x9c)](_0x51ed61[_0xd1b47c(0xd3)])){if(_0x38b327[_0xd1b47c(0xe1)](_0x38b327[_0xd1b47c(0xed)],_0x38b327[_0xd1b47c(0xed)]))throw new _0x227c06(_0x38b327[_0xd1b47c(0xc0)]);else _0x48bf99[_0xd1b47c(0xa8)](_0x51ed61);}}return _0x48bf99;}_0x3a9c2b(dictionaries);const _0x4e3226={};return _0x4e3226[_0xa7ad(0xe2)]=_0x3a9c2b,_0x4e3226[_0xa7ad(0xa0)]=_0x4424e3,_0x4e3226[_0xa7ad(0xa2)]=_0x139724,_0x4e3226[_0xa7ad(0xb5)]=_0x39affa,_0x4e3226[_0xa7ad(0xba)]=_0x263fe7,_0x4e3226;}function _0x456c(){const _0x6b3ff5=['287783TIQRGu','gSgrK','static','ElvyJ','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20di.id,\x20di.code,\x20di.name,\x20di.parent_id\x20AS\x20\x22parentId\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionary_items\x20di\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20admin.dictionaries\x20d\x20ON\x20d.id\x20=\x20di.dictionary_id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20d.code\x20=\x20$1\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20di.name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','values','SIQCP','LPJTL','query','oueKO','source','QaeWl','dRHcA','2700XRdMQM','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionaries\x20(code,\x20name,\x20module,\x20source,\x20editable)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4,\x20$5)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(code)\x20DO\x20UPDATE\x20SET\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20=\x20EXCLUDED.name,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20module\x20=\x20EXCLUDED.module,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20source\x20=\x20EXCLUDED.source,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20editable\x20=\x20EXCLUDED.editable,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updated_at\x20=\x20now()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','AMdvF','delete','ZkcIk','lZKtx','COMMIT','SHmBj','1053621gOiqIX','jRMOS','table_name','parentId','HMPUn','LVcQF','poGQn','CCXIL','cYUYd','name','UdTqY','1162971qHVHrj','set','PkXiV','ubiOJ','has','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20code,\x20name,\x20\x27database\x27\x20AS\x20source\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionaries\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','release','Dictionary\x20not\x20found:\x20','get','iyhqx','put','dictionaries','529109kCGgId','Invalid\x20dictionary\x20items:\x20','nKYDE','yYAsV','push','kwtTY','FHVau','Dnmmb','jTcaO','cGJuE','24OhrZtX','CvJpD','tNTII','test','empty\x20pg','DELETE\x20FROM\x20admin.dictionary_items\x20WHERE\x20dictionary_id\x20=\x20$1','Dictionary\x20items\x20must\x20be\x20an\x20array','clear','DgIjr','bBzNZ','vrhXB','connect','list','Invalid\x20dictionary\x20name:\x20','3005850vXvMxv','xHySM','BltMq','567084nLHJJl','jqNaM','rows','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionary_items\x20(dictionary_id,\x20code,\x20name,\x20parent_id)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','HNrpK','custom','ROLLBACK','MZmXk','BEGIN','USFcm','LWBwc','tNknE','Dictionary\x20table\x20not\x20found','cqPHB','ehheT','Dictionary\x20already\x20registered:\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20table_name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20information_schema.tables\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20table_schema\x20=\x20\x27admin\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20AND\x20table_name\x20=\x20\x27dictionaries\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20LIMIT\x201\x0a\x20\x20\x20\x20\x20\x20\x20\x20','database','uFrNa','isArray','code','length','xTWrR','map','jSsoh','2mysaDg','fcore','dSySn','then','RGRDe','1020YmuyQd','items','ymplb','LIiBV','qMkfo','register','cNieM'];_0x456c=function(){return _0x6b3ff5;};return _0x456c();}
|
|
1
|
+
(function(_0x1af561,_0x15288e){const _0x52c573=_0x374b,_0x58582d=_0x1af561();while(!![]){try{const _0x362c82=parseInt(_0x52c573(0xd8))/0x1*(-parseInt(_0x52c573(0xf3))/0x2)+-parseInt(_0x52c573(0x101))/0x3*(-parseInt(_0x52c573(0x132))/0x4)+parseInt(_0x52c573(0x13d))/0x5+parseInt(_0x52c573(0x12b))/0x6+-parseInt(_0x52c573(0x12d))/0x7*(parseInt(_0x52c573(0x116))/0x8)+parseInt(_0x52c573(0x11a))/0x9+-parseInt(_0x52c573(0x135))/0xa;if(_0x362c82===_0x15288e)break;else _0x58582d['push'](_0x58582d['shift']());}catch(_0x120ad5){_0x58582d['push'](_0x58582d['shift']());}}}(_0x2401,0x892cb));import{ConflictError,NotFoundError,ValidationError}from'../errors.js';const dictionaryName=/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;export function createDictionary({pg:_0x561a54,dictionaries:dictionaries=[]}){const _0xb891ab=_0x374b,_0x56cac8={'RZGTR':function(_0xdef1f9,_0x565f3a){return _0xdef1f9===_0x565f3a;},'NCQSi':function(_0x3f4ee3,_0x3bf17d){return _0x3f4ee3!==_0x3bf17d;},'LaZjl':_0xb891ab(0xf8),'nQlaG':_0xb891ab(0x142),'oPJjE':function(_0x5edc3c,_0x351f27){return _0x5edc3c===_0x351f27;},'PAZMV':_0xb891ab(0xdc),'sdjQi':_0xb891ab(0x13e),'ceYch':function(_0x59fda,_0x218d58){return _0x59fda(_0x218d58);},'MJMAs':_0xb891ab(0xe2),'YiQVT':_0xb891ab(0xed),'WNDpy':_0xb891ab(0x106),'vvEnH':_0xb891ab(0xe8),'wtCiI':function(_0x1b7c9e){return _0x1b7c9e();},'eLKzC':_0xb891ab(0xe9),'dsDzA':_0xb891ab(0x11e),'LOwvl':_0xb891ab(0x122),'uaDnv':function(_0x9f5e11,_0x529318){return _0x9f5e11!==_0x529318;},'XjpRh':_0xb891ab(0x136),'TyxwI':_0xb891ab(0xec),'Dvlbc':_0xb891ab(0x127),'eHrFa':function(_0x1d2e93,_0x561352){return _0x1d2e93(_0x561352);},'JHEqz':function(_0x1329db,_0x7ed506){return _0x1329db!==_0x7ed506;},'SdUCn':_0xb891ab(0x140),'ssjAw':_0xb891ab(0x111),'oSoon':_0xb891ab(0xfa),'tWpNy':_0xb891ab(0x114),'nFhuG':_0xb891ab(0x115),'sDFlF':_0xb891ab(0x10a),'dwOUR':function(_0x319e63,_0x8adbea){return _0x319e63(_0x8adbea);},'DwbOh':function(_0x3330b2,_0xf1a9db){return _0x3330b2(_0xf1a9db);},'ypYqZ':_0xb891ab(0x130),'dKLsP':function(_0xbac54b){return _0xbac54b();},'HUQrq':_0xb891ab(0xf4)},_0x398d15=new Map();let _0x1957fa,_0x51d102;async function _0x47b3fd(){const _0x15b354=_0xb891ab;if(_0x56cac8[_0x15b354(0x141)](_0x1957fa,undefined))return _0x1957fa;if(!_0x561a54){if(_0x56cac8[_0x15b354(0x12f)](_0x56cac8[_0x15b354(0x103)],_0x15b354(0x108)))throw new _0x30dc06(_0x15b354(0x12e)+_0x3bbdc6[_0x15b354(0xea)]);else throw new Error(_0x56cac8[_0x15b354(0x123)]);}return _0x51d102??=_0x561a54[_0x15b354(0xe7)](_0x15b354(0x10c))[_0x15b354(0x110)](_0x37cf8d=>{const _0x3bc136=_0x15b354,_0x5d0e65=_0x37cf8d[_0x3bc136(0x10b)][0x0]?.[_0x3bc136(0xd9)];_0x1957fa=_0x56cac8[_0x3bc136(0x12f)](_0x5d0e65,_0x3bc136(0x131))?_0x5d0e65:null;}),await _0x51d102,_0x1957fa;}function _0x36c77d(_0x351a1e){const _0x5d07d1=_0xb891ab,_0x5619b7={};_0x5619b7[_0x5d07d1(0xde)]=_0x5d07d1(0x142);const _0x1037bf=_0x5619b7;if(!dictionaryName[_0x5d07d1(0xf7)](_0x351a1e)){if(_0x56cac8[_0x5d07d1(0x102)](_0x56cac8[_0x5d07d1(0x11f)],_0x56cac8[_0x5d07d1(0x11f)]))throw new ValidationError(_0x5d07d1(0x118)+_0x351a1e);else throw new _0x286194(TWAxID[_0x5d07d1(0xde)]);}}function _0x276625(_0x5cf9cd){const _0x5117de=_0xb891ab;if(_0x56cac8[_0x5117de(0x12f)](_0x56cac8[_0x5117de(0xef)],_0x5117de(0x10e)))throw new _0x190341(_0x5117de(0x139)+_0x48ab78);else for(const _0x73a2b2 of Array[_0x5117de(0xe6)](_0x5cf9cd)?_0x5cf9cd:[_0x5cf9cd]){_0x56cac8[_0x5117de(0x11d)](_0x36c77d,_0x73a2b2[_0x5117de(0xea)]);if(!Array[_0x5117de(0xe6)](_0x73a2b2[_0x5117de(0xfe)]))throw new ValidationError(_0x5117de(0xe5)+_0x73a2b2[_0x5117de(0xea)]);if(_0x398d15[_0x5117de(0x113)](_0x73a2b2[_0x5117de(0xea)]))throw new ConflictError(_0x5117de(0x12e)+_0x73a2b2[_0x5117de(0xea)]);_0x398d15[_0x5117de(0xdb)](_0x73a2b2[_0x5117de(0xea)],{..._0x73a2b2,'source':_0x56cac8[_0x5117de(0x134)]});}}async function _0x5c18fb(_0x28e682){const _0x4851fc=_0xb891ab,_0xbd36ff={'WcPvG':function(_0x555f12,_0x15b0c0){return _0x555f12(_0x15b0c0);},'ehPWC':_0x56cac8[_0x4851fc(0x134)]};if(_0x56cac8[_0x4851fc(0x141)](_0x56cac8[_0x4851fc(0x12c)],_0x56cac8[_0x4851fc(0x12c)]))for(const _0x57a586 of _0x3423a7[_0x4851fc(0xe6)](_0x3fa13c)?_0x312a73:[_0x3617d3]){HpgMwZ[_0x4851fc(0x126)](_0x58077c,_0x57a586[_0x4851fc(0xea)]);if(!_0x1448d2[_0x4851fc(0xe6)](_0x57a586[_0x4851fc(0xfe)]))throw new _0x52df87(_0x4851fc(0xe5)+_0x57a586[_0x4851fc(0xea)]);if(_0x1a58bc[_0x4851fc(0x113)](_0x57a586[_0x4851fc(0xea)]))throw new _0xeba20b(_0x4851fc(0x12e)+_0x57a586[_0x4851fc(0xea)]);_0x1030fa[_0x4851fc(0xdb)](_0x57a586[_0x4851fc(0xea)],{..._0x57a586,'source':HpgMwZ[_0x4851fc(0xe0)]});}else{_0x36c77d(_0x28e682);const _0x51e560=_0x398d15[_0x4851fc(0xe3)](_0x28e682);if(_0x51e560){if(_0x56cac8[_0x4851fc(0xff)]!==_0x56cac8[_0x4851fc(0xff)])throw new _0x1c2dcd(_0x56cac8[_0x4851fc(0x13a)]);else return _0x51e560[_0x4851fc(0xfe)];}const _0x3591f9=await _0x56cac8[_0x4851fc(0xf5)](_0x47b3fd);if(!_0x3591f9)throw new NotFoundError(_0x56cac8[_0x4851fc(0x125)]);if(!_0x561a54){if(_0x56cac8[_0x4851fc(0x12f)](_0x56cac8[_0x4851fc(0xfd)],_0x56cac8[_0x4851fc(0xf2)]))!_0x455aff[_0x4851fc(0x113)](_0x51ec35[_0x4851fc(0xea)])&&_0x337740[_0x4851fc(0xeb)](_0x5f1d18);else throw new Error(_0x56cac8[_0x4851fc(0x123)]);}const _0x5ecd3e=await _0x561a54[_0x4851fc(0xe7)](_0x4851fc(0x105),[_0x28e682]);if(!_0x5ecd3e[_0x4851fc(0x10b)][_0x4851fc(0x119)]){if(_0x56cac8[_0x4851fc(0xdf)](_0x56cac8[_0x4851fc(0x128)],_0x56cac8[_0x4851fc(0x11b)]))throw new NotFoundError(_0x4851fc(0x139)+_0x28e682);else return _0x4b0af4;}const _0x10dac8=_0x5ecd3e[_0x4851fc(0x10b)];return _0x398d15[_0x4851fc(0xdb)](_0x28e682,{'code':_0x28e682,'name':_0x28e682,'items':_0x10dac8,'source':_0x56cac8[_0x4851fc(0x13f)]}),_0x10dac8;}}async function _0x43072d(_0x24f5a5,_0x2ff862){const _0x276fdf=_0xb891ab;_0x56cac8[_0x276fdf(0x13c)](_0x36c77d,_0x24f5a5);if(!Array[_0x276fdf(0xe6)](_0x2ff862))throw new ValidationError(_0x276fdf(0xed));const _0x3a4e4e=await _0x56cac8[_0x276fdf(0xf5)](_0x47b3fd);if(!_0x3a4e4e){if(_0x56cac8[_0x276fdf(0x13b)](_0x276fdf(0x129),_0x56cac8[_0x276fdf(0x10d)]))throw new NotFoundError(_0x276fdf(0xe9));else{if(!_0x437922[_0x276fdf(0xf7)](_0x4796c4))throw new _0x17340d(_0x276fdf(0x118)+_0x406dc3);}}if(!_0x561a54)throw new Error(_0x56cac8[_0x276fdf(0x123)]);const _0x1f7988=await _0x561a54[_0x276fdf(0xf9)]();try{await _0x1f7988[_0x276fdf(0xe7)](_0x56cac8[_0x276fdf(0x107)]);const _0x1984ac=await _0x1f7988[_0x276fdf(0xe7)](_0x276fdf(0xfc),[_0x24f5a5,_0x24f5a5,_0x56cac8[_0x276fdf(0xda)],_0x56cac8[_0x276fdf(0xe4)],!![]]),_0x142909=_0x1984ac[_0x276fdf(0x10b)][0x0]['id'];await _0x1f7988[_0x276fdf(0xe7)](_0x56cac8[_0x276fdf(0x143)],[_0x142909]);for(const _0x562e3b of _0x2ff862){await _0x1f7988[_0x276fdf(0xe7)](_0x276fdf(0x11c),[_0x142909,_0x562e3b[_0x276fdf(0xea)],_0x562e3b[_0x276fdf(0x100)],_0x562e3b[_0x276fdf(0x112)]??null]);}await _0x1f7988[_0x276fdf(0xe7)](_0x276fdf(0x109));}catch(_0x3af3dc){await _0x1f7988[_0x276fdf(0xe7)](_0x276fdf(0xdd));throw _0x3af3dc;}finally{if(_0x56cac8[_0x276fdf(0x12a)]!==_0x56cac8[_0x276fdf(0x12a)])throw new _0x3614fa(_0x276fdf(0xe9));else _0x1f7988[_0x276fdf(0x10f)]();}_0x56cac8[_0x276fdf(0x138)](_0x3f4696,_0x24f5a5);}function _0x3f4696(_0x3ad1a5){const _0x556fe8=_0xb891ab;return _0x56cac8[_0x556fe8(0x133)](_0x36c77d,_0x3ad1a5),_0x398d15[_0x556fe8(0x120)](_0x3ad1a5);}async function _0x4cf0a5(){const _0x255d98=_0xb891ab,_0x4e2290={};_0x4e2290[_0x255d98(0x121)]=_0x56cac8[_0x255d98(0x125)];const _0x19183f=_0x4e2290;if(_0x56cac8[_0x255d98(0x102)](_0x56cac8[_0x255d98(0xfb)],_0x56cac8[_0x255d98(0xfb)])){const _0x327065=[..._0x398d15[_0x255d98(0xf1)]()][_0x255d98(0xf6)](({code:_0x3ca3f3,name:_0x598539,source:_0x5f2811})=>({'code':_0x3ca3f3,'name':_0x598539??_0x3ca3f3,'source':_0x5f2811})),_0x141126=await _0x56cac8[_0x255d98(0x124)](_0x47b3fd);if(!_0x141126){if(_0x56cac8[_0x255d98(0x137)]!==_0x255d98(0xf4))throw new _0x547bbd(lpYOQV[_0x255d98(0x121)]);else return _0x327065;}if(!_0x561a54)throw new Error(_0x56cac8[_0x255d98(0x123)]);const _0x5d659b=await _0x561a54[_0x255d98(0xe7)](_0x255d98(0x104));for(const _0x32a1c2 of _0x5d659b[_0x255d98(0x10b)]){!_0x398d15[_0x255d98(0x113)](_0x32a1c2[_0x255d98(0xea)])&&_0x327065[_0x255d98(0xeb)](_0x32a1c2);}return _0x327065;}else throw new _0x18dffa(_0x255d98(0xe5)+_0x1af5ff[_0x255d98(0xea)]);}_0x276625(dictionaries);const _0x2b6dff={};return _0x2b6dff[_0xb891ab(0xe1)]=_0x276625,_0x2b6dff[_0xb891ab(0xe3)]=_0x5c18fb,_0x2b6dff[_0xb891ab(0x117)]=_0x43072d,_0x2b6dff[_0xb891ab(0xf0)]=_0x3f4696,_0x2b6dff[_0xb891ab(0xee)]=_0x4cf0a5,_0x2b6dff;}function _0x374b(_0x349a8a,_0x244179){_0x349a8a=_0x349a8a-0xd8;const _0x2401ae=_0x2401();let _0x374b1b=_0x2401ae[_0x349a8a];return _0x374b1b;}function _0x2401(){const _0xdb12da=['DwbOh','MJMAs','10079260izRjRf','UvLcB','HUQrq','dwOUR','Dictionary\x20not\x20found:\x20','YiQVT','JHEqz','eHrFa','3149755ngOuBl','bpTvj','Dvlbc','Arbsn','NCQSi','empty\x20pg','nFhuG','19SuNYQZ','table_name','oSoon','set','jQFRZ','ROLLBACK','dmevZ','uaDnv','ehPWC','register','static','get','tWpNy','Invalid\x20dictionary\x20items:\x20','isArray','query','usDVd','Dictionary\x20table\x20not\x20found','code','push','RxICd','Dictionary\x20items\x20must\x20be\x20an\x20array','list','sdjQi','clear','values','LOwvl','17702OzIeDH','jgXdB','wtCiI','map','test','euMth','connect','fcore','ypYqZ','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionaries\x20(code,\x20name,\x20module,\x20source,\x20editable)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4,\x20$5)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20CONFLICT\x20(code)\x20DO\x20UPDATE\x20SET\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20=\x20EXCLUDED.name,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20module\x20=\x20EXCLUDED.module,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20source\x20=\x20EXCLUDED.source,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20editable\x20=\x20EXCLUDED.editable,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updated_at\x20=\x20now()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dsDzA','items','vvEnH','name','27ZLVlRg','oPJjE','LaZjl','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20code,\x20name,\x20\x27database\x27\x20AS\x20source\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionaries\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20di.id,\x20di.code,\x20di.name,\x20di.parent_id\x20AS\x20\x22parentId\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20admin.dictionary_items\x20di\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20admin.dictionaries\x20d\x20ON\x20d.id\x20=\x20di.dictionary_id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20d.code\x20=\x20$1\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20di.name\x0a\x20\x20\x20\x20\x20\x20\x20\x20','EEYcM','ssjAw','cMwhG','COMMIT','HyLgp','rows','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20table_name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20information_schema.tables\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20table_schema\x20=\x20\x27admin\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20AND\x20table_name\x20=\x20\x27dictionaries\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20LIMIT\x201\x0a\x20\x20\x20\x20\x20\x20\x20\x20','SdUCn','hHCPF','release','then','BEGIN','parentId','has','custom','DELETE\x20FROM\x20admin.dictionary_items\x20WHERE\x20dictionary_id\x20=\x20$1','391232hXYGpQ','put','Invalid\x20dictionary\x20name:\x20','length','6770133XxnSPV','TyxwI','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.dictionary_items\x20(dictionary_id,\x20code,\x20name,\x20parent_id)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ceYch','VYwtW','PAZMV','delete','dRXHs','PBJBO','nQlaG','dKLsP','eLKzC','WcPvG','database','XjpRh','OpEXG','sDFlF','3233106hrMzfo','WNDpy','35SqbvZH','Dictionary\x20already\x20registered:\x20','RZGTR','hzOlI','dictionaries','27308jQgCOo'];_0x2401=function(){return _0xdb12da;};return _0x2401();}
|
package/dist/plugins/file.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xe55b81,_0xd5f9ee){const _0x128b9b=_0xad8c,_0x10661b=_0xe55b81();while(!![]){try{const _0x69386b=parseInt(_0x128b9b(0x167))/0x1*(parseInt(_0x128b9b(0x1b4))/0x2)+-parseInt(_0x128b9b(0x15c))/0x3*(-parseInt(_0x128b9b(0x176))/0x4)+-parseInt(_0x128b9b(0x19e))/0x5+-parseInt(_0x128b9b(0x181))/0x6*(parseInt(_0x128b9b(0x1ae))/0x7)+parseInt(_0x128b9b(0x1af))/0x8*(parseInt(_0x128b9b(0x1b6))/0x9)+parseInt(_0x128b9b(0x1b0))/0xa+-parseInt(_0x128b9b(0x1a7))/0xb;if(_0x69386b===_0xd5f9ee)break;else _0x10661b['push'](_0x10661b['shift']());}catch(_0x175334){_0x10661b['push'](_0x10661b['shift']());}}}(_0x4a62,0x9af23));import{DeleteObjectCommand,GetObjectCommand,HeadObjectCommand,PutObjectCommand,S3Client}from'@aws-sdk/client-s3';import _0x1a5de0 from'node:crypto';import{ValidationError}from'../errors.js';import{UnauthorizedError}from'../errors.js';function keyFor(_0x2dd2a1,_0x4f1b75){const _0x4fe3de=_0xad8c,_0x3540d5={};_0x3540d5[_0x4fe3de(0x173)]=_0x4fe3de(0x195),_0x3540d5[_0x4fe3de(0x18a)]=function(_0x1b25ca,_0x524607){return _0x1b25ca??_0x524607;};const _0x3d94dc=_0x3540d5;if(!_0x4f1b75||_0x4f1b75[_0x4fe3de(0x1a3)]('/')||_0x4f1b75[_0x4fe3de(0x1a4)]('..'))throw new ValidationError(_0x3d94dc[_0x4fe3de(0x173)]);const _0x351d8f=_0x4f1b75[_0x4fe3de(0x1b7)](/\\/g,'/')[_0x4fe3de(0x1b7)](/^\/+/,''),_0x327cdb=_0x3d94dc[_0x4fe3de(0x18a)](_0x2dd2a1,'')[_0x4fe3de(0x1b7)](/^\/+|\/+$/g,'');return _0x327cdb?_0x327cdb+'/'+_0x351d8f:_0x351d8f;}function _0x4a62(){const _0xd4a396=['QfyjV','accessKey','exp','httpStatusCode','54gHFHrP','iSwyj','kdWWF','FYwlZ','WLkXd','endpoint','forcePathStyle','uQGLa','gUdPJ','mAKLi','credentials','toString','sha256','stringify','folder','GIAek','split','function','VuMYw','gCWYP','Invalid\x20file\x20path','WHZtC','secretKey','tzVPy','utf8','RRlGh','concat','update','randomBytes','234245btvwFb','$metadata','digest','secretAccessKey','hex','startsWith','includes','timingSafeEqual','alloc','11079662HCZpWA','XvDBK','base64url','length','lXnIc','parse','YCdDd','277893uxluGR','544328dWXFRi','1923290hZfFpT','tokenTtl','NotFound','Body','428OHQfaI','from','153aAAjRB','replace','File\x20token\x20expired','floor','jUUJd','xkfjt','14853FEJNgB','createHmac','tokenSecret','vdfbD','rymIN','bucket','send','LtaFt','isInteger','transformToByteArray','name','1707GRugOm','uWFyr','us-east-1','now','lBdeH','region','QUoAO','HyAeQ','SMYIx','wHMeX','VzWFT','nJxPt','ueFdA','PtOkh','push','268cevwHw','QgNoK','accessKeyId','kdlua','Invalid\x20file\x20token','vaySW','ImKVY'];_0x4a62=function(){return _0xd4a396;};return _0x4a62();}async function bodyToBuffer(_0x411e78){const _0x173edc=_0xad8c,_0x2bacc0={};_0x2bacc0[_0x173edc(0x16d)]=_0x173edc(0x17a),_0x2bacc0[_0x173edc(0x185)]=_0x173edc(0x1a9),_0x2bacc0[_0x173edc(0x16e)]=_0x173edc(0x199),_0x2bacc0[_0x173edc(0x15a)]=function(_0x2350f2,_0x1645c7){return _0x2350f2===_0x1645c7;},_0x2bacc0[_0x173edc(0x168)]=_0x173edc(0x1ad),_0x2bacc0[_0x173edc(0x17d)]=_0x173edc(0x172),_0x2bacc0[_0x173edc(0x198)]=_0x173edc(0x192),_0x2bacc0[_0x173edc(0x16b)]=function(_0x219833,_0x5df54d){return _0x219833!==_0x5df54d;};const _0x582876=_0x2bacc0;if(!_0x411e78){if(_0x582876[_0x173edc(0x15a)](_0x582876[_0x173edc(0x168)],_0x582876[_0x173edc(0x17d)]))throw new _0x56fa80(_0x582876[_0x173edc(0x16d)]);else return Buffer[_0x173edc(0x1a6)](0x0);}const _0x5cb79d=_0x411e78;if(_0x582876[_0x173edc(0x15a)](typeof _0x5cb79d[_0x173edc(0x165)],_0x582876[_0x173edc(0x198)])){if(_0x582876[_0x173edc(0x16b)](_0x173edc(0x1ab),_0x173edc(0x183)))return Buffer[_0x173edc(0x1b5)](await _0x5cb79d[_0x173edc(0x165)]());else _0x187960=_0x5ba768[_0x173edc(0x1ac)](_0x221133[_0x173edc(0x1b5)](_0x36253b,_0x582876[_0x173edc(0x185)])[_0x173edc(0x18c)](_0x582876[_0x173edc(0x16e)]));}const _0x3bdc81=[];for await(const _0x325e09 of _0x411e78){_0x3bdc81[_0x173edc(0x175)](Buffer[_0x173edc(0x1b5)](_0x325e09));}return Buffer[_0x173edc(0x19b)](_0x3bdc81);}function _0xad8c(_0x5d79a1,_0x15c849){_0x5d79a1=_0x5d79a1-0x158;const _0x4a628f=_0x4a62();let _0xad8c7a=_0x4a628f[_0x5d79a1];return _0xad8c7a;}export function createFileS3(_0x1a125d){const _0x5432f9=_0xad8c,_0x248ef9={'rymIN':function(_0xc9b9d7,_0x30f575){return _0xc9b9d7(_0x30f575);},'XvDBK':_0x5432f9(0x158),'gUdPJ':function(_0x30acb1,_0x5e21c9){return _0x30acb1(_0x5e21c9);},'xkfjt':function(_0xf19ebe,_0x29c40b){return _0xf19ebe===_0x29c40b;},'ImKVY':_0x5432f9(0x19a),'GIAek':_0x5432f9(0x1b2),'SMYIx':function(_0x291fc6,_0x2571b3){return _0x291fc6+_0x2571b3;},'WHZtC':_0x5432f9(0x18d),'VuMYw':_0x5432f9(0x195),'LtaFt':_0x5432f9(0x1a9),'VzWFT':function(_0x5247e9,_0x39d8f2){return _0x5247e9!==_0x39d8f2;},'FYwlZ':_0x5432f9(0x17a),'gCWYP':function(_0x2702ea,_0x4dcd50){return _0x2702ea<_0x4dcd50;},'vaySW':function(_0x21fe15,_0x23b404){return _0x21fe15/_0x23b404;},'QgNoK':function(_0x15b3d5,_0x5654f0){return _0x15b3d5===_0x5654f0;},'kdlua':_0x5432f9(0x170),'uQGLa':_0x5432f9(0x1a2),'PtOkh':_0x5432f9(0x169)},_0x165b77=_0x1a125d[_0x5432f9(0x15e)]??process.env.FILE_TOKEN_SECRET??_0x1a5de0[_0x5432f9(0x19d)](0x20)[_0x5432f9(0x18c)](_0x248ef9[_0x5432f9(0x188)]),_0x3b1e52={};_0x3b1e52[_0x5432f9(0x186)]=_0x1a125d[_0x5432f9(0x186)],_0x3b1e52[_0x5432f9(0x16c)]=_0x1a125d[_0x5432f9(0x16c)]??_0x248ef9[_0x5432f9(0x174)],_0x3b1e52[_0x5432f9(0x187)]=_0x1a125d[_0x5432f9(0x187)]??!![],_0x3b1e52[_0x5432f9(0x18b)]=_0x1a125d[_0x5432f9(0x178)]||_0x1a125d[_0x5432f9(0x17e)]?{'accessKeyId':_0x1a125d[_0x5432f9(0x178)]??_0x1a125d[_0x5432f9(0x17e)],'secretAccessKey':_0x1a125d[_0x5432f9(0x1a1)]??_0x1a125d[_0x5432f9(0x197)]}:undefined;const _0x1c0fdd=new S3Client(_0x3b1e52),_0x4379a8=_0x42dd27=>keyFor(_0x1a125d[_0x5432f9(0x18f)],_0x42dd27);return{async 'put'(_0x3d9bbd,_0x480e1d){const _0x4bbb48=_0x5432f9;await _0x1c0fdd[_0x4bbb48(0x162)](new PutObjectCommand({'Bucket':_0x1a125d[_0x4bbb48(0x161)],'Key':_0x248ef9[_0x4bbb48(0x160)](_0x4379a8,_0x3d9bbd),'Body':_0x480e1d}));},async 'get'(_0x316c50){const _0x4f577f=_0x5432f9,_0x17f95b=await _0x1c0fdd[_0x4f577f(0x162)](new GetObjectCommand({'Bucket':_0x1a125d[_0x4f577f(0x161)],'Key':_0x4379a8(_0x316c50)}));return _0x248ef9[_0x4f577f(0x160)](bodyToBuffer,_0x17f95b[_0x4f577f(0x1b3)]);},async 'exists'(_0x4d3734){const _0x413fbd=_0x5432f9;try{return await _0x1c0fdd[_0x413fbd(0x162)](new HeadObjectCommand({'Bucket':_0x1a125d[_0x413fbd(0x161)],'Key':_0x248ef9[_0x413fbd(0x189)](_0x4379a8,_0x4d3734)})),!![];}catch(_0x10b20d){if(_0x248ef9[_0x413fbd(0x15b)](_0x413fbd(0x182),_0x248ef9[_0x413fbd(0x17c)]))throw new _0x2a3e42(_0x248ef9[_0x413fbd(0x1a8)]);else{const _0x2d0a1a=_0x10b20d;if(_0x248ef9[_0x413fbd(0x15b)](_0x2d0a1a[_0x413fbd(0x19f)]?.[_0x413fbd(0x180)],0x194)||_0x2d0a1a[_0x413fbd(0x166)]===_0x248ef9[_0x413fbd(0x190)])return![];throw _0x10b20d;}}},async 'delete'(_0x47d841){const _0x372ab2=_0x5432f9;await _0x1c0fdd[_0x372ab2(0x162)](new DeleteObjectCommand({'Bucket':_0x1a125d[_0x372ab2(0x161)],'Key':_0x248ef9[_0x372ab2(0x189)](_0x4379a8,_0x47d841)}));},'create'(_0x4e8d11,_0x2654db=_0x1a125d[_0x5432f9(0x1b1)]??0xe10){const _0x278675=_0x5432f9,_0x3fc7d0={'p':_0x4e8d11,'exp':_0x248ef9[_0x278675(0x16f)](Math[_0x278675(0x159)](Date[_0x278675(0x16a)]()/0x3e8),_0x2654db)},_0x4c12a6=Buffer[_0x278675(0x1b5)](JSON[_0x278675(0x18e)](_0x3fc7d0))[_0x278675(0x18c)](_0x278675(0x1a9)),_0x404e27=_0x1a5de0[_0x278675(0x15d)](_0x248ef9[_0x278675(0x196)],_0x165b77)[_0x278675(0x19c)](_0x4c12a6)[_0x278675(0x1a0)](_0x278675(0x1a9));return _0x4c12a6+'.'+_0x404e27;},'verify'(_0x234cc6){const _0xea1a4=_0x5432f9,_0x824956={};_0x824956[_0xea1a4(0x15f)]=_0x248ef9[_0xea1a4(0x193)];const _0xaaa48e=_0x824956,[_0x233383,_0x4b561e]=_0x234cc6[_0xea1a4(0x191)]('.');if(!_0x233383||!_0x4b561e)throw new UnauthorizedError(_0xea1a4(0x17a));const _0x307db9=_0x1a5de0[_0xea1a4(0x15d)](_0x248ef9[_0xea1a4(0x196)],_0x165b77)[_0xea1a4(0x19c)](_0x233383)[_0xea1a4(0x1a0)](),_0x5d10ae=Buffer[_0xea1a4(0x1b5)](_0x4b561e,_0x248ef9[_0xea1a4(0x163)]);if(_0x248ef9[_0xea1a4(0x171)](_0x307db9[_0xea1a4(0x1aa)],_0x5d10ae[_0xea1a4(0x1aa)])||!_0x1a5de0[_0xea1a4(0x1a5)](_0x307db9,_0x5d10ae))throw new UnauthorizedError(_0x248ef9[_0xea1a4(0x184)]);let _0x150309;try{_0x150309=JSON[_0xea1a4(0x1ac)](Buffer[_0xea1a4(0x1b5)](_0x233383,_0x248ef9[_0xea1a4(0x163)])[_0xea1a4(0x18c)](_0xea1a4(0x199)));}catch{throw new UnauthorizedError(_0x248ef9[_0xea1a4(0x184)]);}if(!_0x150309['p']||!Number[_0xea1a4(0x164)](_0x150309[_0xea1a4(0x17f)]))throw new UnauthorizedError(_0x248ef9[_0xea1a4(0x184)]);if(_0x248ef9[_0xea1a4(0x194)](_0x150309[_0xea1a4(0x17f)],Math[_0xea1a4(0x159)](_0x248ef9[_0xea1a4(0x17b)](Date[_0xea1a4(0x16a)](),0x3e8)))){if(_0x248ef9[_0xea1a4(0x177)](_0x248ef9[_0xea1a4(0x179)],_0xea1a4(0x170)))throw new UnauthorizedError(_0xea1a4(0x158));else{if(!_0xadcd44||_0x2994d9[_0xea1a4(0x1a3)]('/')||_0x5a3359[_0xea1a4(0x1a4)]('..'))throw new _0x1331ee(bpxORE[_0xea1a4(0x15f)]);const _0x3d3070=_0x5f5940[_0xea1a4(0x1b7)](/\\/g,'/')[_0xea1a4(0x1b7)](/^\/+/,''),_0x2e4fae=(_0x528d82??'')[_0xea1a4(0x1b7)](/^\/+|\/+$/g,'');return _0x2e4fae?_0x2e4fae+'/'+_0x3d3070:_0x3d3070;}}return _0x150309;}};}
|
|
1
|
+
(function(_0x47934e,_0x2b2bb0){const _0x83ed4e=_0x5f14,_0x56b211=_0x47934e();while(!![]){try{const _0x6140bb=parseInt(_0x83ed4e(0x1b4))/0x1+parseInt(_0x83ed4e(0x1e6))/0x2*(-parseInt(_0x83ed4e(0x19f))/0x3)+-parseInt(_0x83ed4e(0x1bb))/0x4*(-parseInt(_0x83ed4e(0x19a))/0x5)+-parseInt(_0x83ed4e(0x190))/0x6*(-parseInt(_0x83ed4e(0x1b2))/0x7)+-parseInt(_0x83ed4e(0x1bf))/0x8*(parseInt(_0x83ed4e(0x1b1))/0x9)+-parseInt(_0x83ed4e(0x1e0))/0xa+parseInt(_0x83ed4e(0x18e))/0xb;if(_0x6140bb===_0x2b2bb0)break;else _0x56b211['push'](_0x56b211['shift']());}catch(_0x5a1dd5){_0x56b211['push'](_0x56b211['shift']());}}}(_0x210b,0x7e561));import{DeleteObjectCommand,GetObjectCommand,HeadObjectCommand,PutObjectCommand,S3Client}from'@aws-sdk/client-s3';import _0x144b1c from'node:crypto';import{ValidationError}from'../errors.js';function _0x210b(){const _0x59fae3=['uTDwt','EpuAg','iTnne','ljDRe','10507959ayJcGW','YsEme','1074XoCGEf','region','name','isInteger','BFODH','ssvaZ','concat','alloc','Fitlf','utf8','1266630hYzndy','RQSnh','LFBcR','transformToByteArray','tokenSecret','21627TrcCxy','Body','hFcvg','bucket','parse','TavdZ','wjXjb','credentials','JgriG','secretKey','us-east-1','endpoint','createHmac','Invalid\x20file\x20path','httpStatusCode','vgHig','faXDq','secretAccessKey','1026soMxYD','1085FvuCaI','NCGdo','802152eKRGpN','send','accessKeyId','NCjRs','WcTAv','length','OkiKX','8Bfznnu','from','FVAXw','RdiYb','67528zrHjOw','split','CtrGG','arOcd','tokenTtl','mIjIi','exp','TTkRA','yGibs','Invalid\x20file\x20token','ESHmY','hfGWK','aHECB','replace','stringify','fUOAV','LYBZn','now','iTRDE','vgoYk','fBFpt','DLGct','floor','WRltn','NotFound','toString','accessKey','KDTOD','timingSafeEqual','startsWith','folder','qLLHM','update','1416340HqAqrt','includes','digest','tNBGP','wAaiS','base64url','186xseOSi','utLiH','File\x20token\x20expired','forcePathStyle','push','MbWZU','$metadata','oDvCu','YJnLC','QPrwR','NAoUV','function','HsLKB','sha256','randomBytes','tEvMo','hex'];_0x210b=function(){return _0x59fae3;};return _0x210b();}import{UnauthorizedError}from'../errors.js';function keyFor(_0x31cace,_0x1ee115){const _0x515229=_0x5f14,_0x26df3e={};_0x26df3e[_0x515229(0x1de)]=function(_0x5ed57e,_0x34877b){return _0x5ed57e/_0x34877b;},_0x26df3e[_0x515229(0x18c)]=_0x515229(0x1e5),_0x26df3e[_0x515229(0x1d4)]=_0x515229(0x1f3),_0x26df3e[_0x515229(0x1ae)]=function(_0x31ab8d,_0x189518){return _0x31ab8d!==_0x189518;},_0x26df3e[_0x515229(0x195)]=_0x515229(0x1cf),_0x26df3e[_0x515229(0x1d6)]=function(_0x569dcc,_0x3c894c){return _0x569dcc??_0x3c894c;};const _0x1afa3f=_0x26df3e;if(!_0x1ee115||_0x1ee115[_0x515229(0x1dc)]('/')||_0x1ee115[_0x515229(0x1e1)]('..')){if(_0x1afa3f[_0x515229(0x1ae)](_0x1afa3f[_0x515229(0x195)],_0x1afa3f[_0x515229(0x195)])){const _0x291f1d={'p':_0x12c47b,'exp':_0x4f6778[_0x515229(0x1d5)](_0x1afa3f[_0x515229(0x1de)](_0x3a48ac[_0x515229(0x1d0)](),0x3e8))+_0x246325},_0x511638=_0x4586f6[_0x515229(0x1bc)](_0x24bccb[_0x515229(0x1cd)](_0x291f1d))[_0x515229(0x1d8)](_0x1afa3f[_0x515229(0x18c)]),_0x316bbf=_0x5099ad[_0x515229(0x1ab)](_0x1afa3f[_0x515229(0x1d4)],_0x3ecc3e)[_0x515229(0x1df)](_0x511638)[_0x515229(0x1e2)](_0x1afa3f[_0x515229(0x18c)]);return _0x511638+'.'+_0x316bbf;}else throw new ValidationError(_0x515229(0x1ac));}const _0x2f6385=_0x1ee115[_0x515229(0x1cc)](/\\/g,'/')[_0x515229(0x1cc)](/^\/+/,''),_0x4455df=_0x1afa3f[_0x515229(0x1d6)](_0x31cace,'')[_0x515229(0x1cc)](/^\/+|\/+$/g,'');return _0x4455df?_0x4455df+'/'+_0x2f6385:_0x2f6385;}function _0x5f14(_0x17ff46,_0x355064){_0x17ff46=_0x17ff46-0x187;const _0x210b94=_0x210b();let _0x5f14b5=_0x210b94[_0x17ff46];return _0x5f14b5;}async function bodyToBuffer(_0x4ebc31){const _0x52d5e5=_0x5f14,_0x1ba03c={};_0x1ba03c[_0x52d5e5(0x188)]=function(_0x4ae146,_0x2d7e87){return _0x4ae146===_0x2d7e87;},_0x1ba03c[_0x52d5e5(0x1c2)]=function(_0x228437,_0x5131a8){return _0x228437??_0x5131a8;},_0x1ba03c[_0x52d5e5(0x1c7)]=_0x52d5e5(0x1f2),_0x1ba03c[_0x52d5e5(0x1a7)]=_0x52d5e5(0x19b),_0x1ba03c[_0x52d5e5(0x1e4)]=function(_0x1f054e,_0x136e5c){return _0x1f054e===_0x136e5c;},_0x1ba03c[_0x52d5e5(0x1ba)]=function(_0x2ea647,_0x5222f1){return _0x2ea647===_0x5222f1;},_0x1ba03c[_0x52d5e5(0x1da)]=_0x52d5e5(0x1ca),_0x1ba03c[_0x52d5e5(0x1b7)]=_0x52d5e5(0x1eb);const _0x32c7be=_0x1ba03c;if(!_0x4ebc31){if(_0x32c7be[_0x52d5e5(0x188)](_0x32c7be[_0x52d5e5(0x1c7)],_0x32c7be[_0x52d5e5(0x1a7)])){const _0x4c8b5e=_0x19f6e2;if(_0x32c7be[_0x52d5e5(0x188)](_0x4c8b5e[_0x52d5e5(0x1ec)]?.[_0x52d5e5(0x1ad)],0x194)||_0x4c8b5e[_0x52d5e5(0x192)]===_0x52d5e5(0x1d7))return![];throw _0x552f83;}else return Buffer[_0x52d5e5(0x197)](0x0);}const _0x2e3787=_0x4ebc31;if(_0x32c7be[_0x52d5e5(0x1e4)](typeof _0x2e3787[_0x52d5e5(0x19d)],_0x52d5e5(0x1f1))){if(_0x32c7be[_0x52d5e5(0x1ba)](_0x32c7be[_0x52d5e5(0x1da)],_0x32c7be[_0x52d5e5(0x1da)]))return Buffer[_0x52d5e5(0x1bc)](await _0x2e3787[_0x52d5e5(0x19d)]());else{if(!_0x252815||_0x20cbb4[_0x52d5e5(0x1dc)]('/')||_0x28b4f8[_0x52d5e5(0x1e1)]('..'))throw new _0x3cee0a(_0x52d5e5(0x1ac));const _0x5adbbd=_0x34030d[_0x52d5e5(0x1cc)](/\\/g,'/')[_0x52d5e5(0x1cc)](/^\/+/,''),_0x3b2e77=fgcpNu[_0x52d5e5(0x1c2)](_0x1122be,'')[_0x52d5e5(0x1cc)](/^\/+|\/+$/g,'');return _0x3b2e77?_0x3b2e77+'/'+_0x5adbbd:_0x5adbbd;}}const _0x569fd0=[];for await(const _0x5bccbf of _0x4ebc31){_0x32c7be[_0x52d5e5(0x1ba)](_0x32c7be[_0x52d5e5(0x1b7)],_0x32c7be[_0x52d5e5(0x1b7)])?_0x569fd0[_0x52d5e5(0x1ea)](Buffer[_0x52d5e5(0x1bc)](_0x5bccbf)):_0x3380c3[_0x52d5e5(0x1ea)](_0x2c5aec[_0x52d5e5(0x1bc)](_0x3c4f66));}return Buffer[_0x52d5e5(0x196)](_0x569fd0);}export function createFileS3(_0xa1d608){const _0x129dd0=_0x5f14,_0xc872d6={'oDvCu':function(_0x5f4765,_0x26b514){return _0x5f4765!==_0x26b514;},'aHECB':_0x129dd0(0x1bd),'mIjIi':_0x129dd0(0x1e3),'TTkRA':function(_0x378a8b,_0x5e9d8a){return _0x378a8b(_0x5e9d8a);},'BFODH':function(_0x3448ed,_0xa9ccf1){return _0x3448ed(_0xa9ccf1);},'ESHmY':function(_0x3752c4,_0x53b464){return _0x3752c4(_0x53b464);},'faXDq':function(_0x557ceb,_0x35d012){return _0x557ceb===_0x35d012;},'fUOAV':function(_0x284b56,_0x844cb0){return _0x284b56+_0x844cb0;},'iTRDE':function(_0x38df49,_0x304ee0){return _0x38df49/_0x304ee0;},'hFcvg':_0x129dd0(0x1f3),'YsEme':_0x129dd0(0x1e5),'YJnLC':_0x129dd0(0x199),'WcTAv':_0x129dd0(0x1e8),'QPrwR':_0x129dd0(0x1d2),'NCGdo':_0x129dd0(0x1e7),'CtrGG':_0x129dd0(0x18a),'ljDRe':_0x129dd0(0x1be),'Fitlf':_0x129dd0(0x1c8),'wjXjb':function(_0x59ccf4,_0x29da33){return _0x59ccf4===_0x29da33;},'EpuAg':_0x129dd0(0x1a4)},_0x196bd2=_0xa1d608[_0x129dd0(0x19e)]??process.env.FILE_TOKEN_SECRET??_0x144b1c[_0x129dd0(0x187)](0x20)[_0x129dd0(0x1d8)](_0x129dd0(0x189)),_0x989345={};_0x989345[_0x129dd0(0x1aa)]=_0xa1d608[_0x129dd0(0x1aa)],_0x989345[_0x129dd0(0x191)]=_0xa1d608[_0x129dd0(0x191)]??_0x129dd0(0x1a9),_0x989345[_0x129dd0(0x1e9)]=_0xa1d608[_0x129dd0(0x1e9)]??!![],_0x989345[_0x129dd0(0x1a6)]=_0xa1d608[_0x129dd0(0x1b6)]||_0xa1d608[_0x129dd0(0x1d9)]?{'accessKeyId':_0xa1d608[_0x129dd0(0x1b6)]??_0xa1d608[_0x129dd0(0x1d9)],'secretAccessKey':_0xa1d608[_0x129dd0(0x1b0)]??_0xa1d608[_0x129dd0(0x1a8)]}:undefined;const _0x481d29=new S3Client(_0x989345),_0xeddaba=_0x4111d7=>keyFor(_0xa1d608[_0x129dd0(0x1dd)],_0x4111d7);return{async 'put'(_0x80079,_0x27ba71){const _0x4ec99c=_0x129dd0;if(_0xc872d6[_0x4ec99c(0x1ed)](_0xc872d6[_0x4ec99c(0x1cb)],_0xc872d6[_0x4ec99c(0x1c4)]))await _0x481d29[_0x4ec99c(0x1b5)](new PutObjectCommand({'Bucket':_0xa1d608[_0x4ec99c(0x1a2)],'Key':_0xc872d6[_0x4ec99c(0x1c6)](_0xeddaba,_0x80079),'Body':_0x27ba71}));else return![];},async 'get'(_0xb1f30d){const _0x3d2c55=_0x129dd0,_0x215144=await _0x481d29[_0x3d2c55(0x1b5)](new GetObjectCommand({'Bucket':_0xa1d608[_0x3d2c55(0x1a2)],'Key':_0xc872d6[_0x3d2c55(0x194)](_0xeddaba,_0xb1f30d)}));return _0xc872d6[_0x3d2c55(0x1c9)](bodyToBuffer,_0x215144[_0x3d2c55(0x1a0)]);},async 'exists'(_0x255949){const _0x3c13a9=_0x129dd0;try{return await _0x481d29[_0x3c13a9(0x1b5)](new HeadObjectCommand({'Bucket':_0xa1d608[_0x3c13a9(0x1a2)],'Key':_0xc872d6[_0x3c13a9(0x1c9)](_0xeddaba,_0x255949)})),!![];}catch(_0x20a4e4){const _0x1fa3b5=_0x20a4e4;if(_0xc872d6[_0x3c13a9(0x1af)](_0x1fa3b5[_0x3c13a9(0x1ec)]?.[_0x3c13a9(0x1ad)],0x194)||_0xc872d6[_0x3c13a9(0x1af)](_0x1fa3b5[_0x3c13a9(0x192)],_0x3c13a9(0x1d7)))return![];throw _0x20a4e4;}},async 'delete'(_0x42aa01){const _0x1ffb82=_0x129dd0;await _0x481d29[_0x1ffb82(0x1b5)](new DeleteObjectCommand({'Bucket':_0xa1d608[_0x1ffb82(0x1a2)],'Key':_0xc872d6[_0x1ffb82(0x1c9)](_0xeddaba,_0x42aa01)}));},'create'(_0x34a6f0,_0x5166e9=_0xa1d608[_0x129dd0(0x1c3)]??0xe10){const _0x37d438=_0x129dd0;if(_0xc872d6[_0x37d438(0x1af)](_0x37d438(0x1d3),_0x37d438(0x1d3))){const _0x11056c={'p':_0x34a6f0,'exp':_0xc872d6[_0x37d438(0x1ce)](Math[_0x37d438(0x1d5)](_0xc872d6[_0x37d438(0x1d1)](Date[_0x37d438(0x1d0)](),0x3e8)),_0x5166e9)},_0x2ef074=Buffer[_0x37d438(0x1bc)](JSON[_0x37d438(0x1cd)](_0x11056c))[_0x37d438(0x1d8)](_0x37d438(0x1e5)),_0xf39503=_0x144b1c[_0x37d438(0x1ab)](_0xc872d6[_0x37d438(0x1a1)],_0x196bd2)[_0x37d438(0x1df)](_0x2ef074)[_0x37d438(0x1e2)](_0x37d438(0x1e5));return _0x2ef074+'.'+_0xf39503;}else throw new _0x3bdbf1(_0x37d438(0x1ac));},'verify'(_0xa7c70a){const _0x3d6fed=_0x129dd0,_0x3749dd={};_0x3749dd[_0x3d6fed(0x1f0)]=_0x3d6fed(0x1c8),_0x3749dd[_0x3d6fed(0x19c)]=_0xc872d6[_0x3d6fed(0x1b8)];const _0x437b83=_0x3749dd;if(_0xc872d6[_0x3d6fed(0x1af)](_0xc872d6[_0x3d6fed(0x1ef)],_0xc872d6[_0x3d6fed(0x1b3)]))_0x1dcd58=_0x26eb4c[_0x3d6fed(0x1a3)](_0x57fe90[_0x3d6fed(0x1bc)](_0x15f390,_0xc872d6[_0x3d6fed(0x18f)])[_0x3d6fed(0x1d8)](_0xc872d6[_0x3d6fed(0x1ee)]));else{const [_0x25a1d0,_0xa8ea5f]=_0xa7c70a[_0x3d6fed(0x1c0)]('.');if(!_0x25a1d0||!_0xa8ea5f){if(_0xc872d6[_0x3d6fed(0x1c1)]!==_0x3d6fed(0x18a))throw new _0x15e055(_0x437b83[_0x3d6fed(0x1f0)]);else throw new UnauthorizedError(_0x3d6fed(0x1c8));}const _0x2df351=_0x144b1c[_0x3d6fed(0x1ab)](_0xc872d6[_0x3d6fed(0x1a1)],_0x196bd2)[_0x3d6fed(0x1df)](_0x25a1d0)[_0x3d6fed(0x1e2)](),_0x579789=Buffer[_0x3d6fed(0x1bc)](_0xa8ea5f,_0xc872d6[_0x3d6fed(0x18f)]);if(_0x2df351[_0x3d6fed(0x1b9)]!==_0x579789[_0x3d6fed(0x1b9)]||!_0x144b1c[_0x3d6fed(0x1db)](_0x2df351,_0x579789)){if(_0xc872d6[_0x3d6fed(0x18d)]!==_0xc872d6[_0x3d6fed(0x18d)])return _0x42e839[_0x3d6fed(0x197)](0x0);else throw new UnauthorizedError(_0xc872d6[_0x3d6fed(0x198)]);}let _0x422eed;try{_0x422eed=JSON[_0x3d6fed(0x1a3)](Buffer[_0x3d6fed(0x1bc)](_0x25a1d0,_0x3d6fed(0x1e5))[_0x3d6fed(0x1d8)](_0xc872d6[_0x3d6fed(0x1ee)]));}catch{if(_0xc872d6[_0x3d6fed(0x1a5)](_0xc872d6[_0x3d6fed(0x18b)],_0xc872d6[_0x3d6fed(0x18b)]))throw new UnauthorizedError(_0xc872d6[_0x3d6fed(0x198)]);else throw new _0x3d9f6f(_0x437b83[_0x3d6fed(0x19c)]);}if(!_0x422eed['p']||!Number[_0x3d6fed(0x193)](_0x422eed[_0x3d6fed(0x1c5)]))throw new UnauthorizedError(_0x3d6fed(0x1c8));if(_0x422eed[_0x3d6fed(0x1c5)]<Math[_0x3d6fed(0x1d5)](_0xc872d6[_0x3d6fed(0x1d1)](Date[_0x3d6fed(0x1d0)](),0x3e8)))throw new UnauthorizedError(_0xc872d6[_0x3d6fed(0x1b8)]);return _0x422eed;}}};}
|