@opengis/fcore 0.0.1-beta.2 → 0.0.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +1 -1
- package/dist/context.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/fastify.js +1 -1
- package/dist/fcore.js +1 -1
- package/dist/index.js +1 -1
- package/dist/migrations/cli.js +1 -1
- package/dist/migrations/runner.js +1 -1
- package/dist/modules/auth/index.js +1 -1
- package/dist/modules/auth/route.js +1 -1
- package/dist/modules/auth/schema.js +1 -1
- package/dist/modules/auth/services/get-current-user.js +1 -1
- package/dist/modules/auth/services/login.js +1 -1
- package/dist/modules/auth/services/logout.js +1 -1
- package/dist/modules/auth/services/verify-two-factor.js +1 -1
- package/dist/modules/auth/services/verifyPassword.js +1 -1
- package/dist/modules/file/index.js +1 -1
- package/dist/modules/file/route.js +1 -1
- package/dist/modules/file/schema.js +1 -1
- package/dist/modules/file/services/get-file.js +1 -1
- package/dist/modules/file/services/resize-file.js +1 -1
- package/dist/modules/file/services/upload-file.js +1 -1
- package/dist/modules/resource/index.js +1 -1
- package/dist/modules/resource/route.js +1 -1
- package/dist/modules/resource/schema.js +1 -1
- package/dist/modules/resource/services/add-note.js +1 -1
- package/dist/modules/resource/services/add-resource-file.js +1 -1
- package/dist/modules/resource/services/create-resource-relation.js +1 -1
- package/dist/modules/resource/services/create-resource.js +1 -1
- package/dist/modules/resource/services/delete-resource-relation.js +1 -1
- package/dist/modules/resource/services/delete-resource.js +1 -1
- package/dist/modules/resource/services/export-resource.js +1 -1
- package/dist/modules/resource/services/get-resource.js +1 -1
- package/dist/modules/resource/services/list-children.js +1 -1
- package/dist/modules/resource/services/list-resource-relation.js +1 -1
- package/dist/modules/resource/services/list-resources.js +1 -1
- package/dist/modules/resource/services/search-resource.js +1 -1
- package/dist/modules/resource/services/suggest-resource.js +1 -1
- package/dist/modules/resource/services/update-resource.js +1 -1
- package/dist/modules/resource/services/upload-resource-file.js +1 -1
- package/dist/modules/system/index.js +1 -1
- package/dist/modules/system/route.js +1 -1
- package/dist/modules/system/schema.js +1 -1
- package/dist/modules/system/services/check-system.js +1 -1
- package/dist/modules/system/services/get-api-list.js +1 -1
- package/dist/modules/system/services/get-audit-log.js +1 -1
- package/dist/modules/system/services/get-dictionary.js +1 -1
- package/dist/modules/system/services/get-system-log.js +1 -1
- package/dist/modules/system/services/get-system-settings.js +1 -1
- package/dist/modules/system/services/list-dictionaries.js +1 -1
- package/dist/modules/system/services/update-system-settings.js +1 -1
- package/dist/modules/utils/get-user-permissions.js +1 -1
- package/dist/modules/utils/require-admin.js +1 -1
- package/dist/modules/utils/safe-user.js +1 -1
- package/dist/modules/utils/unsupported.js +1 -1
- package/dist/plugins/audit/audit.js +1 -1
- package/dist/plugins/audit/index.js +1 -1
- package/dist/plugins/audit/services/write-audit.js +1 -1
- package/dist/plugins/auth/index.js +1 -1
- package/dist/plugins/dictionary.js +1 -1
- package/dist/plugins/file.js +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/logger/index.js +1 -1
- package/dist/plugins/logger/transport.js +1 -1
- package/dist/plugins/pg.js +1 -1
- package/dist/plugins/redis.js +1 -1
- package/dist/plugins/resource/index.js +1 -1
- package/dist/plugins/resource/resource.js +1 -1
- package/dist/plugins/resource/resource.registry.js +1 -1
- package/dist/plugins/resource/resource.types.d.ts +8 -0
- package/dist/plugins/resource/resource.types.d.ts.map +1 -1
- package/dist/plugins/resource/services/create.d.ts.map +1 -1
- package/dist/plugins/resource/services/create.js +1 -1
- package/dist/plugins/resource/services/delete.js +1 -1
- package/dist/plugins/resource/services/find-one.js +1 -1
- package/dist/plugins/resource/services/find.d.ts.map +1 -1
- package/dist/plugins/resource/services/find.js +1 -1
- package/dist/plugins/resource/services/update.d.ts.map +1 -1
- package/dist/plugins/resource/services/update.js +1 -1
- package/dist/plugins/resource/utils/fields.d.ts +8 -1
- package/dist/plugins/resource/utils/fields.d.ts.map +1 -1
- package/dist/plugins/resource/utils/fields.js +1 -1
- package/dist/plugins/resource/utils/filters.js +1 -1
- package/dist/plugins/resource/utils/permissions.d.ts.map +1 -1
- package/dist/plugins/resource/utils/permissions.js +1 -1
- package/dist/plugins/resource/utils/sort.js +1 -1
- package/dist/plugins/resource/utils/sql.js +1 -1
- package/dist/shared/getIP.js +1 -1
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b0884,_0x4f3c72){const _0x179f7f=_0x5922,_0x59518e=_0x3b0884();while(!![]){try{const _0x1e5bd8=-parseInt(_0x179f7f(0x131))/0x1*(parseInt(_0x179f7f(0x159))/0x2)+-parseInt(_0x179f7f(0x153))/0x3+-parseInt(_0x179f7f(0x12d))/0x4+-parseInt(_0x179f7f(0x127))/0x5*(parseInt(_0x179f7f(0x13e))/0x6)+-parseInt(_0x179f7f(0x138))/0x7+parseInt(_0x179f7f(0x145))/0x8*(-parseInt(_0x179f7f(0x12e))/0x9)+parseInt(_0x179f7f(0x143))/0xa*(parseInt(_0x179f7f(0x146))/0xb);if(_0x1e5bd8===_0x4f3c72)break;else _0x59518e['push'](_0x59518e['shift']());}catch(_0x588299){_0x59518e['push'](_0x59518e['shift']());}}}(_0xa330,0x642e1));import'dotenv/config';const DEFAULT_LOG_RESPONSE_STATUS_CODES=[0x193,0x199,0x19d,0x19f,0x1ad];function required(_0x491ede){const _0x1a0a7f=_0x5922,_0x1fd665=process.env[_0x491ede];if(!_0x1fd665)throw new Error(_0x1a0a7f(0x129)+_0x491ede);return _0x1fd665;}export function loadConfig(_0x35b582={}){const _0x406273=_0x5922,_0x1fc055={'rBpdk':function(_0x2d432b,_0x4c55dd){return _0x2d432b(_0x4c55dd);},'veEeV':function(_0x3bc070,_0x5c867c){return _0x3bc070===_0x5c867c;},'JSQBY':_0x406273(0x151),'DrfUq':_0x406273(0x157),'nalcE':function(_0xa22128,_0x3ba099){return _0xa22128===_0x3ba099;},'bMepW':_0x406273(0x144),'ImCOL':_0x406273(0x13d),'oQioT':function(_0x2d6904,_0x76adb4){return _0x2d6904(_0x76adb4);},'NsxRF':_0x406273(0x14c),'WkAqA':function(_0x269aef,_0x1103c3){return _0x269aef!==_0x1103c3;},'xXoUY':_0x406273(0x120),'VpYDH':_0x406273(0x14d),'twdan':_0x406273(0x121),'IiEVy':_0x406273(0x154),'QhqZY':_0x406273(0x158),'oeYPw':function(_0x3deb3c,_0x3a222d){return _0x3deb3c(_0x3a222d);},'frRUG':function(_0x3b87da,_0xa67fee){return _0x3b87da(_0xa67fee);},'DSqjz':_0x406273(0x11f),'VDnOc':_0x406273(0x155),'IcOzW':_0x406273(0x136),'ufVfJ':function(_0x547a41,_0x1d2cc5){return _0x547a41(_0x1d2cc5);}},_0x2c8fbd={};_0x2c8fbd[_0x406273(0x13f)]='/',_0x2c8fbd[_0x406273(0x124)]=!![],_0x2c8fbd[_0x406273(0x139)]=![],_0x2c8fbd[_0x406273(0x133)]=!![];const _0xa7dde1={'env':process.env.NODE_ENV??_0x406273(0x128),'debug':process.env.DEBUG===_0x406273(0x144),'port':_0x1fc055[_0x406273(0x149)](Number,process.env.PORT??0xbb8),'maxFileSize':+(process.env.MAX_FILE_SIZE||0x200),'rateLimit':{'disabled':_0x1fc055[_0x406273(0x11e)](process.env.RATE_LIMIT,_0x1fc055[_0x406273(0x147)]),'max':+(process.env.RATE_LIMIT_MAX||0x64),'timeWindow':+(process.env.RATE_LIMIT_TIME_WINDOW||0xea60)},'storagePath':process.env.STORAGE_PATH??_0x1fc055[_0x406273(0x148)],'redactionList':(process.env.REDACTION_LIST||_0x406273(0x126))[_0x406273(0x14b)](','),'logger':{'level':process.env.LOG_LEVEL??_0x406273(0x13b),'responses':_0x1fc055[_0x406273(0x15c)](process.env.LOG_RESPONSES,_0x1fc055[_0x406273(0x12f)])?!![]:![],'responseCodes':process.env.LOG_RESPONSE_STATUS_CODES?process.env.LOG_RESPONSE_STATUS_CODES[_0x406273(0x14b)](',')[_0x406273(0x156)](_0x454c30=>_0x454c30-0x0):DEFAULT_LOG_RESPONSE_STATUS_CODES,'directory':process.env.LOG_DIRECTORY||process[_0x406273(0x130)]()+_0x406273(0x137)},'pg':{'host':process.env.PG_HOST??_0x1fc055[_0x406273(0x150)],'port':_0x1fc055[_0x406273(0x132)](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':Number(process.env.REDIS_PORT??0x18eb),'password':process.env.REDIS_PASSWORD,'lazyConnect':!![],'db':process.env.REDIS_DB?_0x1fc055[_0x406273(0x132)](Number,process.env.REDIS_DB):undefined},'s3':{'endpoint':process.env.S3_ENDPOINT,'region':process.env.S3_REGION??_0x1fc055[_0x406273(0x12a)],'bucket':process.env.S3_BUCKET??'','accessKey':process.env.S3_ACCESS_KEY,'secretKey':process.env.S3_SECRET_KEY,'folder':process.env.S3_FOLDER,'forcePathStyle':_0x1fc055[_0x406273(0x15a)](process.env.S3_FORCE_PATH_STYLE,_0x1fc055[_0x406273(0x147)]),'tokenSecret':process.env.FILE_TOKEN_SECRET,'tokenTtl':Number(process.env.FILE_TOKEN_TTL??0xe10)},'auth':{'accessToken':process.env.AUTH_ACCESS_TOKEN||_0x1fc055[_0x406273(0x152)],'user':process.env.AUTH_USER?JSON[_0x406273(0x141)](process.env.AUTH_USER):undefined,'sessionTimeout':+(process.env.AUTH_SESSION_TIMEOUT||0x258),'secret':process.env.AUTH_SECRET??_0x1fc055[_0x406273(0x12b)],'cookieName':process.env.AUTH_COOKIE_NAME??_0x406273(0x135),'jwtSecret':process.env.AUTH_JWT_SECRET??_0x1fc055[_0x406273(0x15b)],'link':{'base':{'login':process.env.AUTH_BASE_LINK_LOGIN??_0x1fc055[_0x406273(0x14f)],'afterLogin':process.env.AUTH_BASE_LINK_LOGIN??'/'},'twoFactor':{'login':process.env.AUTH_TWOFACTOR_LINK_LOGIN??_0x1fc055[_0x406273(0x14a)],'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':_0x1fc055[_0x406273(0x122)](Boolean,process.env.AUTH_COOKIE_OPTIONS_HTTP_ONLY||_0x406273(0x144)),'secure':_0x1fc055[_0x406273(0x13c)](Boolean,process.env.AUTH_COOKIE_OPTIONS_SECURE||_0x1fc055[_0x406273(0x12f)]),'sameSite':process.env.AUTH_COOKIE_OPTIONS_SAME_SITE&&[_0x1fc055[_0x406273(0x125)],_0x1fc055[_0x406273(0x140)],_0x1fc055[_0x406273(0x123)]][_0x406273(0x134)](process.env.AUTH_COOKIE_OPTIONS_SAME_SITE)?process.env.AUTH_COOKIE_OPTIONS_SAME_SITE:_0x1fc055[_0x406273(0x14e)](Boolean,process.env.AUTH_COOKIE_OPTIONS_SAME_SITE||_0x406273(0x144))}:_0x2c8fbd}},_0x46b8cf={..._0xa7dde1,..._0x35b582};return _0x46b8cf[_0x406273(0x13a)]={..._0xa7dde1[_0x406273(0x13a)],..._0x35b582[_0x406273(0x13a)]},_0x46b8cf['pg']={..._0xa7dde1['pg'],..._0x35b582['pg']},_0x46b8cf[_0x406273(0x12c)]={..._0xa7dde1[_0x406273(0x12c)],..._0x35b582[_0x406273(0x12c)]},_0x46b8cf['s3']={..._0xa7dde1['s3'],..._0x35b582['s3']},_0x46b8cf[_0x406273(0x142)]={..._0xa7dde1[_0x406273(0x142)],..._0x35b582[_0x406273(0x142)]},_0x46b8cf;}function _0xa330(){const _0x62baef=['true','225632vnYHQk','11qkaWZp','JSQBY','DrfUq','rBpdk','QhqZY','split','us-east-1','x5y30KBsEKCENT04tu6549Vxx3No1ztJ2q2K8r79S59420RaZ5','ufVfJ','IiEVy','ImCOL','false','xXoUY','473106BPKOwE','/login','strict','map','./storage','/2factor','2CEMfYW','WkAqA','twdan','nalcE','veEeV','lax','Ch7QR4e73Jg0wx0xOjm','0ua4b1Tz21m47z13U3EO0uN9e0WE7hqRFbcZ72cbdWqZBzemf9cAU865xan1s81TdNpUKKfF','oeYPw','IcOzW','httpOnly','DSqjz','password','595GSYaAT','development','Missing\x20environment\x20variable:\x20','NsxRF','VpYDH','redis','2283796KREqDg','117aDDEpx','bMepW','cwd','478502scpgRp','oQioT','sameSite','includes','session_user_auth','none','/log','4429502kTstxP','secure','logger','info','frRUG','localhost','39234PXWLLx','path','VDnOc','parse','auth','33950690BYNIDT'];_0xa330=function(){return _0x62baef;};return _0xa330();}function _0x5922(_0x263643,_0x486efe){_0x263643=_0x263643-0x11e;const _0xa3300=_0xa330();let _0x59220b=_0xa3300[_0x263643];return _0x59220b;}export{required as requireEnv};
|
package/dist/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x57022b,_0x484827){const _0x590d34=_0x307c,_0x57029c=_0x57022b();while(!![]){try{const _0x587563=-parseInt(_0x590d34(0x12d))/0x1*(parseInt(_0x590d34(0x12e))/0x2)+-parseInt(_0x590d34(0x129))/0x3+parseInt(_0x590d34(0x12f))/0x4*(-parseInt(_0x590d34(0x132))/0x5)+parseInt(_0x590d34(0x130))/0x6+-parseInt(_0x590d34(0x133))/0x7*(parseInt(_0x590d34(0x134))/0x8)+-parseInt(_0x590d34(0x12b))/0x9+-parseInt(_0x590d34(0x12c))/0xa*(-parseInt(_0x590d34(0x131))/0xb);if(_0x587563===_0x484827)break;else _0x57029c['push'](_0x57029c['shift']());}catch(_0x2a6769){_0x57029c['push'](_0x57029c['shift']());}}}(_0xe505,0x1f81a));let defaultContext;export function setContext(_0x4e0e9b){defaultContext=_0x4e0e9b;}export function getContext(){const _0x99be16=_0x307c,_0x45f473={};_0x45f473[_0x99be16(0x12a)]=_0x99be16(0x135);const _0x12a797=_0x45f473;if(!defaultContext)throw new Error(_0x12a797[_0x99be16(0x12a)]);return defaultContext;}function _0x307c(_0x15b4b9,_0x20b9ec){_0x15b4b9=_0x15b4b9-0x129;const _0xe5051b=_0xe505();let _0x307c36=_0xe5051b[_0x15b4b9];return _0x307c36;}export function createContext(_0x493620){return{..._0x493620,async 'close'(){const _0x1b656e=_0x307c;await Promise[_0x1b656e(0x138)]([_0x493620[_0x1b656e(0x13a)]?.[_0x1b656e(0x136)](),_0x493620['pg']?.[_0x1b656e(0x139)]()]),await _0x493620[_0x1b656e(0x137)][_0x1b656e(0x136)]();}};}function _0xe505(){const _0x147a34=['allSettled','end','redis','383850UBJjpQ','fuJdJ','977202MEVWtO','7118040iGdBxv','2hQftaP','133186xZEHbF','7076fKsgOt','557334ckZdOf','11wWVcDa','675PWTwtQ','20426oVJQyM','184QGiVHJ','Application\x20context\x20is\x20not\x20initialized','close','logger'];_0xe505=function(){return _0x147a34;};return _0xe505();}
|
package/dist/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x1825e7=_0x4919;(function(_0x851e27,_0xdeeac7){var _0x1b1495=_0x4919,_0x501eb7=_0x851e27();while(!![]){try{var _0x1ce67d=parseInt(_0x1b1495(0xe7))/0x1*(-parseInt(_0x1b1495(0xee))/0x2)+parseInt(_0x1b1495(0xfc))/0x3*(parseInt(_0x1b1495(0xf0))/0x4)+-parseInt(_0x1b1495(0xf2))/0x5+parseInt(_0x1b1495(0xf7))/0x6+-parseInt(_0x1b1495(0xef))/0x7+parseInt(_0x1b1495(0xe1))/0x8*(parseInt(_0x1b1495(0xea))/0x9)+-parseInt(_0x1b1495(0xe0))/0xa*(-parseInt(_0x1b1495(0xf3))/0xb);if(_0x1ce67d===_0xdeeac7)break;else _0x501eb7['push'](_0x501eb7['shift']());}catch(_0x4c7af0){_0x501eb7['push'](_0x501eb7['shift']());}}}(_0x40aa,0xa8c4d));function _0x40aa(){var _0x2b07ea=['split','Not\x20found','UNAUTHORIZED','106ZzRpFw','3762213oXTare','4HngNjU','NOT_FOUND','4454190UhtUpu','474936TjgDmB','UNSUPPORTED','BAD_REQUEST_ERROR','Access\x20denied','3514770LFsPCV','Conflict','FYErn','bwgId','NMwZX','848724VXSWft','VALIDATION_ERROR','FORBIDDEN','name','code','160ZCrOUe','128OwNfbC','0|3|2|4|1','details','statusCode','QseUi','CONFLICT','10453USNgdg','Authentication\x20required','Operation\x20is\x20not\x20configured','626661JLUzMu'];_0x40aa=function(){return _0x2b07ea;};return _0x40aa();}export class FCoreError extends Error{[_0x1825e7(0xdf)];[_0x1825e7(0xe4)];[_0x1825e7(0xe3)];constructor(_0x2899b0,_0x29545d,_0x35a419=0x1f4,_0x25c6a9){var _0x32ad56=_0x1825e7,_0x193aec={};_0x193aec[_0x32ad56(0xfb)]=_0x32ad56(0xe2);var _0x494172=_0x193aec,_0xbb521b=_0x494172[_0x32ad56(0xfb)][_0x32ad56(0xeb)]('|'),_0x2821c6=0x0;while(!![]){switch(_0xbb521b[_0x2821c6++]){case'0':super(_0x29545d);continue;case'1':this[_0x32ad56(0xde)]=new.target.name;continue;case'2':this[_0x32ad56(0xe4)]=_0x35a419;continue;case'3':this[_0x32ad56(0xdf)]=_0x2899b0;continue;case'4':this[_0x32ad56(0xe3)]=_0x25c6a9;continue;}break;}}}export class BadRequestError extends FCoreError{constructor(_0x1119e5,_0x4da689){var _0x7d7c32=_0x1825e7;super(_0x7d7c32(0xf5),_0x1119e5,0x190,_0x4da689);}}export class UnauthorizedError extends FCoreError{constructor(_0x313dcd=_0x1825e7(0xe8)){var _0x3a4f24=_0x1825e7,_0x574c9f={};_0x574c9f[_0x3a4f24(0xf9)]=_0x3a4f24(0xed);var _0x733f96=_0x574c9f;super(_0x733f96[_0x3a4f24(0xf9)],_0x313dcd,0x191);}}export class ForbiddenError extends FCoreError{constructor(_0x4d4817=_0x1825e7(0xf6)){var _0x1b16aa=_0x1825e7;super(_0x1b16aa(0xdd),_0x4d4817,0x193);}}function _0x4919(_0x2b27db,_0xb53795){_0x2b27db=_0x2b27db-0xdc;var _0x40aaf1=_0x40aa();var _0x491911=_0x40aaf1[_0x2b27db];return _0x491911;}export class NotFoundError extends FCoreError{constructor(_0x267c12=_0x1825e7(0xec)){var _0x5be372=_0x1825e7,_0x502b28={};_0x502b28[_0x5be372(0xfa)]=_0x5be372(0xf1);var _0x2de510=_0x502b28;super(_0x2de510[_0x5be372(0xfa)],_0x267c12,0x194);}}export class ConflictError extends FCoreError{constructor(_0x15aef4=_0x1825e7(0xf8)){var _0x41a292=_0x1825e7,_0x14a01a={};_0x14a01a[_0x41a292(0xe5)]=_0x41a292(0xe6);var _0x421a62=_0x14a01a;super(_0x421a62[_0x41a292(0xe5)],_0x15aef4,0x199);}}export class ValidationError extends FCoreError{constructor(_0x4b6b47,_0x52e675){var _0x8d189=_0x1825e7;super(_0x8d189(0xdc),_0x4b6b47,0x1a6,_0x52e675);}}export class UnsupportedError extends FCoreError{constructor(_0x9813fd=_0x1825e7(0xe9)){var _0x1ddd26=_0x1825e7;super(_0x1ddd26(0xf4),_0x9813fd,0x1f5);}}
|
package/dist/fastify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1b9efe=_0x17e4;(function(_0xbcbee6,_0x42e5de){const _0x5acfce=_0x17e4,_0x42671e=_0xbcbee6();while(!![]){try{const _0x1872c1=parseInt(_0x5acfce(0xad))/0x1+-parseInt(_0x5acfce(0xd5))/0x2*(-parseInt(_0x5acfce(0xdb))/0x3)+-parseInt(_0x5acfce(0xd3))/0x4+-parseInt(_0x5acfce(0xe2))/0x5*(parseInt(_0x5acfce(0xb9))/0x6)+parseInt(_0x5acfce(0xe5))/0x7*(-parseInt(_0x5acfce(0xb0))/0x8)+-parseInt(_0x5acfce(0xbe))/0x9+parseInt(_0x5acfce(0xe1))/0xa;if(_0x1872c1===_0x42e5de)break;else _0x42671e['push'](_0x42671e['shift']());}catch(_0x4db18f){_0x42671e['push'](_0x42671e['shift']());}}}(_0x1d80,0x8097a));import _0x5195d8 from'fastify-plugin';import{FCoreError}from'./errors.js';import{authRoutes}from'./modules/auth/index.js';import{fileRoutes}from'./modules/file/index.js';function _0x17e4(_0x385e06,_0x31dd53){_0x385e06=_0x385e06-0x9f;const _0x1d809d=_0x1d80();let _0x17e4d9=_0x1d809d[_0x385e06];return _0x17e4d9;}import{resourceRoutes}from'./modules/resource/index.js';import{systemRoutes}from'./modules/system/index.js';import{createSessionStore}from'./plugins/auth/index.js';function urlencodedContentParser(_0x41edbf,_0x275eb7,_0x463e8e){const _0x4dfa0e=_0x17e4,_0x12d924={'FDiVL':function(_0x5c2eab,_0x5bf139){return _0x5c2eab(_0x5bf139);},'nJCZf':function(_0x464347,_0x433279,_0x4a21a4){return _0x464347(_0x433279,_0x4a21a4);}},_0x450ce3=_0x12d924[_0x4dfa0e(0xc6)](decodeURIComponent,_0x275eb7[_0x4dfa0e(0xe0)]())[_0x4dfa0e(0xbc)]('&')[_0x4dfa0e(0xd9)]((_0xec0312,_0x2b6bfd)=>{const _0x4b0aa0=_0x4dfa0e,[_0x5f0493,_0x5660f4]=_0x2b6bfd[_0x4b0aa0(0xbc)]('='),_0x1dcfcc={..._0xec0312};return _0x1dcfcc[_0x5f0493]=_0x5660f4,_0x1dcfcc;},{});_0x12d924[_0x4dfa0e(0xbd)](_0x463e8e,null,_0x450ce3);}const plugin=async(_0x30351f,{ctx:_0x14caf5})=>{const _0x468822=_0x17e4,_0x4ac84b={'aAWop':_0x468822(0xc3),'FvcZf':function(_0x52cc13,_0x132290){return _0x52cc13 instanceof _0x132290;},'wPBjf':function(_0x3bd5e0,_0x153785){return _0x3bd5e0===_0x153785;},'Rissq':_0x468822(0xce),'hxjVI':function(_0x802e92,_0x24adb1){return _0x802e92===_0x24adb1;},'aeCrR':_0x468822(0xba),'lwpeJ':function(_0x340656,_0x34e406){return _0x340656===_0x34e406;},'DZCCN':_0x468822(0xa2),'zEyed':function(_0x26cbaa,_0x24f7ad){return _0x26cbaa!==_0x24f7ad;},'iaSCm':_0x468822(0xde),'tKqan':_0x468822(0xc9),'Zpona':_0x468822(0xab),'TDkuL':_0x468822(0xc8),'RUlKh':_0x468822(0xaa),'vVPsX':_0x468822(0xe6),'gEcEA':function(_0x5ac33c,_0x191849,_0x1fd70d){return _0x5ac33c(_0x191849,_0x1fd70d);},'oLCeZ':function(_0x1b0a2c,_0x31b347){return _0x1b0a2c(_0x31b347);},'juUfz':function(_0x1d7e7d,_0x437417){return _0x1d7e7d(_0x437417);},'Gwpzp':_0x468822(0xd7),'XQIjg':_0x468822(0xc7),'eEtMF':_0x468822(0xb8),'ETlnp':_0x468822(0xdd),'fKsfc':function(_0x4a74d7,_0x438ae1){return _0x4a74d7*_0x438ae1;}};_0x30351f[_0x468822(0xb4)](_0x4ac84b[_0x468822(0xda)],_0x14caf5);const {config:_0x1bd668}=_0x14caf5;await _0x4ac84b[_0x468822(0xd2)](createSessionStore,_0x30351f,_0x14caf5),_0x30351f[_0x468822(0xa3)]((_0x204c81,_0x230037,_0x56f4ca)=>{const _0x205c56=_0x468822,_0x4e38d7={};_0x4e38d7[_0x205c56(0xca)]=_0x4ac84b[_0x205c56(0xec)];const _0x2fb7e4=_0x4e38d7;if(_0x4ac84b[_0x205c56(0xe8)](_0x204c81,FCoreError)||_0x4ac84b[_0x205c56(0xc4)](_0x204c81[_0x205c56(0xb5)],_0x4ac84b[_0x205c56(0xe9)])){if(_0x4ac84b[_0x205c56(0xcb)](_0x205c56(0xa8),_0x4ac84b[_0x205c56(0xbb)]))_0xf9f1c4[_0x205c56(0xa5)](_0x2d916d);else return _0x56f4ca[_0x205c56(0xb5)](_0x204c81[_0x205c56(0xa6)])[_0x205c56(0xdc)]({'error':_0x204c81[_0x205c56(0xb5)],'message':_0x204c81[_0x205c56(0xa7)],'details':_0x204c81[_0x205c56(0xb6)]});}_0x14caf5[_0x205c56(0xcf)][_0x205c56(0xa5)](_0x204c81);(_0x4ac84b[_0x205c56(0xe7)](process.env.trace,_0x205c56(0xd6))||process.env.NODE_ENV===_0x4ac84b[_0x205c56(0xc0)]||process.env.VITEST)&&(_0x4ac84b[_0x205c56(0xd1)](_0x4ac84b[_0x205c56(0xe4)],_0x4ac84b[_0x205c56(0xe3)])?console[_0x205c56(0xa5)](_0x204c81):_0xc99b9d[_0x205c56(0xac)](import(_0x205c56(0xdd)),{'max':_0x2b895a[_0x205c56(0xb2)]?.[_0x205c56(0xc1)]||0x64,'timeWindow':_0x491165[_0x205c56(0xb2)]?.[_0x205c56(0xd4)]||0xea60,'hook':_0x2fb7e4[_0x205c56(0xca)],'global':!![],'keyGenerator':_0x2eb9c1=>(_0x2eb9c1[_0x205c56(0xbf)]?.['id']||_0x2eb9c1['ip'])+'-'+_0x2eb9c1[_0x205c56(0xc2)][_0x205c56(0xc5)][_0x205c56(0xbc)]('?')[0x0]}));const _0x1584e4={};return _0x1584e4[_0x205c56(0xa5)]=_0x4ac84b[_0x205c56(0xcc)],_0x1584e4[_0x205c56(0xa7)]=_0x4ac84b[_0x205c56(0xb1)],_0x56f4ca[_0x205c56(0xb5)](0x1f4)[_0x205c56(0xdc)](_0x1584e4);}),await _0x30351f[_0x468822(0xac)](authRoutes(_0x14caf5)),await _0x30351f[_0x468822(0xac)](_0x4ac84b[_0x468822(0xb3)](resourceRoutes,_0x14caf5)),await _0x30351f[_0x468822(0xac)](_0x4ac84b[_0x468822(0xae)](fileRoutes,_0x14caf5)),await _0x30351f[_0x468822(0xac)](_0x4ac84b[_0x468822(0xb3)](systemRoutes,_0x14caf5)),_0x30351f[_0x468822(0xcd)](_0x4ac84b[_0x468822(0xa4)],{'parseAs':_0x4ac84b[_0x468822(0xa1)]},urlencodedContentParser),!_0x1bd668[_0x468822(0xb2)]?.[_0x468822(0xd8)]?_0x468822(0xb8)===_0x4ac84b[_0x468822(0xd0)]?_0x30351f[_0x468822(0xac)](import(_0x4ac84b[_0x468822(0xa0)]),{'max':_0x1bd668[_0x468822(0xb2)]?.[_0x468822(0xc1)]||0x64,'timeWindow':_0x1bd668[_0x468822(0xb2)]?.[_0x468822(0xd4)]||0xea60,'hook':_0x468822(0xc3),'global':!![],'keyGenerator':_0x488279=>(_0x488279[_0x468822(0xbf)]?.['id']||_0x488279['ip'])+'-'+_0x488279[_0x468822(0xc2)][_0x468822(0xc5)][_0x468822(0xbc)]('?')[0x0]}):_0x219681[_0x468822(0xb7)](_0x4ac84b[_0x468822(0xaf)]):console[_0x468822(0xb7)](_0x4ac84b[_0x468822(0xaf)]),_0x30351f[_0x468822(0xac)](import(_0x468822(0x9f)),{'limits':{'fileSize':_0x4ac84b[_0x468822(0xa9)](_0x1bd668[_0x468822(0xeb)]*0x400,0x400)}});},_0x285b01={};function _0x1d80(){const _0xc350e9=['maxFileSize','aAWop','@fastify/multipart','ETlnp','XQIjg','test','setErrorHandler','Gwpzp','error','statusCode','message','heZqT','fKsfc','⚠️\x20rate\x20limit\x20is\x20disabled','INTERNAL_ERROR','register','617211eiucuO','juUfz','RUlKh','64TCwUwI','TDkuL','rateLimit','oLCeZ','decorate','code','details','log','ERhwz','402036vRcmbF','cHSIw','aeCrR','split','nJCZf','8923104aSplJa','user','DZCCN','max','raw','preHandler','wPBjf','url','FDiVL','buffer','Internal\x20server\x20error','NyabE','NAjdq','hxjVI','Zpona','addContentTypeParser','FST_ERR_VALIDATION','logger','eEtMF','zEyed','gEcEA','4042620OTcSdK','timeWindow','450292vFOuXX','true','application/x-www-form-urlencoded','disabled','reduce','vVPsX','12tYKGIA','send','@fastify/rate-limit','BwArY','name','toString','12383780NwszPY','10qVMyVi','tKqan','iaSCm','81669tySQjA','ctx','lwpeJ','FvcZf','Rissq','@opengis/fcore'];_0x1d80=function(){return _0xc350e9;};return _0x1d80();}_0x285b01[_0x1b9efe(0xdf)]=_0x1b9efe(0xea);export default _0x5195d8(plugin,_0x285b01);
|
package/dist/fcore.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23b353,_0x5e9b0d){const _0x497b3a=_0xcf5c,_0x1e87ed=_0x23b353();while(!![]){try{const _0x11aa3f=parseInt(_0x497b3a(0x13f))/0x1*(-parseInt(_0x497b3a(0x143))/0x2)+parseInt(_0x497b3a(0x135))/0x3+-parseInt(_0x497b3a(0x141))/0x4+-parseInt(_0x497b3a(0x140))/0x5+-parseInt(_0x497b3a(0x13e))/0x6*(parseInt(_0x497b3a(0x137))/0x7)+-parseInt(_0x497b3a(0x149))/0x8*(parseInt(_0x497b3a(0x148))/0x9)+parseInt(_0x497b3a(0x133))/0xa;if(_0x11aa3f===_0x5e9b0d)break;else _0x1e87ed['push'](_0x1e87ed['shift']());}catch(_0x56f76a){_0x1e87ed['push'](_0x1e87ed['shift']());}}}(_0x3b1e,0xa9c74));function _0x3b1e(){const _0x4d9101=['length','redis','tokenTtl','file','accessKey','resource','region','dictionary','28597140kvgNow','bucket','4048881GOqLPb','config','70MpAkBz','secretKey','audit','RbsCl','folder','NSxKq','RULpT','548838tJUfPE','46dvJRow','2036640fJIcjY','2120552oeancI','resources','29404wtZIAZ','forcePathStyle','endpoint','register','dictionaries','9NHpwTC','7883528IcjEOS','ZPfVq','logger','tokenSecret'];_0x3b1e=function(){return _0x4d9101;};return _0x3b1e();}import{loadConfig}from'./config.js';import{createContext,setContext}from'./context.js';function _0xcf5c(_0x3a4ad5,_0x2c5d8e){_0x3a4ad5=_0x3a4ad5-0x129;const _0x3b1e0e=_0x3b1e();let _0xcf5c43=_0x3b1e0e[_0x3a4ad5];return _0xcf5c43;}import{createAudit,createDatabase,createDictionary,createFileS3,createLogger,createRedis,createResource}from'./plugins/index.js';export async function createFCore(_0x534044={}){const _0x550a63=_0xcf5c,_0x4dfa51={'ZPfVq':function(_0x286115,_0x5eb4cf){return _0x286115(_0x5eb4cf);},'NSxKq':function(_0x30a929){return _0x30a929();},'RbsCl':function(_0x1bdf60,_0xb0076c){return _0x1bdf60(_0xb0076c);},'RULpT':function(_0x53cee2,_0x15569d){return _0x53cee2(_0x15569d);}},_0x589b5b=loadConfig(_0x534044[_0x550a63(0x136)]),_0x510e3e=_0x4dfa51[_0x550a63(0x14a)](createRedis,_0x589b5b[_0x550a63(0x12c)]),_0x56b489=_0x4dfa51[_0x550a63(0x13c)](createLogger),_0x15ea06=_0x4dfa51[_0x550a63(0x13a)](createDatabase,_0x589b5b['pg']),_0x202cf5={};_0x202cf5[_0x550a63(0x145)]=_0x589b5b['s3'][_0x550a63(0x145)],_0x202cf5[_0x550a63(0x131)]=_0x589b5b['s3'][_0x550a63(0x131)],_0x202cf5[_0x550a63(0x134)]=_0x589b5b['s3'][_0x550a63(0x134)],_0x202cf5[_0x550a63(0x12f)]=_0x589b5b['s3'][_0x550a63(0x12f)],_0x202cf5[_0x550a63(0x138)]=_0x589b5b['s3'][_0x550a63(0x138)],_0x202cf5[_0x550a63(0x13b)]=_0x589b5b['s3'][_0x550a63(0x13b)],_0x202cf5[_0x550a63(0x144)]=_0x589b5b['s3'][_0x550a63(0x144)],_0x202cf5[_0x550a63(0x12a)]=_0x589b5b['s3'][_0x550a63(0x12a)],_0x202cf5[_0x550a63(0x12d)]=_0x589b5b['s3'][_0x550a63(0x12d)];const _0x1715ed=_0x4dfa51[_0x550a63(0x13d)](createFileS3,_0x202cf5),_0x196d79={};_0x196d79['pg']=_0x15ea06,_0x196d79[_0x550a63(0x129)]=_0x56b489;const _0x23a372=_0x4dfa51[_0x550a63(0x13d)](createAudit,_0x196d79),_0x2fe010={};_0x2fe010['pg']=_0x15ea06,_0x2fe010[_0x550a63(0x147)]=_0x534044[_0x550a63(0x147)];const _0x64bf69=createDictionary(_0x2fe010),_0x86d8c={};_0x86d8c['pg']=_0x15ea06,_0x86d8c[_0x550a63(0x129)]=_0x56b489,_0x86d8c[_0x550a63(0x139)]=_0x23a372;const _0x1cd9d8=createResource(_0x86d8c);_0x534044[_0x550a63(0x142)]?.[_0x550a63(0x12b)]&&_0x1cd9d8[_0x550a63(0x146)](_0x534044[_0x550a63(0x142)]);const _0x57c997={};_0x57c997[_0x550a63(0x136)]=_0x589b5b,_0x57c997[_0x550a63(0x129)]=_0x56b489,_0x57c997[_0x550a63(0x12c)]=_0x510e3e,_0x57c997['pg']=_0x15ea06,_0x57c997[_0x550a63(0x12e)]=_0x1715ed,_0x57c997[_0x550a63(0x130)]=_0x1cd9d8,_0x57c997[_0x550a63(0x139)]=_0x23a372,_0x57c997[_0x550a63(0x132)]=_0x64bf69;const _0x4e38fe=createContext(_0x57c997);return _0x4dfa51[_0x550a63(0x13d)](setContext,_0x4e38fe),_0x4e38fe;}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x200bbb,_0x4c0261){var _0x297c8a=_0x5b2e,_0x45314a=_0x200bbb();while(!![]){try{var _0x7caf49=-parseInt(_0x297c8a(0x17d))/0x1+-parseInt(_0x297c8a(0x17a))/0x2+-parseInt(_0x297c8a(0x180))/0x3+parseInt(_0x297c8a(0x17f))/0x4+parseInt(_0x297c8a(0x181))/0x5*(parseInt(_0x297c8a(0x17e))/0x6)+-parseInt(_0x297c8a(0x17b))/0x7+parseInt(_0x297c8a(0x17c))/0x8;if(_0x7caf49===_0x4c0261)break;else _0x45314a['push'](_0x45314a['shift']());}catch(_0x9be7cc){_0x45314a['push'](_0x45314a['shift']());}}}(_0x37f7,0xe2ae7));export*from'./errors.js';export*from'./config.js';export*from'./context.js';export*from'./plugins/index.js';export*from'./fcore.js';export*from'./migrations/runner.js';function _0x5b2e(_0x2a3306,_0x139d5a){_0x2a3306=_0x2a3306-0x17a;var _0x37f792=_0x37f7();var _0x5b2e5d=_0x37f792[_0x2a3306];return _0x5b2e5d;}function _0x37f7(){var _0x39ad90=['2891958LyxyhU','5ELFEIP','2291118LjLuEw','6024697uAoblz','21707528mnCPiM','741921xpSHlE','870078npPQrs','7128680lnixWK'];_0x37f7=function(){return _0x39ad90;};return _0x37f7();}export*from'./type.js';
|
package/dist/migrations/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
function _0x576d(_0x456828,_0xe7ad8){_0x456828=_0x456828-0x1ec;const _0x2bab15=_0x2bab();let _0x576d7b=_0x2bab15[_0x456828];return _0x576d7b;}function _0x2bab(){const _0x363ffe=['OK\x20\x20','9ipvCuR','file','status','158pNhVZa','104440RrzXiz','exitCode','log','4040388dhWDYP','14vVuZZj','error','4154410pJfnbi','SKIP','325671NtaLqd','98oKHUct','186RPSzjh','35855jQDXtW','run','3082310ctKdoI','database','8styPaw','Loaded\x20configuration:'];_0x2bab=function(){return _0x363ffe;};return _0x2bab();}const _0x293a8e=_0x576d;(function(_0x496bc5,_0x195947){const _0x160df3=_0x576d,_0x4834a7=_0x496bc5();while(!![]){try{const _0xafe025=parseInt(_0x160df3(0x1ef))/0x1*(-parseInt(_0x160df3(0x1fb))/0x2)+-parseInt(_0x160df3(0x1ee))/0x3*(-parseInt(_0x160df3(0x1f5))/0x4)+-parseInt(_0x160df3(0x1f1))/0x5*(parseInt(_0x160df3(0x1f0))/0x6)+parseInt(_0x160df3(0x200))/0x7*(parseInt(_0x160df3(0x1fc))/0x8)+parseInt(_0x160df3(0x1f8))/0x9*(-parseInt(_0x160df3(0x1ec))/0xa)+parseInt(_0x160df3(0x1f3))/0xb+parseInt(_0x160df3(0x1ff))/0xc;if(_0xafe025===_0x195947)break;else _0x4834a7['push'](_0x4834a7['shift']());}catch(_0x49aa4c){_0x4834a7['push'](_0x4834a7['shift']());}}}(_0x2bab,0x34679));import{runMigrations}from'./runner.js';import{loadConfig}from'../config.js';try{const config=loadConfig();console[_0x293a8e(0x1fe)](_0x293a8e(0x1f6),config['pg']);const _0x7b4f81={};_0x7b4f81[_0x293a8e(0x1f4)]=config['pg'];for(const r of await runMigrations(_0x7b4f81))console[_0x293a8e(0x1fe)]((r[_0x293a8e(0x1fa)]===_0x293a8e(0x1f2)?_0x293a8e(0x1f7):_0x293a8e(0x1ed))+'\x20'+r[_0x293a8e(0x1f9)]);}catch(_0x1d7f6c){console[_0x293a8e(0x201)](_0x1d7f6c),process[_0x293a8e(0x1fd)]=0x1;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ecb43,_0x2ab1df){const _0x239608=_0x49f3,_0x553836=_0x4ecb43();while(!![]){try{const _0x31f9f=parseInt(_0x239608(0x166))/0x1+-parseInt(_0x239608(0x152))/0x2+parseInt(_0x239608(0x196))/0x3*(-parseInt(_0x239608(0x17c))/0x4)+-parseInt(_0x239608(0x17e))/0x5+-parseInt(_0x239608(0x15c))/0x6+parseInt(_0x239608(0x155))/0x7*(parseInt(_0x239608(0x164))/0x8)+-parseInt(_0x239608(0x18e))/0x9*(-parseInt(_0x239608(0x189))/0xa);if(_0x31f9f===_0x2ab1df)break;else _0x553836['push'](_0x553836['shift']());}catch(_0x2a55a0){_0x553836['push'](_0x553836['shift']());}}}(_0x11a3,0xa4fa8));import _0x567f03 from'node:fs/promises';import _0x2d4770 from'node:path';import{createDatabase}from'../plugins/pg.js';function _0x49f3(_0x20bdd4,_0x231640){_0x20bdd4=_0x20bdd4-0x150;const _0x11a353=_0x11a3();let _0x49f3b5=_0x11a353[_0x20bdd4];return _0x49f3b5;}export async function runMigrations(_0x4b6d26={}){const _0x118bf0=_0x49f3,_0x2d9b17={'sDTYn':function(_0x567d6e,_0x573893){return _0x567d6e(_0x573893);},'SIZgo':_0x118bf0(0x18c),'YFcmf':function(_0x525cb8,_0xb067ce){return _0x525cb8!==_0xb067ce;},'ewAQi':_0x118bf0(0x195),'dZNiJ':_0x118bf0(0x193),'cnymr':_0x118bf0(0x16b),'UQDjr':_0x118bf0(0x154),'jeAKe':function(_0x6b368c,_0x5b19d5){return _0x6b368c!==_0x5b19d5;},'yqpnq':_0x118bf0(0x173),'MNetu':_0x118bf0(0x15e),'XCUJf':_0x118bf0(0x151),'MjRSu':_0x118bf0(0x191),'qaMfp':_0x118bf0(0x179),'SPoGy':_0x118bf0(0x16d),'iiQUA':function(_0x4321b8,_0x2e08d7){return _0x4321b8===_0x2e08d7;},'iuPeF':_0x118bf0(0x197),'cMPap':_0x118bf0(0x194)},_0x2bee8d=_0x2d4770[_0x118bf0(0x183)](_0x4b6d26[_0x118bf0(0x178)]??_0x118bf0(0x162)),_0x426e4f=_0x4b6d26[_0x118bf0(0x15d)]??_0x2d9b17[_0x118bf0(0x15a)](databaseFromUrl,_0x4b6d26[_0x118bf0(0x184)]??process.env.DATABASE_URL);if(!_0x426e4f)throw new Error(_0x118bf0(0x18c));const _0x163e03=_0x2d9b17[_0x118bf0(0x15a)](createDatabase,_0x426e4f);if(!_0x163e03){if(_0x2d9b17[_0x118bf0(0x161)](_0x2d9b17[_0x118bf0(0x180)],_0x2d9b17[_0x118bf0(0x174)]))throw new Error(_0x2d9b17[_0x118bf0(0x177)]);else{if(!_0xe01609)return _0x1db565;const _0x2ec87a=new _0x1d44c4(_0x3f8723);return{'host':_0x2ec87a[_0x118bf0(0x160)],'port':_0x2d9b17[_0x118bf0(0x15a)](_0x239e07,_0x2ec87a[_0x118bf0(0x192)]||0x1538),'database':_0x2ec87a[_0x118bf0(0x17a)][_0x118bf0(0x159)](0x1),'user':_0x15013a(_0x2ec87a[_0x118bf0(0x169)]),'password':_0x2d9b17[_0x118bf0(0x15a)](_0x2cc69b,_0x2ec87a[_0x118bf0(0x18d)])};}}const _0x167176=[];try{await _0x163e03[_0x118bf0(0x17d)](_0x118bf0(0x187));const _0x4bbf79=await _0x163e03[_0x118bf0(0x17d)](_0x2d9b17[_0x118bf0(0x153)]),_0x3e2fd4=new Set(_0x4bbf79[_0x118bf0(0x17b)][_0x118bf0(0x18f)](_0x32d3c2=>_0x32d3c2[_0x118bf0(0x16a)])),_0xb6cb0e=(await _0x567f03[_0x118bf0(0x175)](_0x2bee8d))[_0x118bf0(0x186)](_0x4840ed=>_0x4840ed[_0x118bf0(0x158)](_0x118bf0(0x176)))[_0x118bf0(0x190)]();for(const _0x3e5ee6 of _0xb6cb0e){if(_0x2d9b17[_0x118bf0(0x15b)](_0x2d9b17[_0x118bf0(0x168)],_0x2d9b17[_0x118bf0(0x168)]))_0x3a7dc1[_0x118bf0(0x170)]();else{if(_0x3e2fd4[_0x118bf0(0x16c)](_0x3e5ee6)){const _0x1c12eb={};_0x1c12eb[_0x118bf0(0x16e)]=_0x3e5ee6,_0x1c12eb[_0x118bf0(0x167)]=_0x2d9b17[_0x118bf0(0x17f)],_0x167176[_0x118bf0(0x150)](_0x1c12eb);continue;}const _0x1aa35a=await _0x567f03[_0x118bf0(0x185)](_0x2d4770[_0x118bf0(0x18a)](_0x2bee8d,_0x3e5ee6),_0x2d9b17[_0x118bf0(0x156)]),_0x293be9=await _0x163e03[_0x118bf0(0x172)]();try{await _0x293be9[_0x118bf0(0x17d)](_0x2d9b17[_0x118bf0(0x163)]),await _0x293be9[_0x118bf0(0x17d)](_0x1aa35a),await _0x293be9[_0x118bf0(0x17d)](_0x118bf0(0x157),[_0x3e5ee6]),await _0x293be9[_0x118bf0(0x17d)](_0x2d9b17[_0x118bf0(0x165)]);}catch(_0x48a767){await _0x293be9[_0x118bf0(0x17d)](_0x2d9b17[_0x118bf0(0x181)]);throw _0x48a767;}finally{if(_0x2d9b17[_0x118bf0(0x171)](_0x118bf0(0x197),_0x2d9b17[_0x118bf0(0x188)]))_0x293be9[_0x118bf0(0x170)]();else throw new _0x524b58(_0x2d9b17[_0x118bf0(0x15f)]);}const _0xeb9746={};_0xeb9746[_0x118bf0(0x16e)]=_0x3e5ee6,_0xeb9746[_0x118bf0(0x167)]=_0x2d9b17[_0x118bf0(0x182)],_0x167176[_0x118bf0(0x150)](_0xeb9746);}}return _0x167176;}finally{await _0x163e03[_0x118bf0(0x16f)]();}}function _0x11a3(){const _0x5d8c66=['BEGIN','port','bQsQI','run','foZuW','3ECQJQC','DnFNk','ssvvl','push','utf8','2249978scKJiQ','UQDjr','SELECT\x20version\x20FROM\x20schema_migrations','28laMQZw','XCUJf','INSERT\x20INTO\x20schema_migrations(version)\x20VALUES\x20($1)','endsWith','slice','sDTYn','jeAKe','5052504fqpIfc','database','skip','SIZgo','hostname','YFcmf','migrations','MjRSu','2519280DmjiKL','qaMfp','759835sMqBUV','status','yqpnq','username','version','empty\x20pg','has','ROLLBACK','file','end','release','iiQUA','connect','mWgYa','dZNiJ','readdir','.sql','cnymr','dir','COMMIT','pathname','rows','3457628pwwQKX','query','2542635eXHDbg','MNetu','ewAQi','SPoGy','cMPap','resolve','databaseUrl','readFile','filter','\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','iuPeF','1663570VsFtbr','join','qOYHG','DATABASE_URL\x20or\x20database\x20config\x20is\x20required','password','108xRFjIe','map','sort'];_0x11a3=function(){return _0x5d8c66;};return _0x11a3();}function databaseFromUrl(_0x27691c){const _0x5ef84e=_0x49f3,_0x30164d={'ssvvl':function(_0x401db7,_0x5a2243){return _0x401db7(_0x5a2243);},'qOYHG':function(_0x43a6e2,_0x4cdc7c){return _0x43a6e2(_0x4cdc7c);}};if(!_0x27691c)return undefined;const _0x45aaa8=new URL(_0x27691c);return{'host':_0x45aaa8[_0x5ef84e(0x160)],'port':_0x30164d[_0x5ef84e(0x198)](Number,_0x45aaa8[_0x5ef84e(0x192)]||0x1538),'database':_0x45aaa8[_0x5ef84e(0x17a)][_0x5ef84e(0x159)](0x1),'user':decodeURIComponent(_0x45aaa8[_0x5ef84e(0x169)]),'password':_0x30164d[_0x5ef84e(0x18b)](decodeURIComponent,_0x45aaa8[_0x5ef84e(0x18d)])};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x244924,_0x24cd5d){var _0x5d6e87=_0x49bf,_0x2b884f=_0x244924();while(!![]){try{var _0x251ad4=-parseInt(_0x5d6e87(0x157))/0x1+-parseInt(_0x5d6e87(0x155))/0x2*(parseInt(_0x5d6e87(0x154))/0x3)+parseInt(_0x5d6e87(0x152))/0x4*(parseInt(_0x5d6e87(0x153))/0x5)+-parseInt(_0x5d6e87(0x150))/0x6+parseInt(_0x5d6e87(0x14f))/0x7+-parseInt(_0x5d6e87(0x14e))/0x8*(-parseInt(_0x5d6e87(0x151))/0x9)+parseInt(_0x5d6e87(0x156))/0xa;if(_0x251ad4===_0x24cd5d)break;else _0x2b884f['push'](_0x2b884f['shift']());}catch(_0x24ad85){_0x2b884f['push'](_0x2b884f['shift']());}}}(_0x2b97,0xa8b45));export*from'./route.js';export*from'./services/login.js';function _0x49bf(_0x1d91bc,_0x3bdaef){_0x1d91bc=_0x1d91bc-0x14e;var _0x2b9783=_0x2b97();var _0x49bfa9=_0x2b9783[_0x1d91bc];return _0x49bfa9;}export*from'./services/logout.js';function _0x2b97(){var _0x12ba30=['15LYSmGK','1956057uXEsmE','2xhzcqf','7155410DLSgIe','1359085iceARM','8bcZIpb','8286978pQoleU','5703618oxdmaD','8207127SdPIDk','1121896Ytaldf'];_0x2b97=function(){return _0x12ba30;};return _0x2b97();}export*from'./services/get-current-user.js';export*from'./services/verify-two-factor.js';
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xf2b6(){const _0x5d8f9a=['321924cQqOLc','minLength','305015WJAEAT','20WkEDLE','Object','575654nRAWtn','maxLength','3989580GYTToY','String','670432oiENQY','2371242wMNbaM','1764444OSDmco'];_0xf2b6=function(){return _0x5d8f9a;};return _0xf2b6();}const _0x30e732=_0x17bc;(function(_0x4ae4d5,_0x5a023c){const _0x49441c=_0x17bc,_0xb5e334=_0x4ae4d5();while(!![]){try{const _0x399a3=parseInt(_0x49441c(0x19a))/0x1+parseInt(_0x49441c(0x193))/0x2+-parseInt(_0x49441c(0x198))/0x3+parseInt(_0x49441c(0x19d))/0x4*(parseInt(_0x49441c(0x19c))/0x5)+-parseInt(_0x49441c(0x199))/0x6+parseInt(_0x49441c(0x195))/0x7+parseInt(_0x49441c(0x197))/0x8;if(_0x399a3===_0x5a023c)break;else _0xb5e334['push'](_0xb5e334['shift']());}catch(_0x3f3107){_0xb5e334['push'](_0xb5e334['shift']());}}}(_0xf2b6,0x762b6));import{Type}from'@sinclair/typebox';const _0x47deb2={};_0x47deb2[_0x30e732(0x19b)]=0x1,_0x47deb2[_0x30e732(0x194)]=0x64;const _0xa5ff2b={};_0xa5ff2b[_0x30e732(0x19b)]=0x1,_0xa5ff2b[_0x30e732(0x194)]=0x64;const _0x4b2487={};_0x4b2487[_0x30e732(0x19b)]=0x1;function _0x17bc(_0x272e04,_0x4baa30){_0x272e04=_0x272e04-0x192;const _0xf2b698=_0xf2b6();let _0x17bc94=_0xf2b698[_0x272e04];return _0x17bc94;}export const authSchemas={'credentials':Type[_0x30e732(0x192)]({'login':Type[_0x30e732(0x196)](_0x47deb2),'password':Type[_0x30e732(0x196)](_0xa5ff2b)}),'twoFactor':Type[_0x30e732(0x192)]({'code':Type[_0x30e732(0x196)](_0x4b2487)})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x51d1(){const _0xac675a=['871926luobnr','1072824KmtVDq','19826766XvNeOJ','2705706gKyiJF','5231300oGtgis','3281056hWQYNI','LqIii','3UGXXNY','63dCXmrR','nltRX','621334LhIVMr'];_0x51d1=function(){return _0xac675a;};return _0x51d1();}(function(_0x40b729,_0x1cfd54){const _0x2a6e09=_0x402a,_0x89fe1a=_0x40b729();while(!![]){try{const _0xd577a2=-parseInt(_0x2a6e09(0x18f))/0x1*(parseInt(_0x2a6e09(0x187))/0x2)+-parseInt(_0x2a6e09(0x18b))/0x3+parseInt(_0x2a6e09(0x18d))/0x4+parseInt(_0x2a6e09(0x18c))/0x5+-parseInt(_0x2a6e09(0x188))/0x6+-parseInt(_0x2a6e09(0x190))/0x7*(parseInt(_0x2a6e09(0x189))/0x8)+parseInt(_0x2a6e09(0x18a))/0x9;if(_0xd577a2===_0x1cfd54)break;else _0x89fe1a['push'](_0x89fe1a['shift']());}catch(_0x53c777){_0x89fe1a['push'](_0x89fe1a['shift']());}}}(_0x51d1,0xd7a93));function _0x402a(_0x1d446b,_0xf1b17e){_0x1d446b=_0x1d446b-0x186;const _0x51d19e=_0x51d1();let _0x402abb=_0x51d19e[_0x1d446b];return _0x402abb;}import{safeUser}from'../../utils/safe-user.js';export default async function getCurrentUser(_0x35660f){const _0x383744=_0x402a,_0x3866fc={'nltRX':function(_0x5abac9,_0x3f52f9){return _0x5abac9(_0x3f52f9);},'LqIii':function(_0xa82fbc,_0x27d062){return _0xa82fbc||_0x27d062;}},{user:_0x5a85fd}=_0x35660f;return _0x3866fc[_0x383744(0x186)](safeUser,_0x3866fc[_0x383744(0x18e)](_0x5a85fd,{}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xbcf0(_0x4cd40c,_0x2a871b){_0x4cd40c=_0x4cd40c-0x13b;const _0x26c7d1=_0x26c7();let _0xbcf045=_0x26c7d1[_0x4cd40c];return _0xbcf045;}(function(_0x464c39,_0x22a549){const _0x1f5725=_0xbcf0,_0x2d8c3b=_0x464c39();while(!![]){try{const _0x3fa2ee=-parseInt(_0x1f5725(0x14f))/0x1+-parseInt(_0x1f5725(0x141))/0x2+parseInt(_0x1f5725(0x148))/0x3+-parseInt(_0x1f5725(0x144))/0x4*(-parseInt(_0x1f5725(0x14d))/0x5)+-parseInt(_0x1f5725(0x13f))/0x6+-parseInt(_0x1f5725(0x156))/0x7*(parseInt(_0x1f5725(0x13d))/0x8)+parseInt(_0x1f5725(0x13e))/0x9;if(_0x3fa2ee===_0x22a549)break;else _0x2d8c3b['push'](_0x2d8c3b['shift']());}catch(_0x4d18c3){_0x2d8c3b['push'](_0x2d8c3b['shift']());}}}(_0x26c7,0x1c6fc));import _0x1b6e92 from'./verifyPassword.js';export default async function login({ip:_0x24073d,login:_0x28506a,password:_0x508ef3},{config:_0x1fd033,pg:_0x32332b,logger:_0x4c4b40,redis:_0x17c4a9}){const _0xcb7fc3=_0xbcf0,_0x1c1897={'KfsYq':_0xcb7fc3(0x140),'ZTWgv':function(_0x488cec,_0x8cae3e){return _0x488cec(_0x8cae3e);},'viQrh':_0xcb7fc3(0x14a),'XAPIo':_0xcb7fc3(0x14b)};if(!_0x32332b)throw Error(_0x1c1897[_0xcb7fc3(0x142)]);if(!_0x17c4a9)throw _0x1c1897[_0xcb7fc3(0x147)](Error,_0xcb7fc3(0x155));const _0x606c6e={};_0x606c6e[_0xcb7fc3(0x13c)]=_0x28506a,_0x606c6e[_0xcb7fc3(0x153)]=_0x508ef3,_0x606c6e['ip']=_0x24073d;const _0xf0762d={};_0xf0762d['pg']=_0x32332b,_0xf0762d[_0xcb7fc3(0x150)]=_0x4c4b40;const {user:_0x3cecd5}=await _0x1b6e92(_0x606c6e,_0xf0762d);if(!_0x3cecd5)throw new Error(_0x1c1897[_0xcb7fc3(0x14c)]);_0x4c4b40[_0xcb7fc3(0x157)](_0x1c1897[_0xcb7fc3(0x13b)]);const _0x5a14f0=_0x3cecd5[_0xcb7fc3(0x145)]?_0x1fd033[_0xcb7fc3(0x151)][_0xcb7fc3(0x14e)]?.[_0xcb7fc3(0x143)]?.[_0xcb7fc3(0x13c)]:_0x1fd033[_0xcb7fc3(0x151)][_0xcb7fc3(0x14e)]?.[_0xcb7fc3(0x149)][_0xcb7fc3(0x154)],_0x2ba48d={};return _0x2ba48d[_0xcb7fc3(0x152)]=_0x3cecd5,_0x2ba48d[_0xcb7fc3(0x146)]=_0x5a14f0||'/',_0x2ba48d;}function _0x26c7(){const _0xcf2036=['KfsYq','twoFactor','174448alTnUt','twofa','redirectUrl','ZTWgv','290535HHEWwL','base','empty\x20user','user.login','viQrh','5hHmBZw','link','60674IRExIg','logger','auth','user','password','afterLogin','empty\x20redis','894943EaSOuS','metrics','XAPIo','login','8GfyRrX','3140775MoGlRl','793302mGnydm','empty\x20pg','104432wHYqZG'];_0x26c7=function(){return _0xcf2036;};return _0x26c7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xef882f,_0xab500a){var _0x198747=_0x125c,_0x173ab2=_0xef882f();while(!![]){try{var _0x1cbe38=-parseInt(_0x198747(0xa8))/0x1+-parseInt(_0x198747(0xa4))/0x2+-parseInt(_0x198747(0xa1))/0x3+parseInt(_0x198747(0x9c))/0x4*(parseInt(_0x198747(0x9d))/0x5)+parseInt(_0x198747(0xa2))/0x6*(parseInt(_0x198747(0xa5))/0x7)+-parseInt(_0x198747(0x97))/0x8+parseInt(_0x198747(0x9e))/0x9;if(_0x1cbe38===_0xab500a)break;else _0x173ab2['push'](_0x173ab2['shift']());}catch(_0x4242e7){_0x173ab2['push'](_0x173ab2['shift']());}}}(_0x1b36,0x7ec0d));function _0x125c(_0x5bd2ca,_0xc9c09e){_0x5bd2ca=_0x5bd2ca-0x92;var _0x1b3643=_0x1b36();var _0x125c6a=_0x1b3643[_0x5bd2ca];return _0x125c6a;}export default async function logout(_0x1d7e2d,_0x11147b){var _0x147992=_0x125c,_0x45bfe9={};_0x45bfe9[_0x147992(0x92)]=_0x147992(0xa3),_0x45bfe9[_0x147992(0x99)]=_0x147992(0x96);var _0x59a8a7=_0x45bfe9,_0x33ad19={};_0x33ad19[_0x147992(0x93)]=_0x59a8a7[_0x147992(0x92)],_0x33ad19[_0x147992(0x98)]=_0x59a8a7[_0x147992(0x99)],_0x33ad19[_0x147992(0xa0)]=_0x1d7e2d[_0x147992(0x95)],_0x33ad19[_0x147992(0x9f)]=_0x147992(0x9b),_0x33ad19[_0x147992(0xa7)]=_0x1d7e2d[_0x147992(0xa6)]?.['id'],await _0x11147b[_0x147992(0x9a)]?.[_0x147992(0x94)]?.(_0x33ad19);}function _0x1b36(){var _0x2a0c19=['audit','logout','4mhTbzx','1610135hbUVOO','16574346VoPzxd','action','resourceId','344199UCGxob','2291862eMhDoB','auth','196696ltdxnB','7EUuJcn','user','userId','979678yuZJBY','RpJjK','module','write','sessionId','session','6669264ibebQn','resource','uixjF'];_0x1b36=function(){return _0x2a0c19;};return _0x1b36();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45d029,_0x42b8c0){var _0x2f0405=_0x2cc1,_0x59d40a=_0x45d029();while(!![]){try{var _0x4c0869=-parseInt(_0x2f0405(0x10e))/0x1*(parseInt(_0x2f0405(0x10f))/0x2)+-parseInt(_0x2f0405(0x110))/0x3+-parseInt(_0x2f0405(0x113))/0x4+-parseInt(_0x2f0405(0x11b))/0x5*(-parseInt(_0x2f0405(0x119))/0x6)+parseInt(_0x2f0405(0x111))/0x7*(parseInt(_0x2f0405(0x117))/0x8)+parseInt(_0x2f0405(0x116))/0x9*(-parseInt(_0x2f0405(0x115))/0xa)+-parseInt(_0x2f0405(0x11c))/0xb*(-parseInt(_0x2f0405(0x11a))/0xc);if(_0x4c0869===_0x42b8c0)break;else _0x59d40a['push'](_0x59d40a['shift']());}catch(_0x56bb23){_0x59d40a['push'](_0x59d40a['shift']());}}}(_0x3543,0xa36e4));import{unsupported}from'../../utils/unsupported.js';function _0x3543(){var _0x5d02af=['774lqGnZu','17434236KofEIg','15675HJaPEJ','22pHPoQh','5dHrIkG','207256LteEPQ','3455181TvDrOd','1379LTUwgx','VcMrf','3729372BEuOZO','ukcyp','9290lOmnjF','873YpBcrd','2096PybNwr','Two-factor\x20provider'];_0x3543=function(){return _0x5d02af;};return _0x3543();}function _0x2cc1(_0x7c7a2d,_0x512016){_0x7c7a2d=_0x7c7a2d-0x10e;var _0x354350=_0x3543();var _0x2cc1c8=_0x354350[_0x7c7a2d];return _0x2cc1c8;}export default async function verifyTwoFactor(_0xc91e98,_0x5f1268){var _0xf71c9b=_0x2cc1,_0x363394={'VcMrf':function(_0x57b05,_0x3da7db){return _0x57b05(_0x3da7db);},'ukcyp':_0xf71c9b(0x118)};return _0x363394[_0xf71c9b(0x112)](unsupported,_0x363394[_0xf71c9b(0x114)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x468e(_0x1c60ad,_0x7fb36f){_0x1c60ad=_0x1c60ad-0x73;const _0x58bb9e=_0x58bb();let _0x468ed6=_0x58bb9e[_0x1c60ad];return _0x468ed6;}(function(_0x466144,_0x1b6d46){const _0x2b56c5=_0x468e,_0xb3eff8=_0x466144();while(!![]){try{const _0x4f140e=parseInt(_0x2b56c5(0x7e))/0x1*(parseInt(_0x2b56c5(0x91))/0x2)+parseInt(_0x2b56c5(0xb2))/0x3*(parseInt(_0x2b56c5(0x9e))/0x4)+parseInt(_0x2b56c5(0x81))/0x5+-parseInt(_0x2b56c5(0x92))/0x6*(parseInt(_0x2b56c5(0x84))/0x7)+parseInt(_0x2b56c5(0xa4))/0x8*(parseInt(_0x2b56c5(0x88))/0x9)+parseInt(_0x2b56c5(0x7d))/0xa+parseInt(_0x2b56c5(0x9d))/0xb*(-parseInt(_0x2b56c5(0x80))/0xc);if(_0x4f140e===_0x1b6d46)break;else _0xb3eff8['push'](_0xb3eff8['shift']());}catch(_0x41552c){_0xb3eff8['push'](_0xb3eff8['shift']());}}}(_0x58bb,0xe0d49));import _0x1f0349 from'apache-crypt';function _0x58bb(){const _0x293322=['rows','huTui','HsiZN','11jnYHlu','4zgihbi','SELECT\x20public.crypt($1,\x20$2)','from','yssua','not\x20enough\x20params:\x20login','createHash','72lwunbW','JhCMO','auth/warn','hex','Wrong\x20password','DEuOw','uGwqo','scrypt$','nIGPd','file','empty\x20pg','toString','md5','digest','2150403AmLwKN','timingSafeEqual','not\x20enough\x20params:\x20password','SRqmX','lcWbf','wsxGn','UXKJw','error','user\x20not\x20found','kocTA','FrRgc','uEFRV','vXhaP','then','IXDQe','scryptSync','Bhiyn','user','salt','length','qrDhG','randomBytes','upQTM','3700650HvIPNO','1011NrbKSe','vQROW','28492428glwoJY','5748835TTAnFp','CqeSJ','FNUub','6813905eWyHyJ','zpTDk','jWpYc','eSVuu','1828845zuwtYq','login','info','split','query','IKdIY','password','scrypt','update','402WtaVwx','6RtrXia','crypt','HQBKp','fwdYa','ffXHm','oGUNn','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','password_new_hash_algorithm'];_0x58bb=function(){return _0x293322;};return _0x58bb();}import _0x595f8c from'node:crypto';import{BadRequestError}from'../../../errors.js';function md5(_0x3aa64d){const _0x44fc29=_0x468e,_0x528b2e={};_0x528b2e[_0x44fc29(0x74)]=_0x44fc29(0xa7);const _0x86f66f=_0x528b2e;return _0x595f8c[_0x44fc29(0xa3)](_0x44fc29(0xb0))[_0x44fc29(0x90)](_0x3aa64d)[_0x44fc29(0xb1)](_0x86f66f[_0x44fc29(0x74)]);}export function hashPassword(_0x1c4a3b){const _0x43e7b2=_0x468e,_0x253abe=_0x595f8c[_0x43e7b2(0x7b)](0x10)[_0x43e7b2(0xaf)](_0x43e7b2(0xa7)),_0x333c05=_0x595f8c[_0x43e7b2(0x75)](_0x1c4a3b,_0x253abe,0x40)[_0x43e7b2(0xaf)](_0x43e7b2(0xa7));return _0x43e7b2(0xab)+_0x253abe+'$'+_0x333c05;}export function verifyPasswordWithoutSalt(_0x5368c2,_0x5d628d){const _0x568535=_0x468e,_0x73dcda={};_0x73dcda[_0x568535(0xbd)]=function(_0x4ca428,_0x342fbe){return _0x4ca428!==_0x342fbe;},_0x73dcda[_0x568535(0xa9)]=_0x568535(0x8f),_0x73dcda[_0x568535(0x7f)]=_0x568535(0xa7),_0x73dcda[_0x568535(0xb8)]=function(_0x322b21,_0x525c8a){return _0x322b21===_0x525c8a;};const _0x394d7a=_0x73dcda,[_0x12e2d5,_0x1dc11c,_0x674695]=_0x5d628d[_0x568535(0x8b)]('$');if(_0x394d7a[_0x568535(0xbd)](_0x12e2d5,_0x394d7a[_0x568535(0xa9)])||!_0x1dc11c||!_0x674695)return![];const _0x10dfad=_0x595f8c[_0x568535(0x75)](_0x5368c2,_0x1dc11c,0x40),_0x40ff89=Buffer[_0x568535(0xa0)](_0x674695,_0x394d7a[_0x568535(0x7f)]);return _0x394d7a[_0x568535(0xb8)](_0x40ff89[_0x568535(0x79)],_0x10dfad[_0x568535(0x79)])&&_0x595f8c[_0x568535(0xb3)](_0x40ff89,_0x10dfad);}export default async function verifyPassword({login:_0x1ba15d,password:_0x4169b4,ip:_0x667cd7},{pg:_0x1994ce,logger:_0x28df38}){const _0x28f033=_0x468e,_0xa6e74b={'HQBKp':_0x28f033(0xa7),'lcWbf':_0x28f033(0xae),'zpTDk':_0x28f033(0xa2),'HsiZN':function(_0x48ea8f,_0x375f7a){return _0x48ea8f===_0x375f7a;},'FNUub':function(_0x487f0c,_0x641c13){return _0x487f0c===_0x641c13;},'oGUNn':_0x28f033(0x82),'qrDhG':_0x28f033(0x95),'eSVuu':_0x28f033(0x98),'upQTM':function(_0x3572e3,_0x3b1927){return _0x3572e3===_0x3b1927;},'nIGPd':_0x28f033(0x76),'huTui':_0x28f033(0xba),'yssua':function(_0x4fc836,_0x3e8780,_0x6c251b){return _0x4fc836(_0x3e8780,_0x6c251b);},'IKdIY':_0x28f033(0xa8),'wsxGn':_0x28f033(0xa6),'SRqmX':function(_0x376988,_0xee77df){return _0x376988===_0xee77df;},'FrRgc':function(_0x78b57d,_0x410aed){return _0x78b57d<_0x410aed;},'kocTA':function(_0x23057e,_0xb96d0a){return _0x23057e(_0xb96d0a);},'ffXHm':function(_0x4d0e77,_0x217824){return _0x4d0e77+_0x217824;},'JhCMO':function(_0x36730,_0x2f1525){return _0x36730===_0x2f1525;},'uGwqo':_0x28f033(0x86)};if(!_0x1994ce)throw new Error(_0xa6e74b[_0x28f033(0xb6)]);if(!_0x1ba15d||_0x1ba15d==='')throw new BadRequestError(_0xa6e74b[_0x28f033(0x85)]);if(!_0x4169b4||_0xa6e74b[_0x28f033(0x9c)](_0x4169b4,'')){if(_0xa6e74b[_0x28f033(0x83)](_0xa6e74b[_0x28f033(0x97)],_0xa6e74b[_0x28f033(0x7a)])){const _0x4e5e5a={..._0x1c8411};_0x4e5e5a[_0x28f033(0x8e)]=_0x326fb9,_0x4e5e5a[_0x28f033(0x78)]=_0x41e711;const _0x202f3e={};return _0x202f3e[_0x28f033(0x77)]=_0x4e5e5a,_0x202f3e;}else throw new BadRequestError(_0x28f033(0xb4));}const _0x1496d0=_0xa6e74b[_0x28f033(0x87)],_0x9a2e0a=await _0x1994ce[_0x28f033(0x8c)](_0x1496d0,[_0x1ba15d])[_0x28f033(0x73)](_0x407f53=>_0x407f53[_0x28f033(0x9a)]?.[0x0]);if(!_0x9a2e0a){if(_0xa6e74b[_0x28f033(0x7c)](_0x28f033(0x76),_0xa6e74b[_0x28f033(0xac)])){const _0x13d355=_0xa6e74b[_0x28f033(0x9b)],_0xde8bea={};_0xde8bea[_0x28f033(0xad)]=_0x28f033(0xa6),_0xde8bea[_0x28f033(0xb9)]=_0x13d355,_0xde8bea[_0x28f033(0x89)]=_0x1ba15d,_0xde8bea['ip']=_0x667cd7,_0x28df38[_0x28f033(0x8a)](_0xde8bea);throw new BadRequestError(_0x13d355);}else{const _0x3c45ab={..._0x3c2199};_0x3c45ab[_0x28f033(0x8e)]=_0x2869ef,_0x3c45ab[_0x28f033(0x78)]=_0x5577ef;const _0x3f4238={};return _0x3f4238[_0x28f033(0x77)]=_0x3c45ab,_0x3f4238;}}if(!_0x9a2e0a[_0x28f033(0x78)]){const _0x489871=_0xa6e74b[_0x28f033(0xa1)](verifyPasswordWithoutSalt,_0x4169b4,_0x9a2e0a[_0x28f033(0x8e)]);if(!_0x489871){const _0x3168c9=_0xa6e74b[_0x28f033(0x8d)],_0xf1eb16={};_0xf1eb16[_0x28f033(0xad)]=_0xa6e74b[_0x28f033(0xb7)],_0xf1eb16[_0x28f033(0xb9)]=_0x3168c9,_0xf1eb16[_0x28f033(0x89)]=_0x1ba15d,_0xf1eb16['ip']=_0x667cd7,_0x28df38[_0x28f033(0x8a)](_0xf1eb16);throw new BadRequestError(_0x3168c9);}const _0x54e793={..._0x9a2e0a};_0x54e793[_0x28f033(0x8e)]=undefined,_0x54e793[_0x28f033(0x78)]=undefined;const _0x58d915={};return _0x58d915[_0x28f033(0x77)]=_0x54e793,_0x58d915;}if(_0xa6e74b[_0x28f033(0x9c)](_0x9a2e0a[_0x28f033(0x99)],!![])){const _0x6f158c=await _0x1994ce[_0x28f033(0x8c)](_0x28f033(0x9f),[_0x4169b4,_0x9a2e0a[_0x28f033(0x78)]])[_0x28f033(0x73)](_0x10bf9e=>_0x10bf9e[_0x28f033(0x9a)]?.[0x0]?.[_0x28f033(0x93)]);if(_0xa6e74b[_0x28f033(0xb5)](_0x9a2e0a[_0x28f033(0x8e)],_0x6f158c)){const _0x207a77={..._0x9a2e0a};_0x207a77[_0x28f033(0x8e)]=undefined,_0x207a77[_0x28f033(0x78)]=undefined;const _0x40c81c={};return _0x40c81c[_0x28f033(0x77)]=_0x207a77,_0x40c81c;}const _0x9546f=_0xa6e74b[_0x28f033(0x8d)],_0x37153f={};_0x37153f[_0x28f033(0xad)]=_0x28f033(0xa6),_0x37153f[_0x28f033(0xb9)]=_0x9546f,_0x37153f[_0x28f033(0x89)]=_0x1ba15d,_0x37153f['ip']=_0x667cd7,_0x28df38[_0x28f033(0x8a)](_0x37153f);throw new BadRequestError(_0x9546f);}let _0x4afa7f='';for(let _0x204d3a=0x0;_0xa6e74b[_0x28f033(0xbc)](_0x204d3a,0xa);_0x204d3a+=0x1){_0x4afa7f=_0xa6e74b[_0x28f033(0xbb)](md5,_0xa6e74b[_0x28f033(0x96)](_0xa6e74b[_0x28f033(0x96)](_0x4169b4,_0x4afa7f),_0x9a2e0a[_0x28f033(0x78)]));}_0x4afa7f=_0x1f0349(_0x4afa7f,_0x9a2e0a[_0x28f033(0x78)]);if(_0xa6e74b[_0x28f033(0xa5)](_0x9a2e0a[_0x28f033(0x8e)],_0x4afa7f)){if(_0xa6e74b[_0x28f033(0x9c)](_0xa6e74b[_0x28f033(0xaa)],_0x28f033(0xbe)))return _0x1676f1[_0x28f033(0xa3)](_0x28f033(0xb0))[_0x28f033(0x90)](_0x4706c4)[_0x28f033(0xb1)](CBfRKy[_0x28f033(0x94)]);else{const _0x2e33fc={..._0x9a2e0a};_0x2e33fc[_0x28f033(0x8e)]=undefined,_0x2e33fc[_0x28f033(0x78)]=undefined;const _0x1201dc={};return _0x1201dc[_0x28f033(0x77)]=_0x2e33fc,_0x1201dc;}}const _0x3c2ee0=_0x28f033(0xa8),_0x22ad0d={};_0x22ad0d[_0x28f033(0xad)]=_0xa6e74b[_0x28f033(0xb7)],_0x22ad0d[_0x28f033(0xb9)]=_0x3c2ee0,_0x22ad0d[_0x28f033(0x89)]=_0x1ba15d,_0x22ad0d['ip']=_0x667cd7,_0x28df38[_0x28f033(0x8a)](_0x22ad0d);throw new BadRequestError(_0x3c2ee0);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2bef(_0x5326e1,_0x20f0b5){_0x5326e1=_0x5326e1-0x133;var _0x3f0a08=_0x3f0a();var _0x2beff7=_0x3f0a08[_0x5326e1];return _0x2beff7;}(function(_0x4d7eae,_0x206b35){var _0x3a0141=_0x2bef,_0x17b127=_0x4d7eae();while(!![]){try{var _0x31d43d=parseInt(_0x3a0141(0x133))/0x1+-parseInt(_0x3a0141(0x138))/0x2+parseInt(_0x3a0141(0x139))/0x3*(-parseInt(_0x3a0141(0x13b))/0x4)+parseInt(_0x3a0141(0x135))/0x5*(-parseInt(_0x3a0141(0x137))/0x6)+-parseInt(_0x3a0141(0x136))/0x7+-parseInt(_0x3a0141(0x134))/0x8+parseInt(_0x3a0141(0x13a))/0x9;if(_0x31d43d===_0x206b35)break;else _0x17b127['push'](_0x17b127['shift']());}catch(_0xc4d3cb){_0x17b127['push'](_0x17b127['shift']());}}}(_0x3f0a,0xd5277));export*from'./route.js';export*from'./services/upload-file.js';function _0x3f0a(){var _0x494e52=['891682QBocTt','13182400SCOzHz','180fIKhdX','11782050Iocnfu','284556zHPqjC','3443818EvxLcP','2553081AiBDCZ','68333571VwLDwo','4ZDnCet'];_0x3f0a=function(){return _0x494e52;};return _0x3f0a();}export*from'./services/get-file.js';export*from'./services/resize-file.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x415b(){var _0x602086=['get','params','pgwtD','2766589VteERf','jzoDb','public','Get\x20file\x20by\x20token','token','Upload\x20file','Returns\x20a\x20resized\x20image\x20file.','SLevO','file','SZIYc','618438WSQFmh','MJeio','query','180639eSHxoP','bwKhn','SLABI','/api/file/:token','HivyX','files:read','NdaiX','Uploads\x20a\x20file\x20and\x20stores\x20its\x20metadata.','user','530AYaYns','upload','verify','post','/api/file/:token/resize','IjUud','send','aMQNQ','5199275ibxkEa','Returns\x20a\x20file\x20after\x20verifying\x20its\x20signed\x20access\x20token.','1749088JvSeXR','626404CUsYgP','WVaoP','2655kMHkpP','/api/file/upload','fcore','files:create','Resize\x20file','16wEUkjW','resizeQuery','6568OZCZRq','body','fileToken','VjKOf'];_0x415b=function(){return _0x602086;};return _0x415b();}(function(_0x454cab,_0x26ece6){var _0x4b1050=_0x21ab,_0x4a0ffd=_0x454cab();while(!![]){try{var _0x1aca0d=-parseInt(_0x4b1050(0xda))/0x1+parseInt(_0x4b1050(0xd9))/0x2+-parseInt(_0x4b1050(0xdc))/0x3*(-parseInt(_0x4b1050(0xe3))/0x4)+parseInt(_0x4b1050(0xd7))/0x5+-parseInt(_0x4b1050(0xf4))/0x6+parseInt(_0x4b1050(0xea))/0x7*(-parseInt(_0x4b1050(0xe1))/0x8)+-parseInt(_0x4b1050(0xf7))/0x9*(parseInt(_0x4b1050(0xcf))/0xa);if(_0x1aca0d===_0x26ece6)break;else _0x4a0ffd['push'](_0x4a0ffd['shift']());}catch(_0xe6524d){_0x4a0ffd['push'](_0x4a0ffd['shift']());}}}(_0x415b,0xbf603));import{uploadFile}from'./services/upload-file.js';import{resizeFile}from'./services/resize-file.js';import{fileSchemas}from'./schema.js';function _0x21ab(_0xa7ac2e,_0x42bfe1){_0xa7ac2e=_0xa7ac2e-0xc8;var _0x415b39=_0x415b();var _0x21abb8=_0x415b39[_0xa7ac2e];return _0x21abb8;}export function fileRoutes(_0xa253c1){var _0x2531fa=_0x21ab,_0x1379a3={};_0x1379a3[_0x2531fa(0xdb)]=_0x2531fa(0xc9),_0x1379a3[_0x2531fa(0xf3)]=_0x2531fa(0xde),_0x1379a3[_0x2531fa(0xd6)]=_0x2531fa(0xf2),_0x1379a3[_0x2531fa(0xd4)]=_0x2531fa(0xed),_0x1379a3[_0x2531fa(0xe6)]=_0x2531fa(0xd8),_0x1379a3[_0x2531fa(0xe9)]=_0x2531fa(0xec),_0x1379a3[_0x2531fa(0xeb)]=_0x2531fa(0xdd),_0x1379a3[_0x2531fa(0xca)]=_0x2531fa(0xcd),_0x1379a3[_0x2531fa(0xf1)]=_0x2531fa(0xdf),_0x1379a3[_0x2531fa(0xf8)]=_0x2531fa(0xd3),_0x1379a3[_0x2531fa(0xcc)]=_0x2531fa(0xe0),_0x1379a3[_0x2531fa(0xc8)]=_0x2531fa(0xf0),_0x1379a3[_0x2531fa(0xf5)]=_0x2531fa(0xcb);var _0x548d77=_0x1379a3;return async _0x259317=>{var _0xa49f8b=_0x2531fa;_0x259317[_0xa49f8b(0xe7)](_0x548d77[_0xa49f8b(0xdb)],{'schema':{'tags':[_0x548d77[_0xa49f8b(0xf3)],_0x548d77[_0xa49f8b(0xd6)]],'summary':_0x548d77[_0xa49f8b(0xd4)],'description':_0x548d77[_0xa49f8b(0xe6)],'access':_0x548d77[_0xa49f8b(0xe9)],'permissions':[],'params':fileSchemas[_0xa49f8b(0xe5)]}},async(_0x174a8b,_0x3c309a)=>_0x3c309a[_0xa49f8b(0xd5)](await _0xa253c1[_0xa49f8b(0xf2)]?.[_0xa49f8b(0xe7)](_0xa253c1[_0xa49f8b(0xf2)][_0xa49f8b(0xd1)](_0x174a8b[_0xa49f8b(0xe8)][_0xa49f8b(0xee)])['p']))),_0x259317[_0xa49f8b(0xd2)](_0x548d77[_0xa49f8b(0xeb)],{'schema':{'tags':[_0x548d77[_0xa49f8b(0xf3)],_0x548d77[_0xa49f8b(0xd6)]],'summary':_0xa49f8b(0xef),'description':_0x548d77[_0xa49f8b(0xca)],'access':_0xa49f8b(0xce),'permissions':[_0x548d77[_0xa49f8b(0xf1)]],'body':fileSchemas[_0xa49f8b(0xd0)]}},async _0x175b83=>uploadFile(_0x175b83[_0xa49f8b(0xe4)],_0xa253c1)),_0x259317[_0xa49f8b(0xe7)](_0x548d77[_0xa49f8b(0xf8)],{'schema':{'tags':[_0x548d77[_0xa49f8b(0xf3)],_0xa49f8b(0xf2)],'summary':_0x548d77[_0xa49f8b(0xcc)],'description':_0x548d77[_0xa49f8b(0xc8)],'access':_0xa49f8b(0xce),'permissions':[_0x548d77[_0xa49f8b(0xf5)]],'params':fileSchemas[_0xa49f8b(0xe5)],'querystring':fileSchemas[_0xa49f8b(0xe2)]}},async _0x55e2fe=>resizeFile({'pathOrToken':_0xa253c1[_0xa49f8b(0xf2)]?.[_0xa49f8b(0xd1)](_0x55e2fe[_0xa49f8b(0xe8)][_0xa49f8b(0xee)])['p'],..._0x55e2fe[_0xa49f8b(0xf6)]},_0xa253c1));};}
|