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