@opengis/fcore 0.0.1-beta.3 → 0.0.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +1 -1
- package/dist/context.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/fastify.d.ts +4 -5
- package/dist/fastify.d.ts.map +1 -1
- package/dist/fastify.js +1 -1
- package/dist/fcore.js +1 -1
- package/dist/index.js +1 -1
- package/dist/migrations/cli.js +1 -1
- package/dist/migrations/runner.js +1 -1
- package/dist/modules/auth/index.js +1 -1
- package/dist/modules/auth/route.js +1 -1
- package/dist/modules/auth/schema.js +1 -1
- package/dist/modules/auth/services/get-current-user.js +1 -1
- package/dist/modules/auth/services/login.js +1 -1
- package/dist/modules/auth/services/logout.js +1 -1
- package/dist/modules/auth/services/verify-two-factor.js +1 -1
- package/dist/modules/auth/services/verifyPassword.js +1 -1
- package/dist/modules/file/index.js +1 -1
- package/dist/modules/file/route.js +1 -1
- package/dist/modules/file/schema.js +1 -1
- package/dist/modules/file/services/get-file.js +1 -1
- package/dist/modules/file/services/resize-file.js +1 -1
- package/dist/modules/file/services/upload-file.js +1 -1
- package/dist/modules/resource/index.js +1 -1
- package/dist/modules/resource/route.js +1 -1
- package/dist/modules/resource/schema.js +1 -1
- package/dist/modules/resource/services/add-note.js +1 -1
- package/dist/modules/resource/services/add-resource-file.js +1 -1
- package/dist/modules/resource/services/create-resource-relation.js +1 -1
- package/dist/modules/resource/services/create-resource.js +1 -1
- package/dist/modules/resource/services/delete-resource-relation.js +1 -1
- package/dist/modules/resource/services/delete-resource.js +1 -1
- package/dist/modules/resource/services/export-resource.js +1 -1
- package/dist/modules/resource/services/get-resource.js +1 -1
- package/dist/modules/resource/services/list-children.js +1 -1
- package/dist/modules/resource/services/list-resource-relation.js +1 -1
- package/dist/modules/resource/services/list-resources.js +1 -1
- package/dist/modules/resource/services/search-resource.js +1 -1
- package/dist/modules/resource/services/suggest-resource.d.ts +7 -4
- package/dist/modules/resource/services/suggest-resource.d.ts.map +1 -1
- package/dist/modules/resource/services/suggest-resource.js +1 -1
- package/dist/modules/resource/services/update-resource.js +1 -1
- package/dist/modules/resource/services/upload-resource-file.js +1 -1
- package/dist/modules/system/index.js +1 -1
- package/dist/modules/system/route.js +1 -1
- package/dist/modules/system/schema.js +1 -1
- package/dist/modules/system/services/check-system.js +1 -1
- package/dist/modules/system/services/get-api-list.js +1 -1
- package/dist/modules/system/services/get-audit-log.js +1 -1
- package/dist/modules/system/services/get-dictionary.js +1 -1
- package/dist/modules/system/services/get-system-log.js +1 -1
- package/dist/modules/system/services/get-system-settings.js +1 -1
- package/dist/modules/system/services/list-dictionaries.js +1 -1
- package/dist/modules/system/services/update-system-settings.js +1 -1
- package/dist/modules/utils/get-user-permissions.js +1 -1
- package/dist/modules/utils/require-admin.js +1 -1
- package/dist/modules/utils/safe-user.js +1 -1
- package/dist/modules/utils/unsupported.js +1 -1
- package/dist/plugins/audit/audit.js +1 -1
- package/dist/plugins/audit/index.js +1 -1
- package/dist/plugins/audit/services/write-audit.js +1 -1
- package/dist/plugins/auth/index.js +1 -1
- package/dist/plugins/dictionary.js +1 -1
- package/dist/plugins/file.js +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/logger/index.js +1 -1
- package/dist/plugins/logger/transport.js +1 -1
- package/dist/plugins/pg.js +1 -1
- package/dist/plugins/redis.js +1 -1
- package/dist/plugins/resource/index.js +1 -1
- package/dist/plugins/resource/resource.js +1 -1
- package/dist/plugins/resource/resource.registry.js +1 -1
- package/dist/plugins/resource/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/package.json +1 -2
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x8195(_0x3ad8c,_0xc628da){_0x3ad8c=_0x3ad8c-0x1c6;const _0xd19abb=_0xd19a();let _0x81957b=_0xd19abb[_0x3ad8c];return _0x81957b;}(function(_0x1af7c9,_0x3fae49){const _0x317cb3=_0x8195,_0x2bbc9b=_0x1af7c9();while(!![]){try{const _0x232562=-parseInt(_0x317cb3(0x1d6))/0x1*(-parseInt(_0x317cb3(0x1df))/0x2)+parseInt(_0x317cb3(0x1d3))/0x3+parseInt(_0x317cb3(0x1d7))/0x4*(parseInt(_0x317cb3(0x1e6))/0x5)+-parseInt(_0x317cb3(0x1cb))/0x6+-parseInt(_0x317cb3(0x1f9))/0x7+parseInt(_0x317cb3(0x1e4))/0x8+-parseInt(_0x317cb3(0x1e1))/0x9;if(_0x232562===_0x3fae49)break;else _0x2bbc9b['push'](_0x2bbc9b['shift']());}catch(_0x360c2d){_0x2bbc9b['push'](_0x2bbc9b['shift']());}}}(_0xd19a,0x63b62));import'dotenv/config';function _0xd19a(){const _0x2e7fed=['VZIKv','thqjR','XrQzA','Ch7QR4e73Jg0wx0xOjm','includes','/2factor','qDFGJ','136577EbmcwT','map','false','/login','parse','./storage','jIXnS','586158vSHcjn','password','split','HzDxg','true','Missing\x20environment\x20variable:\x20','path','redis','449595RkzJFN','localhost','x5y30KBsEKCENT04tu6549Vxx3No1ztJ2q2K8r79S59420RaZ5','1asSqDl','1840cXxjjd','EnEVT','none','lax','IQciM','NRLMf','cAKfZ','logger','927976iqgUGh','us-east-1','9373176noSHfG','strict','cwd','3309224AgTmbj','secure','5865DjvrLw','info','httpOnly','session_user_auth','DjMuO','/log','development','OLdzl','auth','sameSite','ZRejl','0ua4b1Tz21m47z13U3EO0uN9e0WE7hqRFbcZ72cbdWqZBzemf9cAU865xan1s81TdNpUKKfF'];_0xd19a=function(){return _0x2e7fed;};return _0xd19a();}const DEFAULT_LOG_RESPONSE_STATUS_CODES=[0x193,0x199,0x19d,0x19f,0x1ad];function required(_0x4d7c0f){const _0x36ba4f=_0x8195,_0x3e7f15=process.env[_0x4d7c0f];if(!_0x3e7f15)throw new Error(_0x36ba4f(0x1d0)+_0x4d7c0f);return _0x3e7f15;}export function loadConfig(_0x3eec12={}){const _0x338cab=_0x8195,_0x5726e4={'qDFGJ':_0x338cab(0x1ec),'HzDxg':function(_0x5aff5e,_0x2a75ea){return _0x5aff5e===_0x2a75ea;},'DjMuO':_0x338cab(0x1cf),'jIXnS':function(_0xcd1d59,_0x21df2a){return _0xcd1d59(_0x21df2a);},'XrQzA':_0x338cab(0x1c6),'thqjR':_0x338cab(0x1e7),'cAKfZ':function(_0x4b354f,_0x25ac44){return _0x4b354f!==_0x25ac44;},'IQciM':function(_0x19e355,_0x7235db){return _0x19e355(_0x7235db);},'EnEVT':_0x338cab(0x1f5),'VZIKv':_0x338cab(0x1f1),'NRLMf':_0x338cab(0x1c7),'OLdzl':_0x338cab(0x1da),'ZRejl':_0x338cab(0x1e2)},_0x5a9fdd={};_0x5a9fdd[_0x338cab(0x1d1)]='/',_0x5a9fdd[_0x338cab(0x1e8)]=!![],_0x5a9fdd[_0x338cab(0x1e5)]=![],_0x5a9fdd[_0x338cab(0x1ef)]=!![];const _0x3576d1={'env':process.env.NODE_ENV??_0x5726e4[_0x338cab(0x1f8)],'debug':_0x5726e4[_0x338cab(0x1ce)](process.env.DEBUG,_0x5726e4[_0x338cab(0x1ea)]),'port':_0x5726e4[_0x338cab(0x1ca)](Number,process.env.PORT??0xbb8),'maxFileSize':+(process.env.MAX_FILE_SIZE||0x200),'rateLimit':{'disabled':process.env.RATE_LIMIT===_0x5726e4[_0x338cab(0x1f4)],'max':+(process.env.RATE_LIMIT_MAX||0x64),'timeWindow':+(process.env.RATE_LIMIT_TIME_WINDOW||0xea60)},'storagePath':process.env.STORAGE_PATH??_0x338cab(0x1c9),'redactionList':(process.env.REDACTION_LIST||_0x338cab(0x1cc))[_0x338cab(0x1cd)](','),'logger':{'level':process.env.LOG_LEVEL??_0x5726e4[_0x338cab(0x1f3)],'responses':_0x5726e4[_0x338cab(0x1ce)](process.env.LOG_RESPONSES,_0x5726e4[_0x338cab(0x1ea)])?!![]:![],'responseCodes':process.env.LOG_RESPONSE_STATUS_CODES?process.env.LOG_RESPONSE_STATUS_CODES[_0x338cab(0x1cd)](',')[_0x338cab(0x1fa)](_0x5cf678=>_0x5cf678-0x0):DEFAULT_LOG_RESPONSE_STATUS_CODES,'directory':process.env.LOG_DIRECTORY||process[_0x338cab(0x1e3)]()+_0x338cab(0x1eb)},'pg':{'host':process.env.PG_HOST??_0x338cab(0x1d4),'port':_0x5726e4[_0x338cab(0x1ca)](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':_0x5726e4[_0x338cab(0x1ca)](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??_0x338cab(0x1e0),'bucket':process.env.S3_BUCKET??'','accessKey':process.env.S3_ACCESS_KEY,'secretKey':process.env.S3_SECRET_KEY,'folder':process.env.S3_FOLDER,'forcePathStyle':_0x5726e4[_0x338cab(0x1dd)](process.env.S3_FORCE_PATH_STYLE,_0x5726e4[_0x338cab(0x1f4)]),'tokenSecret':process.env.FILE_TOKEN_SECRET,'tokenTtl':_0x5726e4[_0x338cab(0x1db)](Number,process.env.FILE_TOKEN_TTL??0xe10)},'auth':{'accessToken':process.env.AUTH_ACCESS_TOKEN||_0x5726e4[_0x338cab(0x1d8)],'user':process.env.AUTH_USER?JSON[_0x338cab(0x1c8)](process.env.AUTH_USER):undefined,'sessionTimeout':+(process.env.AUTH_SESSION_TIMEOUT||0x258),'secret':process.env.AUTH_SECRET??_0x338cab(0x1d5),'cookieName':process.env.AUTH_COOKIE_NAME??_0x338cab(0x1e9),'jwtSecret':process.env.AUTH_JWT_SECRET??_0x5726e4[_0x338cab(0x1f2)],'link':{'base':{'login':process.env.AUTH_BASE_LINK_LOGIN??_0x5726e4[_0x338cab(0x1dc)],'afterLogin':process.env.AUTH_BASE_LINK_LOGIN??'/'},'twoFactor':{'login':process.env.AUTH_TWOFACTOR_LINK_LOGIN??_0x338cab(0x1f7),'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':_0x5726e4[_0x338cab(0x1ca)](Boolean,process.env.AUTH_COOKIE_OPTIONS_HTTP_ONLY||_0x5726e4[_0x338cab(0x1ea)]),'secure':_0x5726e4[_0x338cab(0x1ca)](Boolean,process.env.AUTH_COOKIE_OPTIONS_SECURE||_0x5726e4[_0x338cab(0x1ea)]),'sameSite':process.env.AUTH_COOKIE_OPTIONS_SAME_SITE&&[_0x5726e4[_0x338cab(0x1ed)],_0x5726e4[_0x338cab(0x1f0)],_0x338cab(0x1d9)][_0x338cab(0x1f6)](process.env.AUTH_COOKIE_OPTIONS_SAME_SITE)?process.env.AUTH_COOKIE_OPTIONS_SAME_SITE:Boolean(process.env.AUTH_COOKIE_OPTIONS_SAME_SITE||_0x338cab(0x1cf))}:_0x5a9fdd}},_0x1bd925={..._0x3576d1,..._0x3eec12};return _0x1bd925[_0x338cab(0x1de)]={..._0x3576d1[_0x338cab(0x1de)],..._0x3eec12[_0x338cab(0x1de)]},_0x1bd925['pg']={..._0x3576d1['pg'],..._0x3eec12['pg']},_0x1bd925[_0x338cab(0x1d2)]={..._0x3576d1[_0x338cab(0x1d2)],..._0x3eec12[_0x338cab(0x1d2)]},_0x1bd925['s3']={..._0x3576d1['s3'],..._0x3eec12['s3']},_0x1bd925[_0x338cab(0x1ee)]={..._0x3576d1[_0x338cab(0x1ee)],..._0x3eec12[_0x338cab(0x1ee)]},_0x1bd925;}export{required as requireEnv};
|
package/dist/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ece25,_0x47bc9e){const _0x110eeb=_0x5024,_0x148ed2=_0x4ece25();while(!![]){try{const _0x150329=-parseInt(_0x110eeb(0x109))/0x1*(-parseInt(_0x110eeb(0x106))/0x2)+parseInt(_0x110eeb(0x10f))/0x3*(-parseInt(_0x110eeb(0x10b))/0x4)+parseInt(_0x110eeb(0x108))/0x5+parseInt(_0x110eeb(0x105))/0x6*(-parseInt(_0x110eeb(0x110))/0x7)+-parseInt(_0x110eeb(0x10c))/0x8*(parseInt(_0x110eeb(0x104))/0x9)+parseInt(_0x110eeb(0x107))/0xa+-parseInt(_0x110eeb(0x113))/0xb;if(_0x150329===_0x47bc9e)break;else _0x148ed2['push'](_0x148ed2['shift']());}catch(_0xc34c8e){_0x148ed2['push'](_0x148ed2['shift']());}}}(_0x517d,0xe0d57));function _0x5024(_0x5e869f,_0x5b6fe0){_0x5e869f=_0x5e869f-0x102;const _0x517d5c=_0x517d();let _0x5024de=_0x517d5c[_0x5e869f];return _0x5024de;}let defaultContext;export function setContext(_0x290bc5){defaultContext=_0x290bc5;}export function getContext(){const _0x189b5c=_0x5024,_0x4be545={};_0x4be545[_0x189b5c(0x103)]=_0x189b5c(0x10d);const _0x2c4faf=_0x4be545;if(!defaultContext)throw new Error(_0x2c4faf[_0x189b5c(0x103)]);return defaultContext;}export function createContext(_0x5b4198){return{..._0x5b4198,async 'close'(){const _0x15b6f3=_0x5024;await Promise[_0x15b6f3(0x10e)]([_0x5b4198[_0x15b6f3(0x112)]?.[_0x15b6f3(0x102)](),_0x5b4198['pg']?.[_0x15b6f3(0x10a)]()]),await _0x5b4198[_0x15b6f3(0x111)][_0x15b6f3(0x102)]();}};}function _0x517d(){const _0x3962f1=['allSettled','107466acSoDI','7tgtsIz','logger','redis','1416470tsaPRv','close','fGTHg','22266QsjiBE','243762KpDTlk','2512TTYDHB','515700sMkcnP','5590480AcAnop','373ulcMPX','end','12PyBSSw','1424fBgWvT','Application\x20context\x20is\x20not\x20initialized'];_0x517d=function(){return _0x3962f1;};return _0x517d();}
|
package/dist/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x56b7df=_0xf194;function _0xf194(_0x43fcb4,_0xf096ed){_0x43fcb4=_0x43fcb4-0x1ce;var _0x1cf138=_0x1cf1();var _0xf19434=_0x1cf138[_0x43fcb4];return _0xf19434;}(function(_0x192836,_0x26150d){var _0x461e1b=_0xf194,_0x4be3ed=_0x192836();while(!![]){try{var _0x47f8c7=parseInt(_0x461e1b(0x1d8))/0x1+-parseInt(_0x461e1b(0x1ed))/0x2*(-parseInt(_0x461e1b(0x1e0))/0x3)+-parseInt(_0x461e1b(0x1d0))/0x4*(-parseInt(_0x461e1b(0x1e5))/0x5)+-parseInt(_0x461e1b(0x1d3))/0x6+-parseInt(_0x461e1b(0x1d4))/0x7*(-parseInt(_0x461e1b(0x1ec))/0x8)+-parseInt(_0x461e1b(0x1dd))/0x9+parseInt(_0x461e1b(0x1d2))/0xa*(-parseInt(_0x461e1b(0x1e3))/0xb);if(_0x47f8c7===_0x26150d)break;else _0x4be3ed['push'](_0x4be3ed['shift']());}catch(_0xe4e8b4){_0x4be3ed['push'](_0x4be3ed['shift']());}}}(_0x1cf1,0x9903c));export class FCoreError extends Error{[_0x56b7df(0x1db)];[_0x56b7df(0x1d7)];[_0x56b7df(0x1eb)];constructor(_0x3236a1,_0x1e0380,_0x5ac77b=0x1f4,_0x4aab33){var _0x30a657=_0x56b7df,_0x352c1f={};_0x352c1f[_0x30a657(0x1d9)]=_0x30a657(0x1ce);var _0x1d9d33=_0x352c1f,_0x22de0a=_0x1d9d33[_0x30a657(0x1d9)][_0x30a657(0x1e7)]('|'),_0x396f63=0x0;while(!![]){switch(_0x22de0a[_0x396f63++]){case'0':this[_0x30a657(0x1dc)]=new.target.name;continue;case'1':this[_0x30a657(0x1db)]=_0x3236a1;continue;case'2':super(_0x1e0380);continue;case'3':this[_0x30a657(0x1d7)]=_0x5ac77b;continue;case'4':this[_0x30a657(0x1eb)]=_0x4aab33;continue;}break;}}}export class BadRequestError extends FCoreError{constructor(_0x1be9c2,_0x2abfd2){var _0x14f4d0=_0x56b7df;super(_0x14f4d0(0x1ea),_0x1be9c2,0x190,_0x2abfd2);}}export class UnauthorizedError extends FCoreError{constructor(_0x5120f4=_0x56b7df(0x1d6)){var _0x419492=_0x56b7df;super(_0x419492(0x1d5),_0x5120f4,0x191);}}export class ForbiddenError extends FCoreError{constructor(_0x2806c4=_0x56b7df(0x1da)){var _0x33827e=_0x56b7df,_0x5ae016={};_0x5ae016[_0x33827e(0x1ee)]=_0x33827e(0x1ef);var _0x31e428=_0x5ae016;super(_0x31e428[_0x33827e(0x1ee)],_0x2806c4,0x193);}}export class NotFoundError extends FCoreError{constructor(_0x47dcb9=_0x56b7df(0x1e2)){var _0x42e27a=_0x56b7df;super(_0x42e27a(0x1e9),_0x47dcb9,0x194);}}export class ConflictError extends FCoreError{constructor(_0x262af1=_0x56b7df(0x1cf)){var _0x4bd016=_0x56b7df,_0x3f5d27={};_0x3f5d27[_0x4bd016(0x1e1)]=_0x4bd016(0x1d1);var _0x1850bf=_0x3f5d27;super(_0x1850bf[_0x4bd016(0x1e1)],_0x262af1,0x199);}}export class ValidationError extends FCoreError{constructor(_0x254460,_0x2dc82b){var _0x58fc56=_0x56b7df,_0x434a01={};_0x434a01[_0x58fc56(0x1e4)]=_0x58fc56(0x1e8);var _0x480575=_0x434a01;super(_0x480575[_0x58fc56(0x1e4)],_0x254460,0x1a6,_0x2dc82b);}}export class UnsupportedError extends FCoreError{constructor(_0xf3579d=_0x56b7df(0x1de)){var _0x381553=_0x56b7df,_0x154b3b={};_0x154b3b[_0x381553(0x1df)]=_0x381553(0x1e6);var _0x3a7468=_0x154b3b;super(_0x3a7468[_0x381553(0x1df)],_0xf3579d,0x1f5);}}function _0x1cf1(){var _0x3f878a=['Authentication\x20required','statusCode','297631Vwzvtt','iUqaV','Access\x20denied','code','name','9151263DAGGkG','Operation\x20is\x20not\x20configured','cGAcH','2094btVtOJ','aYhZS','Not\x20found','2761Vdjwyv','GhkDY','602055ZqqFIE','UNSUPPORTED','split','VALIDATION_ERROR','NOT_FOUND','BAD_REQUEST_ERROR','details','416VZvTXY','3468XJxIAF','hezSA','FORBIDDEN','2|1|3|4|0','Conflict','36HpFmjD','CONFLICT','45550paHzQR','5175204hakGHg','142387ApHrmk','UNAUTHORIZED'];_0x1cf1=function(){return _0x3f878a;};return _0x1cf1();}
|
package/dist/fastify.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integrates FCore modules with Fastify without coupling infrastructure plugins to HTTP.
|
|
3
|
+
*/
|
|
1
4
|
import { type FastifyPluginAsync } from "fastify";
|
|
2
5
|
import type { AppContext } from "./context.js";
|
|
3
|
-
export
|
|
4
|
-
ctx: AppContext;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: FastifyPluginAsync<FCoreFastifyOptions>;
|
|
7
|
-
export default _default;
|
|
6
|
+
export default function fcoreFastify(ctx: AppContext): FastifyPluginAsync;
|
|
8
7
|
//# sourceMappingURL=fastify.d.ts.map
|
package/dist/fastify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAmB/C,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,kBAAkB,CAiExE"}
|
package/dist/fastify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x371afb,_0x4af1ac){const _0x886d92=_0x7fd1,_0x13b693=_0x371afb();while(!![]){try{const _0x45c3d5=-parseInt(_0x886d92(0x1a4))/0x1+parseInt(_0x886d92(0x1c5))/0x2*(-parseInt(_0x886d92(0x1a1))/0x3)+parseInt(_0x886d92(0x1d1))/0x4*(-parseInt(_0x886d92(0x1b3))/0x5)+parseInt(_0x886d92(0x1df))/0x6+-parseInt(_0x886d92(0x1a7))/0x7+parseInt(_0x886d92(0x1ab))/0x8*(-parseInt(_0x886d92(0x1a2))/0x9)+parseInt(_0x886d92(0x19d))/0xa;if(_0x45c3d5===_0x4af1ac)break;else _0x13b693['push'](_0x13b693['shift']());}catch(_0x3f9588){_0x13b693['push'](_0x13b693['shift']());}}}(_0x3193,0x771dd));import{FCoreError}from'./errors.js';import{authRoutes}from'./modules/auth/index.js';import{fileRoutes}from'./modules/file/index.js';function _0x7fd1(_0x37bfa1,_0x3164cf){_0x37bfa1=_0x37bfa1-0x196;const _0x3193b3=_0x3193();let _0x7fd1c7=_0x3193b3[_0x37bfa1];return _0x7fd1c7;}function _0x3193(){const _0x29b9b7=['fzuMe','gpStl','nBtQj','Nxbqn','code','toString','2397870rXpVEZ','VWxwF','RFvcK','reduce','maxFileSize','eYRpD','BPvmT','Internal\x20server\x20error','fRrrH','dQJsv','rateLimit','message','FcSMq','tinKI','log','26092270qoiygx','tDsBj','setErrorHandler','vHADi','1074nQCDfd','561609kffAiA','application/x-www-form-urlencoded','519127jjxXbY','WXXNo','ppbHi','5908679EIhaby','HIQSH','decorate','details','56buXDBL','raw','url','EMrIV','TWUke','split','register','hkgaR','160kZWRIw','bfOqv','error','user','disabled','ctx','@fastify/rate-limit','MmQUJ','addContentTypeParser','FST_ERR_VALIDATION','send','timeWindow','ppxwU','WFyYC','preHandler','statusCode','qYwNO','FRXkC','3396xjvTSJ','ymhBX','test','buffer','CuDSY','vAFAu','eCMCE','debug','RRHZx','hQYUJ','logger','OaUMw','14132PweHFH','INTERNAL_ERROR','eHiaP','@fastify/multipart','vQmVY','⚠️\x20rate\x20limit\x20is\x20disabled','xLtyf','max'];_0x3193=function(){return _0x29b9b7;};return _0x3193();}import{resourceRoutes}from'./modules/resource/index.js';import{systemRoutes}from'./modules/system/index.js';import{createSessionStore}from'./plugins/auth/index.js';function urlencodedContentParser(_0x22719b,_0xa8eb6,_0x1e17e2){const _0x272829=_0x7fd1,_0xbb95dd={'bfOqv':function(_0x2462e7,_0x10acf1){return _0x2462e7(_0x10acf1);},'FcSMq':function(_0x152433,_0x4c557d,_0x188d33){return _0x152433(_0x4c557d,_0x188d33);}},_0xe7d6c7=_0xbb95dd[_0x272829(0x1b4)](decodeURIComponent,_0xa8eb6[_0x272829(0x1de)]())[_0x272829(0x1b0)]('&')[_0x272829(0x1e2)]((_0x5bd735,_0x43d7a1)=>{const _0x2783a0=_0x272829,[_0x5dea30,_0x217ab3]=_0x43d7a1[_0x2783a0(0x1b0)]('='),_0x23e556={..._0x5bd735};return _0x23e556[_0x5dea30]=_0x217ab3,_0x23e556;},{});_0xbb95dd[_0x272829(0x19a)](_0x1e17e2,null,_0xe7d6c7);}export default function fcoreFastify(_0x1acd1a){const _0x54c574=_0x7fd1,_0xd708f4={'nBtQj':function(_0x34ded1,_0x2cae79,_0x510448){return _0x34ded1(_0x2cae79,_0x510448);},'vQmVY':_0x54c574(0x1d9),'gpStl':_0x54c574(0x1a8),'eCMCE':function(_0x4c498e,_0xb770f9){return _0x4c498e instanceof _0xb770f9;},'RFvcK':function(_0x3ed641,_0x22ce1e){return _0x3ed641===_0x22ce1e;},'ymhBX':_0x54c574(0x1bc),'ppbHi':function(_0x5d7f60,_0x736c1b){return _0x5d7f60===_0x736c1b;},'EMrIV':function(_0x46a27e,_0x2c7c73){return _0x46a27e!==_0x2c7c73;},'qYwNO':_0x54c574(0x19e),'RRHZx':_0x54c574(0x1ce),'VWxwF':_0x54c574(0x1b8),'ppxwU':function(_0x1f99be,_0x25e690){return _0x1f99be(_0x25e690);},'OaUMw':_0x54c574(0x1a3),'dQJsv':_0x54c574(0x1c8),'BPvmT':_0x54c574(0x1b9),'hkgaR':_0x54c574(0x1c1),'FRXkC':function(_0x3a528e,_0x3edf9a){return _0x3a528e*_0x3edf9a;}};return async _0x1ffaa1=>{const _0x119c39=_0x54c574,_0x5184fb={'MmQUJ':function(_0x5ad6e9,_0x2a1c6e,_0x1e0156){const _0x36c2a3=_0x7fd1;return _0xd708f4[_0x36c2a3(0x1db)](_0x5ad6e9,_0x2a1c6e,_0x1e0156);},'Nxbqn':_0x119c39(0x1b9),'WFyYC':function(_0xb907c3,_0x4cfd44){return _0xb907c3===_0x4cfd44;},'xLtyf':_0xd708f4[_0x119c39(0x1d5)],'TWUke':_0xd708f4[_0x119c39(0x1da)],'CuDSY':function(_0x23bafa,_0x403ae5){const _0x2fff37=_0x119c39;return _0xd708f4[_0x2fff37(0x1cb)](_0x23bafa,_0x403ae5);},'tinKI':function(_0x22b915,_0x44d56a){const _0x147f44=_0x119c39;return _0xd708f4[_0x147f44(0x1e1)](_0x22b915,_0x44d56a);},'fRrrH':_0xd708f4[_0x119c39(0x1c6)],'WXXNo':_0x119c39(0x1d3),'eYRpD':function(_0x2a7117,_0x35b6ea){const _0x186b3e=_0x119c39;return _0xd708f4[_0x186b3e(0x1a6)](_0x2a7117,_0x35b6ea);}};if(_0xd708f4[_0x119c39(0x1ae)](_0xd708f4[_0x119c39(0x1c3)],_0xd708f4[_0x119c39(0x1cd)])){_0x1ffaa1[_0x119c39(0x1a9)](_0xd708f4[_0x119c39(0x1e0)],_0x1acd1a);const {config:_0x45a7ad}=_0x1acd1a;await _0xd708f4[_0x119c39(0x1db)](createSessionStore,_0x1ffaa1,_0x1acd1a),_0x1ffaa1[_0x119c39(0x19f)]((_0x4e698e,_0x4fca53,_0x33f6c4)=>{const _0x297f8c=_0x119c39,_0x37b846={};_0x37b846[_0x297f8c(0x1ca)]=_0x5184fb[_0x297f8c(0x1dc)],_0x37b846[_0x297f8c(0x1a0)]=_0x297f8c(0x1c1);const _0x6c88c2=_0x37b846;if(_0x5184fb[_0x297f8c(0x1c0)](_0x5184fb[_0x297f8c(0x1d7)],_0x5184fb[_0x297f8c(0x1af)]))_0x11e524[_0x297f8c(0x1b1)](import(_0x6c88c2[_0x297f8c(0x1ca)]),{'max':_0x4d58ba[_0x297f8c(0x198)]?.[_0x297f8c(0x1d8)]||0x64,'timeWindow':_0x3ad5be[_0x297f8c(0x198)]?.[_0x297f8c(0x1be)]||0xea60,'hook':_0x6c88c2[_0x297f8c(0x1a0)],'global':!![],'keyGenerator':_0x57f62b=>(_0x57f62b[_0x297f8c(0x1b6)]?.['id']||_0x57f62b['ip'])+'-'+_0x57f62b[_0x297f8c(0x1ac)][_0x297f8c(0x1ad)][_0x297f8c(0x1b0)]('?')[0x0]});else{if(_0x5184fb[_0x297f8c(0x1c9)](_0x4e698e,FCoreError)||_0x5184fb[_0x297f8c(0x19b)](_0x4e698e[_0x297f8c(0x1dd)],_0x5184fb[_0x297f8c(0x196)])){if(_0x5184fb[_0x297f8c(0x19b)](_0x297f8c(0x1d3),_0x5184fb[_0x297f8c(0x1a5)]))return _0x33f6c4[_0x297f8c(0x1dd)](_0x4e698e[_0x297f8c(0x1c2)])[_0x297f8c(0x1bd)]({'error':_0x4e698e[_0x297f8c(0x1dd)],'message':_0x4e698e[_0x297f8c(0x199)],'details':_0x4e698e[_0x297f8c(0x1aa)]});else{const _0x2ae221=_0xbae581(_0x111945[_0x297f8c(0x1de)]())[_0x297f8c(0x1b0)]('&')[_0x297f8c(0x1e2)]((_0x1f2e21,_0x2eb9c6)=>{const _0x4961f0=_0x297f8c,[_0x32a4cc,_0x34460a]=_0x2eb9c6[_0x4961f0(0x1b0)]('='),_0x24d0d1={..._0x1f2e21};return _0x24d0d1[_0x32a4cc]=_0x34460a,_0x24d0d1;},{});CLGNXR[_0x297f8c(0x1ba)](_0x2d1aa2,null,_0x2ae221);}}_0x1acd1a[_0x297f8c(0x1cf)][_0x297f8c(0x1b5)](_0x4e698e);(_0x45a7ad[_0x297f8c(0x1cc)]||_0x5184fb[_0x297f8c(0x1e4)](process.env.NODE_ENV,_0x297f8c(0x1c7))||process.env.VITEST)&&console[_0x297f8c(0x1b5)](_0x4e698e);const _0x57969e={};return _0x57969e[_0x297f8c(0x1b5)]=_0x297f8c(0x1d2),_0x57969e[_0x297f8c(0x199)]=_0x297f8c(0x1e6),_0x33f6c4[_0x297f8c(0x1dd)](0x1f4)[_0x297f8c(0x1bd)](_0x57969e);}}),await _0x1ffaa1[_0x119c39(0x1b1)](_0xd708f4[_0x119c39(0x1bf)](authRoutes,_0x1acd1a)),await _0x1ffaa1[_0x119c39(0x1b1)](_0xd708f4[_0x119c39(0x1bf)](resourceRoutes,_0x1acd1a)),await _0x1ffaa1[_0x119c39(0x1b1)](_0xd708f4[_0x119c39(0x1bf)](fileRoutes,_0x1acd1a)),await _0x1ffaa1[_0x119c39(0x1b1)](_0xd708f4[_0x119c39(0x1bf)](systemRoutes,_0x1acd1a)),_0x1ffaa1[_0x119c39(0x1bb)](_0xd708f4[_0x119c39(0x1d0)],{'parseAs':_0xd708f4[_0x119c39(0x197)]},urlencodedContentParser),!_0x45a7ad[_0x119c39(0x198)]?.[_0x119c39(0x1b7)]?_0x1ffaa1[_0x119c39(0x1b1)](import(_0xd708f4[_0x119c39(0x1e5)]),{'max':_0x45a7ad[_0x119c39(0x198)]?.[_0x119c39(0x1d8)]||0x64,'timeWindow':_0x45a7ad[_0x119c39(0x198)]?.[_0x119c39(0x1be)]||0xea60,'hook':_0xd708f4[_0x119c39(0x1b2)],'global':!![],'keyGenerator':_0x2c7128=>(_0x2c7128[_0x119c39(0x1b6)]?.['id']||_0x2c7128['ip'])+'-'+_0x2c7128[_0x119c39(0x1ac)][_0x119c39(0x1ad)][_0x119c39(0x1b0)]('?')[0x0]}):console[_0x119c39(0x19c)](_0x119c39(0x1d6)),_0x1ffaa1[_0x119c39(0x1b1)](import(_0x119c39(0x1d4)),{'limits':{'fileSize':_0xd708f4[_0x119c39(0x1c4)](_0x45a7ad[_0x119c39(0x1e3)],0x400)*0x400}});}else{const _0x3fe0ed={};return _0x3fe0ed[_0x119c39(0x1b5)]=_0x37c45a[_0x119c39(0x1dd)],_0x3fe0ed[_0x119c39(0x199)]=_0x444caf[_0x119c39(0x199)],_0x3fe0ed[_0x119c39(0x1aa)]=_0x3726e1[_0x119c39(0x1aa)],_0x587b0e[_0x119c39(0x1dd)](_0x53dfea[_0x119c39(0x1c2)])[_0x119c39(0x1bd)](_0x3fe0ed);}};};
|
package/dist/fcore.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21af4a,_0x2e03fa){const _0x12c203=_0xaa54,_0x2736ea=_0x21af4a();while(!![]){try{const _0x323d64=-parseInt(_0x12c203(0x96))/0x1*(-parseInt(_0x12c203(0x8f))/0x2)+parseInt(_0x12c203(0x9c))/0x3*(parseInt(_0x12c203(0xa5))/0x4)+parseInt(_0x12c203(0x8e))/0x5+-parseInt(_0x12c203(0x82))/0x6*(-parseInt(_0x12c203(0x8b))/0x7)+-parseInt(_0x12c203(0x9a))/0x8+parseInt(_0x12c203(0x8c))/0x9*(-parseInt(_0x12c203(0xa4))/0xa)+-parseInt(_0x12c203(0xa0))/0xb*(parseInt(_0x12c203(0xa1))/0xc);if(_0x323d64===_0x2e03fa)break;else _0x2736ea['push'](_0x2736ea['shift']());}catch(_0x2655c5){_0x2736ea['push'](_0x2736ea['shift']());}}}(_0x5b33,0xd104a));import{loadConfig}from'./config.js';function _0xaa54(_0x5480bf,_0x40b553){_0x5480bf=_0x5480bf-0x82;const _0x5b33d1=_0x5b33();let _0xaa548=_0x5b33d1[_0x5480bf];return _0xaa548;}import{createContext,setContext}from'./context.js';function _0x5b33(){const _0x224459=['qcSoD','tokenSecret','config','logger','1wbALiz','tokenTtl','JkmOy','length','2282120SJefhA','file','267021tbnrtP','accessKey','bucket','dictionaries','341YxDZZe','497652YhVMzR','resource','audit','775690tarCyt','24cJMSAa','398736ktFWpH','region','redis','resources','folder','secretKey','endpoint','uhoPi','forcePathStyle','140hBVeXm','171tdniHl','cxrPX','1827530ZRwYoF','3344294fRMdYQ','dictionary','register'];_0x5b33=function(){return _0x224459;};return _0x5b33();}import{createAudit,createDatabase,createDictionary,createFileS3,createLogger,createRedis,createResource}from'./plugins/index.js';export async function createFCore(_0x1ee5e5={}){const _0x9c8b8c=_0xaa54,_0x2f44b4={'JkmOy':function(_0x1fbb1b,_0x5f5740){return _0x1fbb1b(_0x5f5740);},'qcSoD':function(_0x5158cf){return _0x5158cf();},'cxrPX':function(_0x1f4f0b,_0x147568){return _0x1f4f0b(_0x147568);},'uhoPi':function(_0xf025b3,_0x41f643){return _0xf025b3(_0x41f643);}},_0x4aa0e7=_0x2f44b4[_0x9c8b8c(0x98)](loadConfig,_0x1ee5e5[_0x9c8b8c(0x94)]),_0x3e6967=_0x2f44b4[_0x9c8b8c(0x98)](createRedis,_0x4aa0e7[_0x9c8b8c(0x84)]),_0x389c0e=_0x2f44b4[_0x9c8b8c(0x92)](createLogger),_0x291d2c=createDatabase(_0x4aa0e7['pg']),_0x33a643={};_0x33a643[_0x9c8b8c(0x88)]=_0x4aa0e7['s3'][_0x9c8b8c(0x88)],_0x33a643[_0x9c8b8c(0x83)]=_0x4aa0e7['s3'][_0x9c8b8c(0x83)],_0x33a643[_0x9c8b8c(0x9e)]=_0x4aa0e7['s3'][_0x9c8b8c(0x9e)],_0x33a643[_0x9c8b8c(0x9d)]=_0x4aa0e7['s3'][_0x9c8b8c(0x9d)],_0x33a643[_0x9c8b8c(0x87)]=_0x4aa0e7['s3'][_0x9c8b8c(0x87)],_0x33a643[_0x9c8b8c(0x86)]=_0x4aa0e7['s3'][_0x9c8b8c(0x86)],_0x33a643[_0x9c8b8c(0x8a)]=_0x4aa0e7['s3'][_0x9c8b8c(0x8a)],_0x33a643[_0x9c8b8c(0x93)]=_0x4aa0e7['s3'][_0x9c8b8c(0x93)],_0x33a643[_0x9c8b8c(0x97)]=_0x4aa0e7['s3'][_0x9c8b8c(0x97)];const _0x925ebd=_0x2f44b4[_0x9c8b8c(0x98)](createFileS3,_0x33a643),_0x50ae6b={};_0x50ae6b['pg']=_0x291d2c,_0x50ae6b[_0x9c8b8c(0x95)]=_0x389c0e;const _0x4559fe=_0x2f44b4[_0x9c8b8c(0x8d)](createAudit,_0x50ae6b),_0x2957f8={};_0x2957f8['pg']=_0x291d2c,_0x2957f8[_0x9c8b8c(0x9f)]=_0x1ee5e5[_0x9c8b8c(0x9f)];const _0x565cc0=_0x2f44b4[_0x9c8b8c(0x8d)](createDictionary,_0x2957f8),_0x209fe7={};_0x209fe7['pg']=_0x291d2c,_0x209fe7[_0x9c8b8c(0x95)]=_0x389c0e,_0x209fe7[_0x9c8b8c(0xa3)]=_0x4559fe;const _0x222a15=_0x2f44b4[_0x9c8b8c(0x89)](createResource,_0x209fe7);_0x1ee5e5[_0x9c8b8c(0x85)]?.[_0x9c8b8c(0x99)]&&_0x222a15[_0x9c8b8c(0x91)](_0x1ee5e5[_0x9c8b8c(0x85)]);const _0x2fbcf2={};_0x2fbcf2[_0x9c8b8c(0x94)]=_0x4aa0e7,_0x2fbcf2[_0x9c8b8c(0x95)]=_0x389c0e,_0x2fbcf2[_0x9c8b8c(0x84)]=_0x3e6967,_0x2fbcf2['pg']=_0x291d2c,_0x2fbcf2[_0x9c8b8c(0x9b)]=_0x925ebd,_0x2fbcf2[_0x9c8b8c(0xa2)]=_0x222a15,_0x2fbcf2[_0x9c8b8c(0xa3)]=_0x4559fe,_0x2fbcf2[_0x9c8b8c(0x90)]=_0x565cc0;const _0x2aaada=_0x2f44b4[_0x9c8b8c(0x8d)](createContext,_0x2fbcf2);return setContext(_0x2aaada),_0x2aaada;}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ab171,_0x8aa559){var _0x2c2e73=_0x7c16,_0x436bbb=_0x1ab171();while(!![]){try{var _0x488ea6=parseInt(_0x2c2e73(0x157))/0x1+parseInt(_0x2c2e73(0x153))/0x2*(parseInt(_0x2c2e73(0x15c))/0x3)+-parseInt(_0x2c2e73(0x15b))/0x4+-parseInt(_0x2c2e73(0x158))/0x5+-parseInt(_0x2c2e73(0x154))/0x6*(-parseInt(_0x2c2e73(0x159))/0x7)+parseInt(_0x2c2e73(0x155))/0x8*(-parseInt(_0x2c2e73(0x15a))/0x9)+-parseInt(_0x2c2e73(0x152))/0xa*(-parseInt(_0x2c2e73(0x156))/0xb);if(_0x488ea6===_0x8aa559)break;else _0x436bbb['push'](_0x436bbb['shift']());}catch(_0xcee8b3){_0x436bbb['push'](_0x436bbb['shift']());}}}(_0x53ab,0x7c434));function _0x7c16(_0x582e,_0x4b8cd0){_0x582e=_0x582e-0x152;var _0x53ab68=_0x53ab();var _0x7c168b=_0x53ab68[_0x582e];return _0x7c168b;}export*from'./errors.js';export*from'./config.js';function _0x53ab(){var _0x54ede8=['3851316UnavtY','3XgYUho','20JpmlXf','1479752XhlzZU','54624UddrFL','160gYnLGI','3823061EGbXlz','163345lrwgoW','1403650QEierP','343rExmlG','131346bOOUNU'];_0x53ab=function(){return _0x54ede8;};return _0x53ab();}export*from'./context.js';export*from'./plugins/index.js';export*from'./fcore.js';export*from'./migrations/runner.js';export*from'./type.js';
|
package/dist/migrations/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function
|
|
2
|
+
function _0x318d(){const _0x412681=['10rhqwRE','error','632177BkqUMG','log','4252424OdDNVv','702825nGSRgL','exitCode','1016268rHNGYz','1782424ZSbllL','run','233112ajMFGV','database','Loaded\x20configuration:','file','307094VWIeVp','OK\x20\x20','SKIP','status'];_0x318d=function(){return _0x412681;};return _0x318d();}const _0x292acd=_0x2764;function _0x2764(_0x5df421,_0x5aacf8){_0x5df421=_0x5df421-0x179;const _0x318df5=_0x318d();let _0x2764fa=_0x318df5[_0x5df421];return _0x2764fa;}(function(_0x164611,_0x50e622){const _0x457895=_0x2764,_0x358ddb=_0x164611();while(!![]){try{const _0x44849c=parseInt(_0x457895(0x186))/0x1+parseInt(_0x457895(0x18a))/0x2+parseInt(_0x457895(0x181))/0x3+parseInt(_0x457895(0x184))/0x4+parseInt(_0x457895(0x17c))/0x5*(-parseInt(_0x457895(0x183))/0x6)+parseInt(_0x457895(0x17e))/0x7+-parseInt(_0x457895(0x180))/0x8;if(_0x44849c===_0x50e622)break;else _0x358ddb['push'](_0x358ddb['shift']());}catch(_0x413258){_0x358ddb['push'](_0x358ddb['shift']());}}}(_0x318d,0x45f4e));import{runMigrations}from'./runner.js';import{loadConfig}from'../config.js';try{const config=loadConfig();console[_0x292acd(0x17f)](_0x292acd(0x188),config['pg']);const _0x33d092={};_0x33d092[_0x292acd(0x187)]=config['pg'];for(const r of await runMigrations(_0x33d092))console[_0x292acd(0x17f)]((r[_0x292acd(0x17b)]===_0x292acd(0x185)?_0x292acd(0x179):_0x292acd(0x17a))+'\x20'+r[_0x292acd(0x189)]);}catch(_0x5217b8){console[_0x292acd(0x17d)](_0x5217b8),process[_0x292acd(0x182)]=0x1;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1955(_0x33711d,_0x48f137){_0x33711d=_0x33711d-0x8a;const _0x3923f9=_0x3923();let _0x195594=_0x3923f9[_0x33711d];return _0x195594;}(function(_0x318ce5,_0xdd58f7){const _0x4ed90e=_0x1955,_0x4c53bc=_0x318ce5();while(!![]){try{const _0x328f09=parseInt(_0x4ed90e(0x96))/0x1+parseInt(_0x4ed90e(0x94))/0x2*(-parseInt(_0x4ed90e(0xc0))/0x3)+-parseInt(_0x4ed90e(0x9a))/0x4+parseInt(_0x4ed90e(0xc9))/0x5*(-parseInt(_0x4ed90e(0x8a))/0x6)+parseInt(_0x4ed90e(0xaf))/0x7+parseInt(_0x4ed90e(0xaa))/0x8+-parseInt(_0x4ed90e(0xa2))/0x9;if(_0x328f09===_0xdd58f7)break;else _0x4c53bc['push'](_0x4c53bc['shift']());}catch(_0x4a533d){_0x4c53bc['push'](_0x4c53bc['shift']());}}}(_0x3923,0x97879));import _0x110b92 from'node:fs/promises';import _0x90bcd8 from'node:path';function _0x3923(){const _0x195a66=['40598jpTTIH','join','761939yXqvhk','ySllW','jWVoe','slice','1216024ALAwyw','map','endsWith','ErHLl','file','version','hostname','migrations','4457349vCCLDf','SELECT\x20version\x20FROM\x20schema_migrations','INSERT\x20INTO\x20schema_migrations(version)\x20VALUES\x20($1)','DATABASE_URL\x20or\x20database\x20config\x20is\x20required','readdir','\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','ROLLBACK','NNhks','8242992oALyhq','COMMIT','release','qgqIc','sDsvJ','2879926JwdaiL','readFile','database','BEGIN','dir','skip','empty\x20pg','chHWM','BHAUd','pathname','databaseUrl','has','password','jKBRu','pHwgu','port','status','3hrYLBT','WxGLF','push','.sql','run','end','qiOYW','GOczm','utf8','318125Ospluh','72MxnfDf','Vdqcb','filter','query','resolve','EdZwI','sort','connect','username','rows'];_0x3923=function(){return _0x195a66;};return _0x3923();}import{createDatabase}from'../plugins/pg.js';export async function runMigrations(_0x3c54b8={}){const _0x4594f9=_0x1955,_0xdbe57d={'EdZwI':_0x4594f9(0xa1),'BHAUd':function(_0x1ba74,_0x1fa8bd){return _0x1ba74(_0x1fa8bd);},'Vdqcb':_0x4594f9(0xa5),'pHwgu':function(_0x3331e0,_0x4d5bae){return _0x3331e0(_0x4d5bae);},'WxGLF':_0x4594f9(0xb5),'qiOYW':_0x4594f9(0xa3),'chHWM':function(_0x1cb97c,_0xbbef5b){return _0x1cb97c===_0xbbef5b;},'sDsvJ':_0x4594f9(0xa9),'ySllW':_0x4594f9(0xc8),'qgqIc':_0x4594f9(0xa4),'jWVoe':_0x4594f9(0xa8),'jKBRu':_0x4594f9(0xc4)},_0x3c5cf3=_0x90bcd8[_0x4594f9(0x8e)](_0x3c54b8[_0x4594f9(0xb3)]??_0xdbe57d[_0x4594f9(0x8f)]),_0x356d10=_0x3c54b8[_0x4594f9(0xb1)]??_0xdbe57d[_0x4594f9(0xb7)](databaseFromUrl,_0x3c54b8[_0x4594f9(0xb9)]??process.env.DATABASE_URL);if(!_0x356d10)throw new Error(_0xdbe57d[_0x4594f9(0x8b)]);const _0xe96b9b=_0xdbe57d[_0x4594f9(0xbd)](createDatabase,_0x356d10);if(!_0xe96b9b)throw new Error(_0xdbe57d[_0x4594f9(0xc1)]);const _0x4e862b=[];try{await _0xe96b9b[_0x4594f9(0x8d)](_0x4594f9(0xa7));const _0x4d2515=await _0xe96b9b[_0x4594f9(0x8d)](_0xdbe57d[_0x4594f9(0xc6)]),_0x5d5c3e=new Set(_0x4d2515[_0x4594f9(0x93)][_0x4594f9(0x9b)](_0x12d985=>_0x12d985[_0x4594f9(0x9f)])),_0x5534ee=(await _0x110b92[_0x4594f9(0xa6)](_0x3c5cf3))[_0x4594f9(0x8c)](_0xde058b=>_0xde058b[_0x4594f9(0x9c)](_0x4594f9(0xc3)))[_0x4594f9(0x90)]();for(const _0x5bafaf of _0x5534ee){if(_0xdbe57d[_0x4594f9(0xb6)](_0xdbe57d[_0x4594f9(0xae)],_0x4594f9(0xa9))){if(_0x5d5c3e[_0x4594f9(0xba)](_0x5bafaf)){const _0x4947b1={};_0x4947b1[_0x4594f9(0x9e)]=_0x5bafaf,_0x4947b1[_0x4594f9(0xbf)]=_0x4594f9(0xb4),_0x4e862b[_0x4594f9(0xc2)](_0x4947b1);continue;}const _0x5611fc=await _0x110b92[_0x4594f9(0xb0)](_0x90bcd8[_0x4594f9(0x95)](_0x3c5cf3,_0x5bafaf),_0xdbe57d[_0x4594f9(0x97)]),_0x348528=await _0xe96b9b[_0x4594f9(0x91)]();try{await _0x348528[_0x4594f9(0x8d)](_0x4594f9(0xb2)),await _0x348528[_0x4594f9(0x8d)](_0x5611fc),await _0x348528[_0x4594f9(0x8d)](_0xdbe57d[_0x4594f9(0xad)],[_0x5bafaf]),await _0x348528[_0x4594f9(0x8d)](_0x4594f9(0xab));}catch(_0x2a613a){await _0x348528[_0x4594f9(0x8d)](_0xdbe57d[_0x4594f9(0x98)]);throw _0x2a613a;}finally{_0x348528[_0x4594f9(0xac)]();}const _0x5cc09e={};_0x5cc09e[_0x4594f9(0x9e)]=_0x5bafaf,_0x5cc09e[_0x4594f9(0xbf)]=_0xdbe57d[_0x4594f9(0xbc)],_0x4e862b[_0x4594f9(0xc2)](_0x5cc09e);}else return _0x542933;}return _0x4e862b;}finally{await _0xe96b9b[_0x4594f9(0xc5)]();}}function databaseFromUrl(_0x39c3c1){const _0x27bdab=_0x1955,_0x929ac1={'ErHLl':function(_0x2e4e1c,_0x1a4fb0){return _0x2e4e1c(_0x1a4fb0);},'GOczm':function(_0x4c71d6,_0x56d6b4){return _0x4c71d6(_0x56d6b4);}};if(!_0x39c3c1)return undefined;const _0x418d8f=new URL(_0x39c3c1);return{'host':_0x418d8f[_0x27bdab(0xa0)],'port':_0x929ac1[_0x27bdab(0x9d)](Number,_0x418d8f[_0x27bdab(0xbe)]||0x1538),'database':_0x418d8f[_0x27bdab(0xb8)][_0x27bdab(0x99)](0x1),'user':_0x929ac1[_0x27bdab(0x9d)](decodeURIComponent,_0x418d8f[_0x27bdab(0x92)]),'password':_0x929ac1[_0x27bdab(0xc7)](decodeURIComponent,_0x418d8f[_0x27bdab(0xbb)])};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x54cf(_0x5e9ef5,_0x1e4a8e){_0x5e9ef5=_0x5e9ef5-0x9c;var _0x3c4214=_0x3c42();var _0x54cf1d=_0x3c4214[_0x5e9ef5];return _0x54cf1d;}(function(_0x2aa894,_0x293ba6){var _0x113980=_0x54cf,_0x13b89d=_0x2aa894();while(!![]){try{var _0x2685cd=parseInt(_0x113980(0x9e))/0x1+parseInt(_0x113980(0xa0))/0x2+parseInt(_0x113980(0x9d))/0x3+parseInt(_0x113980(0x9f))/0x4*(parseInt(_0x113980(0xa4))/0x5)+-parseInt(_0x113980(0x9c))/0x6+-parseInt(_0x113980(0xa2))/0x7*(-parseInt(_0x113980(0xa1))/0x8)+-parseInt(_0x113980(0xa3))/0x9;if(_0x2685cd===_0x293ba6)break;else _0x13b89d['push'](_0x13b89d['shift']());}catch(_0x4b1e76){_0x13b89d['push'](_0x13b89d['shift']());}}}(_0x3c42,0xc17ca));export*from'./route.js';export*from'./services/login.js';export*from'./services/logout.js';export*from'./services/get-current-user.js';export*from'./services/verify-two-factor.js';function _0x3c42(){var _0x52e03f=['567911rzCXCs','52DFvMpQ','2648100hWxTYW','24MYBHQg','1387799wlCHva','5276196XcpjAB','103010SuTutx','9211776VcQWpJ','478512ucgsiN'];_0x3c42=function(){return _0x52e03f;};return _0x3c42();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5d00b8,_0x4be8fd){const _0x3e6c43=_0xea86,_0x173891=_0x5d00b8();while(!![]){try{const _0x12fc7a=-parseInt(_0x3e6c43(0x10e))/0x1*(-parseInt(_0x3e6c43(0xd9))/0x2)+-parseInt(_0x3e6c43(0xf5))/0x3*(parseInt(_0x3e6c43(0x10d))/0x4)+parseInt(_0x3e6c43(0xb8))/0x5+parseInt(_0x3e6c43(0xaf))/0x6+-parseInt(_0x3e6c43(0xc6))/0x7+-parseInt(_0x3e6c43(0xe2))/0x8+parseInt(_0x3e6c43(0x118))/0x9*(parseInt(_0x3e6c43(0xfb))/0xa);if(_0x12fc7a===_0x4be8fd)break;else _0x173891['push'](_0x173891['shift']());}catch(_0x127c42){_0x173891['push'](_0x173891['shift']());}}}(_0x2bb8,0x18cd6));function _0xea86(_0xea9043,_0x523722){_0xea9043=_0xea9043-0xad;const _0x2bb881=_0x2bb8();let _0xea860f=_0x2bb881[_0xea9043];return _0xea860f;}import _0x319427 from'./services/login.js';import _0x18e1a5 from'./services/logout.js';import _0x1dec9a from'./services/get-current-user.js';import{authSchemas}from'./schema.js';import _0x1b550 from'../../shared/getIP.js';function _0x2bb8(){const _0x2c2707=['DVydG','Resets\x20two-factor\x20authentication\x20for\x20the\x20current\x20user.','JKIxW','DgJzP','Uses\x20a\x20recovery\x20code\x20to\x20restore\x20two-factor\x20access.','KIPaS','/api/2factor/recovery','Verify\x20two-factor\x20code','/api/2factor/verify','21946IZbMfD','rkUfc','destroy','dLnvq','config','/api/2factor/reset','sessionTimeout','eopAX','post','659320ALOuEQ','clearCookie','Sign\x20out','public','fcore','gHgxh','Get\x20current\x20user','twoFactor','Not\x20authorized','Returns\x20the\x20current\x20two-factor\x20authentication\x20status.','credentials','bEBXX','VTOZB','writable','get','not\x20supported\x20yet','Returns\x20the\x20authenticated\x20user\x27s\x20safe\x20profile.','type','ELSFx','388527lBnvrs','access','zFAsu','JaBrm','dMpLS','cookie','70yIUyqT','Sign\x20in','Reset\x20two-factor\x20authentication','schema','LpEBU','aBpuI','jSgbm','drqwP','bRNzP','yWcfs','GlgYf','aRBUX','cBZAd','OBzTD','redirectUrl','user','permissions','QpAzQ','4IxLaBA','8INBMqr','configurable','Recover\x20two-factor\x20access','dfmOF','BrVbm','/api/login','iGVDy','zKYTj','fSwUL','description','270018xoDgmR','xQCuY','LIqpW','Authenticates\x20a\x20user\x20and\x20returns\x20a\x20bearer\x20access\x20token.','Get\x20two-factor\x20status','QbVnC','/api/logout','iEIYV','epVXd','defineProperty','474426Eeoohu','Terminates\x20the\x20current\x20user\x20session.','maxAge','sbEAa','ZnXNE','body','OKpqq','MYDHL','OAADr','180295RUilzN','rVmrZ','save','jKiPL','summary','MoENT','Returns\x20the\x20QR\x20code\x20required\x20to\x20configure\x20two-factor\x20authentication.','tags','/api/2factor','login','Verifies\x20a\x20two-factor\x20authentication\x20code.','value','JhonZ','auth','695898fzMqJN','Get\x20two-factor\x20QR\x20code','/api/2factor/qr','pMyFI','IykfI','sessionId','/api/user','session','cookieName','EWmPy'];_0x2bb8=function(){return _0x2c2707;};return _0x2bb8();}import{UnauthorizedError,UnsupportedError}from'../../errors.js';export function authRoutes(_0x854928){const _0x48938a=_0xea86,_0x1ee1cd={'rkUfc':function(_0x5dea94,_0x2b216b){return _0x5dea94!==_0x2b216b;},'QbVnC':_0x48938a(0xc9),'jKiPL':_0x48938a(0x105),'JaBrm':function(_0x4fcfe0,_0x3deb5c){return _0x4fcfe0(_0x3deb5c);},'OKpqq':function(_0x174342,_0x339195,_0x3ceefc){return _0x174342(_0x339195,_0x3ceefc);},'gHgxh':function(_0x3b6fa9,_0x407c21){return _0x3b6fa9*_0x407c21;},'BrVbm':function(_0x64f4e1,_0x35a10c){return _0x64f4e1===_0x35a10c;},'IykfI':_0x48938a(0x11a),'iGVDy':_0x48938a(0xea),'yWcfs':_0x48938a(0x100),'zFAsu':_0x48938a(0x113),'dMpLS':_0x48938a(0xe6),'aRBUX':_0x48938a(0xc5),'KIPaS':_0x48938a(0xfc),'rVmrZ':_0x48938a(0x11e),'cBZAd':_0x48938a(0xe4),'epVXd':_0x48938a(0xb0),'LpEBU':_0x48938a(0xcc),'EWmPy':_0x48938a(0xe8),'MoENT':_0x48938a(0xf2),'DVydG':_0x48938a(0x10a),'dLnvq':_0x48938a(0x11c),'iEIYV':_0x48938a(0xeb),'JhonZ':_0x48938a(0xc8),'jSgbm':_0x48938a(0xc7),'OBzTD':_0x48938a(0xd8),'sbEAa':_0x48938a(0xd7),'zKYTj':_0x48938a(0xc2),'OAADr':_0x48938a(0x110),'eopAX':_0x48938a(0xd4),'DgJzP':_0x48938a(0xde),'bEBXX':_0x48938a(0xfd)};return async _0x3fbf90=>{const _0x25dec7=_0x48938a,_0x20200b={'JKIxW':_0x25dec7(0xf1),'ELSFx':_0x25dec7(0xea),'xQCuY':_0x25dec7(0x103),'QpAzQ':function(_0x113a0d,_0x2c1ece){const _0x9c6801=_0x25dec7;return _0x1ee1cd[_0x9c6801(0x112)](_0x113a0d,_0x2c1ece);}};_0x3fbf90[_0x25dec7(0xe1)](_0x1ee1cd[_0x25dec7(0xf7)],{'schema':{'tags':[_0x1ee1cd[_0x25dec7(0xf9)],_0x1ee1cd[_0x25dec7(0x106)]],'summary':_0x1ee1cd[_0x25dec7(0xd5)],'description':_0x25dec7(0x11b),'access':_0x25dec7(0xe5),'permissions':[],'body':authSchemas[_0x25dec7(0xec)]}},async _0x23b4b0=>{const _0x148d29=_0x25dec7;if(_0x1ee1cd[_0x148d29(0xda)](_0x1ee1cd[_0x148d29(0x11d)],_0x1ee1cd[_0x148d29(0xbb)])){const _0x42059d=_0x1ee1cd[_0x148d29(0xf8)](_0x1b550,_0x23b4b0),_0x1fdb57={..._0x23b4b0[_0x148d29(0xb4)]};_0x1fdb57['ip']=_0x42059d;const {user:_0xc4305b,redirectUrl:redirectUrl='/'}=await _0x1ee1cd[_0x148d29(0xb5)](_0x319427,_0x1fdb57,_0x854928);await _0x23b4b0[_0x148d29(0xc1)](_0xc4305b);const _0x18ad51=_0x1ee1cd[_0x148d29(0xe7)](_0x1ee1cd[_0x148d29(0xe7)](_0x854928[_0x148d29(0xdd)][_0x148d29(0xc5)][_0x148d29(0xdf)],0x3e8),0x3c);if(_0x23b4b0[_0x148d29(0xcd)]?.[_0x148d29(0xfa)]){if(_0x1ee1cd[_0x148d29(0x112)](_0x148d29(0x11a),_0x1ee1cd[_0x148d29(0xca)]))_0x23b4b0[_0x148d29(0xcd)][_0x148d29(0xfa)][_0x148d29(0xb1)]=_0x18ad51;else return _0x425403;}await _0x23b4b0[_0x148d29(0xcd)][_0x148d29(0xba)]();const _0x74ea04={};_0x74ea04['id']=_0xc4305b['id'],_0x74ea04[_0x148d29(0xf3)]=_0xc4305b[_0x148d29(0xf3)];const _0x5b188b={};return _0x5b188b[_0x148d29(0x10a)]=_0x74ea04,_0x5b188b[_0x148d29(0x109)]=redirectUrl,_0x5b188b;}else{if(!_0x2cf1ca[_0x148d29(0x10a)])throw new _0x3ee8a7(_0x148d29(0xea));throw new _0x596f58(_0x20200b[_0x148d29(0xd2)]);}}),_0x3fbf90[_0x25dec7(0xe1)](_0x1ee1cd[_0x25dec7(0xb9)],{'schema':{'tags':[_0x1ee1cd[_0x25dec7(0xf9)],_0x1ee1cd[_0x25dec7(0x106)]],'summary':_0x1ee1cd[_0x25dec7(0x107)],'description':_0x1ee1cd[_0x25dec7(0xad)],'access':_0x25dec7(0x10a),'permissions':[]}},async(_0x43976e,_0x3adaa1)=>{const _0x5144d2=_0x25dec7,_0x3f203c={};_0x3f203c[_0x5144d2(0x102)]=_0x1ee1cd[_0x5144d2(0x114)];const _0xe7c02d=_0x3f203c;if(_0x1ee1cd[_0x5144d2(0x104)]===_0x1ee1cd[_0x5144d2(0x104)]){const _0x383a38={};_0x383a38[_0x5144d2(0x109)]='/';const _0xecf0ff=_0x383a38;if(!_0x43976e[_0x5144d2(0x10a)])return _0xecf0ff;const _0x4894aa={};_0x4894aa[_0x5144d2(0xcb)]=_0x43976e[_0x5144d2(0xcd)][_0x5144d2(0xcb)],_0x4894aa[_0x5144d2(0x10a)]=_0x43976e[_0x5144d2(0x10a)],await _0x1ee1cd[_0x5144d2(0xb5)](_0x18e1a5,_0x4894aa,_0x854928),await _0x43976e[_0x5144d2(0xcd)][_0x5144d2(0xdb)](),_0x3adaa1[_0x5144d2(0xe3)](_0x854928[_0x5144d2(0xdd)][_0x5144d2(0xc5)][_0x5144d2(0xce)]);const _0x173b7b={};return _0x173b7b[_0x5144d2(0xc3)]=null,_0x173b7b[_0x5144d2(0xef)]=![],_0x173b7b[_0x5144d2(0x10f)]=![],Object[_0x5144d2(0xae)](_0x43976e,_0x5144d2(0xcd),_0x173b7b),_0xecf0ff;}else throw new _0x48e976(_0xe7c02d[_0x5144d2(0x102)]);}),_0x3fbf90[_0x25dec7(0xf0)](_0x1ee1cd[_0x25dec7(0xff)],{'schema':{'tags':[_0x1ee1cd[_0x25dec7(0xf9)],_0x1ee1cd[_0x25dec7(0x106)]],'summary':_0x1ee1cd[_0x25dec7(0xcf)],'description':_0x1ee1cd[_0x25dec7(0xbd)],'access':_0x1ee1cd[_0x25dec7(0xd0)],'permissions':[]}},async _0x131d31=>_0x1dec9a({'user':_0x131d31[_0x25dec7(0x10a)]}));const _0x301ef7={};_0x301ef7[_0x25dec7(0xbf)]=[_0x1ee1cd[_0x25dec7(0xf9)],_0x1ee1cd[_0x25dec7(0x106)]],_0x301ef7[_0x25dec7(0xbc)]=_0x1ee1cd[_0x25dec7(0xdc)],_0x301ef7[_0x25dec7(0x117)]=_0x1ee1cd[_0x25dec7(0x11f)],_0x301ef7[_0x25dec7(0xf6)]=_0x1ee1cd[_0x25dec7(0xd0)],_0x301ef7[_0x25dec7(0x10b)]=[];const _0x1ba4cf={};_0x1ba4cf[_0x25dec7(0xfe)]=_0x301ef7,_0x3fbf90[_0x25dec7(0xf0)](_0x25dec7(0xc0),_0x1ba4cf,async _0x4b679b=>{const _0x2744c3=_0x25dec7;if(!_0x4b679b[_0x2744c3(0x10a)])throw new UnauthorizedError(_0x2744c3(0xea));throw new UnsupportedError(_0x20200b[_0x2744c3(0xd2)]);}),_0x3fbf90[_0x25dec7(0xf0)](_0x1ee1cd[_0x25dec7(0xc4)],{'schema':{'tags':[_0x25dec7(0xe6),_0x1ee1cd[_0x25dec7(0x106)]],'summary':_0x1ee1cd[_0x25dec7(0x101)],'description':_0x25dec7(0xbe),'access':_0x1ee1cd[_0x25dec7(0xd0)],'permissions':[]}},async _0x57a539=>{const _0x29e75e=_0x25dec7;if(!_0x57a539[_0x29e75e(0x10a)])throw new UnauthorizedError(_0x20200b[_0x29e75e(0xf4)]);throw new UnsupportedError(_0x20200b[_0x29e75e(0xd2)]);}),_0x3fbf90[_0x25dec7(0xe1)](_0x1ee1cd[_0x25dec7(0x108)],{'schema':{'tags':[_0x1ee1cd[_0x25dec7(0xf9)],_0x25dec7(0xc5)],'summary':_0x1ee1cd[_0x25dec7(0xb2)],'description':_0x1ee1cd[_0x25dec7(0x115)],'access':_0x1ee1cd[_0x25dec7(0xd0)],'permissions':[],'body':authSchemas[_0x25dec7(0xe9)]}},async _0x4da237=>{const _0x215146=_0x25dec7,_0x5b595a={};_0x5b595a[_0x215146(0xb6)]=_0x20200b[_0x215146(0xf4)];const _0x34fa16=_0x5b595a;if(!_0x4da237[_0x215146(0x10a)]){if(_0x20200b[_0x215146(0x119)]===_0x20200b[_0x215146(0x119)])throw new UnauthorizedError(_0x215146(0xea));else throw new _0x1b4e68(xywZVn[_0x215146(0xb6)]);}throw new UnsupportedError(_0x20200b[_0x215146(0xd2)]);});const _0x134fc3={};_0x134fc3[_0x25dec7(0xbf)]=[_0x25dec7(0xe6),_0x25dec7(0xc5)],_0x134fc3[_0x25dec7(0xbc)]=_0x1ee1cd[_0x25dec7(0xb7)],_0x134fc3[_0x25dec7(0x117)]=_0x1ee1cd[_0x25dec7(0xe0)],_0x134fc3[_0x25dec7(0xf6)]=_0x25dec7(0x10a),_0x134fc3[_0x25dec7(0x10b)]=[],_0x134fc3[_0x25dec7(0xb4)]=authSchemas[_0x25dec7(0xe9)];const _0x3802b1={};_0x3802b1[_0x25dec7(0xfe)]=_0x134fc3,_0x3fbf90[_0x25dec7(0xe1)](_0x25dec7(0xd6),_0x3802b1,async _0x3c2aa9=>{const _0x120f52=_0x25dec7;if(!_0x3c2aa9[_0x120f52(0x10a)])throw new UnauthorizedError(_0x20200b[_0x120f52(0xf4)]);throw new UnsupportedError(_0x20200b[_0x120f52(0xd2)]);}),_0x3fbf90[_0x25dec7(0xe1)](_0x1ee1cd[_0x25dec7(0xd3)],{'schema':{'tags':[_0x1ee1cd[_0x25dec7(0xf9)],_0x1ee1cd[_0x25dec7(0x106)]],'summary':_0x1ee1cd[_0x25dec7(0xed)],'description':_0x25dec7(0xd1),'access':_0x1ee1cd[_0x25dec7(0xd0)],'permissions':[],'body':authSchemas[_0x25dec7(0xe9)]}},async _0x3bb639=>{const _0x6f9e80=_0x25dec7,_0x1f9d47={};_0x1f9d47[_0x6f9e80(0x111)]=_0x20200b[_0x6f9e80(0xf4)],_0x1f9d47[_0x6f9e80(0xb3)]=_0x20200b[_0x6f9e80(0xd2)];const _0x496444=_0x1f9d47;if(!_0x3bb639[_0x6f9e80(0x10a)]){if(_0x20200b[_0x6f9e80(0x10c)](_0x6f9e80(0x116),_0x6f9e80(0xee))){if(!_0x1b6b23[_0x6f9e80(0x10a)])throw new _0x3bf7ee(IOKazL[_0x6f9e80(0x111)]);throw new _0x45aca8(IOKazL[_0x6f9e80(0xb3)]);}else throw new UnauthorizedError(_0x20200b[_0x6f9e80(0xf4)]);}throw new UnsupportedError(_0x20200b[_0x6f9e80(0xd2)]);});};}
|
|
1
|
+
function _0x41c7(){const _0x36ff0b=['ugZnD','Verify\x20two-factor\x20code','public','login','cITBF','AcbwL','vMORg','wYLVX','cookie','hMEYk','Authenticates\x20a\x20user\x20and\x20returns\x20a\x20bearer\x20access\x20token.','destroy','wyIPZ','VOOvE','/api/logout','yICAO','fXgRZ','zgIDO','Get\x20current\x20user','Get\x20two-factor\x20status','uKTnd','JISoj','35008mJkCku','sessionTimeout','ARxIo','13826800hgCkkY','yxbhJ','BtLCm','twoFactor','/api/2factor','Returns\x20the\x20current\x20two-factor\x20authentication\x20status.','GkpRc','mkeRH','schema','1166054NtDOHM','aCRGO','description','nircs','post','Recover\x20two-factor\x20access','get','UWrcm','writable','clearCookie','Not\x20authorized','uTVJk','fArRA','config','sBaGO','sBOHm','29976RKStjS','fcore','auth','MvFdm','JsuPP','7504fziKTB','/api/2factor/reset','configurable','save','credentials','fGVgL','FhkGu','JnTMk','tags','/api/2factor/verify','2724SsZxLx','VHbTQ','Uses\x20a\x20recovery\x20code\x20to\x20restore\x20two-factor\x20access.','eJsJI','408536SlVZBU','Terminates\x20the\x20current\x20user\x20session.','OGaTy','/api/login','Sign\x20out','not\x20supported\x20yet','FvgVB','/api/2factor/qr','permissions','bSyNd','Returns\x20the\x20authenticated\x20user\x27s\x20safe\x20profile.','kGaET','UIsTN','DENtL','Sign\x20in','session','RiSGv','Reset\x20two-factor\x20authentication','243XJbomE','JzITa','value','qzChq','Returns\x20the\x20QR\x20code\x20required\x20to\x20configure\x20two-factor\x20authentication.','Resets\x20two-factor\x20authentication\x20for\x20the\x20current\x20user.','cookieName','summary','ezAug','type','/api/2factor/recovery','695755pWLZSJ','redirectUrl','NVVeR','access','gJOEq','Tfifr','user','body','fRilX','RWKYX','Verifies\x20a\x20two-factor\x20authentication\x20code.','cMwWn','RPNBx','153pjXccS','maxAge','/api/user','ZTPiS','Get\x20two-factor\x20QR\x20code','sessionId','VKcHz','JsuBI','mRpdZ','jvagO','defineProperty'];_0x41c7=function(){return _0x36ff0b;};return _0x41c7();}(function(_0x361f2b,_0x387ba8){const _0x1d5e93=_0x4b8c,_0x479c2f=_0x361f2b();while(!![]){try{const _0x595384=parseInt(_0x1d5e93(0x8f))/0x1+parseInt(_0x1d5e93(0xe6))/0x2+parseInt(_0x1d5e93(0xb9))/0x3*(parseInt(_0x1d5e93(0xda))/0x4)+-parseInt(_0x1d5e93(0xac))/0x5+parseInt(_0x1d5e93(0x8b))/0x6*(parseInt(_0x1d5e93(0x81))/0x7)+-parseInt(_0x1d5e93(0x7c))/0x8*(parseInt(_0x1d5e93(0xa1))/0x9)+-parseInt(_0x1d5e93(0xdd))/0xa;if(_0x595384===_0x387ba8)break;else _0x479c2f['push'](_0x479c2f['shift']());}catch(_0x4e3ee6){_0x479c2f['push'](_0x479c2f['shift']());}}}(_0x41c7,0x49a23));import _0xa92e02 from'./services/login.js';import _0x5c2e1d from'./services/logout.js';function _0x4b8c(_0x1f139a,_0x8ef65){_0x1f139a=_0x1f139a-0x70;const _0x41c71c=_0x41c7();let _0x4b8cc2=_0x41c71c[_0x1f139a];return _0x4b8cc2;}import _0x4f70c2 from'./services/get-current-user.js';import{authSchemas}from'./schema.js';import _0x1ca37d from'../../shared/getIP.js';import{UnauthorizedError,UnsupportedError}from'../../errors.js';export function authRoutes(_0x3a4362){const _0x255fe4=_0x4b8c,_0x5030ee={'eJsJI':_0x255fe4(0x76),'jvagO':_0x255fe4(0x94),'VHbTQ':function(_0x1cf5c3,_0x41d936,_0x436a5b){return _0x1cf5c3(_0x41d936,_0x436a5b);},'bSyNd':_0x255fe4(0x9e),'MvFdm':function(_0x5f0d24,_0x282f43){return _0x5f0d24(_0x282f43);},'FvgVB':function(_0xc8fd1f,_0x1f76ff,_0x5ec4c2){return _0xc8fd1f(_0x1f76ff,_0x5ec4c2);},'UWrcm':function(_0x594a05,_0x54b451){return _0x594a05*_0x54b451;},'uKTnd':function(_0xd8e4e9,_0x3cc0f5){return _0xd8e4e9===_0x3cc0f5;},'aCRGO':_0x255fe4(0xb0),'cITBF':_0x255fe4(0xe9),'mRpdZ':_0x255fe4(0x86),'Tfifr':function(_0x183957,_0x3db13c){return _0x183957===_0x3db13c;},'JsuBI':_0x255fe4(0xe4),'UIsTN':function(_0x26e8e0,_0x5dfd77){return _0x26e8e0!==_0x5dfd77;},'RWKYX':_0x255fe4(0xa2),'yICAO':_0x255fe4(0x7e),'AcbwL':_0x255fe4(0x9d),'hMEYk':_0x255fe4(0xce),'fXgRZ':_0x255fe4(0xc6),'vMORg':_0x255fe4(0xd2),'RiSGv':_0x255fe4(0x7d),'JISoj':_0x255fe4(0xb2),'VOOvE':_0x255fe4(0xd6),'wYLVX':_0x255fe4(0x99),'fRilX':_0x255fe4(0xe1),'zgIDO':_0x255fe4(0xd7),'sBOHm':_0x255fe4(0xe2),'qzChq':_0x255fe4(0x96),'yxbhJ':_0x255fe4(0xa5),'fArRA':_0x255fe4(0x8a),'kGaET':_0x255fe4(0xc5),'OGaTy':_0x255fe4(0xb6),'ARxIo':_0x255fe4(0x71),'sBaGO':_0x255fe4(0x8d),'BtLCm':_0x255fe4(0x82),'cMwWn':_0x255fe4(0xa0),'VKcHz':_0x255fe4(0xa6)};return async _0x19499=>{const _0x56251f=_0x255fe4,_0x3fed30={'wyIPZ':function(_0x59c0f6,_0x3e6cd3){const _0x525b9f=_0x4b8c;return _0x5030ee[_0x525b9f(0x7f)](_0x59c0f6,_0x3e6cd3);},'JsuPP':function(_0x348115,_0x2ff3a3,_0x3a291c){const _0x534f15=_0x4b8c;return _0x5030ee[_0x534f15(0x95)](_0x348115,_0x2ff3a3,_0x3a291c);},'FhkGu':function(_0x4fe5f0,_0x461c48){const _0x2f0a0c=_0x4b8c;return _0x5030ee[_0x2f0a0c(0x73)](_0x4fe5f0,_0x461c48);},'ezAug':function(_0x4251bc,_0x34320e){const _0x5944c1=_0x4b8c;return _0x5030ee[_0x5944c1(0xd8)](_0x4251bc,_0x34320e);},'RPNBx':_0x5030ee[_0x56251f(0xe7)],'JnTMk':_0x5030ee[_0x56251f(0xc2)],'ZTPiS':function(_0x4effbb,_0x596acd){return _0x4effbb===_0x596acd;},'GkpRc':_0x5030ee[_0x56251f(0xc8)],'uTVJk':_0x5030ee[_0x56251f(0x8e)],'NVVeR':_0x5030ee[_0x56251f(0xc1)],'ugZnD':function(_0x596f6d,_0x484a26){const _0x3f3476=_0x56251f;return _0x5030ee[_0x3f3476(0xb1)](_0x596f6d,_0x484a26);},'DENtL':_0x5030ee[_0x56251f(0xc0)]};if(_0x5030ee[_0x56251f(0x9b)](_0x56251f(0xa2),_0x5030ee[_0x56251f(0xb5)])){if(!_0x5a7f72[_0x56251f(0xb2)])throw new _0x4cc73c(_0x5030ee[_0x56251f(0x8e)]);throw new _0x4618cb(_0x5030ee[_0x56251f(0xc2)]);}else{const _0x18b99c={};_0x18b99c[_0x56251f(0x89)]=[_0x56251f(0x7d),_0x5030ee[_0x56251f(0xd3)]],_0x18b99c[_0x56251f(0xa8)]=_0x5030ee[_0x56251f(0xc9)],_0x18b99c[_0x56251f(0xe8)]=_0x5030ee[_0x56251f(0xcd)],_0x18b99c[_0x56251f(0xaf)]=_0x5030ee[_0x56251f(0xd4)],_0x18b99c[_0x56251f(0x97)]=[],_0x18b99c[_0x56251f(0xb3)]=authSchemas[_0x56251f(0x85)];const _0x1d2494={};_0x1d2494[_0x56251f(0xe5)]=_0x18b99c,_0x19499[_0x56251f(0x70)](_0x56251f(0x92),_0x1d2494,async _0x1f8d60=>{const _0x2304c2=_0x56251f,_0x34a297=_0x3fed30[_0x2304c2(0xd0)](_0x1ca37d,_0x1f8d60),_0x1b1f1f={..._0x1f8d60[_0x2304c2(0xb3)]};_0x1b1f1f['ip']=_0x34a297;const {user:_0x117ca0,redirectUrl:redirectUrl='/'}=await _0x3fed30[_0x2304c2(0x80)](_0xa92e02,_0x1b1f1f,_0x3a4362);await _0x1f8d60[_0x2304c2(0xc7)](_0x117ca0);const _0x3412f9=_0x3fed30[_0x2304c2(0x87)](_0x3fed30[_0x2304c2(0x87)](_0x3a4362[_0x2304c2(0x79)][_0x2304c2(0x7e)][_0x2304c2(0xdb)],0x3e8),0x3c);if(_0x1f8d60[_0x2304c2(0x9e)]?.[_0x2304c2(0xcc)]){if(_0x3fed30[_0x2304c2(0xa9)](_0x2304c2(0xb0),_0x3fed30[_0x2304c2(0xb8)]))_0x1f8d60[_0x2304c2(0x9e)][_0x2304c2(0xcc)][_0x2304c2(0xba)]=_0x3412f9;else throw new _0x2ae357(_0x2304c2(0x76));}await _0x1f8d60[_0x2304c2(0x9e)][_0x2304c2(0x84)]();const _0x550e56={};_0x550e56['id']=_0x117ca0['id'],_0x550e56[_0x2304c2(0xaa)]=_0x117ca0[_0x2304c2(0xaa)];const _0x20b7ec={};return _0x20b7ec[_0x2304c2(0xb2)]=_0x550e56,_0x20b7ec[_0x2304c2(0xad)]=redirectUrl,_0x20b7ec;}),_0x19499[_0x56251f(0x70)](_0x5030ee[_0x56251f(0xca)],{'schema':{'tags':[_0x5030ee[_0x56251f(0x9f)],_0x5030ee[_0x56251f(0xd3)]],'summary':_0x56251f(0x93),'description':_0x56251f(0x90),'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[]}},async(_0x33220e,_0x49bd6)=>{const _0x1f984a=_0x56251f,_0x4c5056={};_0x4c5056[_0x1f984a(0xad)]='/';const _0x8238e5=_0x4c5056;if(!_0x33220e[_0x1f984a(0xb2)])return _0x8238e5;const _0x5963f1={};_0x5963f1[_0x1f984a(0xbe)]=_0x33220e[_0x1f984a(0x9e)][_0x1f984a(0xbe)],_0x5963f1[_0x1f984a(0xb2)]=_0x33220e[_0x1f984a(0xb2)],await _0x5030ee[_0x1f984a(0x8c)](_0x5c2e1d,_0x5963f1,_0x3a4362),await _0x33220e[_0x1f984a(0x9e)][_0x1f984a(0xcf)](),_0x49bd6[_0x1f984a(0x75)](_0x3a4362[_0x1f984a(0x79)][_0x1f984a(0x7e)][_0x1f984a(0xa7)]);const _0x104e3={};return _0x104e3[_0x1f984a(0xa3)]=null,_0x104e3[_0x1f984a(0x74)]=![],_0x104e3[_0x1f984a(0x83)]=![],Object[_0x1f984a(0xc3)](_0x33220e,_0x5030ee[_0x1f984a(0x98)],_0x104e3),_0x8238e5;});const _0x3d7773={};_0x3d7773[_0x56251f(0x89)]=[_0x5030ee[_0x56251f(0x9f)],_0x5030ee[_0x56251f(0xd3)]],_0x3d7773[_0x56251f(0xa8)]=_0x5030ee[_0x56251f(0xd1)],_0x3d7773[_0x56251f(0xe8)]=_0x5030ee[_0x56251f(0xcb)],_0x3d7773[_0x56251f(0xaf)]=_0x5030ee[_0x56251f(0xd9)],_0x3d7773[_0x56251f(0x97)]=[];const _0x1a4f3a={};_0x1a4f3a[_0x56251f(0xe5)]=_0x3d7773,_0x19499[_0x56251f(0x72)](_0x56251f(0xbb),_0x1a4f3a,async _0x16c1a8=>_0x4f70c2({'user':_0x16c1a8[_0x56251f(0xb2)]})),_0x19499[_0x56251f(0x72)](_0x5030ee[_0x56251f(0xb4)],{'schema':{'tags':[_0x5030ee[_0x56251f(0x9f)],_0x56251f(0x7e)],'summary':_0x5030ee[_0x56251f(0xd5)],'description':_0x5030ee[_0x56251f(0x7b)],'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[]}},async _0x2c551a=>{const _0x1f831b=_0x56251f;if(!_0x2c551a[_0x1f831b(0xb2)]){if(_0x3fed30[_0x1f831b(0xbc)](_0x3fed30[_0x1f831b(0xe3)],_0x1f831b(0xe9)))throw new UnauthorizedError(_0x3fed30[_0x1f831b(0x77)]);else{if(!_0x2f859e[_0x1f831b(0xb2)])throw new _0x5a34bd(_0x1f831b(0x76));throw new _0x4c8118(_0x3fed30[_0x1f831b(0x88)]);}}throw new UnsupportedError(_0x3fed30[_0x1f831b(0x88)]);}),_0x19499[_0x56251f(0x72)](_0x5030ee[_0x56251f(0xa4)],{'schema':{'tags':[_0x5030ee[_0x56251f(0x9f)],_0x5030ee[_0x56251f(0xd3)]],'summary':_0x56251f(0xbd),'description':_0x5030ee[_0x56251f(0xde)],'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[]}},async _0x3a5303=>{const _0x37619f=_0x56251f;if(!_0x3a5303[_0x37619f(0xb2)])throw new UnauthorizedError(_0x3fed30[_0x37619f(0x77)]);throw new UnsupportedError(_0x37619f(0x94));}),_0x19499[_0x56251f(0x70)](_0x5030ee[_0x56251f(0x78)],{'schema':{'tags':[_0x5030ee[_0x56251f(0x9f)],_0x56251f(0x7e)],'summary':_0x5030ee[_0x56251f(0x9a)],'description':_0x5030ee[_0x56251f(0x91)],'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[],'body':authSchemas[_0x56251f(0xe0)]}},async _0x3b4d55=>{const _0x2f0755=_0x56251f;if(!_0x3b4d55[_0x2f0755(0xb2)])throw new UnauthorizedError(_0x2f0755(0x76));throw new UnsupportedError(_0x3fed30[_0x2f0755(0x88)]);});const _0x4f703a={};_0x4f703a[_0x56251f(0x89)]=[_0x5030ee[_0x56251f(0x9f)],_0x5030ee[_0x56251f(0xd3)]],_0x4f703a[_0x56251f(0xa8)]=_0x5030ee[_0x56251f(0xdc)],_0x4f703a[_0x56251f(0xe8)]=_0x5030ee[_0x56251f(0x7a)],_0x4f703a[_0x56251f(0xaf)]=_0x5030ee[_0x56251f(0xd9)],_0x4f703a[_0x56251f(0x97)]=[],_0x4f703a[_0x56251f(0xb3)]=authSchemas[_0x56251f(0xe0)];const _0x5c5e50={};_0x5c5e50[_0x56251f(0xe5)]=_0x4f703a,_0x19499[_0x56251f(0x70)](_0x56251f(0xab),_0x5c5e50,async _0x4e29b7=>{const _0x5ce732=_0x56251f;if(!_0x4e29b7[_0x5ce732(0xb2)])throw new UnauthorizedError(_0x5ce732(0x76));throw new UnsupportedError(_0x3fed30[_0x5ce732(0x88)]);}),_0x19499[_0x56251f(0x70)](_0x5030ee[_0x56251f(0xdf)],{'schema':{'tags':[_0x56251f(0x7d),_0x5030ee[_0x56251f(0xd3)]],'summary':_0x5030ee[_0x56251f(0xb7)],'description':_0x5030ee[_0x56251f(0xbf)],'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[],'body':authSchemas[_0x56251f(0xe0)]}},async _0xd78a4d=>{const _0x2c31dd=_0x56251f;if(_0x3fed30[_0x2c31dd(0xae)]!==_0x2c31dd(0x86))_0x500826[_0x2c31dd(0x9e)][_0x2c31dd(0xcc)][_0x2c31dd(0xba)]=_0x45487b;else{if(!_0xd78a4d[_0x2c31dd(0xb2)]){if(_0x3fed30[_0x2c31dd(0xc4)](_0x3fed30[_0x2c31dd(0x9c)],_0x3fed30[_0x2c31dd(0x9c)]))throw new UnauthorizedError(_0x3fed30[_0x2c31dd(0x77)]);else return _0x3f32f6;}throw new UnsupportedError(_0x3fed30[_0x2c31dd(0x88)]);}});}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x31e094=_0x424f;(function(_0x5fa0c8,_0x517124){const _0x23a907=_0x424f,_0xc39c9d=_0x5fa0c8();while(!![]){try{const _0x321798=-parseInt(_0x23a907(0x1e9))/0x1+parseInt(_0x23a907(0x1f0))/0x2*(-parseInt(_0x23a907(0x1ea))/0x3)+-parseInt(_0x23a907(0x1e8))/0x4*(parseInt(_0x23a907(0x1e7))/0x5)+parseInt(_0x23a907(0x1e6))/0x6*(parseInt(_0x23a907(0x1e5))/0x7)+-parseInt(_0x23a907(0x1e3))/0x8*(-parseInt(_0x23a907(0x1e4))/0x9)+parseInt(_0x23a907(0x1e1))/0xa+parseInt(_0x23a907(0x1ef))/0xb*(parseInt(_0x23a907(0x1ee))/0xc);if(_0x321798===_0x517124)break;else _0xc39c9d['push'](_0xc39c9d['shift']());}catch(_0x4da2df){_0xc39c9d['push'](_0xc39c9d['shift']());}}}(_0x19bd,0xa08ef));import{Type}from'@sinclair/typebox';const _0x1dacc9={};_0x1dacc9[_0x31e094(0x1e2)]=0x1,_0x1dacc9[_0x31e094(0x1ed)]=0x64;function _0x424f(_0xe6d329,_0x367a18){_0xe6d329=_0xe6d329-0x1e1;const _0x19bd28=_0x19bd();let _0x424fc0=_0x19bd28[_0xe6d329];return _0x424fc0;}const _0x5cbfd7={};_0x5cbfd7[_0x31e094(0x1e2)]=0x1,_0x5cbfd7[_0x31e094(0x1ed)]=0x64;const _0x22809e={};function _0x19bd(){const _0x26fed0=['22DXMaPG','4vdvOBz','2156750ZqoOCU','minLength','248wwNBYG','351531CgFOZF','6366850zbjHSu','6xJrXsO','10mjyOIx','1763108SlCBCo','1243109cSHNvW','524859pmjssU','Object','String','maxLength','4776972zxnAcI'];_0x19bd=function(){return _0x26fed0;};return _0x19bd();}_0x22809e[_0x31e094(0x1e2)]=0x1;export const authSchemas={'credentials':Type[_0x31e094(0x1eb)]({'login':Type[_0x31e094(0x1ec)](_0x1dacc9),'password':Type[_0x31e094(0x1ec)](_0x5cbfd7)}),'twoFactor':Type[_0x31e094(0x1eb)]({'code':Type[_0x31e094(0x1ec)](_0x22809e)})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2a6b(_0x140a13,_0x88c2a1){_0x140a13=_0x140a13-0x135;const _0x4ca9ea=_0x4ca9();let _0x2a6bd1=_0x4ca9ea[_0x140a13];return _0x2a6bd1;}(function(_0x206861,_0x46859f){const _0x451606=_0x2a6b,_0x41c64b=_0x206861();while(!![]){try{const _0x1cdca8=-parseInt(_0x451606(0x135))/0x1+parseInt(_0x451606(0x13a))/0x2*(-parseInt(_0x451606(0x136))/0x3)+parseInt(_0x451606(0x13e))/0x4+-parseInt(_0x451606(0x138))/0x5+-parseInt(_0x451606(0x137))/0x6+-parseInt(_0x451606(0x13b))/0x7+parseInt(_0x451606(0x139))/0x8;if(_0x1cdca8===_0x46859f)break;else _0x41c64b['push'](_0x41c64b['shift']());}catch(_0x2ff9b0){_0x41c64b['push'](_0x41c64b['shift']());}}}(_0x4ca9,0xdcafa));import{safeUser}from'../../utils/safe-user.js';function _0x4ca9(){const _0x3c607c=['999848UBCqCQ','193549BONXwV','6474ISMzBS','5936688HwqtOz','1557825QZCzgy','38304688tLMgJB','1384klWOjA','8023540wpTCUT','fBxKo','Mtxrx'];_0x4ca9=function(){return _0x3c607c;};return _0x4ca9();}export default async function getCurrentUser(_0x1f0232){const _0x198581=_0x2a6b,_0x5c34b9={'Mtxrx':function(_0x7ce7ac,_0x54d008){return _0x7ce7ac(_0x54d008);},'fBxKo':function(_0x576528,_0x1ba14e){return _0x576528||_0x1ba14e;}},{user:_0x12a6ef}=_0x1f0232;return _0x5c34b9[_0x198581(0x13d)](safeUser,_0x5c34b9[_0x198581(0x13c)](_0x12a6ef,{}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1efa(){const _0x1b782a=['Qwvfx','empty\x20user','blogt','password','977790OYcsLa','link','QSmhl','3442873slGIhr','afterLogin','twoFactor','30DBxTvO','26737630WDmzTk','logger','212924QKzcXh','nOBOg','2951442bAcOwR','4wTOAqY','metrics','auth','empty\x20pg','JOvWO','8kBNgqp','sbYvo','59317AfsJKe','empty\x20redis','login','user.login','base','twofa','3472632HZBAdc'];_0x1efa=function(){return _0x1b782a;};return _0x1efa();}(function(_0x4f3d2d,_0x1878e3){const _0x2cbe09=_0x1c17,_0x1dc904=_0x4f3d2d();while(!![]){try{const _0x3f02b8=-parseInt(_0x2cbe09(0x138))/0x1*(parseInt(_0x2cbe09(0x131))/0x2)+-parseInt(_0x2cbe09(0x13e))/0x3+parseInt(_0x2cbe09(0x12e))/0x4+parseInt(_0x2cbe09(0x125))/0x5*(-parseInt(_0x2cbe09(0x12b))/0x6)+-parseInt(_0x2cbe09(0x128))/0x7*(-parseInt(_0x2cbe09(0x136))/0x8)+-parseInt(_0x2cbe09(0x130))/0x9+parseInt(_0x2cbe09(0x12c))/0xa;if(_0x3f02b8===_0x1878e3)break;else _0x1dc904['push'](_0x1dc904['shift']());}catch(_0x48521f){_0x1dc904['push'](_0x1dc904['shift']());}}}(_0x1efa,0x9b7ff));function _0x1c17(_0x31356d,_0x2b4935){_0x31356d=_0x31356d-0x123;const _0x1efa6c=_0x1efa();let _0x1c1796=_0x1efa6c[_0x31356d];return _0x1c1796;}import _0xa25f8d from'./verifyPassword.js';export default async function login({ip:_0x1f0b2d,login:_0x237c4f,password:_0x5c2126},{config:_0xc264e9,pg:_0x5eb3a8,logger:_0x53a76d,redis:_0x527f81}){const _0x2a2781=_0x1c17,_0x2e083b={'sbYvo':function(_0x220053,_0x2e44ac){return _0x220053(_0x2e44ac);},'nOBOg':_0x2a2781(0x139),'JOvWO':function(_0x351e0a,_0x428d6f,_0x4de595){return _0x351e0a(_0x428d6f,_0x4de595);},'blogt':_0x2a2781(0x140),'QSmhl':_0x2a2781(0x13b),'Qwvfx':function(_0x50fb2a,_0x3b2478){return _0x50fb2a||_0x3b2478;}};if(!_0x5eb3a8)throw _0x2e083b[_0x2a2781(0x137)](Error,_0x2a2781(0x134));if(!_0x527f81)throw Error(_0x2e083b[_0x2a2781(0x12f)]);const _0x3a1888={};_0x3a1888[_0x2a2781(0x13a)]=_0x237c4f,_0x3a1888[_0x2a2781(0x124)]=_0x5c2126,_0x3a1888['ip']=_0x1f0b2d;const _0xfd6c75={};_0xfd6c75['pg']=_0x5eb3a8,_0xfd6c75[_0x2a2781(0x12d)]=_0x53a76d;const {user:_0x1894bd}=await _0x2e083b[_0x2a2781(0x135)](_0xa25f8d,_0x3a1888,_0xfd6c75);if(!_0x1894bd)throw new Error(_0x2e083b[_0x2a2781(0x123)]);_0x53a76d[_0x2a2781(0x132)](_0x2e083b[_0x2a2781(0x127)]);const _0x1def6a=_0x1894bd[_0x2a2781(0x13d)]?_0xc264e9[_0x2a2781(0x133)][_0x2a2781(0x126)]?.[_0x2a2781(0x12a)]?.[_0x2a2781(0x13a)]:_0xc264e9[_0x2a2781(0x133)][_0x2a2781(0x126)]?.[_0x2a2781(0x13c)][_0x2a2781(0x129)];return{'user':_0x1894bd,'redirectUrl':_0x2e083b[_0x2a2781(0x13f)](_0x1def6a,'/')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4176cf,_0x171c54){var _0x3ae6d4=_0x32cc,_0x3e82a3=_0x4176cf();while(!![]){try{var _0xf035e8=parseInt(_0x3ae6d4(0x112))/0x1*(parseInt(_0x3ae6d4(0x117))/0x2)+-parseInt(_0x3ae6d4(0x106))/0x3*(-parseInt(_0x3ae6d4(0x104))/0x4)+-parseInt(_0x3ae6d4(0x115))/0x5+parseInt(_0x3ae6d4(0x10b))/0x6+-parseInt(_0x3ae6d4(0x111))/0x7+parseInt(_0x3ae6d4(0x10f))/0x8*(parseInt(_0x3ae6d4(0x10c))/0x9)+-parseInt(_0x3ae6d4(0x108))/0xa*(parseInt(_0x3ae6d4(0x10e))/0xb);if(_0xf035e8===_0x171c54)break;else _0x3e82a3['push'](_0x3e82a3['shift']());}catch(_0xbd4ada){_0x3e82a3['push'](_0x3e82a3['shift']());}}}(_0x181d,0xba4e4));export default async function logout(_0x15315a,_0x1396da){var _0x431bb4=_0x32cc,_0x592fab={};_0x592fab[_0x431bb4(0x10d)]=_0x431bb4(0xff),_0x592fab[_0x431bb4(0x100)]=_0x431bb4(0x107),_0x592fab[_0x431bb4(0x105)]=_0x431bb4(0x101);var _0x14cdd1=_0x592fab,_0x50fee5={};_0x50fee5[_0x431bb4(0x109)]=_0x14cdd1[_0x431bb4(0x10d)],_0x50fee5[_0x431bb4(0x118)]=_0x14cdd1[_0x431bb4(0x100)],_0x50fee5[_0x431bb4(0x114)]=_0x15315a[_0x431bb4(0x103)],_0x50fee5[_0x431bb4(0x102)]=_0x14cdd1[_0x431bb4(0x105)],_0x50fee5[_0x431bb4(0x113)]=_0x15315a[_0x431bb4(0x116)]?.['id'],await _0x1396da[_0x431bb4(0x10a)]?.[_0x431bb4(0x110)]?.(_0x50fee5);}function _0x32cc(_0x252316,_0x346fc0){_0x252316=_0x252316-0xff;var _0x181d2c=_0x181d();var _0x32ccc6=_0x181d2c[_0x252316];return _0x32ccc6;}function _0x181d(){var _0x331452=['1178196offnfJ','resource','auth','OdyeL','logout','action','sessionId','3040132Jqfkbc','nvrqE','3ddlANS','session','2862950VVYdzR','module','audit','5260488gyjmsG','9zvtYdw','xueHf','22YkrjxG','5675056dPUWQs','write','6258371WmWUQy','2rnPlWn','userId','resourceId','6473040EWlQYo','user'];_0x181d=function(){return _0x331452;};return _0x181d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d5584,_0x26cd9a){var _0x1881c2=_0x5014,_0x5e9a55=_0x2d5584();while(!![]){try{var _0x17f38f=-parseInt(_0x1881c2(0x175))/0x1+parseInt(_0x1881c2(0x170))/0x2*(parseInt(_0x1881c2(0x16e))/0x3)+parseInt(_0x1881c2(0x171))/0x4*(parseInt(_0x1881c2(0x178))/0x5)+parseInt(_0x1881c2(0x173))/0x6*(parseInt(_0x1881c2(0x176))/0x7)+-parseInt(_0x1881c2(0x179))/0x8+parseInt(_0x1881c2(0x172))/0x9+-parseInt(_0x1881c2(0x177))/0xa*(-parseInt(_0x1881c2(0x16f))/0xb);if(_0x17f38f===_0x26cd9a)break;else _0x5e9a55['push'](_0x5e9a55['shift']());}catch(_0x1b7af8){_0x5e9a55['push'](_0x5e9a55['shift']());}}}(_0x4ad0,0x6573f));import{unsupported}from'../../utils/unsupported.js';function _0x5014(_0x4a55c0,_0x4db151){_0x4a55c0=_0x4a55c0-0x16c;var _0x4ad09f=_0x4ad0();var _0x50145e=_0x4ad09f[_0x4a55c0];return _0x50145e;}export default async function verifyTwoFactor(_0x2e97a8,_0x516cbb){var _0x347003=_0x5014,_0x208024={'ZaqUn':function(_0x53a4a8,_0x322dab){return _0x53a4a8(_0x322dab);},'ziPeu':_0x347003(0x16d)};return _0x208024[_0x347003(0x16c)](unsupported,_0x208024[_0x347003(0x174)]);}function _0x4ad0(){var _0x4d269a=['1165813EgiatP','2wSHsCR','4KoDlWM','1320381cokkOK','50190AmVTup','ziPeu','431985lHwCjO','329DYgGXy','70RPAOYZ','1172095zkgqHk','6043192acdzwr','ZaqUn','Two-factor\x20provider','260313eGjXAf'];_0x4ad0=function(){return _0x4d269a;};return _0x4ad0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x13ec3f,_0x30b1a1){const _0x4281c0=_0x149f,_0xc58e4b=_0x13ec3f();while(!![]){try{const _0x3cfe0f=-parseInt(_0x4281c0(0x1d9))/0x1*(parseInt(_0x4281c0(0x1b1))/0x2)+parseInt(_0x4281c0(0x1bb))/0x3*(-parseInt(_0x4281c0(0x1de))/0x4)+-parseInt(_0x4281c0(0x196))/0x5+-parseInt(_0x4281c0(0x1a5))/0x6+parseInt(_0x4281c0(0x1ca))/0x7*(-parseInt(_0x4281c0(0x19b))/0x8)+-parseInt(_0x4281c0(0x1e0))/0x9*(parseInt(_0x4281c0(0x1e2))/0xa)+parseInt(_0x4281c0(0x1a7))/0xb*(parseInt(_0x4281c0(0x1e1))/0xc);if(_0x3cfe0f===_0x30b1a1)break;else _0xc58e4b['push'](_0xc58e4b['shift']());}catch(_0x4f8036){_0xc58e4b['push'](_0xc58e4b['shift']());}}}(_0x228f,0x6b371));function _0x149f(_0x41e87e,_0x269ff3){_0x41e87e=_0x41e87e-0x195;const _0x228f1b=_0x228f();let _0x149f75=_0x228f1b[_0x41e87e];return _0x149f75;}import _0x14884c from'apache-crypt';import _0x5cd512 from'node:crypto';import{BadRequestError}from'../../../errors.js';function md5(_0x335853){const _0x9da1e=_0x149f,_0x19bc5d={};_0x19bc5d[_0x9da1e(0x1aa)]=_0x9da1e(0x1c9),_0x19bc5d[_0x9da1e(0x197)]=_0x9da1e(0x1e3);const _0x57a120=_0x19bc5d;return _0x5cd512[_0x9da1e(0x1a9)](_0x57a120[_0x9da1e(0x1aa)])[_0x9da1e(0x1bf)](_0x335853)[_0x9da1e(0x1bd)](_0x57a120[_0x9da1e(0x197)]);}function _0x228f(){const _0x9e7420=['user','info','UceoL','randomBytes','ZOLPE','qWflC','IqvPq','324582UXHbMS','RKDDN','digest','Ovwhp','update','not\x20enough\x20params:\x20password','scrypt$','ggEDs','OCFvq','oxVoQ','error','PLPyS','password','login','md5','1801639yjmqex','auth/warn','BCZQr','rows','UkGXP','ZzAdi','file','scrypt','GbckP','query','HuvYX','ldqZR','peXPj','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','fmCcr','25411LzIAkr','user\x20not\x20found','timingSafeEqual','Wrong\x20password','HpHgr','12YTEOMY','NyWUM','441OHHyYl','6492tBzziq','65630cWXqmv','hex','mCpll','then','4244320izLiVk','TyhpN','empty\x20pg','toString','not\x20enough\x20params:\x20login','8lYAHnK','split','SELECT\x20public.crypt($1,\x20$2)','eUXer','xzwcm','pdWya','password_new_hash_algorithm','nFzYe','UjFcq','SAHbx','3288384vTFiaK','from','73271MIcrTt','DuqJP','createHash','PidzG','SjVmR','uGRNQ','scryptSync','ORuPA','crypt','salt','68PgbddR','length','OFaEj'];_0x228f=function(){return _0x9e7420;};return _0x228f();}export function hashPassword(_0x2c7432){const _0x428f49=_0x149f,_0x52123d={};_0x52123d[_0x428f49(0x1c6)]=_0x428f49(0x1e3);const _0x384843=_0x52123d,_0x8ee27c=_0x5cd512[_0x428f49(0x1b7)](0x10)[_0x428f49(0x199)](_0x384843[_0x428f49(0x1c6)]),_0x133a3d=_0x5cd512[_0x428f49(0x1ad)](_0x2c7432,_0x8ee27c,0x40)[_0x428f49(0x199)](_0x384843[_0x428f49(0x1c6)]);return _0x428f49(0x1c1)+_0x8ee27c+'$'+_0x133a3d;}export function verifyPasswordWithoutSalt(_0x25fca3,_0x4d169f){const _0x13e190=_0x149f,_0x4c1f3c={};_0x4c1f3c[_0x13e190(0x1b3)]=function(_0x540b8e,_0x10e122){return _0x540b8e!==_0x10e122;},_0x4c1f3c[_0x13e190(0x1ce)]=_0x13e190(0x1d1),_0x4c1f3c[_0x13e190(0x19f)]=_0x13e190(0x1e3),_0x4c1f3c[_0x13e190(0x1a8)]=function(_0x5ca9b1,_0x294952){return _0x5ca9b1===_0x294952;};const _0x3a5374=_0x4c1f3c,[_0x42538b,_0xb8f3c8,_0x337cb2]=_0x4d169f[_0x13e190(0x19c)]('$');if(_0x3a5374[_0x13e190(0x1b3)](_0x42538b,_0x3a5374[_0x13e190(0x1ce)])||!_0xb8f3c8||!_0x337cb2)return![];const _0x3e199a=_0x5cd512[_0x13e190(0x1ad)](_0x25fca3,_0xb8f3c8,0x40),_0x10cf5b=Buffer[_0x13e190(0x1a6)](_0x337cb2,_0x3a5374[_0x13e190(0x19f)]);return _0x3a5374[_0x13e190(0x1a8)](_0x10cf5b[_0x13e190(0x1b2)],_0x3e199a[_0x13e190(0x1b2)])&&_0x5cd512[_0x13e190(0x1db)](_0x10cf5b,_0x3e199a);}export default async function verifyPassword({login:_0x536d10,password:_0xd3354d,ip:_0x3ed1c4},{pg:_0x352924,logger:_0x3341cc}){const _0x28b1e6=_0x149f,_0x4cabde={'HpHgr':_0x28b1e6(0x1c9),'OCFvq':_0x28b1e6(0x1e3),'fmCcr':_0x28b1e6(0x19a),'mCpll':_0x28b1e6(0x198),'UceoL':function(_0x2790c9,_0x1286fa){return _0x2790c9===_0x1286fa;},'ORuPA':function(_0x133218,_0x424e77){return _0x133218===_0x424e77;},'RKDDN':function(_0x437b27,_0x59541f){return _0x437b27===_0x59541f;},'ZzAdi':_0x28b1e6(0x1c2),'qWflC':_0x28b1e6(0x1c0),'SjVmR':_0x28b1e6(0x1d7),'HuvYX':_0x28b1e6(0x1da),'eUXer':_0x28b1e6(0x1cb),'uGRNQ':function(_0x5bd985,_0x4729d1,_0x23a8ec){return _0x5bd985(_0x4729d1,_0x23a8ec);},'UjFcq':function(_0x3f75dd,_0xc46703){return _0x3f75dd===_0xc46703;},'GbckP':_0x28b1e6(0x1c4),'nFzYe':_0x28b1e6(0x1dc),'pdWya':function(_0x2b7bcf,_0x53b056){return _0x2b7bcf===_0x53b056;},'BCZQr':function(_0x1fd9e9,_0xd99388){return _0x1fd9e9===_0xd99388;},'NyWUM':function(_0x870df7,_0x37c5a9){return _0x870df7!==_0x37c5a9;},'ZOLPE':_0x28b1e6(0x1d6),'IqvPq':function(_0x5ddec6,_0x2116c9){return _0x5ddec6(_0x2116c9);},'Ovwhp':function(_0x21a607,_0x1fcb66){return _0x21a607+_0x1fcb66;}};if(!_0x352924)throw new Error(_0x4cabde[_0x28b1e6(0x1e4)]);if(!_0x536d10||_0x4cabde[_0x28b1e6(0x1b6)](_0x536d10,''))throw new BadRequestError(_0x4cabde[_0x28b1e6(0x1d8)]);if(!_0xd3354d||_0x4cabde[_0x28b1e6(0x1ae)](_0xd3354d,'')){if(_0x4cabde[_0x28b1e6(0x1bc)](_0x4cabde[_0x28b1e6(0x1cf)],_0x28b1e6(0x1d5))){const _0x4e418b=_0x2e6c4f[_0x28b1e6(0x1b7)](0x10)[_0x28b1e6(0x199)](_0x28b1e6(0x1e3)),_0x163f0d=_0x4302af[_0x28b1e6(0x1ad)](_0x3913d1,_0x4e418b,0x40)[_0x28b1e6(0x199)](_0x28b1e6(0x1e3));return _0x28b1e6(0x1c1)+_0x4e418b+'$'+_0x163f0d;}else throw new BadRequestError(_0x4cabde[_0x28b1e6(0x1b9)]);}const _0x2bb1b=_0x4cabde[_0x28b1e6(0x1ab)],_0x20a030=await _0x352924[_0x28b1e6(0x1d3)](_0x2bb1b,[_0x536d10])[_0x28b1e6(0x195)](_0x4918a1=>_0x4918a1[_0x28b1e6(0x1cd)]?.[0x0]);if(!_0x20a030){const _0x358bef=_0x4cabde[_0x28b1e6(0x1d4)],_0x894ccd={};_0x894ccd[_0x28b1e6(0x1d0)]=_0x4cabde[_0x28b1e6(0x19e)],_0x894ccd[_0x28b1e6(0x1c5)]=_0x358bef,_0x894ccd[_0x28b1e6(0x1c8)]=_0x536d10,_0x894ccd['ip']=_0x3ed1c4,_0x3341cc[_0x28b1e6(0x1b5)](_0x894ccd);throw new BadRequestError(_0x358bef);}if(!_0x20a030[_0x28b1e6(0x1b0)]){const _0x21444c=_0x4cabde[_0x28b1e6(0x1ac)](verifyPasswordWithoutSalt,_0xd3354d,_0x20a030[_0x28b1e6(0x1c7)]);if(!_0x21444c){if(_0x4cabde[_0x28b1e6(0x1a3)](_0x4cabde[_0x28b1e6(0x1d2)],_0x4cabde[_0x28b1e6(0x1d2)])){const _0x576b04=_0x4cabde[_0x28b1e6(0x1a2)],_0x64591b={};_0x64591b[_0x28b1e6(0x1d0)]=_0x4cabde[_0x28b1e6(0x19e)],_0x64591b[_0x28b1e6(0x1c5)]=_0x576b04,_0x64591b[_0x28b1e6(0x1c8)]=_0x536d10,_0x64591b['ip']=_0x3ed1c4,_0x3341cc[_0x28b1e6(0x1b5)](_0x64591b);throw new BadRequestError(_0x576b04);}else return _0x72e140[_0x28b1e6(0x1a9)](hYCOrw[_0x28b1e6(0x1dd)])[_0x28b1e6(0x1bf)](_0x1671de)[_0x28b1e6(0x1bd)](hYCOrw[_0x28b1e6(0x1c3)]);}const _0x5abe87={..._0x20a030};_0x5abe87[_0x28b1e6(0x1c7)]=undefined,_0x5abe87[_0x28b1e6(0x1b0)]=undefined;const _0x13d724={};return _0x13d724[_0x28b1e6(0x1b4)]=_0x5abe87,_0x13d724;}if(_0x4cabde[_0x28b1e6(0x1a0)](_0x20a030[_0x28b1e6(0x1a1)],!![])){const _0x21ea07=await _0x352924[_0x28b1e6(0x1d3)](_0x28b1e6(0x19d),[_0xd3354d,_0x20a030[_0x28b1e6(0x1b0)]])[_0x28b1e6(0x195)](_0x37cd7e=>_0x37cd7e[_0x28b1e6(0x1cd)]?.[0x0]?.[_0x28b1e6(0x1af)]);if(_0x4cabde[_0x28b1e6(0x1cc)](_0x20a030[_0x28b1e6(0x1c7)],_0x21ea07)){const _0x1c4a66={..._0x20a030};_0x1c4a66[_0x28b1e6(0x1c7)]=undefined,_0x1c4a66[_0x28b1e6(0x1b0)]=undefined;const _0x4f8699={};return _0x4f8699[_0x28b1e6(0x1b4)]=_0x1c4a66,_0x4f8699;}const _0x4abdf5=_0x28b1e6(0x1dc),_0xfe7139={};_0xfe7139[_0x28b1e6(0x1d0)]=_0x28b1e6(0x1cb),_0xfe7139[_0x28b1e6(0x1c5)]=_0x4abdf5,_0xfe7139[_0x28b1e6(0x1c8)]=_0x536d10,_0xfe7139['ip']=_0x3ed1c4,_0x3341cc[_0x28b1e6(0x1b5)](_0xfe7139);throw new BadRequestError(_0x4abdf5);}let _0x4cdef7='';for(let _0x993e6=0x0;_0x993e6<0xa;_0x993e6+=0x1){if(_0x4cabde[_0x28b1e6(0x1df)](_0x28b1e6(0x1a4),_0x4cabde[_0x28b1e6(0x1b8)]))_0x4cdef7=_0x4cabde[_0x28b1e6(0x1ba)](md5,_0x4cabde[_0x28b1e6(0x1be)](_0xd3354d,_0x4cdef7)+_0x20a030[_0x28b1e6(0x1b0)]);else throw new _0x2dc79a(_0x4cabde[_0x28b1e6(0x1d8)]);}_0x4cdef7=_0x4cabde[_0x28b1e6(0x1ac)](_0x14884c,_0x4cdef7,_0x20a030[_0x28b1e6(0x1b0)]);if(_0x4cabde[_0x28b1e6(0x1ae)](_0x20a030[_0x28b1e6(0x1c7)],_0x4cdef7)){const _0x349c21={..._0x20a030};_0x349c21[_0x28b1e6(0x1c7)]=undefined,_0x349c21[_0x28b1e6(0x1b0)]=undefined;const _0x3f7e18={};return _0x3f7e18[_0x28b1e6(0x1b4)]=_0x349c21,_0x3f7e18;}const _0x60406f=_0x28b1e6(0x1dc),_0x54c4d4={};_0x54c4d4[_0x28b1e6(0x1d0)]=_0x28b1e6(0x1cb),_0x54c4d4[_0x28b1e6(0x1c5)]=_0x60406f,_0x54c4d4[_0x28b1e6(0x1c8)]=_0x536d10,_0x54c4d4['ip']=_0x3ed1c4,_0x3341cc[_0x28b1e6(0x1b5)](_0x54c4d4);throw new BadRequestError(_0x60406f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xa5d6e9,_0x3168a9){var _0x30f73d=_0x4e74,_0x2d52b2=_0xa5d6e9();while(!![]){try{var _0x39c3ba=-parseInt(_0x30f73d(0x1b6))/0x1+-parseInt(_0x30f73d(0x1b3))/0x2+-parseInt(_0x30f73d(0x1b2))/0x3+-parseInt(_0x30f73d(0x1b8))/0x4+parseInt(_0x30f73d(0x1b5))/0x5*(-parseInt(_0x30f73d(0x1b9))/0x6)+-parseInt(_0x30f73d(0x1b1))/0x7*(parseInt(_0x30f73d(0x1b7))/0x8)+parseInt(_0x30f73d(0x1b4))/0x9;if(_0x39c3ba===_0x3168a9)break;else _0x2d52b2['push'](_0x2d52b2['shift']());}catch(_0x70e3d9){_0x2d52b2['push'](_0x2d52b2['shift']());}}}(_0x36a7,0x4bc00));function _0x4e74(_0x3fcf66,_0x1b0479){_0x3fcf66=_0x3fcf66-0x1b1;var _0x36a7bb=_0x36a7();var _0x4e7450=_0x36a7bb[_0x3fcf66];return _0x4e7450;}export*from'./route.js';export*from'./services/upload-file.js';export*from'./services/get-file.js';function _0x36a7(){var _0x58d8f4=['20135097lkpGpc','845rsusDw','564158IbJKma','487952cqKmxu','1451412WbcmGl','2598ClruVC','21YlBPGA','1253355hqUtsg','652012ctgCPm'];_0x36a7=function(){return _0x58d8f4;};return _0x36a7();}export*from'./services/resize-file.js';
|