@opengis/fcore 0.0.1-beta.1 → 0.0.1-beta.2
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.d.ts +1 -0
- package/dist/index.d.ts.map +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.d.ts +3 -0
- package/dist/plugins/logger/transport.d.ts.map +1 -0
- package/dist/plugins/logger/transport.js +1 -0
- 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 -2
- package/dist/plugins/resource/resource.types.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.js +1 -1
- package/dist/plugins/resource/services/update.js +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.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/dist/type.d.ts +23 -0
- package/dist/type.d.ts.map +1 -0
- package/dist/type.js +1 -0
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x475fb2,_0x9ba96e){const _0x54da58=_0x1201,_0x5e6b4d=_0x475fb2();while(!![]){try{const _0x498738=parseInt(_0x54da58(0x145))/0x1+parseInt(_0x54da58(0x13f))/0x2*(parseInt(_0x54da58(0x138))/0x3)+parseInt(_0x54da58(0x139))/0x4*(parseInt(_0x54da58(0x144))/0x5)+parseInt(_0x54da58(0x134))/0x6*(-parseInt(_0x54da58(0x149))/0x7)+parseInt(_0x54da58(0x125))/0x8*(parseInt(_0x54da58(0x129))/0x9)+-parseInt(_0x54da58(0x12a))/0xa+-parseInt(_0x54da58(0x11b))/0xb*(parseInt(_0x54da58(0x14f))/0xc);if(_0x498738===_0x9ba96e)break;else _0x5e6b4d['push'](_0x5e6b4d['shift']());}catch(_0x1126f6){_0x5e6b4d['push'](_0x5e6b4d['shift']());}}}(_0x1ec8,0x888cc));import'dotenv/config';const DEFAULT_LOG_RESPONSE_STATUS_CODES=[0x193,0x199,0x19d,0x19f,0x1ad];function required(_0x422ff7){const _0x1a6c7b=_0x1201,_0x59af5d=process.env[_0x422ff7];if(!_0x59af5d)throw new Error(_0x1a6c7b(0x147)+_0x422ff7);return _0x59af5d;}function _0x1ec8(){const _0x459dca=['/2factor','1397RaSwNu','cicAS','/log','path','Qhscc','KiUuk','vocpQ','x5y30KBsEKCENT04tu6549Vxx3No1ztJ2q2K8r79S59420RaZ5','password','PYJsA','463768cfiQmG','session_user_auth','/login','./storage','63pjiFQX','4618930NmVQtb','KCbnE','development','true','info','iclBE','IAGfH','CvDoj','Ch7QR4e73Jg0wx0xOjm','XatTd','1245576sAfLUg','fmUoR','DtlLW','secure','129GvzXQd','18988Exirxb','localhost','parse','phmFe','VDmnu','none','47822Ypdkqm','strict','lax','bdlzM','httpOnly','570IVaGUq','555604zznjFo','EeZNK','Missing\x20environment\x20variable:\x20','auth','35oqpaYa','sameSite','0ua4b1Tz21m47z13U3EO0uN9e0WE7hqRFbcZ72cbdWqZBzemf9cAU865xan1s81TdNpUKKfF','split','potZI','cwd','44556JvTAEX','FLRVP','vXRoW','map','redis','WcTWA','false','kxCJk','us-east-1','BprjW','logger','includes'];_0x1ec8=function(){return _0x459dca;};return _0x1ec8();}export function loadConfig(_0xda1334={}){const _0x5eaf3f=_0x1201,_0x2b4f33={'PYJsA':_0x5eaf3f(0x12c),'CvDoj':function(_0x292b85,_0x4b3756){return _0x292b85===_0x4b3756;},'iclBE':_0x5eaf3f(0x12d),'KiUuk':function(_0x30be48,_0x515e92){return _0x30be48(_0x515e92);},'kxCJk':_0x5eaf3f(0x155),'Qhscc':_0x5eaf3f(0x128),'phmFe':_0x5eaf3f(0x123),'vXRoW':_0x5eaf3f(0x12e),'vocpQ':_0x5eaf3f(0x13a),'bdlzM':function(_0x3eefb3,_0x1676b6){return _0x3eefb3(_0x1676b6);},'VDmnu':_0x5eaf3f(0x157),'potZI':function(_0x1acf41,_0x5b9de8){return _0x1acf41!==_0x5b9de8;},'EeZNK':_0x5eaf3f(0x132),'DtlLW':_0x5eaf3f(0x122),'cicAS':_0x5eaf3f(0x126),'IAGfH':_0x5eaf3f(0x14b),'BprjW':function(_0x55a053,_0x9269d8){return _0x55a053(_0x9269d8);},'WcTWA':function(_0x39fc00,_0x58a4bc){return _0x39fc00(_0x58a4bc);},'FLRVP':_0x5eaf3f(0x141),'fmUoR':_0x5eaf3f(0x140),'KCbnE':_0x5eaf3f(0x13e),'XatTd':function(_0x186a20,_0x56da87){return _0x186a20(_0x56da87);}},_0x1ea45c={};_0x1ea45c[_0x5eaf3f(0x11e)]='/',_0x1ea45c[_0x5eaf3f(0x143)]=!![],_0x1ea45c[_0x5eaf3f(0x137)]=![],_0x1ea45c[_0x5eaf3f(0x14a)]=!![];const _0x16463a={'env':process.env.NODE_ENV??_0x2b4f33[_0x5eaf3f(0x124)],'debug':_0x2b4f33[_0x5eaf3f(0x131)](process.env.DEBUG,_0x2b4f33[_0x5eaf3f(0x12f)]),'port':_0x2b4f33[_0x5eaf3f(0x120)](Number,process.env.PORT??0xbb8),'maxFileSize':+(process.env.MAX_FILE_SIZE||0x200),'rateLimit':{'disabled':process.env.RATE_LIMIT===_0x2b4f33[_0x5eaf3f(0x156)],'max':+(process.env.RATE_LIMIT_MAX||0x64),'timeWindow':+(process.env.RATE_LIMIT_TIME_WINDOW||0xea60)},'storagePath':process.env.STORAGE_PATH??_0x2b4f33[_0x5eaf3f(0x11f)],'redactionList':(process.env.REDACTION_LIST||_0x2b4f33[_0x5eaf3f(0x13c)])[_0x5eaf3f(0x14c)](','),'logger':{'level':process.env.LOG_LEVEL??_0x2b4f33[_0x5eaf3f(0x151)],'responses':_0x2b4f33[_0x5eaf3f(0x131)](process.env.LOG_RESPONSES,_0x2b4f33[_0x5eaf3f(0x12f)])?!![]:![],'responseCodes':process.env.LOG_RESPONSE_STATUS_CODES?process.env.LOG_RESPONSE_STATUS_CODES[_0x5eaf3f(0x14c)](',')[_0x5eaf3f(0x152)](_0x8b8831=>_0x8b8831-0x0):DEFAULT_LOG_RESPONSE_STATUS_CODES,'directory':process.env.LOG_DIRECTORY||process[_0x5eaf3f(0x14e)]()+_0x5eaf3f(0x11d)},'pg':{'host':process.env.PG_HOST??_0x2b4f33[_0x5eaf3f(0x121)],'port':Number(process.env.PG_PORT??0x1538),'database':process.env.PG_DATABASE??'','user':process.env.PG_USER??'','password':process.env.PG_PASSWORD??''},'redis':{'host':process.env.REDIS_HOST??'','port':_0x2b4f33[_0x5eaf3f(0x142)](Number,process.env.REDIS_PORT??0x18eb),'password':process.env.REDIS_PASSWORD,'lazyConnect':!![],'db':process.env.REDIS_DB?Number(process.env.REDIS_DB):undefined},'s3':{'endpoint':process.env.S3_ENDPOINT,'region':process.env.S3_REGION??_0x2b4f33[_0x5eaf3f(0x13d)],'bucket':process.env.S3_BUCKET??'','accessKey':process.env.S3_ACCESS_KEY,'secretKey':process.env.S3_SECRET_KEY,'folder':process.env.S3_FOLDER,'forcePathStyle':_0x2b4f33[_0x5eaf3f(0x14d)](process.env.S3_FORCE_PATH_STYLE,_0x2b4f33[_0x5eaf3f(0x156)]),'tokenSecret':process.env.FILE_TOKEN_SECRET,'tokenTtl':_0x2b4f33[_0x5eaf3f(0x120)](Number,process.env.FILE_TOKEN_TTL??0xe10)},'auth':{'accessToken':process.env.AUTH_ACCESS_TOKEN||_0x2b4f33[_0x5eaf3f(0x146)],'user':process.env.AUTH_USER?JSON[_0x5eaf3f(0x13b)](process.env.AUTH_USER):undefined,'sessionTimeout':+(process.env.AUTH_SESSION_TIMEOUT||0x258),'secret':process.env.AUTH_SECRET??_0x2b4f33[_0x5eaf3f(0x136)],'cookieName':process.env.AUTH_COOKIE_NAME??_0x2b4f33[_0x5eaf3f(0x11c)],'jwtSecret':process.env.AUTH_JWT_SECRET??_0x2b4f33[_0x5eaf3f(0x130)],'link':{'base':{'login':process.env.AUTH_BASE_LINK_LOGIN??_0x5eaf3f(0x127),'afterLogin':process.env.AUTH_BASE_LINK_LOGIN??'/'},'twoFactor':{'login':process.env.AUTH_TWOFACTOR_LINK_LOGIN??_0x5eaf3f(0x11a),'afterLogin':process.env.AUTH_TWOFACTOR_LINK_LOGIN??'/'}},'cookieOptions':process.env.AUTH_COOKIE_OPTIONS_DOMAIN?{'domain':process.env.AUTH_COOKIE_OPTIONS_DOMAIN,'path':process.env.AUTH_COOKIE_OPTIONS_PATH||'/','httpOnly':_0x2b4f33[_0x5eaf3f(0x117)](Boolean,process.env.AUTH_COOKIE_OPTIONS_HTTP_ONLY||_0x2b4f33[_0x5eaf3f(0x12f)]),'secure':_0x2b4f33[_0x5eaf3f(0x154)](Boolean,process.env.AUTH_COOKIE_OPTIONS_SECURE||_0x2b4f33[_0x5eaf3f(0x12f)]),'sameSite':process.env.AUTH_COOKIE_OPTIONS_SAME_SITE&&[_0x2b4f33[_0x5eaf3f(0x150)],_0x2b4f33[_0x5eaf3f(0x135)],_0x2b4f33[_0x5eaf3f(0x12b)]][_0x5eaf3f(0x119)](process.env.AUTH_COOKIE_OPTIONS_SAME_SITE)?process.env.AUTH_COOKIE_OPTIONS_SAME_SITE:_0x2b4f33[_0x5eaf3f(0x133)](Boolean,process.env.AUTH_COOKIE_OPTIONS_SAME_SITE||_0x5eaf3f(0x12d))}:_0x1ea45c}},_0x235cfd={..._0x16463a,..._0xda1334};return _0x235cfd[_0x5eaf3f(0x118)]={..._0x16463a[_0x5eaf3f(0x118)],..._0xda1334[_0x5eaf3f(0x118)]},_0x235cfd['pg']={..._0x16463a['pg'],..._0xda1334['pg']},_0x235cfd[_0x5eaf3f(0x153)]={..._0x16463a[_0x5eaf3f(0x153)],..._0xda1334[_0x5eaf3f(0x153)]},_0x235cfd['s3']={..._0x16463a['s3'],..._0xda1334['s3']},_0x235cfd[_0x5eaf3f(0x148)]={..._0x16463a[_0x5eaf3f(0x148)],..._0xda1334[_0x5eaf3f(0x148)]},_0x235cfd;}function _0x1201(_0x4fd18e,_0x164254){_0x4fd18e=_0x4fd18e-0x117;const _0x1ec850=_0x1ec8();let _0x12011f=_0x1ec850[_0x4fd18e];return _0x12011f;}export{required as requireEnv};
|
package/dist/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5928(_0x57f451,_0x34fd5a){_0x57f451=_0x57f451-0x16f;const _0x5143d3=_0x5143();let _0x592874=_0x5143d3[_0x57f451];return _0x592874;}(function(_0x33548c,_0x20513b){const _0x49adba=_0x5928,_0x6b034b=_0x33548c();while(!![]){try{const _0x21fcc9=-parseInt(_0x49adba(0x17c))/0x1*(parseInt(_0x49adba(0x176))/0x2)+-parseInt(_0x49adba(0x177))/0x3+parseInt(_0x49adba(0x172))/0x4+-parseInt(_0x49adba(0x178))/0x5+-parseInt(_0x49adba(0x17f))/0x6+-parseInt(_0x49adba(0x174))/0x7*(-parseInt(_0x49adba(0x173))/0x8)+-parseInt(_0x49adba(0x17d))/0x9*(-parseInt(_0x49adba(0x17b))/0xa);if(_0x21fcc9===_0x20513b)break;else _0x6b034b['push'](_0x6b034b['shift']());}catch(_0x372bb8){_0x6b034b['push'](_0x6b034b['shift']());}}}(_0x5143,0x91e53));let defaultContext;function _0x5143(){const _0x4a614e=['redis','795180InfbGl','1184MyFRvu','17990mRAfxi','PSoBR','2JhyBNE','523179GdTbrh','1629480EccYpf','end','allSettled','130USuBLD','391863QYtsBL','1092609IslDeK','Application\x20context\x20is\x20not\x20initialized','4005774RTTFHU','close','logger'];_0x5143=function(){return _0x4a614e;};return _0x5143();}export function setContext(_0x356c5d){defaultContext=_0x356c5d;}export function getContext(){const _0x693f83=_0x5928,_0x26f1ff={};_0x26f1ff[_0x693f83(0x175)]=_0x693f83(0x17e);const _0x304459=_0x26f1ff;if(!defaultContext)throw new Error(_0x304459[_0x693f83(0x175)]);return defaultContext;}export function createContext(_0x1a3d39){return{..._0x1a3d39,async 'close'(){const _0x731fa0=_0x5928;await Promise[_0x731fa0(0x17a)]([_0x1a3d39[_0x731fa0(0x171)]?.[_0x731fa0(0x16f)](),_0x1a3d39['pg']?.[_0x731fa0(0x179)]()]),await _0x1a3d39[_0x731fa0(0x170)][_0x731fa0(0x16f)]();}};}
|
package/dist/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2f7421=_0x4a8c;(function(_0x57f71c,_0x2bd798){var _0x17dbc0=_0x4a8c,_0x371676=_0x57f71c();while(!![]){try{var _0x9267cc=parseInt(_0x17dbc0(0x9d))/0x1+parseInt(_0x17dbc0(0x84))/0x2+-parseInt(_0x17dbc0(0x87))/0x3+parseInt(_0x17dbc0(0x97))/0x4+-parseInt(_0x17dbc0(0x9b))/0x5+-parseInt(_0x17dbc0(0x83))/0x6*(parseInt(_0x17dbc0(0x7f))/0x7)+parseInt(_0x17dbc0(0x9c))/0x8*(parseInt(_0x17dbc0(0x89))/0x9);if(_0x9267cc===_0x2bd798)break;else _0x371676['push'](_0x371676['shift']());}catch(_0x17cf09){_0x371676['push'](_0x371676['shift']());}}}(_0x3a89,0x56e47));export class FCoreError extends Error{[_0x2f7421(0x85)];[_0x2f7421(0x98)];[_0x2f7421(0x94)];constructor(_0x112297,_0x16382f,_0x40a601=0x1f4,_0x1276e7){var _0x431a03=_0x2f7421,_0x5e5788={};_0x5e5788[_0x431a03(0x96)]=_0x431a03(0x91);var _0x15f927=_0x5e5788,_0x3ddcd2=_0x15f927[_0x431a03(0x96)][_0x431a03(0x7d)]('|'),_0x42f737=0x0;while(!![]){switch(_0x3ddcd2[_0x42f737++]){case'0':this[_0x431a03(0x94)]=_0x1276e7;continue;case'1':super(_0x16382f);continue;case'2':this[_0x431a03(0x95)]=new.target.name;continue;case'3':this[_0x431a03(0x98)]=_0x40a601;continue;case'4':this[_0x431a03(0x85)]=_0x112297;continue;}break;}}}export class BadRequestError extends FCoreError{constructor(_0x51e497,_0xfa7d2b){var _0x4aca0=_0x2f7421;super(_0x4aca0(0x93),_0x51e497,0x190,_0xfa7d2b);}}export class UnauthorizedError extends FCoreError{constructor(_0x54378c=_0x2f7421(0x86)){var _0x55bcbb=_0x2f7421,_0x570296={};_0x570296[_0x55bcbb(0x92)]=_0x55bcbb(0x7e);var _0x46e39=_0x570296;super(_0x46e39[_0x55bcbb(0x92)],_0x54378c,0x191);}}export class ForbiddenError extends FCoreError{constructor(_0x3d467d=_0x2f7421(0x8b)){var _0x20aef3=_0x2f7421,_0x129520={};_0x129520[_0x20aef3(0x88)]=_0x20aef3(0x9a);var _0x4759f1=_0x129520;super(_0x4759f1[_0x20aef3(0x88)],_0x3d467d,0x193);}}function _0x4a8c(_0x2d16ae,_0x5aafda){_0x2d16ae=_0x2d16ae-0x7d;var _0x3a8932=_0x3a89();var _0x4a8c1c=_0x3a8932[_0x2d16ae];return _0x4a8c1c;}function _0x3a89(){var _0x5b690a=['gqyQs','BAD_REQUEST_ERROR','details','name','bCYWH','571772FwvQeR','statusCode','ufOMZ','FORBIDDEN','654255pnUjYY','8NEBROA','205190znprwR','split','UNAUTHORIZED','431263WAikQb','Operation\x20is\x20not\x20configured','UNSUPPORTED','VALIDATION_ERROR','48aHzFjp','806082FogWGx','code','Authentication\x20required','656133vymDcK','OpKAO','4024539MYxnfu','wYxLC','Access\x20denied','Not\x20found','CONFLICT','Conflict','NOT_FOUND','GnjvP','1|4|3|0|2'];_0x3a89=function(){return _0x5b690a;};return _0x3a89();}export class NotFoundError extends FCoreError{constructor(_0x37b873=_0x2f7421(0x8c)){var _0x156c66=_0x2f7421,_0x45fc4d={};_0x45fc4d[_0x156c66(0x8a)]=_0x156c66(0x8f);var _0x15faef=_0x45fc4d;super(_0x15faef[_0x156c66(0x8a)],_0x37b873,0x194);}}export class ConflictError extends FCoreError{constructor(_0x4eb0e0=_0x2f7421(0x8e)){var _0x2a96ee=_0x2f7421;super(_0x2a96ee(0x8d),_0x4eb0e0,0x199);}}export class ValidationError extends FCoreError{constructor(_0x4ed02e,_0x201008){var _0x41e577=_0x2f7421,_0x1e2caa={};_0x1e2caa[_0x41e577(0x99)]=_0x41e577(0x82);var _0x54d3ce=_0x1e2caa;super(_0x54d3ce[_0x41e577(0x99)],_0x4ed02e,0x1a6,_0x201008);}}export class UnsupportedError extends FCoreError{constructor(_0x1d20c6=_0x2f7421(0x80)){var _0x562254=_0x2f7421,_0x1141d4={};_0x1141d4[_0x562254(0x90)]=_0x562254(0x81);var _0x8daa0b=_0x1141d4;super(_0x8daa0b[_0x562254(0x90)],_0x1d20c6,0x1f5);}}
|
package/dist/fastify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x551422=_0xb687;(function(_0x4b560b,_0x3a95ac){const _0x21463a=_0xb687,_0xc6111=_0x4b560b();while(!![]){try{const _0x3f442c=-parseInt(_0x21463a(0xbd))/0x1*(parseInt(_0x21463a(0xc4))/0x2)+-parseInt(_0x21463a(0xca))/0x3+parseInt(_0x21463a(0xc1))/0x4*(-parseInt(_0x21463a(0x8d))/0x5)+-parseInt(_0x21463a(0xb2))/0x6*(parseInt(_0x21463a(0x93))/0x7)+parseInt(_0x21463a(0xbc))/0x8*(-parseInt(_0x21463a(0xc0))/0x9)+-parseInt(_0x21463a(0xa2))/0xa*(parseInt(_0x21463a(0x98))/0xb)+parseInt(_0x21463a(0xb8))/0xc;if(_0x3f442c===_0x3a95ac)break;else _0xc6111['push'](_0xc6111['shift']());}catch(_0x29c964){_0xc6111['push'](_0xc6111['shift']());}}}(_0x5575,0xa8448));import _0x214a30 from'fastify-plugin';import{FCoreError}from'./errors.js';import{authRoutes}from'./modules/auth/index.js';import{fileRoutes}from'./modules/file/index.js';import{resourceRoutes}from'./modules/resource/index.js';import{systemRoutes}from'./modules/system/index.js';import{createSessionStore}from'./plugins/auth/index.js';function urlencodedContentParser(_0x123ec3,_0x22b377,_0xee7430){const _0xb5627f=_0xb687,_0x41368e={'BZkse':function(_0x16990c,_0xe123f2){return _0x16990c(_0xe123f2);},'aITXG':function(_0x5e7a25,_0x39a99f,_0x42af77){return _0x5e7a25(_0x39a99f,_0x42af77);}},_0x15b9d5=_0x41368e[_0xb5627f(0xa4)](decodeURIComponent,_0x22b377[_0xb5627f(0xae)]())[_0xb5627f(0xb4)]('&')[_0xb5627f(0xd0)]((_0x4d1ef5,_0x59fc1f)=>{const _0x20244e=_0xb5627f,[_0xb5cf5e,_0x35edb6]=_0x59fc1f[_0x20244e(0xb4)]('='),_0x513b58={..._0x4d1ef5};return _0x513b58[_0xb5cf5e]=_0x35edb6,_0x513b58;},{});_0x41368e[_0xb5627f(0x94)](_0xee7430,null,_0x15b9d5);}function _0x5575(){const _0x137811=['@fastify/multipart','name','@opengis/fcore','Internal\x20server\x20error','mwtIv','cBaze','KUzYA','WcRIi','decorate','LCqDp','user','IDQcH','128385lyQIra','INTERNAL_ERROR','HcSVs','eUnXd','Huqie','setErrorHandler','1524173JtdLUP','aITXG','HVjRz','mNCBr','VuPHZ','13675750LSBsZv','preHandler','application/x-www-form-urlencoded','ZCrXc','rFTDW','statusCode','ZCxIn','KZobD','BiKmu','buffer','10dWiiuP','eMJrN','BZkse','AEcKF','url','ZIbTV','QtNhD','log','send','DSMfm','timeWindow','pwqfL','toString','⚠️\x20rate\x20limit\x20is\x20disabled','max','FST_ERR_VALIDATION','6hHFCpL','@fastify/rate-limit','split','maxFileSize','ctx','CQphq','53907660RYCWZC','addContentTypeParser','code','rateLimit','8cSPQct','12898CHypBI','IJUMt','message','10335087sVkIYP','100yzGYkf','test','true','66FzEyGI','disabled','GwREx','details','register','PYZjN','378570pdbqkb','mHJkd','logger','RYWGH','IdZXe','raw','reduce','error'];_0x5575=function(){return _0x137811;};return _0x5575();}function _0xb687(_0x354e3c,_0x157159){_0x354e3c=_0x354e3c-0x82;const _0x55756e=_0x5575();let _0xb6870a=_0x55756e[_0x354e3c];return _0xb6870a;}const plugin=async(_0x3bbdcb,{ctx:_0x378511})=>{const _0x32658d=_0xb687,_0x4838b6={'PYZjN':_0x32658d(0xaf),'Huqie':function(_0x24f16d,_0x21d47a){return _0x24f16d===_0x21d47a;},'ZCrXc':_0x32658d(0xc6),'RYWGH':function(_0x4e9274,_0x5392f4){return _0x4e9274 instanceof _0x5392f4;},'pwqfL':function(_0xfe5635,_0x5c2a2a){return _0xfe5635===_0x5c2a2a;},'BiKmu':_0x32658d(0xb1),'mHJkd':_0x32658d(0xa7),'QtNhD':_0x32658d(0xc3),'KUzYA':_0x32658d(0xc2),'VuPHZ':_0x32658d(0x8e),'IJUMt':_0x32658d(0x84),'KZobD':function(_0x43362c,_0x54b81c){return _0x43362c instanceof _0x54b81c;},'mwtIv':function(_0x4b23e0,_0x4f05b1){return _0x4b23e0===_0x4f05b1;},'eMJrN':function(_0x54eaee,_0x11a55d){return _0x54eaee===_0x11a55d;},'HVjRz':_0x32658d(0xb6),'HcSVs':function(_0x4c2930,_0x4a146a){return _0x4c2930(_0x4a146a);},'cBaze':function(_0x32440b,_0x351363){return _0x32440b(_0x351363);},'mNCBr':_0x32658d(0x9a),'LCqDp':_0x32658d(0xa1),'WcRIi':_0x32658d(0xb3),'CQphq':_0x32658d(0x99),'eUnXd':function(_0x4a1ef7,_0x4ed1c1){return _0x4a1ef7===_0x4ed1c1;},'DSMfm':_0x32658d(0x9c),'ZCxIn':_0x32658d(0xd2),'IdZXe':function(_0x1cd9d6,_0x2d5633){return _0x1cd9d6*_0x2d5633;},'AEcKF':function(_0x29df32,_0x3e52d7){return _0x29df32*_0x3e52d7;}};_0x3bbdcb[_0x32658d(0x89)](_0x4838b6[_0x32658d(0x95)],_0x378511);const {config:_0x3e1155}=_0x378511;await createSessionStore(_0x3bbdcb,_0x378511),_0x3bbdcb[_0x32658d(0x92)]((_0x341af7,_0x313e38,_0x4b05dd)=>{const _0x3b484e=_0x32658d,_0x149bfb={};_0x149bfb[_0x3b484e(0x8c)]=_0x4838b6[_0x3b484e(0xc9)];const _0x5bb9c1=_0x149bfb;if(_0x4838b6[_0x3b484e(0x91)](_0x3b484e(0xc6),_0x4838b6[_0x3b484e(0x9b)])){if(_0x4838b6[_0x3b484e(0xcd)](_0x341af7,FCoreError)||_0x4838b6[_0x3b484e(0xad)](_0x341af7[_0x3b484e(0xba)],_0x4838b6[_0x3b484e(0xa0)])){if(_0x4838b6[_0x3b484e(0xcb)]!==_0x3b484e(0xa7)){const _0x2de1b9={};return _0x2de1b9[_0x3b484e(0xd1)]=_0x2b0654[_0x3b484e(0xba)],_0x2de1b9[_0x3b484e(0xbf)]=_0x554a98[_0x3b484e(0xbf)],_0x2de1b9[_0x3b484e(0xc7)]=_0x351cb7[_0x3b484e(0xc7)],_0x285016[_0x3b484e(0xba)](_0x30d4aa[_0x3b484e(0x9d)])[_0x3b484e(0xaa)](_0x2de1b9);}else return _0x4b05dd[_0x3b484e(0xba)](_0x341af7[_0x3b484e(0x9d)])[_0x3b484e(0xaa)]({'error':_0x341af7[_0x3b484e(0xba)],'message':_0x341af7[_0x3b484e(0xbf)],'details':_0x341af7[_0x3b484e(0xc7)]});}_0x378511[_0x3b484e(0xcc)][_0x3b484e(0xd1)](_0x341af7);(_0x4838b6[_0x3b484e(0xad)](process.env.trace,_0x4838b6[_0x3b484e(0xa8)])||_0x4838b6[_0x3b484e(0xad)](process.env.NODE_ENV,_0x4838b6[_0x3b484e(0x87)])||process.env.VITEST)&&console[_0x3b484e(0xd1)](_0x341af7);const _0x74787e={};return _0x74787e[_0x3b484e(0xd1)]=_0x4838b6[_0x3b484e(0x97)],_0x74787e[_0x3b484e(0xbf)]=_0x4838b6[_0x3b484e(0xbe)],_0x4b05dd[_0x3b484e(0xba)](0x1f4)[_0x3b484e(0xaa)](_0x74787e);}else _0x4791e6[_0x3b484e(0xa9)](_0x5bb9c1[_0x3b484e(0x8c)]);}),await _0x3bbdcb[_0x32658d(0xc8)](_0x4838b6[_0x32658d(0x8f)](authRoutes,_0x378511)),await _0x3bbdcb[_0x32658d(0xc8)](_0x4838b6[_0x32658d(0x8f)](resourceRoutes,_0x378511)),await _0x3bbdcb[_0x32658d(0xc8)](_0x4838b6[_0x32658d(0x8f)](fileRoutes,_0x378511)),await _0x3bbdcb[_0x32658d(0xc8)](_0x4838b6[_0x32658d(0x86)](systemRoutes,_0x378511)),_0x3bbdcb[_0x32658d(0xb9)](_0x4838b6[_0x32658d(0x96)],{'parseAs':_0x4838b6[_0x32658d(0x8a)]},urlencodedContentParser);if(!_0x3e1155[_0x32658d(0xbb)]?.[_0x32658d(0xc5)])_0x3bbdcb[_0x32658d(0xc8)](import(_0x4838b6[_0x32658d(0x88)]),{'max':_0x3e1155[_0x32658d(0xbb)]?.[_0x32658d(0xb0)]||0x64,'timeWindow':_0x3e1155[_0x32658d(0xbb)]?.[_0x32658d(0xac)]||0xea60,'hook':_0x4838b6[_0x32658d(0xb7)],'global':!![],'keyGenerator':_0x5896be=>(_0x5896be[_0x32658d(0x8b)]?.['id']||_0x5896be['ip'])+'-'+_0x5896be[_0x32658d(0xcf)][_0x32658d(0xa6)][_0x32658d(0xb4)]('?')[0x0]});else{if(_0x4838b6[_0x32658d(0x90)](_0x4838b6[_0x32658d(0xab)],_0x4838b6[_0x32658d(0xab)]))console[_0x32658d(0xa9)](_0x32658d(0xaf));else{if(_0x4838b6[_0x32658d(0x9f)](_0x33195e,_0x1caee0)||_0x4838b6[_0x32658d(0x85)](_0x4625c8[_0x32658d(0xba)],_0x4838b6[_0x32658d(0xa0)])){const _0x84e78f={};return _0x84e78f[_0x32658d(0xd1)]=_0x3229c1[_0x32658d(0xba)],_0x84e78f[_0x32658d(0xbf)]=_0x1e5107[_0x32658d(0xbf)],_0x84e78f[_0x32658d(0xc7)]=_0x275cc8[_0x32658d(0xc7)],_0x1715ed[_0x32658d(0xba)](_0x3bb743[_0x32658d(0x9d)])[_0x32658d(0xaa)](_0x84e78f);}_0x17f5d5[_0x32658d(0xcc)][_0x32658d(0xd1)](_0x35ff85);(_0x4838b6[_0x32658d(0xa3)](_0x76d7e.env.trace,_0x32658d(0xc3))||_0x554c1b.env.NODE_ENV===_0x32658d(0xc2)||_0x282589.env.VITEST)&&_0x28dc9e[_0x32658d(0xd1)](_0x2b431a);const _0x192b02={};return _0x192b02[_0x32658d(0xd1)]=_0x4838b6[_0x32658d(0x97)],_0x192b02[_0x32658d(0xbf)]=_0x32658d(0x84),_0x54b788[_0x32658d(0xba)](0x1f4)[_0x32658d(0xaa)](_0x192b02);}}_0x3bbdcb[_0x32658d(0xc8)](import(_0x4838b6[_0x32658d(0x9e)]),{'limits':{'fileSize':_0x4838b6[_0x32658d(0xce)](_0x4838b6[_0x32658d(0xa5)](_0x3e1155[_0x32658d(0xb5)],0x400),0x400)}});},_0x30a82c={};_0x30a82c[_0x551422(0x82)]=_0x551422(0x83);export default _0x214a30(plugin,_0x30a82c);
|
package/dist/fcore.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x7855cb,_0x3fd0fe){const _0x119525=_0x259e,_0x2fe959=_0x7855cb();while(!![]){try{const _0x1d9a7f=-parseInt(_0x119525(0x199))/0x1+-parseInt(_0x119525(0x194))/0x2+parseInt(_0x119525(0x193))/0x3+parseInt(_0x119525(0x1a1))/0x4+-parseInt(_0x119525(0x195))/0x5+parseInt(_0x119525(0x1a2))/0x6+parseInt(_0x119525(0x18e))/0x7*(parseInt(_0x119525(0x198))/0x8);if(_0x1d9a7f===_0x3fd0fe)break;else _0x2fe959['push'](_0x2fe959['shift']());}catch(_0x416f7c){_0x2fe959['push'](_0x2fe959['shift']());}}}(_0x28db,0x232dd));import{loadConfig}from'./config.js';import{createContext,setContext}from'./context.js';import{createAudit,createDatabase,createDictionary,createFileS3,createLogger,createRedis,createResource}from'./plugins/index.js';function _0x259e(_0x4fbbdc,_0x4e031a){_0x4fbbdc=_0x4fbbdc-0x18a;const _0x28db78=_0x28db();let _0x259e3f=_0x28db78[_0x4fbbdc];return _0x259e3f;}export async function createFCore(_0x5bfa6b={}){const _0x44e9ca=_0x259e,_0x55afdc={'DNyvU':function(_0x524437,_0x54f115){return _0x524437(_0x54f115);},'AHaMD':function(_0xc0389b,_0x5376b3){return _0xc0389b(_0x5376b3);},'aCTUV':function(_0x1bd1f6){return _0x1bd1f6();},'aHxTE':function(_0x148877,_0x1cdffc){return _0x148877(_0x1cdffc);},'sizhj':function(_0x150c90,_0x39f9f8){return _0x150c90(_0x39f9f8);}},_0xfb04e7=_0x55afdc[_0x44e9ca(0x1aa)](loadConfig,_0x5bfa6b[_0x44e9ca(0x19d)]),_0x1ec8a0=_0x55afdc[_0x44e9ca(0x1a8)](createRedis,_0xfb04e7[_0x44e9ca(0x1a9)]),_0x396758=_0x55afdc[_0x44e9ca(0x18f)](createLogger),_0x479b3c=createDatabase(_0xfb04e7['pg']),_0x2783df={};_0x2783df[_0x44e9ca(0x18b)]=_0xfb04e7['s3'][_0x44e9ca(0x18b)],_0x2783df[_0x44e9ca(0x192)]=_0xfb04e7['s3'][_0x44e9ca(0x192)],_0x2783df[_0x44e9ca(0x18d)]=_0xfb04e7['s3'][_0x44e9ca(0x18d)],_0x2783df[_0x44e9ca(0x1a6)]=_0xfb04e7['s3'][_0x44e9ca(0x1a6)],_0x2783df[_0x44e9ca(0x19a)]=_0xfb04e7['s3'][_0x44e9ca(0x19a)],_0x2783df[_0x44e9ca(0x19c)]=_0xfb04e7['s3'][_0x44e9ca(0x19c)],_0x2783df[_0x44e9ca(0x18a)]=_0xfb04e7['s3'][_0x44e9ca(0x18a)],_0x2783df[_0x44e9ca(0x19b)]=_0xfb04e7['s3'][_0x44e9ca(0x19b)],_0x2783df[_0x44e9ca(0x1a3)]=_0xfb04e7['s3'][_0x44e9ca(0x1a3)];const _0x5d5de3=_0x55afdc[_0x44e9ca(0x1aa)](createFileS3,_0x2783df),_0xa135fe={};_0xa135fe['pg']=_0x479b3c,_0xa135fe[_0x44e9ca(0x19f)]=_0x396758;const _0x579928=createAudit(_0xa135fe),_0x2ce43a={};_0x2ce43a['pg']=_0x479b3c,_0x2ce43a[_0x44e9ca(0x190)]=_0x5bfa6b[_0x44e9ca(0x190)];const _0x3a5dea=_0x55afdc[_0x44e9ca(0x196)](createDictionary,_0x2ce43a),_0x51ca2e={};_0x51ca2e['pg']=_0x479b3c,_0x51ca2e[_0x44e9ca(0x19f)]=_0x396758,_0x51ca2e[_0x44e9ca(0x197)]=_0x579928;const _0x3410b6=createResource(_0x51ca2e);_0x5bfa6b[_0x44e9ca(0x19e)]?.[_0x44e9ca(0x1a5)]&&_0x3410b6[_0x44e9ca(0x1a4)](_0x5bfa6b[_0x44e9ca(0x19e)]);const _0x34a520={};_0x34a520[_0x44e9ca(0x19d)]=_0xfb04e7,_0x34a520[_0x44e9ca(0x19f)]=_0x396758,_0x34a520[_0x44e9ca(0x1a9)]=_0x1ec8a0,_0x34a520['pg']=_0x479b3c,_0x34a520[_0x44e9ca(0x191)]=_0x5d5de3,_0x34a520[_0x44e9ca(0x1a0)]=_0x3410b6,_0x34a520[_0x44e9ca(0x197)]=_0x579928,_0x34a520[_0x44e9ca(0x1a7)]=_0x3a5dea;const _0xbb7251=createContext(_0x34a520);return _0x55afdc[_0x44e9ca(0x18c)](setContext,_0xbb7251),_0xbb7251;}function _0x28db(){const _0x36862a=['AHaMD','redis','DNyvU','forcePathStyle','endpoint','sizhj','bucket','182qThntr','aCTUV','dictionaries','file','region','74847xWfWza','390050GjUSCK','967310xBOLGD','aHxTE','audit','163456pPaktN','281224FheCQt','secretKey','tokenSecret','folder','config','resources','logger','resource','371668RkpfuQ','988236bXGeVt','tokenTtl','register','length','accessKey','dictionary'];_0x28db=function(){return _0x36862a;};return _0x28db();}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd126ff,_0x3d34df){var _0x2620aa=_0x2c00,_0x51bdfa=_0xd126ff();while(!![]){try{var _0x5e3747=-parseInt(_0x2620aa(0xce))/0x1+-parseInt(_0x2620aa(0xcd))/0x2+parseInt(_0x2620aa(0xd0))/0x3+parseInt(_0x2620aa(0xd2))/0x4+-parseInt(_0x2620aa(0xd1))/0x5*(-parseInt(_0x2620aa(0xcf))/0x6)+-parseInt(_0x2620aa(0xd3))/0x7*(parseInt(_0x2620aa(0xcb))/0x8)+-parseInt(_0x2620aa(0xcc))/0x9;if(_0x5e3747===_0x3d34df)break;else _0x51bdfa['push'](_0x51bdfa['shift']());}catch(_0x534f34){_0x51bdfa['push'](_0x51bdfa['shift']());}}}(_0x5973,0xc117b));export*from'./errors.js';function _0x2c00(_0x3997d3,_0x415887){_0x3997d3=_0x3997d3-0xcb;var _0x5973ed=_0x5973();var _0x2c0037=_0x5973ed[_0x3997d3];return _0x2c0037;}export*from'./config.js';export*from'./context.js';export*from'./plugins/index.js';export*from'./fcore.js';export*from'./migrations/runner.js';function _0x5973(){var _0x6b8239=['554386HSOdkE','1410226anWrIP','771036hpqdyB','3855639MnNGBm','50IwFNqn','6117536mJkCWA','21868SZqTom','56LXIIbB','14395167IpsEEU'];_0x5973=function(){return _0x6b8239;};return _0x5973();}export*from'./type.js';
|
package/dist/migrations/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const _0x4be6d8=_0x3721;function _0x3721(_0x2b6154,_0x364f52){_0x2b6154=_0x2b6154-0x14d;const _0x260168=_0x2601();let _0x3721c2=_0x260168[_0x2b6154];return _0x3721c2;}(function(_0xec2cf0,_0x2cbac9){const _0x2c500b=_0x3721,_0x21f288=_0xec2cf0();while(!![]){try{const _0x416f8e=-parseInt(_0x2c500b(0x153))/0x1+-parseInt(_0x2c500b(0x14d))/0x2+parseInt(_0x2c500b(0x15b))/0x3*(-parseInt(_0x2c500b(0x15f))/0x4)+-parseInt(_0x2c500b(0x161))/0x5+-parseInt(_0x2c500b(0x155))/0x6*(-parseInt(_0x2c500b(0x157))/0x7)+-parseInt(_0x2c500b(0x154))/0x8*(parseInt(_0x2c500b(0x151))/0x9)+-parseInt(_0x2c500b(0x15a))/0xa*(-parseInt(_0x2c500b(0x15c))/0xb);if(_0x416f8e===_0x2cbac9)break;else _0x21f288['push'](_0x21f288['shift']());}catch(_0x5b3e1f){_0x21f288['push'](_0x21f288['shift']());}}}(_0x2601,0xf40e6));import{runMigrations}from'./runner.js';import{loadConfig}from'../config.js';function _0x2601(){const _0x1aeaa6=['SKIP','288NtKyVJ','exitCode','546785imsmJU','457200HUPQyI','18JyblEp','file','3525466iqhRkC','database','OK\x20\x20','610yvKhwO','3lfyuBP','591998brEpyE','Loaded\x20configuration:','error','360284yqJsiX','log','1875860ItEQrF','1906660OkGKgn','status','run'];_0x2601=function(){return _0x1aeaa6;};return _0x2601();}try{const config=loadConfig();console[_0x4be6d8(0x160)](_0x4be6d8(0x15d),config['pg']);const _0x3926b6={};_0x3926b6[_0x4be6d8(0x158)]=config['pg'];for(const r of await runMigrations(_0x3926b6))console[_0x4be6d8(0x160)]((r[_0x4be6d8(0x14e)]===_0x4be6d8(0x14f)?_0x4be6d8(0x159):_0x4be6d8(0x150))+'\x20'+r[_0x4be6d8(0x156)]);}catch(_0x230461){console[_0x4be6d8(0x15e)](_0x230461),process[_0x4be6d8(0x152)]=0x1;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1eb83f,_0x1f8a18){const _0x1c7a3a=_0x3c9d,_0x24becc=_0x1eb83f();while(!![]){try{const _0x1b4045=-parseInt(_0x1c7a3a(0x154))/0x1+-parseInt(_0x1c7a3a(0x150))/0x2*(parseInt(_0x1c7a3a(0x146))/0x3)+parseInt(_0x1c7a3a(0x139))/0x4+parseInt(_0x1c7a3a(0x13e))/0x5+-parseInt(_0x1c7a3a(0x177))/0x6+-parseInt(_0x1c7a3a(0x14a))/0x7*(-parseInt(_0x1c7a3a(0x160))/0x8)+-parseInt(_0x1c7a3a(0x145))/0x9;if(_0x1b4045===_0x1f8a18)break;else _0x24becc['push'](_0x24becc['shift']());}catch(_0xc7f0d4){_0x24becc['push'](_0x24becc['shift']());}}}(_0x1491,0xc56b3));function _0x1491(){const _0x3452c4=['10761096buWLdJ','utf8','lSzNa','EthiX','vuZDG','sbxmt','QEKrg','\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20schema_migrations\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20version\x20varchar(255)\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20applied_at\x20timestamptz\x20NOT\x20NULL\x20DEFAULT\x20now()\x0a\x20\x20\x20\x20\x20\x20)\x0a\x20\x20\x20\x20','hostname','INSERT\x20INTO\x20schema_migrations(version)\x20VALUES\x20($1)','zZoBH','OMrCq','password','empty\x20pg','TmcEX','status','map','COMMIT','slice','FTVEU','RiBUX','file','username','5300226WZwqrK','AjTSI','query','endsWith','MTMJP','SELECT\x20version\x20FROM\x20schema_migrations','GPXeD','fJpOL','dir','end','TUsWE','version','eCPKL','hLhlb','pathname','4666492dvlptV','fHHrg','connect','NVOdI','rAWEB','7456625zIlvkN','databaseUrl','DATABASE_URL\x20or\x20database\x20config\x20is\x20required','release','filter','skip','rows','7569369hutFcA','2625YYebOQ','BEGIN','join','skbTH','7SXHPZi','.sql','ROLLBACK','xQQHx','jwAGQ','migrations','982nlWyfi','hfytl','readdir','sort','1040421sqQayn','push','has','run','drMGq','resolve','tIPTq','database','vrQua','readFile','qaPyV','port'];_0x1491=function(){return _0x3452c4;};return _0x1491();}import _0x18184c from'node:fs/promises';import _0xe7e38e from'node:path';import{createDatabase}from'../plugins/pg.js';export async function runMigrations(_0x16af57={}){const _0x317fdd=_0x3c9d,_0xe972b7={'hfytl':_0x317fdd(0x140),'vrQua':_0x317fdd(0x14f),'MTMJP':function(_0x5f4389,_0x5f2a7a){return _0x5f4389(_0x5f2a7a);},'rAWEB':function(_0x3d1952,_0x1dd56c){return _0x3d1952!==_0x1dd56c;},'lSzNa':_0x317fdd(0x15e),'TmcEX':_0x317fdd(0x158),'TUsWE':_0x317fdd(0x16d),'OMrCq':_0x317fdd(0x17c),'eCPKL':_0x317fdd(0x166),'AjTSI':_0x317fdd(0x14e),'NVOdI':_0x317fdd(0x143),'RiBUX':_0x317fdd(0x147),'zZoBH':_0x317fdd(0x169),'EthiX':_0x317fdd(0x171),'tIPTq':_0x317fdd(0x149),'FTVEU':_0x317fdd(0x164),'sbxmt':_0x317fdd(0x14c)},_0x3fb74d=_0xe7e38e[_0x317fdd(0x159)](_0x16af57[_0x317fdd(0x132)]??_0xe972b7[_0x317fdd(0x15c)]),_0x4809bf=_0x16af57[_0x317fdd(0x15b)]??_0xe972b7[_0x317fdd(0x17b)](databaseFromUrl,_0x16af57[_0x317fdd(0x13f)]??process.env.DATABASE_URL);if(!_0x4809bf)throw new Error(_0xe972b7[_0x317fdd(0x151)]);const _0x1a9642=_0xe972b7[_0x317fdd(0x17b)](createDatabase,_0x4809bf);if(!_0x1a9642){if(_0xe972b7[_0x317fdd(0x13d)](_0xe972b7[_0x317fdd(0x162)],_0xe972b7[_0x317fdd(0x16e)]))throw new Error(_0xe972b7[_0x317fdd(0x134)]);else throw new _0x1cff0e(_0xe972b7[_0x317fdd(0x151)]);}const _0x35e6f7=[];try{await _0x1a9642[_0x317fdd(0x179)](_0x317fdd(0x167));const _0x1c82b3=await _0x1a9642[_0x317fdd(0x179)](_0xe972b7[_0x317fdd(0x16b)]),_0x4d6e6c=new Set(_0x1c82b3[_0x317fdd(0x144)][_0x317fdd(0x170)](_0xfb6a2b=>_0xfb6a2b[_0x317fdd(0x135)])),_0x188265=(await _0x18184c[_0x317fdd(0x152)](_0x3fb74d))[_0x317fdd(0x142)](_0x3760fa=>_0x3760fa[_0x317fdd(0x17a)](_0x317fdd(0x14b)))[_0x317fdd(0x153)]();for(const _0x390b0e of _0x188265){if(_0xe972b7[_0x317fdd(0x136)]===_0xe972b7[_0x317fdd(0x178)])return _0x390551;else{if(_0x4d6e6c[_0x317fdd(0x156)](_0x390b0e)){const _0xe78cd7={};_0xe78cd7[_0x317fdd(0x175)]=_0x390b0e,_0xe78cd7[_0x317fdd(0x16f)]=_0xe972b7[_0x317fdd(0x13c)],_0x35e6f7[_0x317fdd(0x155)](_0xe78cd7);continue;}const _0x6da40c=await _0x18184c[_0x317fdd(0x15d)](_0xe7e38e[_0x317fdd(0x148)](_0x3fb74d,_0x390b0e),_0x317fdd(0x161)),_0x39a8b7=await _0x1a9642[_0x317fdd(0x13b)]();try{await _0x39a8b7[_0x317fdd(0x179)](_0xe972b7[_0x317fdd(0x174)]),await _0x39a8b7[_0x317fdd(0x179)](_0x6da40c),await _0x39a8b7[_0x317fdd(0x179)](_0xe972b7[_0x317fdd(0x16a)],[_0x390b0e]),await _0x39a8b7[_0x317fdd(0x179)](_0xe972b7[_0x317fdd(0x163)]);}catch(_0x5ece1f){if(_0xe972b7[_0x317fdd(0x15a)]===_0xe972b7[_0x317fdd(0x173)])_0x1e2d81[_0x317fdd(0x141)]();else{await _0x39a8b7[_0x317fdd(0x179)](_0xe972b7[_0x317fdd(0x165)]);throw _0x5ece1f;}}finally{_0x39a8b7[_0x317fdd(0x141)]();}const _0x59bddc={};_0x59bddc[_0x317fdd(0x175)]=_0x390b0e,_0x59bddc[_0x317fdd(0x16f)]=_0x317fdd(0x157),_0x35e6f7[_0x317fdd(0x155)](_0x59bddc);}}return _0x35e6f7;}finally{await _0x1a9642[_0x317fdd(0x133)]();}}function _0x3c9d(_0x12ddfb,_0x1aff5e){_0x12ddfb=_0x12ddfb-0x131;const _0x14913f=_0x1491();let _0x3c9d4a=_0x14913f[_0x12ddfb];return _0x3c9d4a;}function databaseFromUrl(_0x400095){const _0x50cf8b=_0x3c9d,_0x2ddaa4={'xQQHx':_0x50cf8b(0x16d),'GPXeD':function(_0x56e357,_0x423269){return _0x56e357!==_0x423269;},'hLhlb':_0x50cf8b(0x131),'fHHrg':function(_0x3b8314,_0x3df3e7){return _0x3b8314(_0x3df3e7);}};if(!_0x400095){if(_0x2ddaa4[_0x50cf8b(0x17d)](_0x2ddaa4[_0x50cf8b(0x137)],_0x2ddaa4[_0x50cf8b(0x137)]))throw new _0x1ed101(LKITyc[_0x50cf8b(0x14d)]);else return undefined;}const _0x2a2919=new URL(_0x400095);return{'host':_0x2a2919[_0x50cf8b(0x168)],'port':_0x2ddaa4[_0x50cf8b(0x13a)](Number,_0x2a2919[_0x50cf8b(0x15f)]||0x1538),'database':_0x2a2919[_0x50cf8b(0x138)][_0x50cf8b(0x172)](0x1),'user':_0x2ddaa4[_0x50cf8b(0x13a)](decodeURIComponent,_0x2a2919[_0x50cf8b(0x176)]),'password':_0x2ddaa4[_0x50cf8b(0x13a)](decodeURIComponent,_0x2a2919[_0x50cf8b(0x16c)])};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c39f8,_0xd6c04f){var _0x279e1b=_0xb4de,_0x4e7593=_0x5c39f8();while(!![]){try{var _0x29d586=parseInt(_0x279e1b(0x156))/0x1*(parseInt(_0x279e1b(0x154))/0x2)+-parseInt(_0x279e1b(0x158))/0x3*(-parseInt(_0x279e1b(0x15a))/0x4)+parseInt(_0x279e1b(0x152))/0x5*(parseInt(_0x279e1b(0x15b))/0x6)+-parseInt(_0x279e1b(0x15c))/0x7*(-parseInt(_0x279e1b(0x153))/0x8)+parseInt(_0x279e1b(0x157))/0x9+-parseInt(_0x279e1b(0x155))/0xa*(parseInt(_0x279e1b(0x15d))/0xb)+-parseInt(_0x279e1b(0x159))/0xc;if(_0x29d586===_0xd6c04f)break;else _0x4e7593['push'](_0x4e7593['shift']());}catch(_0xd903f6){_0x4e7593['push'](_0x4e7593['shift']());}}}(_0x4a71,0x1b915));function _0xb4de(_0x382be1,_0x40b2a2){_0x382be1=_0x382be1-0x152;var _0x4a717d=_0x4a71();var _0xb4de9d=_0x4a717d[_0x382be1];return _0xb4de9d;}export*from'./route.js';export*from'./services/login.js';export*from'./services/logout.js';function _0x4a71(){var _0x43d77e=['9046HvVucd','1498158jeDUqo','8121KMDZxw','6450408oTlgQX','12mYfyQS','1130838PUeWGt','462CIMWEn','316811caqPbl','5hQPzus','22976xfjgOr','28pUMrbW','10SSBCSt'];_0x4a71=function(){return _0x43d77e;};return _0x4a71();}export*from'./services/get-current-user.js';export*from'./services/verify-two-factor.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(D,L){const V=p,s=D();while(!![]){try{const X=-parseInt(V(0x8d))/0x1+parseInt(V(0xd1))/0x2*(parseInt(V(0xa3))/0x3)+parseInt(V(0x10d))/0x4*(parseInt(V(0xa6))/0x5)+-parseInt(V(0xef))/0x6*(parseInt(V(0xf1))/0x7)+-parseInt(V(0x107))/0x8*(-parseInt(V(0xb3))/0x9)+parseInt(V(0xc0))/0xa*(-parseInt(V(0xc5))/0xb)+-parseInt(V(0xd9))/0xc*(-parseInt(V(0xb0))/0xd);if(X===L)break;else s['push'](s['shift']());}catch(M){s['push'](s['shift']());}}}(m,0x1890f));function p(D,L){D=D-0x88;const s=m();let X=s[D];return X;}import r from'./services/login.js';function m(){const Q=['MEdDy','EZDrS','DWxUI','Bqlxg','PTSyR','writable','Returns\x20the\x20QR\x20code\x20required\x20to\x20configure\x20two-factor\x20authentication.','ILUxQ','auth','mmkKP','heJQI','uyPVM','qhhRK','destroy','Sign\x20in','Bsksd','19242MWJAOJ','Not\x20authorized','type','12185UHtBHo','/api/2factor/reset','MIgut','summary','access','MNfgW','post','/api/logout','bozeE','Reset\x20two-factor\x20authentication','6552dByghA','Verify\x20two-factor\x20code','DtTjE','63jCxUPu','Returns\x20the\x20current\x20two-factor\x20authentication\x20status.','IjKLf','GgIXJ','XviRx','Get\x20two-factor\x20status','uOZdM','Sign\x20out','Verifies\x20a\x20two-factor\x20authentication\x20code.','Recover\x20two-factor\x20access','fFQgP','lMDoa','Lcxql','24540GVycaP','cookieName','body','goyZe','ruRCM','803OuYgiC','Terminates\x20the\x20current\x20user\x20session.','otFiv','iwdau','value','public','iLdyx','session','Get\x20two-factor\x20QR\x20code','iGfiI','schema','credentials','10jKeimY','byChg','iIOXW','vVXJo','FtncU','INTNW','/api/2factor','AVOdg','8292xvclie','pWabr','cookie','klILN','clearCookie','uuWWS','sessionTimeout','XzMCz','tags','redirectUrl','sessionId','wYMMF','Resets\x20two-factor\x20authentication\x20for\x20the\x20current\x20user.','Get\x20current\x20user','/api/2factor/qr','get','/api/user','ajjui','not\x20supported\x20yet','maxAge','IjPyZ','dxOMw','3084WfYbci','permissions','1799bKxTdc','QDzJt','JYiQc','sfrww','Rxxpp','/api/2factor/verify','hxfwh','XhRci','xAKYe','defineProperty','/api/login','save','nfonG','Authenticates\x20a\x20user\x20and\x20returns\x20a\x20bearer\x20access\x20token.','QXzTe','fcore','RjwTG','Uses\x20a\x20recovery\x20code\x20to\x20restore\x20two-factor\x20access.','YBOfk','config','bfLeM','TITmz','169184fMcHOr','qloqX','description','user','rwniJ','DgagK','4JazOoe','VYAWI','lgKmY','oaATA','AynOD','login','Returns\x20the\x20authenticated\x20user\x27s\x20safe\x20profile.','118944lRBeBZ','/api/2factor/recovery','twoFactor','configurable','gZZwG','uNwoC'];m=function(){return Q;};return m();}import i from'./services/logout.js';import q from'./services/get-current-user.js';import{authSchemas}from'./schema.js';import R from'../../shared/getIP.js';import{UnauthorizedError,UnsupportedError}from'../../errors.js';export function authRoutes(D){const a=p,L={'vVXJo':a(0xa4),'otFiv':a(0xeb),'dxOMw':function(s,X){return s!==X;},'rwniJ':function(s,X,M){return s(X,M);},'TITmz':a(0xcc),'DgagK':a(0xd3),'XzMCz':function(s,X){return s===X;},'MIgut':a(0x105),'IjKLf':function(s,X){return s*X;},'wYMMF':function(s,X){return s!==X;},'XviRx':a(0x93),'AVOdg':a(0x9f),'sfrww':a(0xf7),'ILUxQ':a(0xfb),'INTNW':a(0x100),'uNwoC':a(0xa1),'QXzTe':a(0xad),'EZDrS':a(0xba),'bozeE':a(0xc6),'FtncU':a(0x10a),'klILN':a(0xe9),'gZZwG':a(0x9b),'JYiQc':a(0xe6),'Bqlxg':a(0x8c),'MNfgW':a(0xd7),'uOZdM':a(0xb8),'mmkKP':a(0xb4),'Lcxql':a(0xcd),'lMDoa':a(0x99),'IjPyZ':a(0xf6),'byChg':a(0xb1),'uyPVM':a(0xbb),'PTSyR':a(0x102),'AynOD':a(0xa7),'pWabr':a(0xaf)};return async M=>{const F=a,u={'Rxxpp':F(0xa4),'qloqX':function(g,J){return g===J;},'YBOfk':F(0xf9),'iwdau':function(g,J){return g(J);},'DWxUI':function(g,J,S){const w=F;return L[w(0x10b)](g,J,S);},'RjwTG':function(g,J){const W=F;return L[W(0xb5)](g,J);},'goyZe':function(g,J){const P=F;return L[P(0xe4)](g,J);},'heJQI':L[F(0xb7)],'uuWWS':L[F(0xc7)],'Bsksd':function(g,J){const v=F;return L[v(0xe0)](g,J);},'DtTjE':L[F(0xd8)],'iGfiI':L[F(0xf4)]};M[F(0xac)](L[F(0x9a)],{'schema':{'tags':[L[F(0xd6)],F(0x9b)],'summary':L[F(0x92)],'description':F(0xfe),'access':F(0xca),'permissions':[],'body':authSchemas[F(0xd0)]}},async g=>{const n=F,J={};J[n(0xcb)]=u[n(0xf5)];const S=J;if(u[n(0x108)](u[n(0x103)],u[n(0x103)])){const z=u[n(0xc8)](R,g),l={...g[n(0xc2)]};l['ip']=z;const {user:t,redirectUrl:redirectUrl='/'}=await u[n(0x95)](r,l,D);await g[n(0x8b)](t);const y=u[n(0x101)](u[n(0x101)](D[n(0x104)][n(0x9b)][n(0xdf)],0x3e8),0x3c);if(g[n(0xcc)]?.[n(0xdb)]){if(u[n(0xc3)](n(0x93),u[n(0x9d)]))throw new l(u[n(0xf5)]);else g[n(0xcc)][n(0xdb)][n(0xec)]=y;}await g[n(0xcc)][n(0xfc)]();const E={};E['id']=t['id'],E[n(0xa5)]=t[n(0xa5)];const c={};return c[n(0x10a)]=E,c[n(0xe2)]=redirectUrl,c;}else throw new B(S[n(0xcb)]);}),M[F(0xac)](L[F(0xff)],{'schema':{'tags':[L[F(0xd6)],F(0x9b)],'summary':L[F(0x94)],'description':L[F(0xae)],'access':L[F(0xd5)],'permissions':[]}},async(g,J)=>{const Z=F,S={};S[Z(0x88)]=L[Z(0xd4)],S[Z(0xf8)]=L[Z(0xc7)];const z=S,l={};l[Z(0xe2)]='/';const t=l;if(!g[Z(0x10a)]){if(L[Z(0xee)](Z(0xea),Z(0xea))){if(!E[Z(0x10a)])throw new o(z[Z(0x88)]);throw new u(z[Z(0xf8)]);}else return t;}const y={};y[Z(0xe3)]=g[Z(0xcc)][Z(0xe3)],y[Z(0x10a)]=g[Z(0x10a)],await L[Z(0x10b)](i,y,D),await g[Z(0xcc)][Z(0xa0)](),J[Z(0xdd)](D[Z(0x104)][Z(0x9b)][Z(0xc1)]);const E={};return E[Z(0xc9)]=null,E[Z(0x98)]=![],E[Z(0x90)]=![],Object[Z(0xfa)](g,L[Z(0x106)],E),t;}),M[F(0xe8)](L[F(0xdc)],{'schema':{'tags':[L[F(0xd6)],L[F(0x91)]],'summary':L[F(0xf3)],'description':L[F(0x96)],'access':L[F(0xd5)],'permissions':[]}},async g=>q({'user':g[F(0x10a)]})),M[F(0xe8)](L[F(0xab)],{'schema':{'tags':[L[F(0xd6)],F(0x9b)],'summary':L[F(0xb9)],'description':L[F(0x9c)],'access':L[F(0xd5)],'permissions':[]}},async g=>{const x=F;if(u[x(0x108)](x(0x10e),x(0x89))){if(!h[x(0x10a)])throw new o(x(0xa4));throw new u(u[x(0xde)]);}else{if(!g[x(0x10a)])throw new UnauthorizedError(u[x(0xf5)]);throw new UnsupportedError(x(0xeb));}});const o={};o[F(0xe1)]=[L[F(0xd6)],L[F(0x91)]],o[F(0xa9)]=L[F(0xbf)],o[F(0x109)]=L[F(0xbe)],o[F(0xaa)]=L[F(0xd5)],o[F(0xf0)]=[];const B={};B[F(0xcf)]=o,M[F(0xe8)](F(0xe7),B,async g=>{const N=F;if(!g[N(0x10a)])throw new UnauthorizedError(u[N(0xf5)]);throw new UnsupportedError(N(0xeb));}),M[F(0xac)](L[F(0xed)],{'schema':{'tags':[L[F(0xd6)],L[F(0x91)]],'summary':L[F(0xd2)],'description':L[F(0x9e)],'access':L[F(0xd5)],'permissions':[],'body':authSchemas[F(0x8f)]}},async g=>{const U=F,J={};J[U(0xb6)]=u[U(0xf5)],J[U(0xc4)]=U(0xeb);const S=J;if(u[U(0xa2)](U(0xfd),u[U(0xb2)])){if(!h[U(0x10a)])throw new o(S[U(0xb6)]);throw new u(S[U(0xc4)]);}else{if(!g[U(0x10a)]){if(u[U(0x108)](u[U(0xce)],u[U(0xce)]))throw new UnauthorizedError(U(0xa4));else throw new B(u[U(0xf5)]);}throw new UnsupportedError(U(0xeb));}});const O={};O[F(0xe1)]=[L[F(0xd6)],L[F(0x91)]],O[F(0xa9)]=F(0xbc),O[F(0x109)]=L[F(0x97)],O[F(0xaa)]=F(0x10a),O[F(0xf0)]=[],O[F(0xc2)]=authSchemas[F(0x8f)];const h={};h[F(0xcf)]=O,M[F(0xac)](F(0x8e),h,async g=>{const b=F;if(!g[b(0x10a)]){if(L[b(0xee)](L[b(0x10c)],L[b(0x10c)]))O[b(0xcc)][b(0xdb)][b(0xec)]=h;else throw new UnauthorizedError(L[b(0xd4)]);}throw new UnsupportedError(L[b(0xc7)]);}),M[F(0xac)](L[F(0x8a)],{'schema':{'tags':[L[F(0xd6)],L[F(0x91)]],'summary':L[F(0xda)],'description':F(0xe5),'access':L[F(0xd5)],'permissions':[],'body':authSchemas[F(0x8f)]}},async g=>{const f=F,J={};J[f(0xbd)]=L[f(0xd4)],J[f(0xf2)]=L[f(0xc7)];const S=J;if(L[f(0xe0)](L[f(0xa8)],L[f(0xa8)])){if(!g[f(0x10a)])throw new UnauthorizedError(L[f(0xd4)]);throw new UnsupportedError(L[f(0xc7)]);}else{if(!h[f(0x10a)])throw new o(ZXFSJj[f(0xbd)]);throw new u(ZXFSJj[f(0xf2)]);}});};}
|
|
1
|
+
(function(_0x26137a,_0x35a3c2){const _0x1be33d=_0x3532,_0x36a89d=_0x26137a();while(!![]){try{const _0x35c94f=parseInt(_0x1be33d(0xfa))/0x1+parseInt(_0x1be33d(0x12e))/0x2*(parseInt(_0x1be33d(0xfb))/0x3)+parseInt(_0x1be33d(0x168))/0x4+-parseInt(_0x1be33d(0x163))/0x5+parseInt(_0x1be33d(0x13c))/0x6+-parseInt(_0x1be33d(0x11c))/0x7+parseInt(_0x1be33d(0x101))/0x8;if(_0x35c94f===_0x35a3c2)break;else _0x36a89d['push'](_0x36a89d['shift']());}catch(_0x5a1cb2){_0x36a89d['push'](_0x36a89d['shift']());}}}(_0x58d2,0x9ddb8));import _0x11f01e from'./services/login.js';function _0x58d2(){const _0x3f765c=['udlSu','ImMtP','Verifies\x20a\x20two-factor\x20authentication\x20code.','destroy','Verify\x20two-factor\x20code','nJiMC','olidE','aduso','redirectUrl','wcQkZ','5099410STezrF','Resets\x20two-factor\x20authentication\x20for\x20the\x20current\x20user.','tags','Uses\x20a\x20recovery\x20code\x20to\x20restore\x20two-factor\x20access.','twoFactor','1143912aWIgzi','Get\x20current\x20user','/api/2factor/qr','gqWwl','zJuFs','dMlej','cookieName','Sign\x20out','bWear','vAAWp','sSurx','defineProperty','cgFQD','session','Sign\x20in','Not\x20authorized','summary','AmeFS','clearCookie','dgTDF','public','NdDYm','517468cbOFmm','3Akkrty','jDEeh','/api/user','jnfjG','YhFfo','xayUY','2631792XZdqFw','not\x20supported\x20yet','Dqpnj','NGiAt','sessionTimeout','credentials','lZwTa','description','Returns\x20the\x20current\x20two-factor\x20authentication\x20status.','URXoK','Get\x20two-factor\x20QR\x20code','rRUDA','xsHpc','config','permissions','cookie','LhtGH','fcore','MaOay','Recover\x20two-factor\x20access','EfIGC','dPFMJ','ZWeyV','login','/api/login','bJbFH','/api/2factor/recovery','2932748bnIgGr','XTxnT','Reset\x20two-factor\x20authentication','Terminates\x20the\x20current\x20user\x20session.','VFKmc','hHuyZ','/api/2factor/reset','/api/2factor','configurable','maxAge','josdS','Authenticates\x20a\x20user\x20and\x20returns\x20a\x20bearer\x20access\x20token.','writable','dRMCH','save','fAazJ','iRkcd','yPYVT','1897570iXnELP','fgGNV','mMMhp','HCAhN','dFMBU','user','schema','TVbyA','FwezN','GKBMD','DXRQK','type','qmzUc','auth','25350nSMhEi','ogxfz','Get\x20two-factor\x20status','get','post','WeNYG','iOFOT','NaXeB','/api/logout','fEqIP','vOFyy','yIYfw','AtOXj','kUYIk','Returns\x20the\x20authenticated\x20user\x27s\x20safe\x20profile.','tpglp','value','body','sessionId','FDYHW','Fskgu','eDSNS','iMPrV','AuGRr','/api/2factor/verify','KJnKS','Returns\x20the\x20QR\x20code\x20required\x20to\x20configure\x20two-factor\x20authentication.','zANpf','access'];_0x58d2=function(){return _0x3f765c;};return _0x58d2();}import _0x53bde7 from'./services/logout.js';import _0x27db49 from'./services/get-current-user.js';function _0x3532(_0x267b95,_0x2ee8fb){_0x267b95=_0x267b95-0xf0;const _0x58d2d7=_0x58d2();let _0x35322c=_0x58d2d7[_0x267b95];return _0x35322c;}import{authSchemas}from'./schema.js';import _0x5549dd from'../../shared/getIP.js';import{UnauthorizedError,UnsupportedError}from'../../errors.js';export function authRoutes(_0xbeaa0b){const _0x95b738=_0x3532,_0x222c6e={'olidE':_0x95b738(0xf3),'dMlej':_0x95b738(0x102),'ZWeyV':function(_0x5f4c91,_0x42d450){return _0x5f4c91!==_0x42d450;},'dFMBU':_0x95b738(0x115),'fAazJ':_0x95b738(0x145),'qmzUc':_0x95b738(0x149),'FwezN':_0x95b738(0x107),'WeNYG':_0x95b738(0x10a),'vOFyy':function(_0x24b607,_0x283d32,_0x47766e){return _0x24b607(_0x283d32,_0x47766e);},'hHuyZ':function(_0x7ef8c6,_0x2a5daf){return _0x7ef8c6*_0x2a5daf;},'bWear':_0x95b738(0xf1),'zANpf':function(_0x4cac84,_0x575053){return _0x4cac84!==_0x575053;},'jnfjG':_0x95b738(0x143),'AuGRr':_0x95b738(0x14b),'FDYHW':function(_0x18e8da,_0x8443d2){return _0x18e8da===_0x8443d2;},'Dqpnj':_0x95b738(0x172),'eDSNS':_0x95b738(0x119),'nJiMC':_0x95b738(0x112),'josdS':_0x95b738(0x13b),'AmeFS':_0x95b738(0xf2),'NGiAt':_0x95b738(0xf8),'AtOXj':_0x95b738(0x144),'xayUY':_0x95b738(0x16f),'zJuFs':_0x95b738(0x11f),'VFKmc':_0x95b738(0xfd),'jDEeh':_0x95b738(0x169),'fgGNV':_0x95b738(0x14a),'MaOay':_0x95b738(0x133),'dgTDF':_0x95b738(0x13e),'dPFMJ':_0x95b738(0x109),'iMPrV':_0x95b738(0x10b),'DXRQK':_0x95b738(0x156),'iOFOT':_0x95b738(0x154),'xsHpc':_0x95b738(0x15d),'aduso':_0x95b738(0x15b),'XTxnT':_0x95b738(0x11b),'NdDYm':_0x95b738(0x114),'KJnKS':_0x95b738(0x166),'yIYfw':_0x95b738(0x164)};return async _0x47fcc1=>{const _0x27f1a9=_0x95b738,_0x1ba5f6={'wcQkZ':function(_0x1643aa,_0x25fe0a,_0x81f45e){const _0x17728c=_0x3532;return _0x222c6e[_0x17728c(0x146)](_0x1643aa,_0x25fe0a,_0x81f45e);},'bJbFH':function(_0x1a3ec9,_0x5d781b){const _0x2516d6=_0x3532;return _0x222c6e[_0x2516d6(0x121)](_0x1a3ec9,_0x5d781b);},'Fskgu':_0x222c6e[_0x27f1a9(0x15f)],'yPYVT':function(_0x556c95,_0x935214){return _0x556c95===_0x935214;},'HCAhN':_0x27f1a9(0x13d),'cgFQD':function(_0x381a7c,_0x26f2be,_0x7e9c2f){return _0x381a7c(_0x26f2be,_0x7e9c2f);},'YhFfo':_0x222c6e[_0x27f1a9(0x170)],'iRkcd':_0x222c6e[_0x27f1a9(0x16d)],'ImMtP':function(_0x3bc6ff,_0x4988cd){const _0x259b3b=_0x27f1a9;return _0x222c6e[_0x259b3b(0x157)](_0x3bc6ff,_0x4988cd);},'gqWwl':_0x222c6e[_0x27f1a9(0xfe)],'mMMhp':_0x222c6e[_0x27f1a9(0x153)],'udlSu':_0x27f1a9(0x135),'vAAWp':function(_0x692a1f,_0xcde3d9){const _0x33a92f=_0x27f1a9;return _0x222c6e[_0x33a92f(0x14f)](_0x692a1f,_0xcde3d9);},'LhtGH':_0x27f1a9(0x137)};if(_0x222c6e[_0x27f1a9(0x157)](_0x222c6e[_0x27f1a9(0x103)],_0x222c6e[_0x27f1a9(0x103)])){if(!_0x4a4fa2[_0x27f1a9(0x133)])throw new _0x3cfb04(_0x222c6e[_0x27f1a9(0x15f)]);throw new _0x1160e4(_0x222c6e[_0x27f1a9(0x16d)]);}else{_0x47fcc1[_0x27f1a9(0x140)](_0x222c6e[_0x27f1a9(0x151)],{'schema':{'tags':[_0x222c6e[_0x27f1a9(0x15e)],_0x222c6e[_0x27f1a9(0x126)]],'summary':_0x222c6e[_0x27f1a9(0xf5)],'description':_0x27f1a9(0x127),'access':_0x222c6e[_0x27f1a9(0x104)],'permissions':[],'body':authSchemas[_0x27f1a9(0x106)]}},async _0x46d020=>{const _0x55af2c=_0x27f1a9,_0x1b8a7c=_0x5549dd(_0x46d020),_0x450660={..._0x46d020[_0x55af2c(0x14d)]};_0x450660['ip']=_0x1b8a7c;const {user:_0x45c469,redirectUrl:redirectUrl='/'}=await _0x1ba5f6[_0x55af2c(0x162)](_0x11f01e,_0x450660,_0xbeaa0b);await _0x46d020[_0x55af2c(0x118)](_0x45c469);const _0x51c4d8=_0x1ba5f6[_0x55af2c(0x11a)](_0x1ba5f6[_0x55af2c(0x11a)](_0xbeaa0b[_0x55af2c(0x10e)][_0x55af2c(0x13b)][_0x55af2c(0x105)],0x3e8),0x3c);_0x46d020[_0x55af2c(0xf1)]?.[_0x55af2c(0x110)]&&(_0x46d020[_0x55af2c(0xf1)][_0x55af2c(0x110)][_0x55af2c(0x125)]=_0x51c4d8);await _0x46d020[_0x55af2c(0xf1)][_0x55af2c(0x12a)]();const _0x286494={};_0x286494['id']=_0x45c469['id'],_0x286494[_0x55af2c(0x139)]=_0x45c469[_0x55af2c(0x139)];const _0x170a2e={};return _0x170a2e[_0x55af2c(0x133)]=_0x286494,_0x170a2e[_0x55af2c(0x161)]=redirectUrl,_0x170a2e;}),_0x47fcc1[_0x27f1a9(0x140)](_0x222c6e[_0x27f1a9(0x148)],{'schema':{'tags':[_0x222c6e[_0x27f1a9(0x15e)],_0x27f1a9(0x13b)],'summary':_0x222c6e[_0x27f1a9(0x100)],'description':_0x222c6e[_0x27f1a9(0x16c)],'access':_0x27f1a9(0x133),'permissions':[]}},async(_0x5065df,_0x5b7cd6)=>{const _0x48fac3=_0x27f1a9,_0x1d1012={};_0x1d1012[_0x48fac3(0x161)]='/';const _0x2fd385=_0x1d1012;if(!_0x5065df[_0x48fac3(0x133)]){if(_0x1ba5f6[_0x48fac3(0x12d)](_0x1ba5f6[_0x48fac3(0x131)],_0x1ba5f6[_0x48fac3(0x131)]))return _0x2fd385;else throw new _0x126262(_0x1ba5f6[_0x48fac3(0x150)]);}const _0x4d35dd={};_0x4d35dd[_0x48fac3(0x14e)]=_0x5065df[_0x48fac3(0xf1)][_0x48fac3(0x14e)],_0x4d35dd[_0x48fac3(0x133)]=_0x5065df[_0x48fac3(0x133)],await _0x1ba5f6[_0x48fac3(0xf0)](_0x53bde7,_0x4d35dd,_0xbeaa0b),await _0x5065df[_0x48fac3(0xf1)][_0x48fac3(0x15c)](),_0x5b7cd6[_0x48fac3(0xf6)](_0xbeaa0b[_0x48fac3(0x10e)][_0x48fac3(0x13b)][_0x48fac3(0x16e)]);const _0x2fa29e={};return _0x2fa29e[_0x48fac3(0x14c)]=null,_0x2fa29e[_0x48fac3(0x128)]=![],_0x2fa29e[_0x48fac3(0x124)]=![],Object[_0x48fac3(0x173)](_0x5065df,_0x1ba5f6[_0x48fac3(0xff)],_0x2fa29e),_0x2fd385;}),_0x47fcc1[_0x27f1a9(0x13f)](_0x222c6e[_0x27f1a9(0x120)],{'schema':{'tags':[_0x222c6e[_0x27f1a9(0x15e)],_0x27f1a9(0x13b)],'summary':_0x222c6e[_0x27f1a9(0xfc)],'description':_0x222c6e[_0x27f1a9(0x12f)],'access':_0x222c6e[_0x27f1a9(0x113)],'permissions':[]}},async _0x56cf64=>_0x27db49({'user':_0x56cf64[_0x27f1a9(0x133)]}));const _0x260798={};_0x260798[_0x27f1a9(0x165)]=[_0x27f1a9(0x112),_0x222c6e[_0x27f1a9(0x126)]],_0x260798[_0x27f1a9(0xf4)]=_0x222c6e[_0x27f1a9(0xf7)],_0x260798[_0x27f1a9(0x108)]=_0x222c6e[_0x27f1a9(0x116)],_0x260798[_0x27f1a9(0x158)]=_0x222c6e[_0x27f1a9(0x113)],_0x260798[_0x27f1a9(0x10f)]=[];const _0x5abd17={};_0x5abd17[_0x27f1a9(0x134)]=_0x260798,_0x47fcc1[_0x27f1a9(0x13f)](_0x27f1a9(0x123),_0x5abd17,async _0x5a6302=>{const _0x3da8c9=_0x27f1a9;if(!_0x5a6302[_0x3da8c9(0x133)]){if(_0x1ba5f6[_0x3da8c9(0x15a)](_0x1ba5f6[_0x3da8c9(0x16b)],_0x1ba5f6[_0x3da8c9(0x130)]))throw new UnauthorizedError(_0x3da8c9(0xf3));else{if(!_0x1afa3c[_0x3da8c9(0x133)])throw new _0x232994(_0x3da8c9(0xf3));throw new _0x3ac338(_0x1ba5f6[_0x3da8c9(0x12c)]);}}throw new UnsupportedError(_0x3da8c9(0x102));});const _0x3fb63e={};_0x3fb63e[_0x27f1a9(0x165)]=[_0x222c6e[_0x27f1a9(0x15e)],_0x222c6e[_0x27f1a9(0x126)]],_0x3fb63e[_0x27f1a9(0xf4)]=_0x222c6e[_0x27f1a9(0x152)],_0x3fb63e[_0x27f1a9(0x108)]=_0x222c6e[_0x27f1a9(0x138)],_0x3fb63e[_0x27f1a9(0x158)]=_0x222c6e[_0x27f1a9(0x113)],_0x3fb63e[_0x27f1a9(0x10f)]=[];const _0x353734={};_0x353734[_0x27f1a9(0x134)]=_0x3fb63e,_0x47fcc1[_0x27f1a9(0x13f)](_0x27f1a9(0x16a),_0x353734,async _0x14c709=>{const _0x3d6e6a=_0x27f1a9;if(_0x1ba5f6[_0x3d6e6a(0x12d)](_0x1ba5f6[_0x3d6e6a(0x159)],_0x1ba5f6[_0x3d6e6a(0x159)])){if(!_0x14c709[_0x3d6e6a(0x133)]){if(_0x1ba5f6[_0x3d6e6a(0x171)](_0x1ba5f6[_0x3d6e6a(0x111)],_0x1ba5f6[_0x3d6e6a(0x111)]))throw new UnauthorizedError(_0x3d6e6a(0xf3));else throw new _0x208197(_0x3d6e6a(0xf3));}throw new UnsupportedError(_0x3d6e6a(0x102));}else throw new _0x53b641(_0x1ba5f6[_0x3d6e6a(0x150)]);}),_0x47fcc1[_0x27f1a9(0x140)](_0x222c6e[_0x27f1a9(0x142)],{'schema':{'tags':[_0x222c6e[_0x27f1a9(0x15e)],_0x222c6e[_0x27f1a9(0x126)]],'summary':_0x222c6e[_0x27f1a9(0x10d)],'description':_0x222c6e[_0x27f1a9(0x160)],'access':_0x27f1a9(0x133),'permissions':[],'body':authSchemas[_0x27f1a9(0x167)]}},async _0x1da055=>{const _0x84b994=_0x27f1a9;if(_0x222c6e[_0x84b994(0x117)](_0x222c6e[_0x84b994(0x132)],_0x222c6e[_0x84b994(0x132)])){if(!_0x5e947f[_0x84b994(0x133)])throw new _0x177985(_0x1ba5f6[_0x84b994(0x150)]);throw new _0x2e2a2c(_0x84b994(0x102));}else{if(!_0x1da055[_0x84b994(0x133)])throw new UnauthorizedError(_0x222c6e[_0x84b994(0x15f)]);throw new UnsupportedError(_0x222c6e[_0x84b994(0x16d)]);}}),_0x47fcc1[_0x27f1a9(0x140)](_0x222c6e[_0x27f1a9(0x11d)],{'schema':{'tags':[_0x222c6e[_0x27f1a9(0x15e)],_0x222c6e[_0x27f1a9(0x126)]],'summary':_0x222c6e[_0x27f1a9(0xf9)],'description':_0x222c6e[_0x27f1a9(0x155)],'access':_0x222c6e[_0x27f1a9(0x113)],'permissions':[],'body':authSchemas[_0x27f1a9(0x167)]}},async _0xe21d1e=>{const _0x55240c=_0x27f1a9,_0x127b3d={};_0x127b3d[_0x55240c(0x129)]=_0x222c6e[_0x55240c(0x15f)];const _0x5b4183=_0x127b3d;if(_0x222c6e[_0x55240c(0x117)](_0x222c6e[_0x55240c(0x12b)],_0x222c6e[_0x55240c(0x13a)])){if(!_0xe21d1e[_0x55240c(0x133)]){if(_0x222c6e[_0x55240c(0x136)]!==_0x55240c(0x10c))throw new UnauthorizedError(_0x55240c(0xf3));else{if(!_0xd6600d[_0x55240c(0x133)])throw new _0xdc2d(JvfxHu[_0x55240c(0x129)]);throw new _0x2a1c7d(_0x55240c(0x102));}}throw new UnsupportedError(_0x222c6e[_0x55240c(0x16d)]);}else throw new _0x2bdd29(_0x1ba5f6[_0x55240c(0x150)]);});const _0x50463a={};_0x50463a[_0x27f1a9(0x165)]=[_0x222c6e[_0x27f1a9(0x15e)],_0x27f1a9(0x13b)],_0x50463a[_0x27f1a9(0xf4)]=_0x27f1a9(0x11e),_0x50463a[_0x27f1a9(0x108)]=_0x222c6e[_0x27f1a9(0x147)],_0x50463a[_0x27f1a9(0x158)]=_0x27f1a9(0x133),_0x50463a[_0x27f1a9(0x10f)]=[],_0x50463a[_0x27f1a9(0x14d)]=authSchemas[_0x27f1a9(0x167)];const _0x109f3b={};_0x109f3b[_0x27f1a9(0x134)]=_0x50463a,_0x47fcc1[_0x27f1a9(0x140)](_0x27f1a9(0x122),_0x109f3b,async _0x487ee5=>{const _0x43e11c=_0x27f1a9;if(!_0x487ee5[_0x43e11c(0x133)]){if(_0x222c6e[_0x43e11c(0x117)](_0x222c6e[_0x43e11c(0x141)],_0x43e11c(0x10a)))_0x4577fc[_0x43e11c(0xf1)][_0x43e11c(0x110)][_0x43e11c(0x125)]=_0x593ba5;else throw new UnauthorizedError(_0x43e11c(0xf3));}throw new UnsupportedError(_0x222c6e[_0x43e11c(0x16d)]);});}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1e1abe=_0x3803;(function(_0x316c45,_0x4cf134){const _0x372065=_0x3803,_0x108aa9=_0x316c45();while(!![]){try{const _0x2915b3=parseInt(_0x372065(0xea))/0x1+-parseInt(_0x372065(0xe9))/0x2*(-parseInt(_0x372065(0xe5))/0x3)+-parseInt(_0x372065(0xe7))/0x4*(-parseInt(_0x372065(0xe8))/0x5)+-parseInt(_0x372065(0xe2))/0x6*(parseInt(_0x372065(0xde))/0x7)+-parseInt(_0x372065(0xe6))/0x8+-parseInt(_0x372065(0xdd))/0x9+parseInt(_0x372065(0xe0))/0xa;if(_0x2915b3===_0x4cf134)break;else _0x108aa9['push'](_0x108aa9['shift']());}catch(_0x77c8d0){_0x108aa9['push'](_0x108aa9['shift']());}}}(_0x2e5f,0xbc081));import{Type}from'@sinclair/typebox';const _0x378bdb={};_0x378bdb[_0x1e1abe(0xe4)]=0x1,_0x378bdb[_0x1e1abe(0xe3)]=0x64;function _0x3803(_0x33c39c,_0x4cbb1b){_0x33c39c=_0x33c39c-0xdd;const _0x2e5ffc=_0x2e5f();let _0x3803b6=_0x2e5ffc[_0x33c39c];return _0x3803b6;}function _0x2e5f(){const _0x22f811=['78322GsPAVM','637920mMacro','11796201gbrTUN','6610730PoynhB','String','17873660iDXBPj','Object','6OcdPpH','maxLength','minLength','51PPhAEg','10605504HKByje','4ogLBRg','6299605dtcZoy'];_0x2e5f=function(){return _0x22f811;};return _0x2e5f();}const _0x270d9e={};_0x270d9e[_0x1e1abe(0xe4)]=0x1,_0x270d9e[_0x1e1abe(0xe3)]=0x64;const _0xc62b35={};_0xc62b35[_0x1e1abe(0xe4)]=0x1;export const authSchemas={'credentials':Type[_0x1e1abe(0xe1)]({'login':Type[_0x1e1abe(0xdf)](_0x378bdb),'password':Type[_0x1e1abe(0xdf)](_0x270d9e)}),'twoFactor':Type[_0x1e1abe(0xe1)]({'code':Type[_0x1e1abe(0xdf)](_0xc62b35)})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51ad76,_0x24bfbc){const _0x1b7d66=_0x26c8,_0x3d1d5f=_0x51ad76();while(!![]){try{const _0x2256ee=-parseInt(_0x1b7d66(0x93))/0x1+parseInt(_0x1b7d66(0x95))/0x2*(parseInt(_0x1b7d66(0x91))/0x3)+-parseInt(_0x1b7d66(0x90))/0x4*(-parseInt(_0x1b7d66(0x8b))/0x5)+parseInt(_0x1b7d66(0x8f))/0x6*(parseInt(_0x1b7d66(0x8d))/0x7)+parseInt(_0x1b7d66(0x8c))/0x8*(-parseInt(_0x1b7d66(0x94))/0x9)+-parseInt(_0x1b7d66(0x8e))/0xa+parseInt(_0x1b7d66(0x92))/0xb;if(_0x2256ee===_0x24bfbc)break;else _0x3d1d5f['push'](_0x3d1d5f['shift']());}catch(_0x8bf90f){_0x3d1d5f['push'](_0x3d1d5f['shift']());}}}(_0x1f52,0x8eaf9));import{safeUser}from'../../utils/safe-user.js';function _0x26c8(_0x1773c1,_0x15fa00){_0x1773c1=_0x1773c1-0x8a;const _0x1f526c=_0x1f52();let _0x26c84f=_0x1f526c[_0x1773c1];return _0x26c84f;}function _0x1f52(){const _0x2a3d4b=['866CSvYjH','laGwM','45flVnZc','1316952RFBhLH','2041606rfdTVa','2097870zhKdnd','6PrESTQ','252312ZJqwUX','777yToPDi','19709756rmPxTD','816742UPLaxf','63NEZucI'];_0x1f52=function(){return _0x2a3d4b;};return _0x1f52();}export default async function getCurrentUser(_0x8f3633){const _0x1d7e72=_0x26c8,_0xe348cc={};_0xe348cc[_0x1d7e72(0x8a)]=function(_0x2d1750,_0x15b32f){return _0x2d1750||_0x15b32f;};const _0x203b16=_0xe348cc,{user:_0xeb14b0}=_0x8f3633;return safeUser(_0x203b16[_0x1d7e72(0x8a)](_0xeb14b0,{}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3438(_0x41fdb0,_0x424507){_0x41fdb0=_0x41fdb0-0x80;const _0x254c92=_0x254c();let _0x343863=_0x254c92[_0x41fdb0];return _0x343863;}(function(_0x2ffa12,_0x9c3fb3){const _0x22614c=_0x3438,_0x279a51=_0x2ffa12();while(!![]){try{const _0x3436d6=-parseInt(_0x22614c(0x85))/0x1*(-parseInt(_0x22614c(0x96))/0x2)+-parseInt(_0x22614c(0x97))/0x3+-parseInt(_0x22614c(0x94))/0x4*(parseInt(_0x22614c(0x9d))/0x5)+-parseInt(_0x22614c(0x91))/0x6*(-parseInt(_0x22614c(0x9f))/0x7)+-parseInt(_0x22614c(0x8b))/0x8*(parseInt(_0x22614c(0x8c))/0x9)+-parseInt(_0x22614c(0x88))/0xa*(parseInt(_0x22614c(0x8e))/0xb)+parseInt(_0x22614c(0x9b))/0xc;if(_0x3436d6===_0x9c3fb3)break;else _0x279a51['push'](_0x279a51['shift']());}catch(_0x38a20f){_0x279a51['push'](_0x279a51['shift']());}}}(_0x254c,0xedf53));function _0x254c(){const _0x2efe62=['nPYwU','1455bAHWvB','OwxBs','7tRfOCX','yJOub','logger','FXwMK','password','twoFactor','13SGSAaC','base','metrics','3811010DmvSCz','VRbRf','login','7600216IgUOeq','18IznTSl','link','11YcHTCT','user.login','auth','6383298wDTsnT','empty\x20pg','empty\x20user','364hHlmfU','empty\x20redis','234070gCVVen','5225298oOSGEl','SnxrE','twofa','afterLogin','29264868ibVDpd'];_0x254c=function(){return _0x2efe62;};return _0x254c();}import _0xc9e467 from'./verifyPassword.js';export default async function login({ip:_0x4021d5,login:_0xb4931d,password:_0x3c34c2},{config:_0x3b9e3d,pg:_0x4ac7be,logger:_0xa64d9d,redis:_0x2cdba8}){const _0x396696=_0x3438,_0x56396c={'nPYwU':function(_0x3a1ea3,_0x5e584a){return _0x3a1ea3(_0x5e584a);},'SnxrE':_0x396696(0x92),'FXwMK':function(_0x1d2003,_0x5f353d,_0x319df3){return _0x1d2003(_0x5f353d,_0x319df3);},'VRbRf':_0x396696(0x93),'yJOub':_0x396696(0x8f),'OwxBs':function(_0x2ee62f,_0xc728ed){return _0x2ee62f||_0xc728ed;}};if(!_0x4ac7be)throw _0x56396c[_0x396696(0x9c)](Error,_0x56396c[_0x396696(0x98)]);if(!_0x2cdba8)throw _0x56396c[_0x396696(0x9c)](Error,_0x396696(0x95));const _0x3d7e40={};_0x3d7e40[_0x396696(0x8a)]=_0xb4931d,_0x3d7e40[_0x396696(0x83)]=_0x3c34c2,_0x3d7e40['ip']=_0x4021d5;const _0x5798e5={};_0x5798e5['pg']=_0x4ac7be,_0x5798e5[_0x396696(0x81)]=_0xa64d9d;const {user:_0x468c42}=await _0x56396c[_0x396696(0x82)](_0xc9e467,_0x3d7e40,_0x5798e5);if(!_0x468c42)throw new Error(_0x56396c[_0x396696(0x89)]);_0xa64d9d[_0x396696(0x87)](_0x56396c[_0x396696(0x80)]);const _0x35d3dd=_0x468c42[_0x396696(0x99)]?_0x3b9e3d[_0x396696(0x90)][_0x396696(0x8d)]?.[_0x396696(0x84)]?.[_0x396696(0x8a)]:_0x3b9e3d[_0x396696(0x90)][_0x396696(0x8d)]?.[_0x396696(0x86)][_0x396696(0x9a)];return{'user':_0x468c42,'redirectUrl':_0x56396c[_0x396696(0x9e)](_0x35d3dd,'/')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x42e0(_0x3f99d4,_0x23a702){_0x3f99d4=_0x3f99d4-0x142;var _0x5241bc=_0x5241();var _0x42e09f=_0x5241bc[_0x3f99d4];return _0x42e09f;}function _0x5241(){var _0x4dde4e=['9dmzJBI','afvgF','6150284xDNfxh','action','25642GFMjcB','audit','fQkQm','sessionId','3414815rSYKMk','723884iYPxXm','userId','resourceId','auth','resource','2659168NhRyIw','198297gcJpQI','6gStagF','module','8698480GBYnDc','session','user','write','logout'];_0x5241=function(){return _0x4dde4e;};return _0x5241();}(function(_0x4b4ccc,_0x2e595c){var _0x53bbb8=_0x42e0,_0x36a1ae=_0x4b4ccc();while(!![]){try{var _0x16cb80=parseInt(_0x53bbb8(0x152))/0x1+-parseInt(_0x53bbb8(0x14d))/0x2*(-parseInt(_0x53bbb8(0x149))/0x3)+-parseInt(_0x53bbb8(0x157))/0x4+-parseInt(_0x53bbb8(0x151))/0x5*(-parseInt(_0x53bbb8(0x142))/0x6)+parseInt(_0x53bbb8(0x14b))/0x7+-parseInt(_0x53bbb8(0x144))/0x8+-parseInt(_0x53bbb8(0x158))/0x9;if(_0x16cb80===_0x2e595c)break;else _0x36a1ae['push'](_0x36a1ae['shift']());}catch(_0x4e1419){_0x36a1ae['push'](_0x36a1ae['shift']());}}}(_0x5241,0x8639b));export default async function logout(_0x1c1dfc,_0x195c3f){var _0x35bd21=_0x42e0,_0x1e63dd={};_0x1e63dd[_0x35bd21(0x14a)]=_0x35bd21(0x155),_0x1e63dd[_0x35bd21(0x14f)]=_0x35bd21(0x145);var _0x172151=_0x1e63dd,_0x1d7a13={};_0x1d7a13[_0x35bd21(0x143)]=_0x172151[_0x35bd21(0x14a)],_0x1d7a13[_0x35bd21(0x156)]=_0x172151[_0x35bd21(0x14f)],_0x1d7a13[_0x35bd21(0x154)]=_0x1c1dfc[_0x35bd21(0x150)],_0x1d7a13[_0x35bd21(0x14c)]=_0x35bd21(0x148),_0x1d7a13[_0x35bd21(0x153)]=_0x1c1dfc[_0x35bd21(0x146)]?.['id'],await _0x195c3f[_0x35bd21(0x14e)]?.[_0x35bd21(0x147)]?.(_0x1d7a13);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x38fa87,_0x4e77b2){var _0x7bf585=_0x1bda,_0x2c86cc=_0x38fa87();while(!![]){try{var _0x6580d2=-parseInt(_0x7bf585(0xb5))/0x1+parseInt(_0x7bf585(0xb7))/0x2*(parseInt(_0x7bf585(0xb0))/0x3)+-parseInt(_0x7bf585(0xb2))/0x4*(parseInt(_0x7bf585(0xb4))/0x5)+parseInt(_0x7bf585(0xb1))/0x6+parseInt(_0x7bf585(0xb8))/0x7+parseInt(_0x7bf585(0xb9))/0x8+parseInt(_0x7bf585(0xb6))/0x9*(-parseInt(_0x7bf585(0xb3))/0xa);if(_0x6580d2===_0x4e77b2)break;else _0x2c86cc['push'](_0x2c86cc['shift']());}catch(_0x32d213){_0x2c86cc['push'](_0x2c86cc['shift']());}}}(_0x211c,0x47522));function _0x1bda(_0x461872,_0x3546e0){_0x461872=_0x461872-0xaf;var _0x211cbc=_0x211c();var _0x1bdabd=_0x211cbc[_0x461872];return _0x1bdabd;}function _0x211c(){var _0x3956a5=['44CBwEcM','100SoQGwk','193425NCGlFS','417928tSwtHl','56583GaZapx','1898ycnWSb','138607zRojYv','2660848GjpbdN','Two-factor\x20provider','1059RgyiNG','3066354uXwRyb'];_0x211c=function(){return _0x3956a5;};return _0x211c();}import{unsupported}from'../../utils/unsupported.js';export default async function verifyTwoFactor(_0x6ade14,_0x33f32b){var _0x2ce2ef=_0x1bda;return unsupported(_0x2ce2ef(0xaf));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x410aad,_0x17baf1){const _0x3f9c36=_0x4906,_0x4af1a7=_0x410aad();while(!![]){try{const _0x1e50bd=-parseInt(_0x3f9c36(0x15b))/0x1+parseInt(_0x3f9c36(0x189))/0x2*(parseInt(_0x3f9c36(0x199))/0x3)+-parseInt(_0x3f9c36(0x167))/0x4+-parseInt(_0x3f9c36(0x14f))/0x5+-parseInt(_0x3f9c36(0x18c))/0x6*(-parseInt(_0x3f9c36(0x184))/0x7)+-parseInt(_0x3f9c36(0x162))/0x8+parseInt(_0x3f9c36(0x197))/0x9*(parseInt(_0x3f9c36(0x15a))/0xa);if(_0x1e50bd===_0x17baf1)break;else _0x4af1a7['push'](_0x4af1a7['shift']());}catch(_0x454722){_0x4af1a7['push'](_0x4af1a7['shift']());}}}(_0x6370,0xf0786));import _0x7205d4 from'apache-crypt';import _0x303b71 from'node:crypto';function _0x4906(_0x4de3e5,_0x5c5258){_0x4de3e5=_0x4de3e5-0x14e;const _0x6370a5=_0x6370();let _0x4906e7=_0x6370a5[_0x4de3e5];return _0x4906e7;}import{BadRequestError}from'../../../errors.js';function md5(_0x147527){const _0x28ff2d=_0x4906,_0x4b8127={};_0x4b8127[_0x28ff2d(0x16a)]=_0x28ff2d(0x150);const _0x5780b4=_0x4b8127;return _0x303b71[_0x28ff2d(0x164)](_0x28ff2d(0x183))[_0x28ff2d(0x173)](_0x147527)[_0x28ff2d(0x195)](_0x5780b4[_0x28ff2d(0x16a)]);}export function hashPassword(_0x34e576){const _0x907763=_0x4906,_0x3401b5={};_0x3401b5[_0x907763(0x161)]=_0x907763(0x150);const _0x3a53eb=_0x3401b5,_0x5162a9=_0x303b71[_0x907763(0x19a)](0x10)[_0x907763(0x169)](_0x907763(0x150)),_0x1bda7f=_0x303b71[_0x907763(0x159)](_0x34e576,_0x5162a9,0x40)[_0x907763(0x169)](_0x3a53eb[_0x907763(0x161)]);return _0x907763(0x17b)+_0x5162a9+'$'+_0x1bda7f;}function _0x6370(){const _0x59d8ec=['scryptSync','1478190YxEseU','1763512ZWhjID','select\x20uid\x20as\x20id,\x20user_type\x20as\x20type,\x20password,\x20salt\x20from\x20admin.users\x20where\x20$1\x20in\x20(login,email,phone)\x20and\x20enabled\x20limit\x201','then','crypt','FnwMY','timingSafeEqual','LgXXm','5493336GjDKRE','password_new_hash_algorithm','createHash','rows','gPlfA','374692hTEzYT','kgkeh','toString','fJtEV','user','from','bmqnz','TIVSr','IGnFs','salt','LjXPc','split','update','not\x20enough\x20params:\x20login','CPjxT','empty\x20pg','bkZXN','PukeX','gQlru','ITdEn','scrypt$','rdhgk','YAjGp','fLcsN','IBXeT','DUcHg','auth/warn','hvKeS','md5','14sGlFuo','loCjL','jfvIO','length','query','132030otQYQh','qzvVl','LSpgv','3600738XvQwbX','scrypt','user\x20not\x20found','login','SELECT\x20public.crypt($1,\x20$2)','pnxXe','NoThf','kLont','password','digest','bfRMV','99OrZQwU','RgBJH','81uFBCGN','randomBytes','jbwUI','error','ihXzN','Wrong\x20password','5399210XhknVP','hex','file','gwQjo','YqCUP','info','fXLio','not\x20enough\x20params:\x20password','XWGGg','CRHEr'];_0x6370=function(){return _0x59d8ec;};return _0x6370();}export function verifyPasswordWithoutSalt(_0x5feb43,_0x3cd009){const _0x460c17=_0x4906,_0x4722a2={};_0x4722a2[_0x460c17(0x17a)]=function(_0x2b5af0,_0x589c68){return _0x2b5af0!==_0x589c68;},_0x4722a2[_0x460c17(0x193)]=_0x460c17(0x18d),_0x4722a2[_0x460c17(0x185)]=_0x460c17(0x150),_0x4722a2[_0x460c17(0x191)]=function(_0x5d352e,_0x25529e){return _0x5d352e===_0x25529e;};const _0x1840ac=_0x4722a2,[_0x241fcf,_0x29507b,_0x6baa59]=_0x3cd009[_0x460c17(0x172)]('$');if(_0x1840ac[_0x460c17(0x17a)](_0x241fcf,_0x1840ac[_0x460c17(0x193)])||!_0x29507b||!_0x6baa59)return![];const _0x333267=_0x303b71[_0x460c17(0x159)](_0x5feb43,_0x29507b,0x40),_0x2da50c=Buffer[_0x460c17(0x16c)](_0x6baa59,_0x1840ac[_0x460c17(0x185)]);return _0x1840ac[_0x460c17(0x191)](_0x2da50c[_0x460c17(0x187)],_0x333267[_0x460c17(0x187)])&&_0x303b71[_0x460c17(0x160)](_0x2da50c,_0x333267);}export default async function verifyPassword({login:_0x5112ad,password:_0x76bc53,ip:_0x424395},{pg:_0x442661,logger:_0x101765}){const _0x104f23=_0x4906,_0x5e4568={'LjXPc':_0x104f23(0x183),'gQlru':_0x104f23(0x150),'DUcHg':_0x104f23(0x174),'jbwUI':function(_0x52b971,_0x5fd818){return _0x52b971+_0x5fd818;},'jfvIO':function(_0x495e46,_0x47ee70){return _0x495e46!==_0x47ee70;},'gwQjo':_0x104f23(0x192),'FnwMY':_0x104f23(0x166),'IGnFs':_0x104f23(0x176),'fXLio':function(_0x5ec883,_0x177c40){return _0x5ec883===_0x177c40;},'YqCUP':function(_0x41e6c4,_0x52a0d7){return _0x41e6c4===_0x52a0d7;},'kgkeh':_0x104f23(0x156),'qzvVl':_0x104f23(0x15c),'bfRMV':_0x104f23(0x181),'ihXzN':function(_0x280412,_0x2b9999){return _0x280412!==_0x2b9999;},'RgBJH':_0x104f23(0x158),'PukeX':_0x104f23(0x157),'CPjxT':_0x104f23(0x18b),'rdhgk':_0x104f23(0x182),'bkZXN':_0x104f23(0x14e),'fLcsN':function(_0x9307ea,_0x4bcee8){return _0x9307ea<_0x4bcee8;},'bmqnz':function(_0x5d739f,_0x5e6989){return _0x5d739f+_0x5e6989;},'IBXeT':function(_0x415cd8,_0x3d9051,_0x426352){return _0x415cd8(_0x3d9051,_0x426352);},'TIVSr':_0x104f23(0x17d)};if(!_0x442661){if(_0x5e4568[_0x104f23(0x186)](_0x5e4568[_0x104f23(0x152)],_0x5e4568[_0x104f23(0x15f)]))throw new Error(_0x5e4568[_0x104f23(0x16f)]);else{const _0x22c845={..._0x2c5726};_0x22c845[_0x104f23(0x194)]=_0x10d8ff,_0x22c845[_0x104f23(0x170)]=_0x360b3a;const _0x3edc94={};return _0x3edc94[_0x104f23(0x16b)]=_0x22c845,_0x3edc94;}}if(!_0x5112ad||_0x5e4568[_0x104f23(0x155)](_0x5112ad,''))throw new BadRequestError(_0x5e4568[_0x104f23(0x180)]);if(!_0x76bc53||_0x5e4568[_0x104f23(0x153)](_0x76bc53,''))throw new BadRequestError(_0x5e4568[_0x104f23(0x168)]);const _0x37620f=_0x5e4568[_0x104f23(0x18a)],_0x1759bb=await _0x442661[_0x104f23(0x188)](_0x37620f,[_0x5112ad])[_0x104f23(0x15d)](_0x233a77=>_0x233a77[_0x104f23(0x165)]?.[0x0]);if(!_0x1759bb){const _0x40990c=_0x104f23(0x18e),_0x31c2b7={};_0x31c2b7[_0x104f23(0x151)]=_0x5e4568[_0x104f23(0x196)],_0x31c2b7[_0x104f23(0x19c)]=_0x40990c,_0x31c2b7[_0x104f23(0x18f)]=_0x5112ad,_0x31c2b7['ip']=_0x424395,_0x101765[_0x104f23(0x154)](_0x31c2b7);throw new BadRequestError(_0x40990c);}if(!_0x1759bb[_0x104f23(0x170)]){const _0x4bcc89=verifyPasswordWithoutSalt(_0x76bc53,_0x1759bb[_0x104f23(0x194)]);if(!_0x4bcc89){if(_0x5e4568[_0x104f23(0x19d)](_0x5e4568[_0x104f23(0x198)],_0x5e4568[_0x104f23(0x178)])){const _0xfd024c=_0x104f23(0x14e),_0x2db24c={};_0x2db24c[_0x104f23(0x151)]=_0x5e4568[_0x104f23(0x196)],_0x2db24c[_0x104f23(0x19c)]=_0xfd024c,_0x2db24c[_0x104f23(0x18f)]=_0x5112ad,_0x2db24c['ip']=_0x424395,_0x101765[_0x104f23(0x154)](_0x2db24c);throw new BadRequestError(_0xfd024c);}else return _0x319009[_0x104f23(0x164)](PhCSpc[_0x104f23(0x171)])[_0x104f23(0x173)](_0x526c55)[_0x104f23(0x195)](PhCSpc[_0x104f23(0x179)]);}const _0x5b2e0d={..._0x1759bb};_0x5b2e0d[_0x104f23(0x194)]=undefined,_0x5b2e0d[_0x104f23(0x170)]=undefined;const _0x2c2211={};return _0x2c2211[_0x104f23(0x16b)]=_0x5b2e0d,_0x2c2211;}if(_0x5e4568[_0x104f23(0x153)](_0x1759bb[_0x104f23(0x163)],!![])){if(_0x5e4568[_0x104f23(0x175)]===_0x5e4568[_0x104f23(0x17c)])throw new _0x294a21(_0x5e4568[_0x104f23(0x180)]);else{const _0x254e24=await _0x442661[_0x104f23(0x188)](_0x104f23(0x190),[_0x76bc53,_0x1759bb[_0x104f23(0x170)]])[_0x104f23(0x15d)](_0xfeeec7=>_0xfeeec7[_0x104f23(0x165)]?.[0x0]?.[_0x104f23(0x15e)]);if(_0x1759bb[_0x104f23(0x194)]===_0x254e24){const _0x229cd6={..._0x1759bb};_0x229cd6[_0x104f23(0x194)]=undefined,_0x229cd6[_0x104f23(0x170)]=undefined;const _0x5b1eca={};return _0x5b1eca[_0x104f23(0x16b)]=_0x229cd6,_0x5b1eca;}const _0x1db5d2=_0x5e4568[_0x104f23(0x177)],_0x323be1={};_0x323be1[_0x104f23(0x151)]=_0x5e4568[_0x104f23(0x196)],_0x323be1[_0x104f23(0x19c)]=_0x1db5d2,_0x323be1[_0x104f23(0x18f)]=_0x5112ad,_0x323be1['ip']=_0x424395,_0x101765[_0x104f23(0x154)](_0x323be1);throw new BadRequestError(_0x1db5d2);}}let _0x5749d9='';for(let _0x316cca=0x0;_0x5e4568[_0x104f23(0x17e)](_0x316cca,0xa);_0x316cca+=0x1){_0x5749d9=md5(_0x5e4568[_0x104f23(0x16d)](_0x5e4568[_0x104f23(0x19b)](_0x76bc53,_0x5749d9),_0x1759bb[_0x104f23(0x170)]));}_0x5749d9=_0x5e4568[_0x104f23(0x17f)](_0x7205d4,_0x5749d9,_0x1759bb[_0x104f23(0x170)]);if(_0x1759bb[_0x104f23(0x194)]===_0x5749d9){if(_0x5e4568[_0x104f23(0x19d)](_0x5e4568[_0x104f23(0x16e)],_0x5e4568[_0x104f23(0x16e)]))_0x32e43f=_0x521aae(_0x5e4568[_0x104f23(0x19b)](_0x5e4568[_0x104f23(0x19b)](_0x267277,_0x596390),_0x1a7081[_0x104f23(0x170)]));else{const _0x59b61f={..._0x1759bb};_0x59b61f[_0x104f23(0x194)]=undefined,_0x59b61f[_0x104f23(0x170)]=undefined;const _0x183f7a={};return _0x183f7a[_0x104f23(0x16b)]=_0x59b61f,_0x183f7a;}}const _0x372e79=_0x104f23(0x14e),_0x54fb80={};_0x54fb80[_0x104f23(0x151)]=_0x5e4568[_0x104f23(0x196)],_0x54fb80[_0x104f23(0x19c)]=_0x372e79,_0x54fb80[_0x104f23(0x18f)]=_0x5112ad,_0x54fb80['ip']=_0x424395,_0x101765[_0x104f23(0x154)](_0x54fb80);throw new BadRequestError(_0x372e79);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d4898,_0x1f34d5){var _0x1df7cf=_0x5a4d,_0x57d6f6=_0x4d4898();while(!![]){try{var _0x1cc51a=-parseInt(_0x1df7cf(0x14a))/0x1*(parseInt(_0x1df7cf(0x145))/0x2)+parseInt(_0x1df7cf(0x147))/0x3+parseInt(_0x1df7cf(0x149))/0x4*(parseInt(_0x1df7cf(0x146))/0x5)+parseInt(_0x1df7cf(0x14b))/0x6*(-parseInt(_0x1df7cf(0x148))/0x7)+-parseInt(_0x1df7cf(0x14e))/0x8+-parseInt(_0x1df7cf(0x14d))/0x9+parseInt(_0x1df7cf(0x14c))/0xa;if(_0x1cc51a===_0x1f34d5)break;else _0x57d6f6['push'](_0x57d6f6['shift']());}catch(_0x5842ad){_0x57d6f6['push'](_0x57d6f6['shift']());}}}(_0x3530,0x49ab0));export*from'./route.js';export*from'./services/upload-file.js';export*from'./services/get-file.js';function _0x3530(){var _0x39b322=['36375eqMAll','1450284qHWUJP','21ztURRc','40vgAtzy','19daCoAx','571398tPqcDN','2499100hLaiuT','510624faKyGC','468848TmvxjX','10874oTKEbF'];_0x3530=function(){return _0x39b322;};return _0x3530();}function _0x5a4d(_0x148f2c,_0x2ab836){_0x148f2c=_0x148f2c-0x145;var _0x35304d=_0x3530();var _0x5a4d54=_0x35304d[_0x148f2c];return _0x5a4d54;}export*from'./services/resize-file.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2cea(_0x4337fd,_0x3df37c){_0x4337fd=_0x4337fd-0xb9;var _0x5c4507=_0x5c45();var _0x2cea89=_0x5c4507[_0x4337fd];return _0x2cea89;}(function(_0x29464c,_0x323d22){var _0x1d316c=_0x2cea,_0x49bc6c=_0x29464c();while(!![]){try{var _0x5a42a0=-parseInt(_0x1d316c(0xe0))/0x1*(parseInt(_0x1d316c(0xcf))/0x2)+-parseInt(_0x1d316c(0xcc))/0x3+-parseInt(_0x1d316c(0xbe))/0x4+-parseInt(_0x1d316c(0xd2))/0x5+parseInt(_0x1d316c(0xcb))/0x6+parseInt(_0x1d316c(0xc3))/0x7+parseInt(_0x1d316c(0xdc))/0x8;if(_0x5a42a0===_0x323d22)break;else _0x49bc6c['push'](_0x49bc6c['shift']());}catch(_0x2fdb59){_0x49bc6c['push'](_0x49bc6c['shift']());}}}(_0x5c45,0x8aa62));import{uploadFile}from'./services/upload-file.js';import{resizeFile}from'./services/resize-file.js';import{fileSchemas}from'./schema.js';export function fileRoutes(_0x56c900){var _0x287039=_0x2cea,_0x4ae129={};_0x4ae129[_0x287039(0xba)]=_0x287039(0xc7),_0x4ae129[_0x287039(0xdf)]=_0x287039(0xe1),_0x4ae129[_0x287039(0xd8)]=_0x287039(0xbc),_0x4ae129[_0x287039(0xbb)]=_0x287039(0xc1),_0x4ae129[_0x287039(0xb9)]=_0x287039(0xc6),_0x4ae129[_0x287039(0xd4)]=_0x287039(0xde),_0x4ae129[_0x287039(0xe3)]=_0x287039(0xbf),_0x4ae129[_0x287039(0xe5)]=_0x287039(0xe4),_0x4ae129[_0x287039(0xce)]=_0x287039(0xdb),_0x4ae129[_0x287039(0xc5)]=_0x287039(0xda),_0x4ae129[_0x287039(0xdd)]=_0x287039(0xca);var _0x4beb4d=_0x4ae129;return async _0x1a584c=>{var _0x2cb27f=_0x287039;_0x1a584c[_0x2cb27f(0xd9)](_0x4beb4d[_0x2cb27f(0xba)],{'schema':{'tags':[_0x4beb4d[_0x2cb27f(0xdf)],_0x4beb4d[_0x2cb27f(0xd8)]],'summary':_0x4beb4d[_0x2cb27f(0xbb)],'description':_0x4beb4d[_0x2cb27f(0xb9)],'access':_0x4beb4d[_0x2cb27f(0xd4)],'permissions':[],'params':fileSchemas[_0x2cb27f(0xd5)]}},async(_0x42a759,_0x291373)=>_0x291373[_0x2cb27f(0xd0)](await _0x56c900[_0x2cb27f(0xbc)]?.[_0x2cb27f(0xd9)](_0x56c900[_0x2cb27f(0xbc)][_0x2cb27f(0xc4)](_0x42a759[_0x2cb27f(0xcd)][_0x2cb27f(0xc8)])['p']))),_0x1a584c[_0x2cb27f(0xe2)](_0x4beb4d[_0x2cb27f(0xe3)],{'schema':{'tags':[_0x4beb4d[_0x2cb27f(0xdf)],_0x4beb4d[_0x2cb27f(0xd8)]],'summary':_0x2cb27f(0xc2),'description':_0x2cb27f(0xd1),'access':_0x4beb4d[_0x2cb27f(0xe5)],'permissions':[_0x4beb4d[_0x2cb27f(0xce)]],'body':fileSchemas[_0x2cb27f(0xbd)]}},async _0x3ac86f=>uploadFile(_0x3ac86f[_0x2cb27f(0xd6)],_0x56c900)),_0x1a584c[_0x2cb27f(0xd9)](_0x4beb4d[_0x2cb27f(0xc5)],{'schema':{'tags':[_0x4beb4d[_0x2cb27f(0xdf)],_0x4beb4d[_0x2cb27f(0xd8)]],'summary':_0x2cb27f(0xd7),'description':_0x2cb27f(0xc0),'access':_0x4beb4d[_0x2cb27f(0xe5)],'permissions':[_0x4beb4d[_0x2cb27f(0xdd)]],'params':fileSchemas[_0x2cb27f(0xd5)],'querystring':fileSchemas[_0x2cb27f(0xc9)]}},async _0x275d09=>resizeFile({'pathOrToken':_0x56c900[_0x2cb27f(0xbc)]?.[_0x2cb27f(0xc4)](_0x275d09[_0x2cb27f(0xcd)][_0x2cb27f(0xc8)])['p'],..._0x275d09[_0x2cb27f(0xd3)]},_0x56c900));};}function _0x5c45(){var _0x4b8a96=['XglTY','rnmcK','MCiCv','file','upload','503184NRwyie','/api/file/upload','Returns\x20a\x20resized\x20image\x20file.','Get\x20file\x20by\x20token','Upload\x20file','4481981qMSfxb','verify','gVXUJ','Returns\x20a\x20file\x20after\x20verifying\x20its\x20signed\x20access\x20token.','/api/file/:token','token','resizeQuery','files:read','3014856SwIMez','1719720gVpYtQ','params','XzZNd','1772328gXpHsP','send','Uploads\x20a\x20file\x20and\x20stores\x20its\x20metadata.','2552300YBxPdi','query','xkrmm','fileToken','body','Resize\x20file','POyJR','get','/api/file/:token/resize','files:create','12166456OfKLcD','YtTFu','public','HiVpV','1yBZuLl','fcore','post','VmTla','user','yUycL'];_0x5c45=function(){return _0x4b8a96;};return _0x5c45();}
|