@opengis/fcore 0.0.1-beta.3 → 0.0.1-beta.5

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.
Files changed (180) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +71 -71
  3. package/dist/config.d.ts +2 -10
  4. package/dist/config.d.ts.map +1 -1
  5. package/dist/config.js +1 -1
  6. package/dist/context.js +1 -1
  7. package/dist/errors.js +1 -1
  8. package/dist/fastify.d.ts +4 -5
  9. package/dist/fastify.d.ts.map +1 -1
  10. package/dist/fastify.js +1 -1
  11. package/dist/fcore.js +1 -1
  12. package/dist/index.d.ts +0 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/migrations/cli.js +1 -1
  16. package/dist/migrations/runner.js +1 -1
  17. package/dist/modules/auth/adduser-cli.d.ts +3 -0
  18. package/dist/modules/auth/adduser-cli.d.ts.map +1 -0
  19. package/dist/modules/auth/adduser-cli.js +2 -0
  20. package/dist/modules/auth/passwd-cli.d.ts +3 -0
  21. package/dist/modules/auth/passwd-cli.d.ts.map +1 -0
  22. package/dist/modules/auth/passwd-cli.js +2 -0
  23. package/dist/modules/auth/permission-cli.d.ts +3 -0
  24. package/dist/modules/auth/permission-cli.d.ts.map +1 -0
  25. package/dist/modules/auth/permission-cli.js +2 -0
  26. package/dist/modules/auth/route.d.ts.map +1 -1
  27. package/dist/modules/auth/route.js +1 -1
  28. package/dist/modules/auth/schema.d.ts +7 -1
  29. package/dist/modules/auth/schema.d.ts.map +1 -1
  30. package/dist/modules/auth/schema.js +1 -1
  31. package/dist/modules/auth/services/change-password.d.ts +9 -0
  32. package/dist/modules/auth/services/change-password.d.ts.map +1 -0
  33. package/dist/modules/auth/services/change-password.js +1 -0
  34. package/dist/modules/auth/services/get-current-user.js +1 -1
  35. package/dist/modules/auth/services/registration.d.ts +14 -0
  36. package/dist/modules/auth/services/registration.d.ts.map +1 -0
  37. package/dist/modules/auth/services/registration.js +1 -0
  38. package/dist/modules/auth/services/verify-two-factor.js +1 -1
  39. package/dist/modules/file/route.js +1 -1
  40. package/dist/modules/file/schema.js +1 -1
  41. package/dist/modules/file/services/get-file.js +1 -1
  42. package/dist/modules/file/services/resize-file.js +1 -1
  43. package/dist/modules/file/services/upload-file.js +1 -1
  44. package/dist/modules/resource/route.d.ts.map +1 -1
  45. package/dist/modules/resource/route.js +1 -1
  46. package/dist/modules/resource/schema.js +1 -1
  47. package/dist/modules/resource/services/add-note.js +1 -1
  48. package/dist/modules/resource/services/add-resource-file.js +1 -1
  49. package/dist/modules/resource/services/create-resource-relation.d.ts +8 -2
  50. package/dist/modules/resource/services/create-resource-relation.d.ts.map +1 -1
  51. package/dist/modules/resource/services/create-resource-relation.js +1 -1
  52. package/dist/modules/resource/services/create-resource.js +1 -1
  53. package/dist/modules/resource/services/delete-resource-relation.d.ts +8 -1
  54. package/dist/modules/resource/services/delete-resource-relation.d.ts.map +1 -1
  55. package/dist/modules/resource/services/delete-resource-relation.js +1 -1
  56. package/dist/modules/resource/services/delete-resource.js +1 -1
  57. package/dist/modules/resource/services/export-resource.js +1 -1
  58. package/dist/modules/resource/services/get-resource.js +1 -1
  59. package/dist/modules/resource/services/list-resource-relation.d.ts +7 -2
  60. package/dist/modules/resource/services/list-resource-relation.d.ts.map +1 -1
  61. package/dist/modules/resource/services/list-resource-relation.js +1 -1
  62. package/dist/modules/resource/services/list-resources.js +1 -1
  63. package/dist/modules/resource/services/search-resource.js +1 -1
  64. package/dist/modules/resource/services/suggest-resource.d.ts +10 -4
  65. package/dist/modules/resource/services/suggest-resource.d.ts.map +1 -1
  66. package/dist/modules/resource/services/suggest-resource.js +1 -1
  67. package/dist/modules/resource/services/update-resource.js +1 -1
  68. package/dist/modules/resource/services/upload-resource-file.js +1 -1
  69. package/dist/modules/system/route.d.ts +2 -1
  70. package/dist/modules/system/route.d.ts.map +1 -1
  71. package/dist/modules/system/route.js +1 -1
  72. package/dist/modules/system/schema.d.ts +22 -1
  73. package/dist/modules/system/schema.d.ts.map +1 -1
  74. package/dist/modules/system/schema.js +1 -1
  75. package/dist/modules/system/services/check-system.d.ts.map +1 -1
  76. package/dist/modules/system/services/check-system.js +1 -1
  77. package/dist/modules/system/services/get-access.d.ts +14 -0
  78. package/dist/modules/system/services/get-access.d.ts.map +1 -0
  79. package/dist/modules/system/services/get-access.js +1 -0
  80. package/dist/modules/system/services/get-api-list.d.ts +4 -1
  81. package/dist/modules/system/services/get-api-list.d.ts.map +1 -1
  82. package/dist/modules/system/services/get-api-list.js +1 -1
  83. package/dist/modules/system/services/get-audit-log.js +1 -1
  84. package/dist/modules/system/services/get-dictionary.js +1 -1
  85. package/dist/modules/system/services/get-system-log.d.ts +9 -5
  86. package/dist/modules/system/services/get-system-log.d.ts.map +1 -1
  87. package/dist/modules/system/services/get-system-log.js +1 -1
  88. package/dist/modules/system/services/get-system-settings.js +1 -1
  89. package/dist/modules/system/services/list-dictionaries.js +1 -1
  90. package/dist/modules/system/services/set-access.d.ts +16 -0
  91. package/dist/modules/system/services/set-access.d.ts.map +1 -0
  92. package/dist/modules/system/services/set-access.js +1 -0
  93. package/dist/modules/system/services/update-dictionary.d.ts +13 -0
  94. package/dist/modules/system/services/update-dictionary.d.ts.map +1 -0
  95. package/dist/modules/system/services/update-dictionary.js +1 -0
  96. package/dist/modules/system/services/update-system-settings.js +1 -1
  97. package/dist/modules/utils/require-admin.js +1 -1
  98. package/dist/modules/utils/safe-user.js +1 -1
  99. package/dist/modules/utils/unsupported.js +1 -1
  100. package/dist/plugins/audit/audit.js +1 -1
  101. package/dist/plugins/audit/index.js +1 -1
  102. package/dist/plugins/audit/services/write-audit.js +1 -1
  103. package/dist/plugins/auth/get-user-permissions.d.ts +3 -0
  104. package/dist/plugins/auth/get-user-permissions.d.ts.map +1 -0
  105. package/dist/plugins/auth/get-user-permissions.js +1 -0
  106. package/dist/plugins/auth/index.d.ts +4 -0
  107. package/dist/plugins/auth/index.d.ts.map +1 -1
  108. package/dist/plugins/auth/index.js +1 -1
  109. package/dist/plugins/auth/verifyUser.d.ts +9 -0
  110. package/dist/plugins/auth/verifyUser.d.ts.map +1 -0
  111. package/dist/plugins/auth/verifyUser.js +1 -0
  112. package/dist/plugins/dictionary.js +1 -1
  113. package/dist/plugins/file.js +1 -1
  114. package/dist/plugins/index.d.ts +1 -0
  115. package/dist/plugins/index.d.ts.map +1 -1
  116. package/dist/plugins/index.js +1 -1
  117. package/dist/plugins/logger/index.js +1 -1
  118. package/dist/plugins/logger/transport.js +1 -1
  119. package/dist/plugins/pg.js +1 -1
  120. package/dist/plugins/redis.js +1 -1
  121. package/dist/plugins/resource/index.js +1 -1
  122. package/dist/plugins/resource/resource.d.ts.map +1 -1
  123. package/dist/plugins/resource/resource.js +1 -1
  124. package/dist/plugins/resource/resource.registry.js +1 -1
  125. package/dist/plugins/resource/resource.types.d.ts +23 -0
  126. package/dist/plugins/resource/resource.types.d.ts.map +1 -1
  127. package/dist/plugins/resource/services/create-relation.d.ts +13 -0
  128. package/dist/plugins/resource/services/create-relation.d.ts.map +1 -0
  129. package/dist/plugins/resource/services/create-relation.js +1 -0
  130. package/dist/plugins/resource/services/create.js +1 -1
  131. package/dist/plugins/resource/services/delete-relation.d.ts +15 -0
  132. package/dist/plugins/resource/services/delete-relation.d.ts.map +1 -0
  133. package/dist/plugins/resource/services/delete-relation.js +1 -0
  134. package/dist/plugins/resource/services/delete.js +1 -1
  135. package/dist/plugins/resource/services/find-one.js +1 -1
  136. package/dist/plugins/resource/services/find-relation.d.ts +12 -0
  137. package/dist/plugins/resource/services/find-relation.d.ts.map +1 -0
  138. package/dist/plugins/resource/services/find-relation.js +1 -0
  139. package/dist/plugins/resource/services/find.js +1 -1
  140. package/dist/plugins/resource/services/update.js +1 -1
  141. package/dist/plugins/resource/utils/fields.js +1 -1
  142. package/dist/plugins/resource/utils/filters.js +1 -1
  143. package/dist/plugins/resource/utils/permissions.js +1 -1
  144. package/dist/plugins/resource/utils/sort.js +1 -1
  145. package/dist/plugins/resource/utils/sql.js +1 -1
  146. package/dist/shared/getIP.js +1 -1
  147. package/dist/type.d.ts +14 -0
  148. package/dist/type.d.ts.map +1 -1
  149. package/migrations/20260903120000_core_schema.sql +22 -19
  150. package/migrations/20260903130000_move_notes_files_to_admin.sql +17 -17
  151. package/migrations/20260903140000_settings_nulls_not_distinct.sql +18 -18
  152. package/migrations/20260905120000_add_user_foreign_keys.sql +43 -0
  153. package/package.json +10 -6
  154. package/dist/modules/auth/index.d.ts +0 -9
  155. package/dist/modules/auth/index.d.ts.map +0 -1
  156. package/dist/modules/auth/index.js +0 -1
  157. package/dist/modules/auth/services/login.d.ts +0 -10
  158. package/dist/modules/auth/services/login.d.ts.map +0 -1
  159. package/dist/modules/auth/services/login.js +0 -1
  160. package/dist/modules/auth/services/logout.d.ts +0 -9
  161. package/dist/modules/auth/services/logout.d.ts.map +0 -1
  162. package/dist/modules/auth/services/logout.js +0 -1
  163. package/dist/modules/auth/services/verifyPassword.d.ts +0 -11
  164. package/dist/modules/auth/services/verifyPassword.d.ts.map +0 -1
  165. package/dist/modules/auth/services/verifyPassword.js +0 -1
  166. package/dist/modules/file/index.d.ts +0 -8
  167. package/dist/modules/file/index.d.ts.map +0 -1
  168. package/dist/modules/file/index.js +0 -1
  169. package/dist/modules/resource/index.d.ts +0 -20
  170. package/dist/modules/resource/index.d.ts.map +0 -1
  171. package/dist/modules/resource/index.js +0 -1
  172. package/dist/modules/resource/services/list-children.d.ts +0 -6
  173. package/dist/modules/resource/services/list-children.d.ts.map +0 -1
  174. package/dist/modules/resource/services/list-children.js +0 -1
  175. package/dist/modules/system/index.d.ts +0 -13
  176. package/dist/modules/system/index.d.ts.map +0 -1
  177. package/dist/modules/system/index.js +0 -1
  178. package/dist/modules/utils/get-user-permissions.d.ts +0 -3
  179. package/dist/modules/utils/get-user-permissions.d.ts.map +0 -1
  180. package/dist/modules/utils/get-user-permissions.js +0 -1
@@ -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(_0x1d6d29,_0xc457cf){const _0xee3fa2=_0x4ae7,_0x104f68=_0x1d6d29();while(!![]){try{const _0x59c2ef=-parseInt(_0xee3fa2(0xee))/0x1+parseInt(_0xee3fa2(0x11d))/0x2*(parseInt(_0xee3fa2(0xde))/0x3)+parseInt(_0xee3fa2(0x110))/0x4*(-parseInt(_0xee3fa2(0xe5))/0x5)+parseInt(_0xee3fa2(0x126))/0x6+parseInt(_0xee3fa2(0x10b))/0x7+-parseInt(_0xee3fa2(0x13a))/0x8*(-parseInt(_0xee3fa2(0x13d))/0x9)+-parseInt(_0xee3fa2(0xdd))/0xa*(-parseInt(_0xee3fa2(0x124))/0xb);if(_0x59c2ef===_0xc457cf)break;else _0x104f68['push'](_0x104f68['shift']());}catch(_0x9945aa){_0x104f68['push'](_0x104f68['shift']());}}}(_0x4639,0x6165a));import{getUserPermissions,verifyUser}from'../../plugins/auth/index.js';import _0x4fc66b from'./services/get-current-user.js';function _0x4ae7(_0x51e4f2,_0x12437c){_0x51e4f2=_0x51e4f2-0xdb;const _0x46392c=_0x4639();let _0x4ae7e7=_0x46392c[_0x51e4f2];return _0x4ae7e7;}import _0x95d895 from'./services/registration.js';function _0x4639(){const _0x156e5a=['/api/auth/password','Changes\x20the\x20password\x20for\x20the\x20current\x20user.','UjcPr','redirect','GET','569818pbJqwb','Creates\x20a\x20regular\x20user\x20account.','public','querystring','credentials','permissions','audit','method','DIJNP','logout','WtgbC','/api/auth/logout','ydikB','YwOkb','Change\x20password','description','jOGWT','type','password','Terminates\x20the\x20current\x20user\x20session.','userId','destroy','vtmef','myJwJ','cookieName','get','twofa','post','query','479017reFBYY','access','admin','maxAge','success','524VHaWnj','defineProperty','/api/auth/login','value','redirectUrl','DtxzO','user:create','fcore','body','DuMvR','summary','config','Authenticates\x20a\x20user\x20and\x20returns\x20a\x20bearer\x20access\x20token.','407446OhNnzX','writable','fNOkR','clearCookie','tags','xISjb','Get\x20current\x20user','22ajYmOU','Sign\x20out','1093146uZTUXN','ipAddress','sessionTimeout','module','resourceId','Sign\x20in','JQiDV','cookie','WwJJV','resource','jnnLf','fIfGG','user','/api/auth/registration','Register','/api/auth/user','Not\x20authorized','AwTll','save','IawSU','2040464QhBGSl','oDfrC','sessionId','9KugMpb','action','KIUfx','AOEfd','TZSyG','YXTxa','jyrWM','urjbs','write','login','3528350haTneA','3TUGnwA','gGOoS','twoFactorRedirect','TPqol','schema','auth','iUDCR','17035VLnpCt','Returns\x20the\x20authenticated\x20user\x27s\x20safe\x20profile.','session','configurable'];_0x4639=function(){return _0x156e5a;};return _0x4639();}import _0x140b94 from'./services/change-password.js';import{authSchemas}from'./schema.js';import _0x1eba88 from'../../shared/getIP.js';import{UnauthorizedError}from'../../errors.js';export function authRoutes(_0x33a916){const _0x137fdc=_0x4ae7,_0x2c0e44={'fNOkR':function(_0x297ad3,_0x54b81d){return _0x297ad3===_0x54b81d;},'urjbs':function(_0x29563e,_0x3e9df8){return _0x29563e(_0x3e9df8);},'myJwJ':function(_0x151739,_0x3eea7f,_0x1afc58){return _0x151739(_0x3eea7f,_0x1afc58);},'DIJNP':function(_0x4c7057,_0x579f8d){return _0x4c7057*_0x579f8d;},'oDfrC':_0x137fdc(0xe3),'YXTxa':_0x137fdc(0xe7),'YwOkb':_0x137fdc(0xdc),'DtxzO':_0x137fdc(0xf7),'vtmef':_0x137fdc(0x117),'DuMvR':_0x137fdc(0x12b),'IawSU':_0x137fdc(0xf0),'TZSyG':_0x137fdc(0x11c),'jOGWT':_0x137fdc(0x133),'ydikB':_0x137fdc(0x134),'xISjb':_0x137fdc(0xef),'AOEfd':_0x137fdc(0x10d),'UjcPr':_0x137fdc(0x116),'gGOoS':_0x137fdc(0xe9),'WwJJV':_0x137fdc(0xfc),'fIfGG':_0x137fdc(0xea),'jyrWM':_0x137fdc(0x132),'TPqol':_0x137fdc(0xf9),'KIUfx':_0x137fdc(0x125),'WtgbC':_0x137fdc(0x101),'jnnLf':_0x137fdc(0xe6)};return async _0x455e45=>{const _0x2b3fa4=_0x137fdc,_0x121cea={};_0x121cea[_0x2b3fa4(0xe4)]=_0x2c0e44[_0x2b3fa4(0x13b)],_0x121cea[_0x2b3fa4(0x137)]=_0x2c0e44[_0x2b3fa4(0x142)],_0x121cea[_0x2b3fa4(0x12c)]=_0x2c0e44[_0x2b3fa4(0x115)];const _0x41cbdf=_0x121cea,_0x466e58=async _0x29e77d=>{const _0xf22c27=_0x2b3fa4,_0xf24b35=_0x2c0e44[_0xf22c27(0x11f)](_0x29e77d[_0xf22c27(0xf5)],_0xf22c27(0xed))?_0x29e77d[_0xf22c27(0x10a)]:_0x29e77d[_0xf22c27(0x118)],_0xfe51d8=_0x2c0e44[_0xf22c27(0x144)](_0x1eba88,_0x29e77d),_0x583b64={..._0xf24b35};_0x583b64['ip']=_0xfe51d8;const _0x1c3a0c=await _0x2c0e44[_0xf22c27(0x105)](verifyUser,_0x583b64,_0x33a916);_0x1c3a0c[_0xf22c27(0xf3)]=await getUserPermissions(_0x1c3a0c['id'],_0x33a916);const _0x331785=_0x1c3a0c[_0xf22c27(0x108)]?_0x33a916[_0xf22c27(0x11b)][_0xf22c27(0xe3)][_0xf22c27(0xe0)]:_0x33a916[_0xf22c27(0x11b)][_0xf22c27(0xe3)][_0xf22c27(0xec)];await _0x29e77d[_0xf22c27(0xdc)](_0x1c3a0c);const _0x55bf2e=_0x2c0e44[_0xf22c27(0xf6)](_0x33a916[_0xf22c27(0x11b)][_0xf22c27(0xe3)][_0xf22c27(0x128)]*0x3e8,0x3c);_0x29e77d[_0xf22c27(0xe7)]?.[_0xf22c27(0x12d)]&&(_0x29e77d[_0xf22c27(0xe7)][_0xf22c27(0x12d)][_0xf22c27(0x10e)]=_0x55bf2e);await _0x29e77d[_0xf22c27(0xe7)][_0xf22c27(0x138)]();const _0x235db9={};_0x235db9[_0xf22c27(0x129)]=_0x2c0e44[_0xf22c27(0x13b)],_0x235db9[_0xf22c27(0x12f)]=_0x2c0e44[_0xf22c27(0x142)],_0x235db9[_0xf22c27(0x12a)]=_0x29e77d[_0xf22c27(0xe7)][_0xf22c27(0x13c)],_0x235db9[_0xf22c27(0x13e)]=_0x2c0e44[_0xf22c27(0xfb)],_0x235db9[_0xf22c27(0x102)]=_0x1c3a0c['id'],_0x235db9[_0xf22c27(0x127)]=_0xfe51d8,await _0x33a916[_0xf22c27(0xf4)]?.[_0xf22c27(0xdb)]?.(_0x235db9);const _0x1dd919={};_0x1dd919['id']=_0x1c3a0c['id'],_0x1dd919[_0xf22c27(0xff)]=_0x1c3a0c[_0xf22c27(0xff)],_0x1dd919[_0xf22c27(0xf3)]=_0x1c3a0c[_0xf22c27(0xf3)];const _0x1ff37c={};return _0x1ff37c[_0xf22c27(0x132)]=_0x1dd919,_0x1ff37c[_0xf22c27(0x114)]=_0x331785,_0x1ff37c;},_0x5a471a={};_0x5a471a[_0x2b3fa4(0x121)]=[_0x2c0e44[_0x2b3fa4(0x104)],_0x2c0e44[_0x2b3fa4(0x13b)]],_0x5a471a[_0x2b3fa4(0x11a)]=_0x2c0e44[_0x2b3fa4(0x119)],_0x5a471a[_0x2b3fa4(0xfd)]=_0x2b3fa4(0x11c),_0x5a471a[_0x2b3fa4(0x10c)]=_0x2c0e44[_0x2b3fa4(0x139)],_0x5a471a[_0x2b3fa4(0xf3)]=[],_0x5a471a[_0x2b3fa4(0xf1)]=authSchemas[_0x2b3fa4(0xf2)];const _0x1ad554={};_0x1ad554[_0x2b3fa4(0xe2)]=_0x5a471a,_0x455e45[_0x2b3fa4(0x107)](_0x2b3fa4(0x112),_0x1ad554,_0x466e58);const _0x4e13f7={};_0x4e13f7[_0x2b3fa4(0x121)]=[_0x2c0e44[_0x2b3fa4(0x104)],_0x2c0e44[_0x2b3fa4(0x13b)]],_0x4e13f7[_0x2b3fa4(0x11a)]=_0x2c0e44[_0x2b3fa4(0x119)],_0x4e13f7[_0x2b3fa4(0xfd)]=_0x2c0e44[_0x2b3fa4(0x141)],_0x4e13f7[_0x2b3fa4(0x10c)]=_0x2c0e44[_0x2b3fa4(0x139)],_0x4e13f7[_0x2b3fa4(0xf3)]=[],_0x4e13f7[_0x2b3fa4(0x118)]=authSchemas[_0x2b3fa4(0xf2)];const _0x2b53bd={};_0x2b53bd[_0x2b3fa4(0xe2)]=_0x4e13f7,_0x455e45[_0x2b3fa4(0x109)](_0x2b3fa4(0x112),_0x2b53bd,_0x466e58),_0x455e45[_0x2b3fa4(0x109)](_0x2c0e44[_0x2b3fa4(0xfe)],{'schema':{'tags':[_0x2c0e44[_0x2b3fa4(0x104)],_0x2c0e44[_0x2b3fa4(0x13b)]],'summary':_0x2c0e44[_0x2b3fa4(0xfa)],'description':_0x2c0e44[_0x2b3fa4(0x122)],'access':_0x2c0e44[_0x2b3fa4(0x140)],'permissions':[_0x2c0e44[_0x2b3fa4(0xeb)]],'body':authSchemas[_0x2b3fa4(0xf2)]}},async _0xa33336=>_0x95d895(_0xa33336[_0x2b3fa4(0x118)],_0x33a916)),_0x455e45[_0x2b3fa4(0x109)](_0x2c0e44[_0x2b3fa4(0xdf)],{'schema':{'tags':[_0x2c0e44[_0x2b3fa4(0x104)],_0x2b3fa4(0xe3)],'summary':_0x2c0e44[_0x2b3fa4(0x12e)],'description':_0x2c0e44[_0x2b3fa4(0x131)],'access':_0x2c0e44[_0x2b3fa4(0x143)],'permissions':[],'body':authSchemas[_0x2b3fa4(0x100)]}},async _0x29d56c=>{const _0x1a17de=_0x2b3fa4;if(!_0x29d56c[_0x1a17de(0x132)])throw new UnauthorizedError(_0x1a17de(0x136));const _0x2ac28e={'userId':_0x29d56c[_0x1a17de(0x132)]['id'],..._0x29d56c[_0x1a17de(0x118)]};await _0x140b94(_0x2ac28e,_0x33a916);const _0x4a6586={};return _0x4a6586[_0x1a17de(0x10f)]=!![],_0x4a6586;}),_0x455e45[_0x2b3fa4(0x109)](_0x2c0e44[_0x2b3fa4(0xe1)],{'schema':{'tags':[_0x2c0e44[_0x2b3fa4(0x104)],_0x2b3fa4(0xe3)],'summary':_0x2c0e44[_0x2b3fa4(0x13f)],'description':_0x2c0e44[_0x2b3fa4(0xf8)],'access':_0x2c0e44[_0x2b3fa4(0x143)],'permissions':[]}},async(_0x125f16,_0x4d8184)=>{const _0x511ff4=_0x2b3fa4,_0x2bc4e0={};_0x2bc4e0[_0x511ff4(0x114)]='/';const _0x38cbff=_0x2bc4e0;if(!_0x125f16[_0x511ff4(0x132)])return _0x38cbff;const _0x4a42ab={};_0x4a42ab[_0x511ff4(0x129)]=_0x41cbdf[_0x511ff4(0xe4)],_0x4a42ab[_0x511ff4(0x12f)]=_0x41cbdf[_0x511ff4(0x137)],_0x4a42ab[_0x511ff4(0x12a)]=_0x125f16[_0x511ff4(0xe7)][_0x511ff4(0x13c)],_0x4a42ab[_0x511ff4(0x13e)]=_0x41cbdf[_0x511ff4(0x12c)],_0x4a42ab[_0x511ff4(0x102)]=_0x125f16[_0x511ff4(0x132)]?.['id'],await _0x33a916[_0x511ff4(0xf4)]?.[_0x511ff4(0xdb)]?.(_0x4a42ab),await _0x125f16[_0x511ff4(0xe7)][_0x511ff4(0x103)](),_0x4d8184[_0x511ff4(0x120)](_0x33a916[_0x511ff4(0x11b)][_0x511ff4(0xe3)][_0x511ff4(0x106)]);const _0x416e8e={};return _0x416e8e[_0x511ff4(0x113)]=null,_0x416e8e[_0x511ff4(0x11e)]=![],_0x416e8e[_0x511ff4(0xe8)]=![],Object[_0x511ff4(0x111)](_0x125f16,_0x41cbdf[_0x511ff4(0x137)],_0x416e8e),_0x38cbff;});const _0x1cbd0c={};_0x1cbd0c[_0x2b3fa4(0x121)]=[_0x2b3fa4(0x117),_0x2c0e44[_0x2b3fa4(0x13b)]],_0x1cbd0c[_0x2b3fa4(0x11a)]=_0x2b3fa4(0x123),_0x1cbd0c[_0x2b3fa4(0xfd)]=_0x2c0e44[_0x2b3fa4(0x130)],_0x1cbd0c[_0x2b3fa4(0x10c)]=_0x2c0e44[_0x2b3fa4(0x143)],_0x1cbd0c[_0x2b3fa4(0xf3)]=[];const _0x1f6433={};_0x1f6433[_0x2b3fa4(0xe2)]=_0x1cbd0c,_0x455e45[_0x2b3fa4(0x107)](_0x2b3fa4(0x135),_0x1f6433,async _0x286288=>_0x4fc66b({'user':_0x286288[_0x2b3fa4(0x132)]}));};}
@@ -4,12 +4,18 @@
4
4
  import { Static } from "@sinclair/typebox";
5
5
  export declare const authSchemas: {
6
6
  credentials: import("@sinclair/typebox").TObject<{
7
- login: import("@sinclair/typebox").TString;
7
+ user: import("@sinclair/typebox").TString;
8
8
  password: import("@sinclair/typebox").TString;
9
+ type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
+ }>;
11
+ password: import("@sinclair/typebox").TObject<{
12
+ password: import("@sinclair/typebox").TString;
13
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
14
  }>;
10
15
  twoFactor: import("@sinclair/typebox").TObject<{
11
16
  code: import("@sinclair/typebox").TString;
12
17
  }>;
13
18
  };
14
19
  export type Credentials = Static<typeof authSchemas.credentials>;
20
+ export type Password = Static<typeof authSchemas.password>;
15
21
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAQ,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW;IACtB,WAAW;;;;IAIX,SAAS;;;CAGV,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAQ,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,WAAW;IACtB,WAAW;;;;;IAKX,QAAQ;;;;IAIR,SAAS;;;CAGV,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,WAAW,CAAC,CAAC;AACjE,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC"}
@@ -1 +1 @@
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
+ const _0x239895=_0x149a;function _0x149a(_0x505639,_0x2c6a63){_0x505639=_0x505639-0xe4;const _0x28a494=_0x28a4();let _0x149afb=_0x28a494[_0x505639];return _0x149afb;}(function(_0x3e15f1,_0x2cd316){const _0x4acf40=_0x149a,_0x563896=_0x3e15f1();while(!![]){try{const _0x36e606=-parseInt(_0x4acf40(0xf5))/0x1*(-parseInt(_0x4acf40(0xf2))/0x2)+-parseInt(_0x4acf40(0xee))/0x3*(-parseInt(_0x4acf40(0xf4))/0x4)+parseInt(_0x4acf40(0xea))/0x5*(-parseInt(_0x4acf40(0xe7))/0x6)+parseInt(_0x4acf40(0xec))/0x7*(parseInt(_0x4acf40(0xef))/0x8)+parseInt(_0x4acf40(0xe4))/0x9*(parseInt(_0x4acf40(0xf3))/0xa)+parseInt(_0x4acf40(0xeb))/0xb+parseInt(_0x4acf40(0xe5))/0xc*(-parseInt(_0x4acf40(0xe9))/0xd);if(_0x36e606===_0x2cd316)break;else _0x563896['push'](_0x563896['shift']());}catch(_0x2aa91c){_0x563896['push'](_0x563896['shift']());}}}(_0x28a4,0xf080e));import{Type}from'@sinclair/typebox';const _0x1f584e={};_0x1f584e[_0x239895(0xf0)]=0x1,_0x1f584e[_0x239895(0xed)]=0x64;const _0x48876f={};_0x48876f[_0x239895(0xf0)]=0x1,_0x48876f[_0x239895(0xed)]=0x64;function _0x28a4(){const _0x3fa59f=['20633052bzoRnU','Object','6662010sOymBw','Optional','13ztHWdm','5mkZxYY','12862619aOkYCs','728LdBtDw','maxLength','114wxLEmC','118528OtrXLv','minLength','String','16RTnKiH','2483410xZEIVd','62584MadPSp','32722twbGxJ','9ezpyYh'];_0x28a4=function(){return _0x3fa59f;};return _0x28a4();}const _0x2fdafe={};_0x2fdafe[_0x239895(0xf0)]=0x1,_0x2fdafe[_0x239895(0xed)]=0x64;const _0xe6b7dc={};_0xe6b7dc[_0x239895(0xf0)]=0x1,_0xe6b7dc[_0x239895(0xed)]=0x64;const _0x1eda16={};_0x1eda16[_0x239895(0xf0)]=0x1,_0x1eda16[_0x239895(0xed)]=0x64;const _0x60f2c1={};_0x60f2c1[_0x239895(0xf0)]=0x1;export const authSchemas={'credentials':Type[_0x239895(0xe6)]({'user':Type[_0x239895(0xf1)](_0x1f584e),'password':Type[_0x239895(0xf1)](_0x48876f),'type':Type[_0x239895(0xe8)](Type[_0x239895(0xf1)](_0x2fdafe))}),'password':Type[_0x239895(0xe6)]({'password':Type[_0x239895(0xf1)](_0xe6b7dc),'id':Type[_0x239895(0xe8)](Type[_0x239895(0xf1)](_0x1eda16))}),'twoFactor':Type[_0x239895(0xe6)]({'code':Type[_0x239895(0xf1)](_0x60f2c1)})};
@@ -0,0 +1,9 @@
1
+ import type { ContextDependencies } from "../../../context.js";
2
+ type Params = {
3
+ id?: string;
4
+ password: string;
5
+ userId: string;
6
+ };
7
+ export default function changePassword({ id, password, userId }: Params, { pg }: Pick<ContextDependencies, "pg">): Promise<void>;
8
+ export {};
9
+ //# sourceMappingURL=change-password.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"change-password.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/services/change-password.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,KAAK,MAAM,GAAG;IACV,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAA8B,cAAc,CACxC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAChC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,iBAU1C"}
@@ -0,0 +1 @@
1
+ (function(_0x482bc3,_0x31c2c4){const _0x4366f2=_0x2548,_0x3bbbc7=_0x482bc3();while(!![]){try{const _0x4046e4=-parseInt(_0x4366f2(0x19c))/0x1*(parseInt(_0x4366f2(0x197))/0x2)+parseInt(_0x4366f2(0x1a2))/0x3*(parseInt(_0x4366f2(0x198))/0x4)+parseInt(_0x4366f2(0x196))/0x5*(parseInt(_0x4366f2(0x195))/0x6)+parseInt(_0x4366f2(0x19e))/0x7+-parseInt(_0x4366f2(0x19a))/0x8*(-parseInt(_0x4366f2(0x1a1))/0x9)+-parseInt(_0x4366f2(0x19f))/0xa*(-parseInt(_0x4366f2(0x193))/0xb)+-parseInt(_0x4366f2(0x194))/0xc*(parseInt(_0x4366f2(0x199))/0xd);if(_0x4046e4===_0x31c2c4)break;else _0x3bbbc7['push'](_0x3bbbc7['shift']());}catch(_0x6f7554){_0x3bbbc7['push'](_0x3bbbc7['shift']());}}}(_0x4226,0xc53e9));import{hashPassword}from'../../../plugins/auth/index.js';function _0x2548(_0x1a906e,_0x36f3a7){_0x1a906e=_0x1a906e-0x193;const _0x422665=_0x4226();let _0x2548fb=_0x422665[_0x1a906e];return _0x2548fb;}export default async function changePassword({id:_0x38ee1a,password:_0x30037b,userId:_0x10b103},{pg:_0x529c0f}){const _0x5312c9=_0x2548,_0xac613b={'Kwvvh':function(_0x658b46,_0x3cb9db){return _0x658b46(_0x3cb9db);}},_0x3cbbe5=await _0xac613b[_0x5312c9(0x19b)](hashPassword,_0x30037b);await _0x529c0f[_0x5312c9(0x19d)](_0x5312c9(0x1a0),[_0x3cbbe5,_0x38ee1a||_0x10b103,_0x10b103]);}function _0x4226(){const _0xcf3649=['2831vCFENd','query','6140855ZfEWWE','10adDoEn','UPDATE\x20admin.users\x0a\x20\x20\x20\x20\x20SET\x20password_hash\x20=\x20$1,\x20updated_at\x20=\x20now(),\x20updated_by\x20=\x20$3\x0a\x20\x20\x20\x20\x20WHERE\x20uid\x20=\x20$2','299817XfOtJf','6UUrDbD','16935754xXivRW','108Cfqynl','1314KcfErI','9895GVmtKv','802iPgqch','1304080TCeoBQ','4225013RhGTyw','328HQCEod','Kwvvh'];_0x4226=function(){return _0xcf3649;};return _0x4226();}
@@ -1 +1 @@
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
+ (function(_0x2217fa,_0x43d436){const _0x42f2b2=_0x43dd,_0x400336=_0x2217fa();while(!![]){try{const _0x28bfdc=-parseInt(_0x42f2b2(0xb2))/0x1*(parseInt(_0x42f2b2(0xb6))/0x2)+-parseInt(_0x42f2b2(0xb1))/0x3+-parseInt(_0x42f2b2(0xb0))/0x4+-parseInt(_0x42f2b2(0xb8))/0x5*(-parseInt(_0x42f2b2(0xaf))/0x6)+parseInt(_0x42f2b2(0xb4))/0x7+-parseInt(_0x42f2b2(0xb7))/0x8+-parseInt(_0x42f2b2(0xb3))/0x9*(-parseInt(_0x42f2b2(0xb5))/0xa);if(_0x28bfdc===_0x43d436)break;else _0x400336['push'](_0x400336['shift']());}catch(_0x3e0377){_0x400336['push'](_0x400336['shift']());}}}(_0x3b9f,0xac237));function _0x43dd(_0x4cb175,_0x1537db){_0x4cb175=_0x4cb175-0xae;const _0x3b9fde=_0x3b9f();let _0x43dd2d=_0x3b9fde[_0x4cb175];return _0x43dd2d;}function _0x3b9f(){const _0x3d3e5b=['1385804ipqrAX','3678483exDFuq','8lDrFFU','3435417GupgjM','4999897ccIAWH','40pOZHGQ','140678xjTvsk','4269216DmhwQO','298140eqUzJt','Jivwq','114anAjQn'];_0x3b9f=function(){return _0x3d3e5b;};return _0x3b9f();}import{safeUser}from'../../utils/safe-user.js';export default async function getCurrentUser(_0x1ab24c){const _0x30a225=_0x43dd,_0x403f2f={'Jivwq':function(_0x410af4,_0x5383f9){return _0x410af4(_0x5383f9);}},{user:_0x1d74dc}=_0x1ab24c;return _0x403f2f[_0x30a225(0xae)](safeUser,_0x1d74dc||{});}
@@ -0,0 +1,14 @@
1
+ import type { ContextDependencies } from "../../../context.js";
2
+ type params = {
3
+ user: string;
4
+ password: string;
5
+ type?: string;
6
+ };
7
+ export default function registration({ user, password, type }: params, { pg }: Pick<ContextDependencies, "pg">): Promise<{
8
+ user: {
9
+ id: string;
10
+ type: string;
11
+ };
12
+ }>;
13
+ export {};
14
+ //# sourceMappingURL=registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/services/registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,KAAK,MAAM,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAA8B,YAAY,CACtC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,MAAM,EAChC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC;;YAGH,MAAM;cAAQ,MAAM;;GAc3D"}
@@ -0,0 +1 @@
1
+ (function(_0x496f6b,_0x4d9ed3){const _0x3c78b9=_0x5d4d,_0x15f208=_0x496f6b();while(!![]){try{const _0x5a8417=parseInt(_0x3c78b9(0x166))/0x1+-parseInt(_0x3c78b9(0x16a))/0x2*(parseInt(_0x3c78b9(0x164))/0x3)+parseInt(_0x3c78b9(0x165))/0x4+parseInt(_0x3c78b9(0x161))/0x5*(parseInt(_0x3c78b9(0x16e))/0x6)+parseInt(_0x3c78b9(0x160))/0x7*(-parseInt(_0x3c78b9(0x16d))/0x8)+parseInt(_0x3c78b9(0x169))/0x9+-parseInt(_0x3c78b9(0x15f))/0xa;if(_0x5a8417===_0x4d9ed3)break;else _0x15f208['push'](_0x15f208['shift']());}catch(_0x13942f){_0x15f208['push'](_0x15f208['shift']());}}}(_0x59d6,0x274ba));function _0x59d6(){const _0x238282=['2292jvQRok','regular','Login\x20is\x20already\x20in\x20use','query','2877300oRgmMd','63FPrsOn','3930dwCEkp','user','INSERT\x20INTO\x20admin.users\x20(login,\x20password_hash,\x20user_type)\x0a\x20\x20\x20\x20\x20SELECT\x20$1,\x20$2,\x20$3\x0a\x20\x20\x20\x20\x20WHERE\x20NOT\x20EXISTS\x20(SELECT\x201\x20FROM\x20admin.users\x20WHERE\x20login\x20=\x20$1)\x0a\x20\x20\x20\x20\x20RETURNING\x20uid\x20AS\x20id,\x20user_type\x20AS\x20type','6wMUGvt','854284sQkOPl','207725SfVCAo','MoLuV','lpPsC','1137204upkWHk','264526Yfycqs','rows','FfoiX','119728uDAkXb'];_0x59d6=function(){return _0x238282;};return _0x59d6();}import{ConflictError}from'../../../errors.js';import{hashPassword}from'../../../plugins/auth/index.js';function _0x5d4d(_0x2f3ace,_0x298d1b){_0x2f3ace=_0x2f3ace-0x15d;const _0x59d6f2=_0x59d6();let _0x5d4d15=_0x59d6f2[_0x2f3ace];return _0x5d4d15;}export default async function registration({user:_0x55a2d2,password:_0x33c6b8,type:_0x2dc8d6},{pg:_0xee769}){const _0xc526ca=_0x5d4d,_0x5f52d2={'FfoiX':function(_0x16935f,_0x4a3627){return _0x16935f(_0x4a3627);},'MoLuV':function(_0x3e72c4,_0x3df045){return _0x3e72c4||_0x3df045;},'lpPsC':_0xc526ca(0x16f)},_0x56a85c=await _0x5f52d2[_0xc526ca(0x16c)](hashPassword,_0x33c6b8),_0x277916=await _0xee769[_0xc526ca(0x15e)](_0xc526ca(0x163),[_0x55a2d2,_0x56a85c,_0x5f52d2[_0xc526ca(0x167)](_0x2dc8d6,_0x5f52d2[_0xc526ca(0x168)])]),_0x3ea724=_0x277916[_0xc526ca(0x16b)][0x0];if(!_0x3ea724)throw new ConflictError(_0xc526ca(0x15d));const _0x1c30ba={};return _0x1c30ba[_0xc526ca(0x162)]=_0x3ea724,_0x1c30ba;}
@@ -1 +1 @@
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
+ function _0x23c1(){var _0x10ca6e=['300yPCDNJ','1226454jWKqXq','2150TMAnax','22sRklbk','17060NUyDCu','112870cWgNtF','2368328jQJNmN','Two-factor\x20provider','240822vlDSjh','90nVAaRA','20ywHNLw','5206200rqziDp','7XgcxTM','RZAMj'];_0x23c1=function(){return _0x10ca6e;};return _0x23c1();}(function(_0x5a25c6,_0x4dc84d){var _0x173e94=_0x1ca2,_0x260704=_0x5a25c6();while(!![]){try{var _0x4375b7=-parseInt(_0x173e94(0x95))/0x1*(-parseInt(_0x173e94(0xa1))/0x2)+parseInt(_0x173e94(0x9b))/0x3+parseInt(_0x173e94(0x9d))/0x4*(parseInt(_0x173e94(0x98))/0x5)+parseInt(_0x173e94(0x94))/0x6+parseInt(_0x173e94(0x9f))/0x7*(parseInt(_0x173e94(0x99))/0x8)+-parseInt(_0x173e94(0x9c))/0x9*(-parseInt(_0x173e94(0x97))/0xa)+parseInt(_0x173e94(0x96))/0xb*(-parseInt(_0x173e94(0x9e))/0xc);if(_0x4375b7===_0x4dc84d)break;else _0x260704['push'](_0x260704['shift']());}catch(_0x59738){_0x260704['push'](_0x260704['shift']());}}}(_0x23c1,0x2864e));function _0x1ca2(_0x5f2f14,_0x519d00){_0x5f2f14=_0x5f2f14-0x94;var _0x23c1ea=_0x23c1();var _0x1ca264=_0x23c1ea[_0x5f2f14];return _0x1ca264;}import{unsupported}from'../../utils/unsupported.js';export default async function verifyTwoFactor(_0x20718d,_0x57e57e){var _0x4cc31e=_0x1ca2,_0x479c08={'RZAMj':function(_0x44b1ec,_0x25f435){return _0x44b1ec(_0x25f435);}};return _0x479c08[_0x4cc31e(0xa0)](unsupported,_0x4cc31e(0x9a));}
@@ -1 +1 @@
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));};}
1
+ (function(_0x599993,_0x5b472b){var _0x19c4af=_0x5f49,_0xf4c081=_0x599993();while(!![]){try{var _0x5082cb=-parseInt(_0x19c4af(0x19a))/0x1*(-parseInt(_0x19c4af(0x1ad))/0x2)+parseInt(_0x19c4af(0x1a8))/0x3+parseInt(_0x19c4af(0x1c2))/0x4+-parseInt(_0x19c4af(0x1b3))/0x5+parseInt(_0x19c4af(0x1ba))/0x6*(-parseInt(_0x19c4af(0x192))/0x7)+parseInt(_0x19c4af(0x1be))/0x8+parseInt(_0x19c4af(0x1aa))/0x9*(parseInt(_0x19c4af(0x19f))/0xa);if(_0x5082cb===_0x5b472b)break;else _0xf4c081['push'](_0xf4c081['shift']());}catch(_0x55eff3){_0xf4c081['push'](_0xf4c081['shift']());}}}(_0x1143,0x9d9ca));function _0x1143(){var _0xdb82ce=['verify','files:create','138523jbDnEH','CMqRw','/api/file/:token','NuiRh','user','send','access','tags','283496GOSbDZ','summary','public','params','upload','10mSgbFH','qepjs','fileToken','blNRW','query','get','/api/file/upload','tgkev','schema','197262GMPrWV','resizeQuery','6720417zxUaqF','Get\x20file\x20by\x20token','description','2SKPBIU','Uploads\x20a\x20file\x20and\x20stores\x20its\x20metadata.','post','/api/file/:token/resize','permissions','querystring','4697525uZBKJO','PJWeR','Returns\x20a\x20resized\x20image\x20file.','KoNLG','Returns\x20a\x20file\x20after\x20verifying\x20its\x20signed\x20access\x20token.','body','Upload\x20file','138GvltRO','files:read','MhtID','tuWYT','5107432GyCqxS','token','fcore','file','1223352GtbcjI','Resize\x20file','sYark','ovBiP'];_0x1143=function(){return _0xdb82ce;};return _0x1143();}function _0x5f49(_0x30466,_0x43d974){_0x30466=_0x30466-0x191;var _0x114363=_0x1143();var _0x5f490d=_0x114363[_0x30466];return _0x5f490d;}import{uploadFile}from'./services/upload-file.js';import{resizeFile}from'./services/resize-file.js';import{fileSchemas}from'./schema.js';export function fileRoutes(_0x4497b2){var _0x531051=_0x5f49,_0x49c40d={};_0x49c40d[_0x531051(0x1bc)]=_0x531051(0x1c0),_0x49c40d[_0x531051(0x1a2)]=_0x531051(0x1c1),_0x49c40d[_0x531051(0x1b4)]=_0x531051(0x1b7),_0x49c40d[_0x531051(0x1a0)]=_0x531051(0x19c),_0x49c40d[_0x531051(0x1a6)]=_0x531051(0x1a5),_0x49c40d[_0x531051(0x193)]=_0x531051(0x1b9),_0x49c40d[_0x531051(0x1c4)]=_0x531051(0x1ae),_0x49c40d[_0x531051(0x195)]=_0x531051(0x196),_0x49c40d[_0x531051(0x1b6)]=_0x531051(0x191),_0x49c40d[_0x531051(0x1c5)]=_0x531051(0x1c3),_0x49c40d[_0x531051(0x1bd)]=_0x531051(0x1b5);var _0x5a2867=_0x49c40d;return async _0x1f34ad=>{var _0x14ff1a=_0x531051,_0x37ad88={};_0x37ad88[_0x14ff1a(0x199)]=[_0x5a2867[_0x14ff1a(0x1bc)],_0x5a2867[_0x14ff1a(0x1a2)]],_0x37ad88[_0x14ff1a(0x19b)]=_0x14ff1a(0x1ab),_0x37ad88[_0x14ff1a(0x1ac)]=_0x5a2867[_0x14ff1a(0x1b4)],_0x37ad88[_0x14ff1a(0x198)]=_0x5a2867[_0x14ff1a(0x1a0)],_0x37ad88[_0x14ff1a(0x1b1)]=[],_0x37ad88[_0x14ff1a(0x19d)]=fileSchemas[_0x14ff1a(0x1a1)];var _0x26c5d7={};_0x26c5d7[_0x14ff1a(0x1a7)]=_0x37ad88,_0x1f34ad[_0x14ff1a(0x1a4)](_0x14ff1a(0x194),_0x26c5d7,async(_0x30ae71,_0x556b8c)=>_0x556b8c[_0x14ff1a(0x197)](await _0x4497b2[_0x14ff1a(0x1c1)]?.[_0x14ff1a(0x1a4)](_0x4497b2[_0x14ff1a(0x1c1)][_0x14ff1a(0x1c6)](_0x30ae71[_0x14ff1a(0x19d)][_0x14ff1a(0x1bf)])['p']))),_0x1f34ad[_0x14ff1a(0x1af)](_0x5a2867[_0x14ff1a(0x1a6)],{'schema':{'tags':[_0x5a2867[_0x14ff1a(0x1bc)],_0x14ff1a(0x1c1)],'summary':_0x5a2867[_0x14ff1a(0x193)],'description':_0x5a2867[_0x14ff1a(0x1c4)],'access':_0x5a2867[_0x14ff1a(0x195)],'permissions':[_0x5a2867[_0x14ff1a(0x1b6)]],'body':fileSchemas[_0x14ff1a(0x19e)]}},async _0x7c580f=>uploadFile(_0x7c580f[_0x14ff1a(0x1b8)],_0x4497b2));var _0x28d06b={};_0x28d06b[_0x14ff1a(0x199)]=[_0x14ff1a(0x1c0),_0x5a2867[_0x14ff1a(0x1a2)]],_0x28d06b[_0x14ff1a(0x19b)]=_0x5a2867[_0x14ff1a(0x1c5)],_0x28d06b[_0x14ff1a(0x1ac)]=_0x5a2867[_0x14ff1a(0x1bd)],_0x28d06b[_0x14ff1a(0x198)]=_0x5a2867[_0x14ff1a(0x195)],_0x28d06b[_0x14ff1a(0x1b1)]=[_0x14ff1a(0x1bb)],_0x28d06b[_0x14ff1a(0x19d)]=fileSchemas[_0x14ff1a(0x1a1)],_0x28d06b[_0x14ff1a(0x1b2)]=fileSchemas[_0x14ff1a(0x1a9)];var _0x4e17b2={};_0x4e17b2[_0x14ff1a(0x1a7)]=_0x28d06b,_0x1f34ad[_0x14ff1a(0x1a4)](_0x14ff1a(0x1b0),_0x4e17b2,async _0x104ad9=>resizeFile({'pathOrToken':_0x4497b2[_0x14ff1a(0x1c1)]?.[_0x14ff1a(0x1c6)](_0x104ad9[_0x14ff1a(0x19d)][_0x14ff1a(0x1bf)])['p'],..._0x104ad9[_0x14ff1a(0x1a3)]},_0x4497b2));};}
@@ -1 +1 @@
1
- const _0x17e4da=_0x31ba;(function(_0x1a80b0,_0x4557b9){const _0x5e9b70=_0x31ba,_0x3f5898=_0x1a80b0();while(!![]){try{const _0x544555=parseInt(_0x5e9b70(0x201))/0x1+-parseInt(_0x5e9b70(0x1f7))/0x2+-parseInt(_0x5e9b70(0x1f8))/0x3+parseInt(_0x5e9b70(0x1f5))/0x4+parseInt(_0x5e9b70(0x1fc))/0x5+parseInt(_0x5e9b70(0x1fb))/0x6+-parseInt(_0x5e9b70(0x202))/0x7;if(_0x544555===_0x4557b9)break;else _0x3f5898['push'](_0x3f5898['shift']());}catch(_0x411664){_0x3f5898['push'](_0x3f5898['shift']());}}}(_0x19e7,0x30164));import{Type}from'@sinclair/typebox';const _0x33ab16={};_0x33ab16[_0x17e4da(0x1ef)]=0x1,_0x33ab16[_0x17e4da(0x1fa)]=0x80;const _0x973db5={};_0x973db5[_0x17e4da(0x1ef)]=0x1,_0x973db5[_0x17e4da(0x1fa)]=0x800;const _0x530af9={};_0x530af9[_0x17e4da(0x1ef)]=0x1,_0x530af9[_0x17e4da(0x1fa)]=0x400;const _0x595354={};_0x595354[_0x17e4da(0x1ef)]=0x1;const _0x2f8c71={};_0x2f8c71[_0x17e4da(0x1ef)]=0x1;const _0x27b4b6={};_0x27b4b6[_0x17e4da(0x1ef)]=0x1;const _0x5df695={};_0x5df695[_0x17e4da(0x1ef)]=0x1;const _0x5837fa={};function _0x31ba(_0x16bcaf,_0x298f0f){_0x16bcaf=_0x16bcaf-0x1ed;const _0x19e7fd=_0x19e7();let _0x31ba5e=_0x19e7fd[_0x16bcaf];return _0x31ba5e;}_0x5837fa[_0x17e4da(0x1ef)]=0x1;const _0x5137cf={};_0x5137cf[_0x17e4da(0x1ef)]=0x1;const _0x503c47={};_0x503c47[_0x17e4da(0x1fd)]=0x1;const _0x509e8b={};_0x509e8b[_0x17e4da(0x1fd)]=0x1;function _0x19e7(){const _0x103084=['minLength','Any','fill','inside','contain','Literal','757468xwvboN','String','669096JPMTVT','549810UAWTRr','outside','maxLength','1363650UlvGtr','1766885DgoVUg','minimum','Optional','Integer','Union','283146PpPLHg','2368681xnEEdh','Object','cover'];_0x19e7=function(){return _0x103084;};return _0x19e7();}export const fileSchemas={'fileId':Type[_0x17e4da(0x1ed)]({'id':Type[_0x17e4da(0x1f6)](_0x33ab16)}),'fileToken':Type[_0x17e4da(0x1ed)]({'token':Type[_0x17e4da(0x1f6)](_0x973db5)}),'filePath':Type[_0x17e4da(0x1ed)]({'*':Type[_0x17e4da(0x1f6)](_0x530af9)}),'upload':Type[_0x17e4da(0x1ed)]({'file':Type[_0x17e4da(0x1f0)](),'metadata':Type[_0x17e4da(0x1ed)]({'name':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x595354)),'path':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x2f8c71)),'entityType':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x27b4b6)),'entityId':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x5df695))})}),'filePatch':Type[_0x17e4da(0x1ed)]({'entityType':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x5837fa)),'entityId':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x5137cf))}),'resizeQuery':Type[_0x17e4da(0x1ed)]({'width':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1ff)](_0x503c47)),'height':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1ff)](_0x509e8b)),'fit':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x200)]([Type[_0x17e4da(0x1f4)](_0x17e4da(0x1ee)),Type[_0x17e4da(0x1f4)](_0x17e4da(0x1f3)),Type[_0x17e4da(0x1f4)](_0x17e4da(0x1f1)),Type[_0x17e4da(0x1f4)](_0x17e4da(0x1f2)),Type[_0x17e4da(0x1f4)](_0x17e4da(0x1f9))]))})};
1
+ function _0x2a2b(_0x5d3e73,_0x4ac655){_0x5d3e73=_0x5d3e73-0x8f;const _0x220b20=_0x220b();let _0x2a2b61=_0x220b20[_0x5d3e73];return _0x2a2b61;}const _0x2f5f7e=_0x2a2b;(function(_0x5af5ee,_0x11ea20){const _0x374ac9=_0x2a2b,_0x28f52b=_0x5af5ee();while(!![]){try{const _0x509986=parseInt(_0x374ac9(0x91))/0x1*(-parseInt(_0x374ac9(0x9f))/0x2)+-parseInt(_0x374ac9(0x97))/0x3*(parseInt(_0x374ac9(0xa2))/0x4)+-parseInt(_0x374ac9(0x93))/0x5+parseInt(_0x374ac9(0x96))/0x6+parseInt(_0x374ac9(0xa7))/0x7*(parseInt(_0x374ac9(0x98))/0x8)+-parseInt(_0x374ac9(0xa4))/0x9+parseInt(_0x374ac9(0x99))/0xa;if(_0x509986===_0x11ea20)break;else _0x28f52b['push'](_0x28f52b['shift']());}catch(_0x4dc6f4){_0x28f52b['push'](_0x28f52b['shift']());}}}(_0x220b,0x31f66));import{Type}from'@sinclair/typebox';const _0x512a9d={};_0x512a9d[_0x2f5f7e(0x9e)]=0x1,_0x512a9d[_0x2f5f7e(0xa1)]=0x80;const _0x2905e6={};_0x2905e6[_0x2f5f7e(0x9e)]=0x1,_0x2905e6[_0x2f5f7e(0xa1)]=0x800;const _0x4114e7={};_0x4114e7[_0x2f5f7e(0x9e)]=0x1,_0x4114e7[_0x2f5f7e(0xa1)]=0x400;const _0x29f79f={};_0x29f79f[_0x2f5f7e(0x9e)]=0x1;const _0x103058={};_0x103058[_0x2f5f7e(0x9e)]=0x1;const _0x5b10b7={};_0x5b10b7[_0x2f5f7e(0x9e)]=0x1;const _0x155351={};_0x155351[_0x2f5f7e(0x9e)]=0x1;const _0x31797a={};_0x31797a[_0x2f5f7e(0x9e)]=0x1;const _0x48711b={};function _0x220b(){const _0x8f055b=['Literal','maxLength','87092YfHppQ','cover','3139686qxfqHB','contain','fill','1311338rQCSBk','Any','inside','149DuJmFC','Optional','940580mamkVF','Integer','outside','6396PXWbuZ','15TqTrWK','8HEmGnF','7334520wGezai','Union','Object','minimum','String','minLength','958dCtnmg'];_0x220b=function(){return _0x8f055b;};return _0x220b();}_0x48711b[_0x2f5f7e(0x9e)]=0x1;const _0x267d0e={};_0x267d0e[_0x2f5f7e(0x9c)]=0x1;const _0x16e3b4={};_0x16e3b4[_0x2f5f7e(0x9c)]=0x1;export const fileSchemas={'fileId':Type[_0x2f5f7e(0x9b)]({'id':Type[_0x2f5f7e(0x9d)](_0x512a9d)}),'fileToken':Type[_0x2f5f7e(0x9b)]({'token':Type[_0x2f5f7e(0x9d)](_0x2905e6)}),'filePath':Type[_0x2f5f7e(0x9b)]({'*':Type[_0x2f5f7e(0x9d)](_0x4114e7)}),'upload':Type[_0x2f5f7e(0x9b)]({'file':Type[_0x2f5f7e(0x8f)](),'metadata':Type[_0x2f5f7e(0x9b)]({'name':Type[_0x2f5f7e(0x92)](Type[_0x2f5f7e(0x9d)](_0x29f79f)),'path':Type[_0x2f5f7e(0x92)](Type[_0x2f5f7e(0x9d)](_0x103058)),'entityType':Type[_0x2f5f7e(0x92)](Type[_0x2f5f7e(0x9d)](_0x5b10b7)),'entityId':Type[_0x2f5f7e(0x92)](Type[_0x2f5f7e(0x9d)](_0x155351))})}),'filePatch':Type[_0x2f5f7e(0x9b)]({'entityType':Type[_0x2f5f7e(0x92)](Type[_0x2f5f7e(0x9d)](_0x31797a)),'entityId':Type[_0x2f5f7e(0x92)](Type[_0x2f5f7e(0x9d)](_0x48711b))}),'resizeQuery':Type[_0x2f5f7e(0x9b)]({'width':Type[_0x2f5f7e(0x92)](Type[_0x2f5f7e(0x94)](_0x267d0e)),'height':Type[_0x2f5f7e(0x92)](Type[_0x2f5f7e(0x94)](_0x16e3b4)),'fit':Type[_0x2f5f7e(0x92)](Type[_0x2f5f7e(0x9a)]([Type[_0x2f5f7e(0xa0)](_0x2f5f7e(0xa3)),Type[_0x2f5f7e(0xa0)](_0x2f5f7e(0xa5)),Type[_0x2f5f7e(0xa0)](_0x2f5f7e(0xa6)),Type[_0x2f5f7e(0xa0)](_0x2f5f7e(0x90)),Type[_0x2f5f7e(0xa0)](_0x2f5f7e(0x95))]))})};
@@ -1 +1 @@
1
- (function(_0x874c84,_0x1bee1d){var _0x1083b9=_0x1bf6,_0x59af7a=_0x874c84();while(!![]){try{var _0x196e32=parseInt(_0x1083b9(0x13f))/0x1+-parseInt(_0x1083b9(0x141))/0x2+-parseInt(_0x1083b9(0x144))/0x3*(-parseInt(_0x1083b9(0x138))/0x4)+-parseInt(_0x1083b9(0x13e))/0x5*(-parseInt(_0x1083b9(0x140))/0x6)+-parseInt(_0x1083b9(0x142))/0x7+parseInt(_0x1083b9(0x149))/0x8*(parseInt(_0x1083b9(0x13b))/0x9)+-parseInt(_0x1083b9(0x146))/0xa*(parseInt(_0x1083b9(0x13d))/0xb);if(_0x196e32===_0x1bee1d)break;else _0x59af7a['push'](_0x59af7a['shift']());}catch(_0x5947de){_0x59af7a['push'](_0x59af7a['shift']());}}}(_0x3dd5,0x2359a));import{NotFoundError}from'../../../errors.js';export async function getFile(_0x1f0b69,_0x35d64b){var _0x3f12ef=_0x1bf6,_0x469bdc={};_0x469bdc[_0x3f12ef(0x139)]=_0x3f12ef(0x14a),_0x469bdc[_0x3f12ef(0x13a)]=_0x3f12ef(0x13c);var _0x4fe041=_0x469bdc;if(!_0x35d64b[_0x3f12ef(0x145)])throw new Error(_0x4fe041[_0x3f12ef(0x139)]);if(!await _0x35d64b[_0x3f12ef(0x145)][_0x3f12ef(0x143)](_0x1f0b69[_0x3f12ef(0x148)]))throw new NotFoundError(_0x4fe041[_0x3f12ef(0x13a)]);return _0x35d64b[_0x3f12ef(0x145)][_0x3f12ef(0x147)](_0x1f0b69[_0x3f12ef(0x148)]);}function _0x1bf6(_0x52f74a,_0x334342){_0x52f74a=_0x52f74a-0x138;var _0x3dd500=_0x3dd5();var _0x1bf6bb=_0x3dd500[_0x52f74a];return _0x1bf6bb;}function _0x3dd5(){var _0x325ba5=['2128GPxRjw','empty\x20file','192420xEEaeQ','ujWjo','STtOd','2916mAfgqa','File\x20not\x20found','11sHMEbT','12605leOJSA','192179gRrBbC','318ONdRnt','18396YGEYNt','230818dYdnEI','exists','18OURVwj','file','5136400QFrMUe','get','pathOrToken'];_0x3dd5=function(){return _0x325ba5;};return _0x3dd5();}
1
+ function _0x24a8(_0xe36b00,_0x567148){_0xe36b00=_0xe36b00-0xbe;var _0xfaeb77=_0xfaeb();var _0x24a8e8=_0xfaeb77[_0xe36b00];return _0x24a8e8;}function _0xfaeb(){var _0x3bde83=['IYCam','447180AeKKBa','728064yENxdD','exists','321zVLzOD','file','get','5160281TiApBD','28136SuzbOu','198EaXyVz','30644LqUEIa','empty\x20file','File\x20not\x20found','252jhLHus','41860qoWOUy','ggMyR','pathOrToken','657618tkVqEH'];_0xfaeb=function(){return _0x3bde83;};return _0xfaeb();}(function(_0x2af723,_0x47e6c7){var _0x3150f5=_0x24a8,_0x1bc2a2=_0x2af723();while(!![]){try{var _0x5263c4=parseInt(_0x3150f5(0xc8))/0x1+parseInt(_0x3150f5(0xc5))/0x2+-parseInt(_0x3150f5(0xca))/0x3*(parseInt(_0x3150f5(0xbe))/0x4)+parseInt(_0x3150f5(0xc2))/0x5*(-parseInt(_0x3150f5(0xcf))/0x6)+parseInt(_0x3150f5(0xcd))/0x7+parseInt(_0x3150f5(0xce))/0x8*(-parseInt(_0x3150f5(0xc1))/0x9)+parseInt(_0x3150f5(0xc7))/0xa;if(_0x5263c4===_0x47e6c7)break;else _0x1bc2a2['push'](_0x1bc2a2['shift']());}catch(_0x1ef68f){_0x1bc2a2['push'](_0x1bc2a2['shift']());}}}(_0xfaeb,0x9d4c7));import{NotFoundError}from'../../../errors.js';export async function getFile(_0x25b5df,_0x314c27){var _0x49b9c3=_0x24a8,_0x38a42d={};_0x38a42d[_0x49b9c3(0xc6)]=_0x49b9c3(0xbf),_0x38a42d[_0x49b9c3(0xc3)]=_0x49b9c3(0xc0);var _0x392dda=_0x38a42d;if(!_0x314c27[_0x49b9c3(0xcb)])throw new Error(_0x392dda[_0x49b9c3(0xc6)]);if(!await _0x314c27[_0x49b9c3(0xcb)][_0x49b9c3(0xc9)](_0x25b5df[_0x49b9c3(0xc4)]))throw new NotFoundError(_0x392dda[_0x49b9c3(0xc3)]);return _0x314c27[_0x49b9c3(0xcb)][_0x49b9c3(0xcc)](_0x25b5df[_0x49b9c3(0xc4)]);}
@@ -1 +1 @@
1
- function _0x337a(_0x27d661,_0x5da77e){_0x27d661=_0x27d661-0x93;const _0x58046c=_0x5804();let _0x337aee=_0x58046c[_0x27d661];return _0x337aee;}(function(_0x20e1b2,_0x247ded){const _0x270f3a=_0x337a,_0x266981=_0x20e1b2();while(!![]){try{const _0x48e8b9=parseInt(_0x270f3a(0x99))/0x1*(-parseInt(_0x270f3a(0xba))/0x2)+parseInt(_0x270f3a(0x9d))/0x3*(parseInt(_0x270f3a(0xa2))/0x4)+-parseInt(_0x270f3a(0xb2))/0x5+parseInt(_0x270f3a(0xbc))/0x6*(-parseInt(_0x270f3a(0xbe))/0x7)+-parseInt(_0x270f3a(0xa7))/0x8*(parseInt(_0x270f3a(0xbd))/0x9)+-parseInt(_0x270f3a(0x9c))/0xa+-parseInt(_0x270f3a(0x9b))/0xb*(-parseInt(_0x270f3a(0x98))/0xc);if(_0x48e8b9===_0x247ded)break;else _0x266981['push'](_0x266981['shift']());}catch(_0x452742){_0x266981['push'](_0x266981['shift']());}}}(_0x5804,0x8ea41));import{NotFoundError,ValidationError}from'../../../errors.js';import _0xc3a691 from'sharp';function _0x5804(){const _0x46cb2d=['htiRv','get','isInteger','zpBlg','PhCdr','nunSi','Width\x20or\x20height\x20is\x20required','5481165Yhlujm','cover','JvXTD','toBuffer','OiUcF','UCgDI','JTpeT','exists','24WpNcrw','PLemv','6186fHRCQA','987876eehmYx','3409ZElsPc','width','nvGDS','pathOrToken','\x20must\x20be\x20a\x20positive\x20integer','file','192SLhpnw','54421pLYPea','height','2236839AShsfe','7899180IbJFXK','273cRtXit','eGzIA','File\x20path\x20is\x20required','pJtMr','fit','50124gmrErz','CftAi','File\x20not\x20found','resize','mgNcq','56yijIlI','path','empty\x20file','tzgRa'];_0x5804=function(){return _0x46cb2d;};return _0x5804();}export async function resizeFile(_0x560168,_0x6fb329){const _0x19c469=_0x337a,_0x406a69={'PhCdr':_0x19c469(0xa9),'eGzIA':_0x19c469(0x9f),'nunSi':function(_0x25f573,_0x14da1d,_0x4c4b9f){return _0x25f573(_0x14da1d,_0x4c4b9f);},'JvXTD':_0x19c469(0x93),'OiUcF':_0x19c469(0x9a),'mgNcq':_0x19c469(0xb1),'PLemv':function(_0x25254c,_0x3c5418){return _0x25254c!==_0x3c5418;},'tzgRa':_0x19c469(0xb8),'UCgDI':_0x19c469(0xa4),'nvGDS':function(_0x4799da,_0x137dfe){return _0x4799da(_0x137dfe);}};if(!_0x6fb329[_0x19c469(0x97)])throw new Error(_0x406a69[_0x19c469(0xaf)]);const _0x172835=_0x560168[_0x19c469(0x95)]??_0x560168[_0x19c469(0xa8)];if(!_0x172835)throw new ValidationError(_0x406a69[_0x19c469(0x9e)]);const _0x47e00d=_0x406a69[_0x19c469(0xb0)](parseDimension,_0x560168[_0x19c469(0x93)],_0x406a69[_0x19c469(0xb4)]),_0x2cc90e=parseDimension(_0x560168[_0x19c469(0x9a)],_0x406a69[_0x19c469(0xb6)]);if(!_0x47e00d&&!_0x2cc90e)throw new ValidationError(_0x406a69[_0x19c469(0xa6)]);if(!await _0x6fb329[_0x19c469(0x97)][_0x19c469(0xb9)](_0x172835)){if(_0x406a69[_0x19c469(0xbb)](_0x406a69[_0x19c469(0xaa)],_0x406a69[_0x19c469(0xaa)]))throw new _0xe9bc7(_0x406a69[_0x19c469(0xaf)]);else throw new NotFoundError(_0x406a69[_0x19c469(0xb7)]);}const _0x58503c={};return _0x58503c[_0x19c469(0x93)]=_0x47e00d,_0x58503c[_0x19c469(0x9a)]=_0x2cc90e,_0x58503c[_0x19c469(0xa1)]=_0x560168[_0x19c469(0xa1)]??_0x19c469(0xb3),_0x406a69[_0x19c469(0x94)](_0xc3a691,await _0x6fb329[_0x19c469(0x97)][_0x19c469(0xac)](_0x172835))[_0x19c469(0xa5)](_0x58503c)[_0x19c469(0xb5)]();}function parseDimension(_0x36637b,_0x4dfcb0){const _0x5322d4=_0x337a,_0x22ed28={};_0x22ed28[_0x5322d4(0xa3)]=function(_0x3dbb69,_0x2316d1){return _0x3dbb69===_0x2316d1;};const _0x4efd2f=_0x22ed28;if(_0x4efd2f[_0x5322d4(0xa3)](_0x36637b,undefined)||_0x36637b===''){if(_0x5322d4(0xa0)!==_0x5322d4(0xae))return undefined;else throw new _0x531f99(_0x5322d4(0x9f));}const _0x362b58=Number(_0x36637b);if(!Number[_0x5322d4(0xad)](_0x362b58)||_0x362b58<=0x0){if(_0x4efd2f[_0x5322d4(0xa3)](_0x5322d4(0xab),_0x5322d4(0xab)))throw new ValidationError(_0x4dfcb0+_0x5322d4(0x96));else return _0x2f16ae;}return _0x362b58;}
1
+ (function(_0xbd1d4f,_0x173d81){const _0xa13d9=_0x4078,_0x471110=_0xbd1d4f();while(!![]){try{const _0x32a826=-parseInt(_0xa13d9(0x173))/0x1+-parseInt(_0xa13d9(0x16f))/0x2*(parseInt(_0xa13d9(0x176))/0x3)+parseInt(_0xa13d9(0x184))/0x4*(-parseInt(_0xa13d9(0x190))/0x5)+parseInt(_0xa13d9(0x177))/0x6+parseInt(_0xa13d9(0x199))/0x7*(-parseInt(_0xa13d9(0x17a))/0x8)+parseInt(_0xa13d9(0x187))/0x9+parseInt(_0xa13d9(0x185))/0xa;if(_0x32a826===_0x173d81)break;else _0x471110['push'](_0x471110['shift']());}catch(_0x483753){_0x471110['push'](_0x471110['shift']());}}}(_0x33a4,0x7378d));function _0x4078(_0x26cc28,_0xa598b6){_0x26cc28=_0x26cc28-0x16a;const _0x33a42a=_0x33a4();let _0x407894=_0x33a42a[_0x26cc28];return _0x407894;}import{NotFoundError,ValidationError}from'../../../errors.js';import _0x3ee195 from'sharp';function _0x33a4(){const _0x589c86=['70248wFLuhZ','1268982RWYApB','fit','btybo','2604464bUwNKW','KesIp','Ftorr','wBvSI','vYJKH','bFECH','pathOrToken','mhDFw','oofHq','isInteger','28mnkOkj','19597710vnKlic','sdpiL','6046389lRJjBs','BncMB','NoBZD','JDyyn','empty\x20file','iXvYI','lDKlf','get','File\x20path\x20is\x20required','287710lfGLWQ','File\x20not\x20found','exists','toBuffer','cover','wGONR','WITzh','path','MXuNn','14FBAqTN','vYQBA','resize','ZLKFx','UrnrP','pNXBX','file','height','74wPxPOP','Width\x20or\x20height\x20is\x20required','yLGSH','hdOxV','449814UQDLeQ','width','\x20must\x20be\x20a\x20positive\x20integer'];_0x33a4=function(){return _0x589c86;};return _0x33a4();}export async function resizeFile(_0x2d203b,_0x51b914){const _0x346d46=_0x4078,_0x1e8243={'iXvYI':_0x346d46(0x170),'NoBZD':function(_0x6da210,_0x312bd6){return _0x6da210===_0x312bd6;},'UrnrP':_0x346d46(0x181),'vYQBA':_0x346d46(0x179),'bFECH':_0x346d46(0x18b),'MXuNn':function(_0x488dd9,_0x5bf6fc,_0x35d6e8){return _0x488dd9(_0x5bf6fc,_0x35d6e8);},'wGONR':_0x346d46(0x174),'Ftorr':_0x346d46(0x16e),'wBvSI':function(_0x24bc59,_0x1a6981){return _0x24bc59&&_0x1a6981;},'hdOxV':_0x346d46(0x186),'KesIp':_0x346d46(0x191),'ZLKFx':function(_0x19aac8,_0x1204cd){return _0x19aac8(_0x1204cd);},'oofHq':_0x346d46(0x194)};if(!_0x51b914[_0x346d46(0x16d)]){if(_0x1e8243[_0x346d46(0x189)](_0x1e8243[_0x346d46(0x16b)],_0x1e8243[_0x346d46(0x19a)]))throw new _0x43c016(_0x1e8243[_0x346d46(0x18c)]);else throw new Error(_0x1e8243[_0x346d46(0x17f)]);}const _0x261253=_0x2d203b[_0x346d46(0x180)]??_0x2d203b[_0x346d46(0x197)];if(!_0x261253)throw new ValidationError(_0x346d46(0x18f));const _0x495d58=_0x1e8243[_0x346d46(0x198)](parseDimension,_0x2d203b[_0x346d46(0x174)],_0x1e8243[_0x346d46(0x195)]),_0x5c40dd=_0x1e8243[_0x346d46(0x198)](parseDimension,_0x2d203b[_0x346d46(0x16e)],_0x1e8243[_0x346d46(0x17c)]);if(_0x1e8243[_0x346d46(0x17d)](!_0x495d58,!_0x5c40dd)){if(_0x1e8243[_0x346d46(0x189)](_0x346d46(0x188),_0x1e8243[_0x346d46(0x172)]))return _0xf8500;else throw new ValidationError(_0x346d46(0x170));}if(!await _0x51b914[_0x346d46(0x16d)][_0x346d46(0x192)](_0x261253))throw new NotFoundError(_0x1e8243[_0x346d46(0x17b)]);return _0x1e8243[_0x346d46(0x16a)](_0x3ee195,await _0x51b914[_0x346d46(0x16d)][_0x346d46(0x18e)](_0x261253))[_0x346d46(0x19b)]({'width':_0x495d58,'height':_0x5c40dd,'fit':_0x2d203b[_0x346d46(0x178)]??_0x1e8243[_0x346d46(0x182)]})[_0x346d46(0x193)]();}function parseDimension(_0x4fb219,_0x55f1f9){const _0x415392=_0x4078,_0x39813b={'WITzh':function(_0x2d59e2,_0x81f6f){return _0x2d59e2===_0x81f6f;},'JDyyn':function(_0x20b446,_0xff5475){return _0x20b446(_0xff5475);},'pNXBX':function(_0x28ad3f,_0x27407d){return _0x28ad3f(_0x27407d);},'vYJKH':function(_0x42cba4,_0x184ae7){return _0x42cba4<=_0x184ae7;},'yLGSH':_0x415392(0x18d)};if(_0x4fb219===undefined||_0x39813b[_0x415392(0x196)](_0x4fb219,''))return undefined;const _0x4037e7=_0x39813b[_0x415392(0x16c)](Number,_0x4fb219);if(!Number[_0x415392(0x183)](_0x4037e7)||_0x39813b[_0x415392(0x17e)](_0x4037e7,0x0)){if(_0x39813b[_0x415392(0x171)]===_0x415392(0x18d))throw new ValidationError(_0x55f1f9+_0x415392(0x175));else{if(_0x39813b[_0x415392(0x196)](_0x50215e,_0x4dc5fd)||_0x3dcfd0==='')return _0x4a7548;const _0x1ad99d=_0x39813b[_0x415392(0x18a)](_0x8c30b4,_0x3dac01);if(!_0x2bc36a[_0x415392(0x183)](_0x1ad99d)||_0x1ad99d<=0x0)throw new _0x3696ec(_0x148d8a+_0x415392(0x175));return _0x1ad99d;}}return _0x4037e7;}
@@ -1 +1 @@
1
- (function(_0x16d81d,_0x161e6d){const _0x4e77fe=_0x16c4,_0x39cc17=_0x16d81d();while(!![]){try{const _0x425d76=-parseInt(_0x4e77fe(0x1c2))/0x1+-parseInt(_0x4e77fe(0x1d3))/0x2*(parseInt(_0x4e77fe(0x1d0))/0x3)+parseInt(_0x4e77fe(0x1bd))/0x4*(-parseInt(_0x4e77fe(0x1cd))/0x5)+parseInt(_0x4e77fe(0x1c5))/0x6+-parseInt(_0x4e77fe(0x1cf))/0x7+-parseInt(_0x4e77fe(0x1c8))/0x8+parseInt(_0x4e77fe(0x1c6))/0x9;if(_0x425d76===_0x161e6d)break;else _0x39cc17['push'](_0x39cc17['shift']());}catch(_0x3b5964){_0x39cc17['push'](_0x39cc17['shift']());}}}(_0x33d8,0xe6246));import{randomUUID}from'node:crypto';function _0x33d8(){const _0x576a39=['put','uploads/','length','entityType','146515MaZStX','metadata','1641542WKxLiq','3ItkVMW','path','replace','94154TEcLAf','200lQZfiw','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','query','file','entityId','6624xMamai','name','EZwTi','3558462JFkenB','28350153BsYRzN','rows','8376600gaOBBl'];_0x33d8=function(){return _0x576a39;};return _0x33d8();}function _0x16c4(_0x284351,_0x331941){_0x284351=_0x284351-0x1bd;const _0x33d804=_0x33d8();let _0x16c4a7=_0x33d804[_0x284351];return _0x16c4a7;}export async function uploadFile(_0x27403f,_0x493e3c){const _0x35c010=_0x16c4,_0xd6a9d4={};_0xd6a9d4[_0x35c010(0x1c4)]=_0x35c010(0x1c0);const _0x2a908e=_0xd6a9d4,_0x5799f2=(_0x27403f[_0x35c010(0x1ce)][_0x35c010(0x1c3)]??_0x2a908e[_0x35c010(0x1c4)])[_0x35c010(0x1d2)](/[^a-zA-Z0-9._-]/g,'_'),_0x578136=_0x27403f[_0x35c010(0x1ce)][_0x35c010(0x1d1)]??_0x35c010(0x1ca)+randomUUID()+'-'+_0x5799f2;await _0x493e3c[_0x35c010(0x1c0)][_0x35c010(0x1c9)](_0x578136,_0x27403f[_0x35c010(0x1c0)]);const _0x45605d=await _0x493e3c['pg'][_0x35c010(0x1bf)](_0x35c010(0x1be),[_0x27403f[_0x35c010(0x1ce)][_0x35c010(0x1cc)]??null,_0x27403f[_0x35c010(0x1ce)][_0x35c010(0x1c1)]??null,_0x578136,_0x27403f[_0x35c010(0x1c0)][_0x35c010(0x1cb)]]);return _0x45605d[_0x35c010(0x1c7)][0x0];}
1
+ (function(_0x270335,_0x657875){const _0x19b6e2=_0x428a,_0x3d0519=_0x270335();while(!![]){try{const _0x54c109=-parseInt(_0x19b6e2(0x193))/0x1*(parseInt(_0x19b6e2(0x18d))/0x2)+parseInt(_0x19b6e2(0x19a))/0x3+parseInt(_0x19b6e2(0x191))/0x4+-parseInt(_0x19b6e2(0x18c))/0x5+parseInt(_0x19b6e2(0x1a1))/0x6*(-parseInt(_0x19b6e2(0x192))/0x7)+parseInt(_0x19b6e2(0x19b))/0x8+parseInt(_0x19b6e2(0x198))/0x9;if(_0x54c109===_0x657875)break;else _0x3d0519['push'](_0x3d0519['shift']());}catch(_0x173a27){_0x3d0519['push'](_0x3d0519['shift']());}}}(_0x57f2,0x78548));function _0x428a(_0x3ba4ae,_0x172a0c){_0x3ba4ae=_0x3ba4ae-0x18b;const _0x57f230=_0x57f2();let _0x428ab1=_0x57f230[_0x3ba4ae];return _0x428ab1;}import{randomUUID}from'node:crypto';export async function uploadFile(_0x27753b,_0x21be7f){const _0x1d42d3=_0x428a,_0xd52890={'WxHsC':_0x1d42d3(0x18b),'ELUmk':function(_0x4ea3e3){return _0x4ea3e3();}},_0x58e314=(_0x27753b[_0x1d42d3(0x1a2)][_0x1d42d3(0x18f)]??_0xd52890[_0x1d42d3(0x19f)])[_0x1d42d3(0x194)](/[^a-zA-Z0-9._-]/g,'_'),_0x5c36aa=_0x27753b[_0x1d42d3(0x1a2)][_0x1d42d3(0x197)]??_0x1d42d3(0x19d)+_0xd52890[_0x1d42d3(0x19e)](randomUUID)+'-'+_0x58e314;await _0x21be7f[_0x1d42d3(0x18b)][_0x1d42d3(0x18e)](_0x5c36aa,_0x27753b[_0x1d42d3(0x18b)]);const _0x4f44e6=await _0x21be7f['pg'][_0x1d42d3(0x1a0)](_0x1d42d3(0x19c),[_0x27753b[_0x1d42d3(0x1a2)][_0x1d42d3(0x199)]??null,_0x27753b[_0x1d42d3(0x1a2)][_0x1d42d3(0x196)]??null,_0x5c36aa,_0x27753b[_0x1d42d3(0x18b)][_0x1d42d3(0x190)]]);return _0x4f44e6[_0x1d42d3(0x195)][0x0];}function _0x57f2(){const _0x4e685e=['3674510DQrxHb','2VTgyUB','put','name','length','2940412ZvFFde','77QIozhl','915451qHdOMM','replace','rows','entityId','path','10851336kMpDlA','entityType','1545825kAOOnK','5335656IbYmSe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','uploads/','ELUmk','WxHsC','query','534444CNaJLH','metadata','file'];_0x57f2=function(){return _0x4e685e;};return _0x57f2();}
@@ -1 +1 @@
1
- {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../src/modules/resource/route.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAoBnD,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,GAAG,kBAAkB,CA0WlE"}
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../src/modules/resource/route.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAkBnD,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,GAAG,kBAAkB,CA4PlE"}
@@ -1 +1 @@
1
- const _0x5d1b31=_0x2a24;(function(_0x4dd5b6,_0x55a27d){const _0x4925c4=_0x2a24,_0x135aca=_0x4dd5b6();while(!![]){try{const _0x2c04a5=parseInt(_0x4925c4(0x223))/0x1*(parseInt(_0x4925c4(0x241))/0x2)+-parseInt(_0x4925c4(0x1d7))/0x3*(parseInt(_0x4925c4(0x1e7))/0x4)+parseInt(_0x4925c4(0x230))/0x5+-parseInt(_0x4925c4(0x251))/0x6+-parseInt(_0x4925c4(0x1e0))/0x7*(-parseInt(_0x4925c4(0x1f8))/0x8)+parseInt(_0x4925c4(0x201))/0x9*(-parseInt(_0x4925c4(0x219))/0xa)+parseInt(_0x4925c4(0x1fc))/0xb*(parseInt(_0x4925c4(0x1fe))/0xc);if(_0x2c04a5===_0x55a27d)break;else _0x135aca['push'](_0x135aca['shift']());}catch(_0x547559){_0x135aca['push'](_0x135aca['shift']());}}}(_0x38ae,0x1e306));import{listResources}from'./services/list-resources.js';import{getResource}from'./services/get-resource.js';import{createResource}from'./services/create-resource.js';import{updateResource}from'./services/update-resource.js';import{deleteResource}from'./services/delete-resource.js';import{listResourceRelation}from'./services/list-resource-relation.js';import{createResourceRelation}from'./services/create-resource-relation.js';import{deleteResourceRelation}from'./services/delete-resource-relation.js';import{searchResource}from'./services/search-resource.js';import{exportResource}from'./services/export-resource.js';import{suggestResource}from'./services/suggest-resource.js';import{addNote}from'./services/add-note.js';import{addResourceFile}from'./services/add-resource-file.js';function _0x2a24(_0x38c099,_0x24b71b){_0x38c099=_0x38c099-0x1d3;const _0x38ae6e=_0x38ae();let _0x2a24be=_0x38ae6e[_0x38c099];return _0x2a24be;}function _0x38ae(){const _0x5d5c6f=['Returns\x20notes\x20related\x20to\x20a\x20resource\x20record.','querystring','qawrU','4338EcFCcL','notes','suggestQuery','exportResourceQuery','WzLCV','Kkpsy','fkoAA','Deletes\x20a\x20record\x20from\x20a\x20registered\x20resource.','VtKgQ','691418dEOWHC','Suggest\x20resource\x20values','Adds\x20a\x20file\x20to\x20a\x20resource\x20record.','/api/resource/:resource/export','ArvmT','TRNwL','yYIyY','68gQGPOY','Returns\x20records\x20from\x20a\x20registered\x20resource.','DusVs','List\x20resource\x20notes','Deletes\x20a\x20relation\x20from\x20a\x20resource\x20record.','exportResource','*:read','access','jEemD','ipiYq','/api/resource/:resource/:id/files/:relationId','Qfmak','/api/resource/:resource/:id/:relation/:relationId','oKdBw','patch','Ezhjl','/api/resource/:resource/:id/notes','16TrcDvC','Creates\x20a\x20record\x20in\x20a\x20registered\x20resource.','resourceField','vAaVm','143oOabQP','HKzPy','1692dOifqr','XXbCc','/api/resource/:resource/search','117GUxXEr','params','Delete\x20resource\x20file','Searches\x20records\x20in\x20a\x20registered\x20resource.','/api/resource/:resource/suggest/:field','urZuQ','lBGTV','ODcKU','Creates\x20a\x20relation\x20for\x20a\x20resource\x20record.','Export\x20resource\x20records','List\x20resource\x20relations','Create\x20resource\x20relation','dMvdu','3|12|13|1|10|4|14|2|9|8|15|6|5|11|0|16|7','VeAzD','/api/resource/:resource/:id/files','uqzHc','Returns\x20files\x20related\x20to\x20a\x20resource\x20record.','tags','YTfyO','pVWRM','Search\x20resource','sGcxN','/api/resource/:resource','105730WZkMGw','Updates\x20a\x20record\x20in\x20a\x20registered\x20resource.','schema','WwHFT','Update\x20resource\x20record','Returns\x20related\x20records\x20for\x20a\x20resource\x20record.','description','acJrp','pkVkg','permissions','3026AzjddN','UzkFy','user','ZTEXJ','IyldD','/api/resource/:resource/:id','query','fcore','summary','uploadResourceFile','Removes\x20a\x20file\x20relation\x20from\x20a\x20resource\x20record.','Get\x20resource\x20record','List\x20resource\x20files','400235sbJHBa','resource:update','qMRFb','List\x20resource\x20records','split','fShsU','Exports\x20readable\x20records\x20from\x20a\x20registered\x20resource.','XJcVk','uploadResourceFileBody','Returns\x20suggested\x20values\x20for\x20a\x20resource\x20field.','resourceId','Add\x20resource\x20note','Zzywn','Delete\x20resource\x20record','Edvil','cVajB','resource','82ATNGJM','Uploads\x20a\x20file\x20to\x20a\x20Resource\x20record\x20and\x20stores\x20its\x20metadata.','UCOQd','lRtco','Upload\x20resource\x20file','UKUyd','post','/api/resource/:resource/:id/:relation','Returns\x20one\x20record\x20from\x20a\x20registered\x20resource.','Delete\x20resource\x20relation','FyjTV','delete','/api/resource/:resource/:id/upload','Adds\x20a\x20note\x20to\x20a\x20resource\x20record.','resourceIdRelation','AOBlZ','706854iKxASK','dXiur','files','body','resourceIdRelationId','Create\x20resource\x20record','get','Add\x20resource\x20file'];_0x38ae=function(){return _0x5d5c6f;};return _0x38ae();}import{uploadResourceFile}from'./services/upload-resource-file.js';import{resourceSchemas}from'./schema.js';const user=_0x38625f=>_0x38625f[_0x5d1b31(0x225)];export function resourceRoutes(_0x449154){const _0x339a7b=_0x5d1b31,_0x3f8e07={};_0x3f8e07[_0x339a7b(0x246)]=_0x339a7b(0x20e),_0x3f8e07[_0x339a7b(0x24b)]=_0x339a7b(0x248),_0x3f8e07[_0x339a7b(0x1ff)]=_0x339a7b(0x22a),_0x3f8e07[_0x339a7b(0x1dc)]=_0x339a7b(0x240),_0x3f8e07[_0x339a7b(0x232)]=_0x339a7b(0x21e),_0x3f8e07[_0x339a7b(0x1f0)]=_0x339a7b(0x225),_0x3f8e07[_0x339a7b(0x1f6)]=_0x339a7b(0x218),_0x3f8e07[_0x339a7b(0x226)]=_0x339a7b(0x233),_0x3f8e07[_0x339a7b(0x220)]=_0x339a7b(0x1e8),_0x3f8e07[_0x339a7b(0x23c)]=_0x339a7b(0x228),_0x3f8e07[_0x339a7b(0x206)]=_0x339a7b(0x23d),_0x3f8e07[_0x339a7b(0x1e6)]=_0x339a7b(0x200),_0x3f8e07[_0x339a7b(0x214)]=_0x339a7b(0x216),_0x3f8e07[_0x339a7b(0x207)]=_0x339a7b(0x204),_0x3f8e07[_0x339a7b(0x217)]=_0x339a7b(0x22e),_0x3f8e07[_0x339a7b(0x23e)]=_0x339a7b(0x245),_0x3f8e07[_0x339a7b(0x20d)]=_0x339a7b(0x242),_0x3f8e07[_0x339a7b(0x1dd)]=_0x339a7b(0x210),_0x3f8e07[_0x339a7b(0x20f)]=_0x339a7b(0x1d3),_0x3f8e07[_0x339a7b(0x224)]=_0x339a7b(0x1e2),_0x3f8e07[_0x339a7b(0x243)]=_0x339a7b(0x1f3),_0x3f8e07[_0x339a7b(0x1e4)]=_0x339a7b(0x24a),_0x3f8e07[_0x339a7b(0x1f4)]=_0x339a7b(0x1eb),_0x3f8e07[_0x339a7b(0x1ef)]=_0x339a7b(0x1f7),_0x3f8e07[_0x339a7b(0x215)]=_0x339a7b(0x23b),_0x3f8e07[_0x339a7b(0x235)]=_0x339a7b(0x24e),_0x3f8e07[_0x339a7b(0x244)]=_0x339a7b(0x1ea),_0x3f8e07[_0x339a7b(0x227)]=_0x339a7b(0x1d4),_0x3f8e07[_0x339a7b(0x1e9)]=_0x339a7b(0x1f9),_0x3f8e07[_0x339a7b(0x1db)]=_0x339a7b(0x1f1),_0x3f8e07[_0x339a7b(0x211)]=_0x339a7b(0x203),_0x3f8e07[_0x339a7b(0x1d6)]=_0x339a7b(0x22d),_0x3f8e07[_0x339a7b(0x1e5)]=_0x339a7b(0x205),_0x3f8e07[_0x339a7b(0x1df)]=_0x339a7b(0x1e1),_0x3f8e07[_0x339a7b(0x1f2)]=_0x339a7b(0x239),_0x3f8e07[_0x339a7b(0x21c)]=_0x339a7b(0x20a),_0x3f8e07[_0x339a7b(0x221)]=_0x339a7b(0x236),_0x3f8e07[_0x339a7b(0x23f)]=_0x339a7b(0x1ed),_0x3f8e07[_0x339a7b(0x237)]=_0x339a7b(0x21d),_0x3f8e07[_0x339a7b(0x252)]=_0x339a7b(0x21a),_0x3f8e07[_0x339a7b(0x250)]=_0x339a7b(0x22f),_0x3f8e07[_0x339a7b(0x1fb)]=_0x339a7b(0x212),_0x3f8e07[_0x339a7b(0x1fd)]=_0x339a7b(0x20c),_0x3f8e07[_0x339a7b(0x208)]=_0x339a7b(0x209);const _0x153a74=_0x3f8e07;return async _0x23caa9=>{const _0x3e2483=_0x339a7b,_0x33c71e=_0x153a74[_0x3e2483(0x246)][_0x3e2483(0x234)]('|');let _0x19bb4a=0x0;while(!![]){switch(_0x33c71e[_0x19bb4a++]){case'0':_0x23caa9[_0x3e2483(0x257)](_0x153a74[_0x3e2483(0x24b)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x3e2483(0x20b),'description':_0x153a74[_0x3e2483(0x232)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x24f)]}},async _0x4edf69=>listResourceRelation({..._0x4edf69[_0x3e2483(0x229)],..._0x4edf69[_0x3e2483(0x202)],'user':user(_0x4edf69)},_0x449154));continue;case'1':_0x23caa9[_0x3e2483(0x257)](_0x153a74[_0x3e2483(0x1f6)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x226)],'description':_0x153a74[_0x3e2483(0x220)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x240)]}},async _0x3502e8=>listResources({..._0x3502e8[_0x3e2483(0x229)],..._0x3502e8[_0x3e2483(0x202)],'user':user(_0x3502e8)},_0x449154));continue;case'2':_0x23caa9[_0x3e2483(0x24c)](_0x153a74[_0x3e2483(0x23c)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x3e2483(0x240)],'summary':_0x153a74[_0x3e2483(0x206)],'description':_0x3e2483(0x1de),'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x23a)]}},async _0xf3b1a1=>deleteResource({..._0xf3b1a1[_0x3e2483(0x202)],'user':user(_0xf3b1a1)},_0x449154));continue;case'3':_0x23caa9[_0x3e2483(0x257)](_0x153a74[_0x3e2483(0x1e6)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x214)],'description':_0x153a74[_0x3e2483(0x207)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x240)]}},async _0x342749=>searchResource({..._0x342749[_0x3e2483(0x229)],..._0x342749[_0x3e2483(0x202)],'user':user(_0x342749)},_0x449154));continue;case'4':const _0x21c2bf={};_0x21c2bf[_0x3e2483(0x213)]=[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],_0x21c2bf[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x217)],_0x21c2bf[_0x3e2483(0x21f)]=_0x3e2483(0x249),_0x21c2bf[_0x3e2483(0x1ee)]=_0x3e2483(0x225),_0x21c2bf[_0x3e2483(0x222)]=[],_0x21c2bf[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x23a)];const _0x355c15={};_0x355c15[_0x3e2483(0x21b)]=_0x21c2bf,_0x23caa9[_0x3e2483(0x257)](_0x3e2483(0x228),_0x355c15,async _0x2530ff=>getResource({..._0x2530ff[_0x3e2483(0x202)],'user':user(_0x2530ff)},_0x449154));continue;case'5':const _0x298a36={};_0x298a36[_0x3e2483(0x213)]=[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],_0x298a36[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x23e)],_0x298a36[_0x3e2483(0x21f)]=_0x153a74[_0x3e2483(0x20d)],_0x298a36[_0x3e2483(0x1ee)]=_0x153a74[_0x3e2483(0x1f0)],_0x298a36[_0x3e2483(0x222)]=[_0x3e2483(0x231)],_0x298a36[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x22c)],_0x298a36[_0x3e2483(0x254)]=resourceSchemas[_0x3e2483(0x238)];const _0x23e29c={};_0x23e29c[_0x3e2483(0x21b)]=_0x298a36,_0x23caa9[_0x3e2483(0x247)](_0x3e2483(0x24d),_0x23e29c,async _0x43844b=>uploadResourceFile({..._0x43844b[_0x3e2483(0x202)],..._0x43844b[_0x3e2483(0x254)],'user':user(_0x43844b)},_0x449154));continue;case'6':_0x23caa9[_0x3e2483(0x247)](_0x153a74[_0x3e2483(0x1dd)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x20f)],'description':_0x153a74[_0x3e2483(0x224)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x23a)]}},async _0x3faf07=>addResourceFile({..._0x3faf07[_0x3e2483(0x202)],..._0x3faf07[_0x3e2483(0x254)],'user':user(_0x3faf07)},_0x449154));continue;case'7':_0x23caa9[_0x3e2483(0x24c)](_0x153a74[_0x3e2483(0x243)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x1e4)],'description':_0x153a74[_0x3e2483(0x1f4)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x255)]}},async _0x180a6f=>deleteResourceRelation({..._0x180a6f[_0x3e2483(0x202)],'user':user(_0x180a6f)},_0x449154));continue;case'8':_0x23caa9[_0x3e2483(0x247)](_0x153a74[_0x3e2483(0x1ef)],{'schema':{'tags':[_0x3e2483(0x22a),_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x215)],'description':_0x153a74[_0x3e2483(0x235)],'access':_0x3e2483(0x225),'permissions':[],'params':resourceSchemas[_0x3e2483(0x23a)]}},async _0x6eb8bd=>addNote({..._0x6eb8bd[_0x3e2483(0x202)],..._0x6eb8bd[_0x3e2483(0x254)],'user':user(_0x6eb8bd)},_0x449154));continue;case'9':const _0x5d5e8e={};_0x5d5e8e[_0x3e2483(0x213)]=[_0x3e2483(0x22a),_0x153a74[_0x3e2483(0x1dc)]],_0x5d5e8e[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x244)],_0x5d5e8e[_0x3e2483(0x21f)]=_0x153a74[_0x3e2483(0x227)],_0x5d5e8e[_0x3e2483(0x1ee)]=_0x153a74[_0x3e2483(0x1f0)],_0x5d5e8e[_0x3e2483(0x222)]=[],_0x5d5e8e[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x23a)];const _0x11d38b={};_0x11d38b[_0x3e2483(0x21b)]=_0x5d5e8e,_0x23caa9[_0x3e2483(0x257)](_0x3e2483(0x1f7),_0x11d38b,async _0x54c63f=>listResourceRelation({..._0x54c63f[_0x3e2483(0x202)],'relation':_0x3e2483(0x1d8),'user':user(_0x54c63f)},_0x449154));continue;case'10':_0x23caa9[_0x3e2483(0x247)](_0x153a74[_0x3e2483(0x1f6)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x3e2483(0x256),'description':_0x153a74[_0x3e2483(0x1e9)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x240)]}},async _0x53df71=>createResource({..._0x53df71[_0x3e2483(0x202)],'data':_0x53df71[_0x3e2483(0x254)],'user':user(_0x53df71)},_0x449154));continue;case'11':_0x23caa9[_0x3e2483(0x24c)](_0x153a74[_0x3e2483(0x1db)],{'schema':{'tags':[_0x3e2483(0x22a),_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x211)],'description':_0x153a74[_0x3e2483(0x1d6)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x255)]}},async _0x3f41ad=>deleteResourceRelation({..._0x3f41ad[_0x3e2483(0x202)],'relation':_0x3e2483(0x253),'user':user(_0x3f41ad)},_0x449154));continue;case'12':_0x23caa9[_0x3e2483(0x257)](_0x153a74[_0x3e2483(0x1e5)],{'schema':{'tags':[_0x3e2483(0x22a),_0x3e2483(0x240)],'summary':_0x153a74[_0x3e2483(0x1df)],'description':_0x153a74[_0x3e2483(0x1f2)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x1fa)],'querystring':resourceSchemas[_0x3e2483(0x1d9)]}},async _0x261f72=>suggestResource({..._0x261f72[_0x3e2483(0x229)],..._0x261f72[_0x3e2483(0x202)],'user':user(_0x261f72)},_0x449154));continue;case'13':const _0x4264aa={};_0x4264aa[_0x3e2483(0x213)]=[_0x153a74[_0x3e2483(0x1ff)],_0x3e2483(0x240)],_0x4264aa[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x21c)],_0x4264aa[_0x3e2483(0x21f)]=_0x153a74[_0x3e2483(0x221)],_0x4264aa[_0x3e2483(0x1ee)]=_0x153a74[_0x3e2483(0x1f0)],_0x4264aa[_0x3e2483(0x222)]=[_0x153a74[_0x3e2483(0x23f)]],_0x4264aa[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x1ec)],_0x4264aa[_0x3e2483(0x1d5)]=resourceSchemas[_0x3e2483(0x1da)];const _0x4adc20={};_0x4adc20[_0x3e2483(0x21b)]=_0x4264aa,_0x23caa9[_0x3e2483(0x257)](_0x3e2483(0x1e3),_0x4adc20,async _0x7037b1=>exportResource({..._0x7037b1[_0x3e2483(0x229)],..._0x7037b1[_0x3e2483(0x202)],'user':user(_0x7037b1)},_0x449154));continue;case'14':_0x23caa9[_0x3e2483(0x1f5)](_0x153a74[_0x3e2483(0x23c)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x3e2483(0x240)],'summary':_0x153a74[_0x3e2483(0x237)],'description':_0x153a74[_0x3e2483(0x252)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x23a)]}},async _0x5b0070=>updateResource({..._0x5b0070[_0x3e2483(0x202)],'patch':_0x5b0070[_0x3e2483(0x254)],'user':user(_0x5b0070)},_0x449154));continue;case'15':const _0x4f10b2={};_0x4f10b2[_0x3e2483(0x213)]=[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],_0x4f10b2[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x250)],_0x4f10b2[_0x3e2483(0x21f)]=_0x153a74[_0x3e2483(0x1fb)],_0x4f10b2[_0x3e2483(0x1ee)]=_0x153a74[_0x3e2483(0x1f0)],_0x4f10b2[_0x3e2483(0x222)]=[],_0x4f10b2[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x23a)];const _0x13638d={};_0x13638d[_0x3e2483(0x21b)]=_0x4f10b2,_0x23caa9[_0x3e2483(0x257)](_0x3e2483(0x210),_0x13638d,async _0x25f43b=>listResourceRelation({..._0x25f43b[_0x3e2483(0x202)],'relation':_0x3e2483(0x253),'user':user(_0x25f43b)},_0x449154));continue;case'16':_0x23caa9[_0x3e2483(0x247)](_0x153a74[_0x3e2483(0x24b)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x1fd)],'description':_0x153a74[_0x3e2483(0x208)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x24f)]}},async _0x554979=>createResourceRelation({..._0x554979[_0x3e2483(0x202)],'data':_0x554979[_0x3e2483(0x254)],'user':user(_0x554979)},_0x449154));continue;}break;}};}
1
+ const _0x2f45f1=_0x22ab;(function(_0x9fe4fa,_0x397dd4){const _0x5567bc=_0x22ab,_0x391327=_0x9fe4fa();while(!![]){try{const _0x45f6ca=parseInt(_0x5567bc(0xff))/0x1*(-parseInt(_0x5567bc(0xd7))/0x2)+-parseInt(_0x5567bc(0x104))/0x3+-parseInt(_0x5567bc(0xc6))/0x4*(parseInt(_0x5567bc(0xec))/0x5)+parseInt(_0x5567bc(0x116))/0x6*(-parseInt(_0x5567bc(0x110))/0x7)+-parseInt(_0x5567bc(0xd2))/0x8*(parseInt(_0x5567bc(0xc9))/0x9)+parseInt(_0x5567bc(0x11a))/0xa*(parseInt(_0x5567bc(0xf3))/0xb)+parseInt(_0x5567bc(0xea))/0xc;if(_0x45f6ca===_0x397dd4)break;else _0x391327['push'](_0x391327['shift']());}catch(_0x11ed92){_0x391327['push'](_0x391327['shift']());}}}(_0x360f,0x38634));import{listResources}from'./services/list-resources.js';function _0x360f(){const _0x5daccd=['/api/resource/:resource/:id','49469QSyiQl','Returns\x20suggested\x20values\x20for\x20a\x20resource\x20field.','Deletes\x20a\x20record\x20from\x20a\x20registered\x20resource.','Puhsc','Returns\x20related\x20records\x20for\x20a\x20resource\x20record.','resourceField','258WLapeo','FDWaK','MlWQi','put','2870JWgyLu','OCvNQ','/api/resource/:resource/search','Upload\x20resource\x20file','rCXMi','mGGmI','List\x20resource\x20records','Returns\x20one\x20record\x20from\x20a\x20registered\x20resource.','hMIPa','iSrpG','Exports\x20readable\x20records\x20from\x20a\x20registered\x20resource.','params','resourceId','Get\x20resource\x20record','UYLId','get','184936DeUbwB','EiPsA','ijRyb','27YdqaTZ','/api/resource/:resource/:id/:relation','delete','QTBNU','IPRyu','/api/resource/:resource/export','/api/resource/:resource','Creates\x20a\x20record\x20in\x20a\x20registered\x20resource.','vQDCg','263688JGRwul','user','lILXP','Search\x20resource','Uploads\x20a\x20file\x20to\x20a\x20Resource\x20record\x20and\x20stores\x20its\x20metadata.','2VzDDXe','permissions','description','hWbmy','fDqQW','Creates\x20a\x20relation\x20for\x20a\x20resource\x20record.','*:read','/api/resource/:resource/:id/upload','Create\x20resource\x20record','Returns\x20records\x20from\x20a\x20registered\x20resource.','uploadResourceFile','aYiAR','Delete\x20resource\x20record','Searches\x20records\x20in\x20a\x20registered\x20resource.','bNIOq','Update\x20resource\x20record','Suggest\x20resource\x20values','resourceIdRelationId','exportResource','17242332xozFxJ','access','35hoagsj','fcore','schema','WBPxn','jxpkb','resourceIdRelation','/api/resource/:resource/:id/:relation/:relationId','4345hPtuKB','resource','uploadResourceFileBody','bRvnx','hQVRu','Create\x20resource\x20relation','tags','body','yXtTe','ZYMRf','resource:update','suggestQuery','296987rZaEkC','sqTrL','nOWYm','Deletes\x20a\x20relation\x20from\x20a\x20resource\x20record.','List\x20resource\x20relations','887619auafmR','summary','Delete\x20resource\x20relation','query','exportResourceQuery','/api/suggest/:resource/:field','Export\x20resource\x20records','vTucH','mQjnx','post','Updates\x20a\x20record\x20in\x20a\x20registered\x20resource.'];_0x360f=function(){return _0x5daccd;};return _0x360f();}import{getResource}from'./services/get-resource.js';import{createResource}from'./services/create-resource.js';import{updateResource}from'./services/update-resource.js';import{deleteResource}from'./services/delete-resource.js';import{listResourceRelation}from'./services/list-resource-relation.js';import{createResourceRelation}from'./services/create-resource-relation.js';import{deleteResourceRelation}from'./services/delete-resource-relation.js';import{searchResource}from'./services/search-resource.js';import{exportResource}from'./services/export-resource.js';import{suggestResource}from'./services/suggest-resource.js';function _0x22ab(_0x5f21fe,_0x386867){_0x5f21fe=_0x5f21fe-0xbe;const _0x360fb3=_0x360f();let _0x22ab9d=_0x360fb3[_0x5f21fe];return _0x22ab9d;}import{uploadResourceFile}from'./services/upload-resource-file.js';import{resourceSchemas}from'./schema.js';const user=_0x40dbfe=>_0x40dbfe[_0x2f45f1(0xd3)];export function resourceRoutes(_0x635041){const _0x3eeac0=_0x2f45f1,_0x3cb7e4={};_0x3cb7e4[_0x3eeac0(0xcd)]=_0x3eeac0(0x11c),_0x3cb7e4[_0x3eeac0(0xf6)]=_0x3eeac0(0xed),_0x3cb7e4[_0x3eeac0(0x11e)]=_0x3eeac0(0xf4),_0x3cb7e4[_0x3eeac0(0xc4)]=_0x3eeac0(0xd5),_0x3cb7e4[_0x3eeac0(0xbe)]=_0x3eeac0(0xe4),_0x3cb7e4[_0x3eeac0(0x10c)]=_0x3eeac0(0xd3),_0x3cb7e4[_0x3eeac0(0xe2)]=_0x3eeac0(0x109),_0x3cb7e4[_0x3eeac0(0x117)]=_0x3eeac0(0xe7),_0x3cb7e4[_0x3eeac0(0x10b)]=_0x3eeac0(0x111),_0x3cb7e4[_0x3eeac0(0xfb)]=_0x3eeac0(0xce),_0x3cb7e4[_0x3eeac0(0xbf)]=_0x3eeac0(0x10a),_0x3cb7e4[_0x3eeac0(0xef)]=_0x3eeac0(0xc0),_0x3cb7e4[_0x3eeac0(0xdb)]=_0x3eeac0(0xdd),_0x3cb7e4[_0x3eeac0(0xf0)]=_0x3eeac0(0xe0),_0x3cb7e4[_0x3eeac0(0xe5)]=_0x3eeac0(0xd0),_0x3cb7e4[_0x3eeac0(0x11b)]=_0x3eeac0(0x10f),_0x3cb7e4[_0x3eeac0(0xd1)]=_0x3eeac0(0xe6),_0x3cb7e4[_0x3eeac0(0xda)]=_0x3eeac0(0xe3),_0x3cb7e4[_0x3eeac0(0x100)]=_0x3eeac0(0x112),_0x3cb7e4[_0x3eeac0(0xc7)]=_0x3eeac0(0xde),_0x3cb7e4[_0x3eeac0(0xcc)]=_0x3eeac0(0x11d),_0x3cb7e4[_0x3eeac0(0xf7)]=_0x3eeac0(0xd6),_0x3cb7e4[_0x3eeac0(0x101)]=_0x3eeac0(0xfd),_0x3cb7e4[_0x3eeac0(0xd4)]=_0x3eeac0(0x103),_0x3cb7e4[_0x3eeac0(0xfc)]=_0x3eeac0(0x114),_0x3cb7e4[_0x3eeac0(0xc8)]=_0x3eeac0(0xdc),_0x3cb7e4[_0x3eeac0(0x11f)]=_0x3eeac0(0xf2),_0x3cb7e4[_0x3eeac0(0x118)]=_0x3eeac0(0x106),_0x3cb7e4[_0x3eeac0(0x113)]=_0x3eeac0(0x102);const _0x9c0b1d=_0x3cb7e4;return async _0xbf8b3e=>{const _0x55d241=_0x3eeac0;_0xbf8b3e[_0x55d241(0xc5)](_0x9c0b1d[_0x55d241(0xcd)],{'schema':{'tags':[_0x9c0b1d[_0x55d241(0xf6)],_0x9c0b1d[_0x55d241(0x11e)]],'summary':_0x9c0b1d[_0x55d241(0xc4)],'description':_0x9c0b1d[_0x55d241(0xbe)],'access':_0x9c0b1d[_0x55d241(0x10c)],'permissions':[],'params':resourceSchemas[_0x55d241(0xf4)]}},async _0xebbca6=>searchResource({..._0xebbca6[_0x55d241(0x107)],..._0xebbca6[_0x55d241(0xc1)],'user':user(_0xebbca6)},_0x635041)),_0xbf8b3e[_0x55d241(0xc5)](_0x9c0b1d[_0x55d241(0xe2)],{'schema':{'tags':[_0x9c0b1d[_0x55d241(0xf6)],_0x9c0b1d[_0x55d241(0x11e)]],'summary':_0x9c0b1d[_0x55d241(0x117)],'description':_0x9c0b1d[_0x55d241(0x10b)],'access':_0x9c0b1d[_0x55d241(0x10c)],'permissions':[],'params':resourceSchemas[_0x55d241(0x115)],'querystring':resourceSchemas[_0x55d241(0xfe)]}},async _0x2b26af=>suggestResource({..._0x2b26af[_0x55d241(0x107)],..._0x2b26af[_0x55d241(0xc1)],'user':user(_0x2b26af)},_0x635041)),_0xbf8b3e[_0x55d241(0xc5)](_0x9c0b1d[_0x55d241(0xfb)],{'schema':{'tags':[_0x55d241(0xed),_0x9c0b1d[_0x55d241(0x11e)]],'summary':_0x9c0b1d[_0x55d241(0xbf)],'description':_0x9c0b1d[_0x55d241(0xef)],'access':_0x9c0b1d[_0x55d241(0x10c)],'permissions':[_0x9c0b1d[_0x55d241(0xdb)]],'params':resourceSchemas[_0x55d241(0xe9)],'querystring':resourceSchemas[_0x55d241(0x108)]}},async _0x1f92fd=>exportResource({..._0x1f92fd[_0x55d241(0x107)],..._0x1f92fd[_0x55d241(0xc1)],'user':user(_0x1f92fd)},_0x635041));const _0x252b3c={};_0x252b3c[_0x55d241(0xf9)]=[_0x55d241(0xed),_0x9c0b1d[_0x55d241(0x11e)]],_0x252b3c[_0x55d241(0x105)]=_0x55d241(0x120),_0x252b3c[_0x55d241(0xd9)]=_0x9c0b1d[_0x55d241(0xf0)],_0x252b3c[_0x55d241(0xeb)]=_0x9c0b1d[_0x55d241(0x10c)],_0x252b3c[_0x55d241(0xd8)]=[],_0x252b3c[_0x55d241(0xc1)]=resourceSchemas[_0x55d241(0xf4)];const _0x2940d1={};_0x2940d1[_0x55d241(0xee)]=_0x252b3c,_0xbf8b3e[_0x55d241(0xc5)](_0x55d241(0xcf),_0x2940d1,async _0x105743=>listResources({..._0x105743[_0x55d241(0x107)],..._0x105743[_0x55d241(0xc1)],'user':user(_0x105743)},_0x635041));const _0x3c2a55={};_0x3c2a55[_0x55d241(0xf9)]=[_0x9c0b1d[_0x55d241(0xf6)],_0x9c0b1d[_0x55d241(0x11e)]],_0x3c2a55[_0x55d241(0x105)]=_0x55d241(0xdf),_0x3c2a55[_0x55d241(0xd9)]=_0x9c0b1d[_0x55d241(0xe5)],_0x3c2a55[_0x55d241(0xeb)]=_0x9c0b1d[_0x55d241(0x10c)],_0x3c2a55[_0x55d241(0xd8)]=[],_0x3c2a55[_0x55d241(0xc1)]=resourceSchemas[_0x55d241(0xf4)];const _0x2df7ea={};_0x2df7ea[_0x55d241(0xee)]=_0x3c2a55,_0xbf8b3e[_0x55d241(0x10d)](_0x55d241(0xcf),_0x2df7ea,async _0x579147=>createResource({..._0x579147[_0x55d241(0xc1)],'data':_0x579147[_0x55d241(0xfa)],'user':user(_0x579147)},_0x635041)),_0xbf8b3e[_0x55d241(0xc5)](_0x9c0b1d[_0x55d241(0x11b)],{'schema':{'tags':[_0x55d241(0xed),_0x9c0b1d[_0x55d241(0x11e)]],'summary':_0x55d241(0xc3),'description':_0x55d241(0x121),'access':_0x9c0b1d[_0x55d241(0x10c)],'permissions':[],'params':resourceSchemas[_0x55d241(0xc2)]}},async _0xcde646=>getResource({..._0xcde646[_0x55d241(0xc1)],'user':user(_0xcde646)},_0x635041)),_0xbf8b3e[_0x55d241(0x119)](_0x9c0b1d[_0x55d241(0x11b)],{'schema':{'tags':[_0x9c0b1d[_0x55d241(0xf6)],_0x9c0b1d[_0x55d241(0x11e)]],'summary':_0x9c0b1d[_0x55d241(0xd1)],'description':_0x55d241(0x10e),'access':_0x9c0b1d[_0x55d241(0x10c)],'permissions':[],'params':resourceSchemas[_0x55d241(0xc2)]}},async _0x238a47=>updateResource({..._0x238a47[_0x55d241(0xc1)],'patch':_0x238a47[_0x55d241(0xfa)],'user':user(_0x238a47)},_0x635041)),_0xbf8b3e[_0x55d241(0xcb)](_0x9c0b1d[_0x55d241(0x11b)],{'schema':{'tags':[_0x9c0b1d[_0x55d241(0xf6)],_0x9c0b1d[_0x55d241(0x11e)]],'summary':_0x9c0b1d[_0x55d241(0xda)],'description':_0x9c0b1d[_0x55d241(0x100)],'access':_0x9c0b1d[_0x55d241(0x10c)],'permissions':[],'params':resourceSchemas[_0x55d241(0xc2)]}},async _0x21efd0=>deleteResource({..._0x21efd0[_0x55d241(0xc1)],'user':user(_0x21efd0)},_0x635041)),_0xbf8b3e[_0x55d241(0x10d)](_0x9c0b1d[_0x55d241(0xc7)],{'schema':{'tags':[_0x55d241(0xed),_0x55d241(0xf4)],'summary':_0x9c0b1d[_0x55d241(0xcc)],'description':_0x9c0b1d[_0x55d241(0xf7)],'access':_0x9c0b1d[_0x55d241(0x10c)],'permissions':[_0x9c0b1d[_0x55d241(0x101)]],'params':resourceSchemas[_0x55d241(0xe1)],'body':resourceSchemas[_0x55d241(0xf5)]}},async _0x431847=>uploadResourceFile({..._0x431847[_0x55d241(0xc1)],..._0x431847[_0x55d241(0xfa)],'user':user(_0x431847)},_0x635041));const _0x50f57c={};_0x50f57c[_0x55d241(0xf9)]=[_0x9c0b1d[_0x55d241(0xf6)],_0x9c0b1d[_0x55d241(0x11e)]],_0x50f57c[_0x55d241(0x105)]=_0x9c0b1d[_0x55d241(0xd4)],_0x50f57c[_0x55d241(0xd9)]=_0x9c0b1d[_0x55d241(0xfc)],_0x50f57c[_0x55d241(0xeb)]=_0x9c0b1d[_0x55d241(0x10c)],_0x50f57c[_0x55d241(0xd8)]=[],_0x50f57c[_0x55d241(0xc1)]=resourceSchemas[_0x55d241(0xf1)];const _0x14ee5e={};_0x14ee5e[_0x55d241(0xee)]=_0x50f57c,_0xbf8b3e[_0x55d241(0xc5)](_0x55d241(0xca),_0x14ee5e,async _0x4b1c01=>listResourceRelation({..._0x4b1c01[_0x55d241(0x107)],..._0x4b1c01[_0x55d241(0xc1)],'user':user(_0x4b1c01)},_0x635041));const _0x234a7a={};_0x234a7a[_0x55d241(0xf9)]=[_0x9c0b1d[_0x55d241(0xf6)],_0x9c0b1d[_0x55d241(0x11e)]],_0x234a7a[_0x55d241(0x105)]=_0x55d241(0xf8),_0x234a7a[_0x55d241(0xd9)]=_0x9c0b1d[_0x55d241(0xc8)],_0x234a7a[_0x55d241(0xeb)]=_0x55d241(0xd3),_0x234a7a[_0x55d241(0xd8)]=[],_0x234a7a[_0x55d241(0xc1)]=resourceSchemas[_0x55d241(0xf1)];const _0x8fdc43={};_0x8fdc43[_0x55d241(0xee)]=_0x234a7a,_0xbf8b3e[_0x55d241(0x10d)](_0x55d241(0xca),_0x8fdc43,async _0x24c2fb=>createResourceRelation({..._0x24c2fb[_0x55d241(0xc1)],'data':_0x24c2fb[_0x55d241(0xfa)],'user':user(_0x24c2fb)},_0x635041)),_0xbf8b3e[_0x55d241(0xcb)](_0x9c0b1d[_0x55d241(0x11f)],{'schema':{'tags':[_0x55d241(0xed),_0x9c0b1d[_0x55d241(0x11e)]],'summary':_0x9c0b1d[_0x55d241(0x118)],'description':_0x9c0b1d[_0x55d241(0x113)],'access':_0x55d241(0xd3),'permissions':[],'params':resourceSchemas[_0x55d241(0xe8)]}},async _0x5221f8=>deleteResourceRelation({..._0x5221f8[_0x55d241(0xc1)],'user':user(_0x5221f8)},_0x635041));};}
@@ -1 +1 @@
1
- const _0x56d90d=_0x1e82;(function(_0x5e100b,_0x1ee87c){const _0x290bf9=_0x1e82,_0x2022d2=_0x5e100b();while(!![]){try{const _0x463082=-parseInt(_0x290bf9(0x188))/0x1+parseInt(_0x290bf9(0x18a))/0x2*(-parseInt(_0x290bf9(0x171))/0x3)+-parseInt(_0x290bf9(0x177))/0x4+parseInt(_0x290bf9(0x183))/0x5*(-parseInt(_0x290bf9(0x17d))/0x6)+-parseInt(_0x290bf9(0x180))/0x7+-parseInt(_0x290bf9(0x17b))/0x8*(-parseInt(_0x290bf9(0x16d))/0x9)+parseInt(_0x290bf9(0x189))/0xa*(parseInt(_0x290bf9(0x186))/0xb);if(_0x463082===_0x1ee87c)break;else _0x2022d2['push'](_0x2022d2['shift']());}catch(_0x36209f){_0x2022d2['push'](_0x2022d2['shift']());}}}(_0x2143,0xc588a));import{Type}from'@sinclair/typebox';const _0x13bf22={};_0x13bf22[_0x56d90d(0x187)]=0x1,_0x13bf22[_0x56d90d(0x17c)]=0x80,_0x13bf22[_0x56d90d(0x16e)]=_0x56d90d(0x175);function _0x1e82(_0x555c25,_0x26b4ae){_0x555c25=_0x555c25-0x16d;const _0x2143e9=_0x2143();let _0x1e829c=_0x2143e9[_0x555c25];return _0x1e829c;}export const identifier=Type[_0x56d90d(0x17e)](_0x13bf22);const _0x4eee1e={};_0x4eee1e[_0x56d90d(0x174)]=identifier;const _0x26e967={};_0x26e967[_0x56d90d(0x16f)]=identifier;const _0x175335={};_0x175335[_0x56d90d(0x16f)]=identifier;const _0x1d286f={};_0x1d286f[_0x56d90d(0x16f)]=identifier,_0x1d286f[_0x56d90d(0x181)]=identifier;const _0x293933={};_0x293933[_0x56d90d(0x17a)]=0x1,_0x293933[_0x56d90d(0x179)]=0xc8;const _0x1df434={};_0x1df434[_0x56d90d(0x16f)]=identifier,_0x1df434['id']=identifier;const _0xd54263={};_0xd54263[_0x56d90d(0x16f)]=identifier,_0xd54263['id']=identifier,_0xd54263[_0x56d90d(0x184)]=identifier;const _0x549345={};_0x549345[_0x56d90d(0x16f)]=identifier,_0x549345['id']=identifier,_0x549345[_0x56d90d(0x184)]=identifier,_0x549345[_0x56d90d(0x182)]=identifier;const _0x4cf6be={};_0x4cf6be[_0x56d90d(0x16f)]=identifier,_0x4cf6be['id']=identifier;const _0x3a0f7d={};function _0x2143(){const _0x20044c=['Integer','604269JQKpTj','Optional','Unknown','name','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','Array','2094416HQBqZi','Object','maximum','minimum','1360NzmcST','maxLength','138fUrQSM','String','Record','6830453gaeCyX','field','relationId','211605lpHyke','relation','Any','139964VpNImq','minLength','1240248HucBzV','3770KLzLfN','4kVUZvL','6777bKNwYo','pattern','resource'];_0x2143=function(){return _0x20044c;};return _0x2143();}_0x3a0f7d[_0x56d90d(0x187)]=0x1,_0x3a0f7d[_0x56d90d(0x17c)]=0xff;const _0x4adf55={};_0x4adf55[_0x56d90d(0x187)]=0x1;const _0x2b6955={};_0x2b6955[_0x56d90d(0x17a)]=0x1,_0x2b6955[_0x56d90d(0x179)]=0xc8;const _0x215148={};_0x215148[_0x56d90d(0x17a)]=0x0;export const resourceSchemas={'dictionaryName':Type[_0x56d90d(0x178)](_0x4eee1e),'resource':Type[_0x56d90d(0x178)](_0x26e967),'exportResource':Type[_0x56d90d(0x178)](_0x175335),'resourceField':Type[_0x56d90d(0x178)](_0x1d286f),'suggestQuery':Type[_0x56d90d(0x178)]({'q':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x17e)]()),'search':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x17e)]()),'limit':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x170)](_0x293933))}),'resourceId':Type[_0x56d90d(0x178)](_0x1df434),'resourceIdRelation':Type[_0x56d90d(0x178)](_0xd54263),'resourceIdRelationId':Type[_0x56d90d(0x178)](_0x549345),'uploadResourceFile':Type[_0x56d90d(0x178)](_0x4cf6be),'uploadResourceFileBody':Type[_0x56d90d(0x178)]({'file':Type[_0x56d90d(0x185)](),'fileName':Type[_0x56d90d(0x17e)](_0x3a0f7d)}),'exportResourceQuery':Type[_0x56d90d(0x178)]({'filter':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x17f)](Type[_0x56d90d(0x17e)](),Type[_0x56d90d(0x173)]())),'sort':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x176)](Type[_0x56d90d(0x17e)](_0x4adf55))),'search':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x17e)]()),'limit':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x170)](_0x2b6955)),'offset':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x170)](_0x215148)),'fields':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x176)](identifier))})};
1
+ const _0x316693=_0x3506;function _0x480c(){const _0x1147c6=['^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','666738crrHlv','5323368VcLlew','670SEImDW','3712740VQprZi','relation','4rkGiUB','16891cBgZxn','Integer','minLength','Record','field','resource','7563252QiGXWG','minimum','156258tZMwsp','1272XqrsXd','44vGEEWq','5BMgGOb','String','1867623demgdi','Any','name','maximum','Object','Unknown','pattern','Optional','maxLength','relationId','Array'];_0x480c=function(){return _0x1147c6;};return _0x480c();}(function(_0x1e5d2a,_0xd5fc8c){const _0x376eda=_0x3506,_0x5329ae=_0x1e5d2a();while(!![]){try{const _0x4f8ff6=parseInt(_0x376eda(0x1a6))/0x1+-parseInt(_0x376eda(0x1ab))/0x2*(parseInt(_0x376eda(0x1b9))/0x3)+-parseInt(_0x376eda(0x1a9))/0x4+-parseInt(_0x376eda(0x1b7))/0x5*(-parseInt(_0x376eda(0x1b2))/0x6)+parseInt(_0x376eda(0x1ac))/0x7*(parseInt(_0x376eda(0x1b5))/0x8)+parseInt(_0x376eda(0x1b4))/0x9*(-parseInt(_0x376eda(0x1a8))/0xa)+-parseInt(_0x376eda(0x1b6))/0xb*(-parseInt(_0x376eda(0x1a7))/0xc);if(_0x4f8ff6===_0xd5fc8c)break;else _0x5329ae['push'](_0x5329ae['shift']());}catch(_0x50ddfd){_0x5329ae['push'](_0x5329ae['shift']());}}}(_0x480c,0xb6d52));import{Type}from'@sinclair/typebox';const _0x9dfa74={};_0x9dfa74[_0x316693(0x1ae)]=0x1,_0x9dfa74[_0x316693(0x1a2)]=0x80,_0x9dfa74[_0x316693(0x1a0)]=_0x316693(0x1a5);export const identifier=Type[_0x316693(0x1b8)](_0x9dfa74);const _0x4574bc={};_0x4574bc[_0x316693(0x1bb)]=identifier;const _0x29b697={};_0x29b697[_0x316693(0x1b1)]=identifier;const _0x20897d={};_0x20897d[_0x316693(0x1b1)]=identifier;const _0x210b8f={};_0x210b8f[_0x316693(0x1b1)]=identifier,_0x210b8f[_0x316693(0x1b0)]=identifier;const _0xe885f0={};_0xe885f0[_0x316693(0x1b3)]=0x1,_0xe885f0[_0x316693(0x19d)]=0xc8;const _0x4cf247={};_0x4cf247[_0x316693(0x1b1)]=identifier,_0x4cf247['id']=identifier;const _0x49ae41={};_0x49ae41[_0x316693(0x1b1)]=identifier,_0x49ae41['id']=identifier,_0x49ae41[_0x316693(0x1aa)]=identifier;const _0x5adc51={};_0x5adc51[_0x316693(0x1b1)]=identifier,_0x5adc51['id']=identifier,_0x5adc51[_0x316693(0x1aa)]=identifier,_0x5adc51[_0x316693(0x1a3)]=identifier;const _0x1daa78={};_0x1daa78[_0x316693(0x1b1)]=identifier,_0x1daa78['id']=identifier;const _0x488810={};function _0x3506(_0x1db979,_0x181c9f){_0x1db979=_0x1db979-0x19d;const _0x480cb4=_0x480c();let _0x350625=_0x480cb4[_0x1db979];return _0x350625;}_0x488810[_0x316693(0x1ae)]=0x1,_0x488810[_0x316693(0x1a2)]=0xff;const _0x51ee9c={};_0x51ee9c[_0x316693(0x1ae)]=0x1;const _0x471641={};_0x471641[_0x316693(0x1b3)]=0x1,_0x471641[_0x316693(0x19d)]=0xc8;const _0x4d95b6={};_0x4d95b6[_0x316693(0x1b3)]=0x0;export const resourceSchemas={'dictionaryName':Type[_0x316693(0x19e)](_0x4574bc),'resource':Type[_0x316693(0x19e)](_0x29b697),'exportResource':Type[_0x316693(0x19e)](_0x20897d),'resourceField':Type[_0x316693(0x19e)](_0x210b8f),'suggestQuery':Type[_0x316693(0x19e)]({'q':Type[_0x316693(0x1a1)](Type[_0x316693(0x1b8)]()),'search':Type[_0x316693(0x1a1)](Type[_0x316693(0x1b8)]()),'limit':Type[_0x316693(0x1a1)](Type[_0x316693(0x1ad)](_0xe885f0))}),'resourceId':Type[_0x316693(0x19e)](_0x4cf247),'resourceIdRelation':Type[_0x316693(0x19e)](_0x49ae41),'resourceIdRelationId':Type[_0x316693(0x19e)](_0x5adc51),'uploadResourceFile':Type[_0x316693(0x19e)](_0x1daa78),'uploadResourceFileBody':Type[_0x316693(0x19e)]({'file':Type[_0x316693(0x1ba)](),'fileName':Type[_0x316693(0x1b8)](_0x488810)}),'exportResourceQuery':Type[_0x316693(0x19e)]({'filter':Type[_0x316693(0x1a1)](Type[_0x316693(0x1af)](Type[_0x316693(0x1b8)](),Type[_0x316693(0x19f)]())),'sort':Type[_0x316693(0x1a1)](Type[_0x316693(0x1a4)](Type[_0x316693(0x1b8)](_0x51ee9c))),'search':Type[_0x316693(0x1a1)](Type[_0x316693(0x1b8)]()),'limit':Type[_0x316693(0x1a1)](Type[_0x316693(0x1ad)](_0x471641)),'offset':Type[_0x316693(0x1a1)](Type[_0x316693(0x1ad)](_0x4d95b6)),'fields':Type[_0x316693(0x1a1)](Type[_0x316693(0x1a4)](identifier))})};
@@ -1 +1 @@
1
- (function(_0x5c544f,_0xd094c1){const _0x1b1f31=_0x5950,_0x22a795=_0x5c544f();while(!![]){try{const _0x15df50=-parseInt(_0x1b1f31(0x199))/0x1*(-parseInt(_0x1b1f31(0x19e))/0x2)+parseInt(_0x1b1f31(0x197))/0x3+-parseInt(_0x1b1f31(0x19c))/0x4+parseInt(_0x1b1f31(0x18f))/0x5*(parseInt(_0x1b1f31(0x19a))/0x6)+parseInt(_0x1b1f31(0x193))/0x7*(parseInt(_0x1b1f31(0x194))/0x8)+parseInt(_0x1b1f31(0x18e))/0x9*(-parseInt(_0x1b1f31(0x198))/0xa)+-parseInt(_0x1b1f31(0x19b))/0xb;if(_0x15df50===_0xd094c1)break;else _0x22a795['push'](_0x22a795['shift']());}catch(_0x20dbb8){_0x22a795['push'](_0x22a795['shift']());}}}(_0x44fa,0xbc8ca));function _0x5950(_0x3ff033,_0x5f414c){_0x3ff033=_0x3ff033-0x18e;const _0x44fa75=_0x44fa();let _0x5950dd=_0x44fa75[_0x3ff033];return _0x5950dd;}export async function addNote(_0x4ba8b6,_0x58ffda){const _0x121a9e=_0x5950,_0x1188aa={'nBIGK':function(_0x1c8038,_0x41603){return _0x1c8038(_0x41603);}},_0x20f304=await _0x58ffda['pg'][_0x121a9e(0x19d)](_0x121a9e(0x196),[_0x4ba8b6[_0x121a9e(0x191)],_0x1188aa[_0x121a9e(0x190)](String,_0x4ba8b6['id']),_0x4ba8b6[_0x121a9e(0x192)]]);return _0x20f304[_0x121a9e(0x195)][0x0];}function _0x44fa(){const _0x1338f8=['nBIGK','resource','body','139188zlXJSl','96KcPOAy','rows','INSERT\x20INTO\x20admin.notes(resource,resource_id,body)\x20VALUES\x20($1,$2,$3)\x20RETURNING\x20*','338394XEgYTD','1359140JKrZUr','7159aVbVaf','7863102HJYvUI','7103921cdPyeh','6044256ZdXaJC','query','392kSgzVD','9xguMwm','5JEaIKQ'];_0x44fa=function(){return _0x1338f8;};return _0x44fa();}
1
+ (function(_0x59e670,_0x5af813){const _0x181609=_0x54b8,_0x10fe8d=_0x59e670();while(!![]){try{const _0x1dae60=-parseInt(_0x181609(0x199))/0x1*(parseInt(_0x181609(0x19b))/0x2)+parseInt(_0x181609(0x1a0))/0x3*(-parseInt(_0x181609(0x19d))/0x4)+-parseInt(_0x181609(0x196))/0x5*(-parseInt(_0x181609(0x192))/0x6)+parseInt(_0x181609(0x19e))/0x7*(-parseInt(_0x181609(0x19f))/0x8)+parseInt(_0x181609(0x19a))/0x9+-parseInt(_0x181609(0x198))/0xa+parseInt(_0x181609(0x1a2))/0xb*(parseInt(_0x181609(0x1a1))/0xc);if(_0x1dae60===_0x5af813)break;else _0x10fe8d['push'](_0x10fe8d['shift']());}catch(_0x2fbd0e){_0x10fe8d['push'](_0x10fe8d['shift']());}}}(_0x5e7a,0x39481));function _0x5e7a(){const _0x3f485f=['5268vxwPXo','14kqvaKf','451304fPLTIJ','237dcfZKW','175656jPKzNQ','407vXHATb','INSERT\x20INTO\x20admin.notes(resource,resource_id,body)\x20VALUES\x20($1,$2,$3)\x20RETURNING\x20*','499338sErSDL','IyGkW','body','rows','15LPOrhR','query','4083490lDTttX','232627TTDdDF','2710755nGBQWH','2ItZcYX','resource'];_0x5e7a=function(){return _0x3f485f;};return _0x5e7a();}function _0x54b8(_0x165917,_0x3f9f89){_0x165917=_0x165917-0x192;const _0x5e7a3e=_0x5e7a();let _0x54b89f=_0x5e7a3e[_0x165917];return _0x54b89f;}export async function addNote(_0x329f0f,_0x3676ad){const _0x6da7f7=_0x54b8,_0x48af17={'IyGkW':function(_0x273fba,_0x523a41){return _0x273fba(_0x523a41);}},_0x167303=await _0x3676ad['pg'][_0x6da7f7(0x197)](_0x6da7f7(0x1a3),[_0x329f0f[_0x6da7f7(0x19c)],_0x48af17[_0x6da7f7(0x193)](String,_0x329f0f['id']),_0x329f0f[_0x6da7f7(0x194)]]);return _0x167303[_0x6da7f7(0x195)][0x0];}
@@ -1 +1 @@
1
- function _0x37e6(){const _0x30c282=['4068030tVsMMP','81gGidBu','query','285440SKFCDz','7ZGlyzi','rows','8886232HAwAgX','5487805TAnzEk','3934570vTbRac','resource','52002fKkaZi','9eHZJqS','size','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','filePath','2697800wtDMUv'];_0x37e6=function(){return _0x30c282;};return _0x37e6();}(function(_0x47760b,_0x17f548){const _0x5af525=_0x24d2,_0x532ab9=_0x47760b();while(!![]){try{const _0x1a7ddc=parseInt(_0x5af525(0xec))/0x1+parseInt(_0x5af525(0xf3))/0x2*(parseInt(_0x5af525(0xea))/0x3)+-parseInt(_0x5af525(0xe8))/0x4+-parseInt(_0x5af525(0xf0))/0x5+-parseInt(_0x5af525(0xe9))/0x6*(-parseInt(_0x5af525(0xed))/0x7)+-parseInt(_0x5af525(0xef))/0x8*(-parseInt(_0x5af525(0xe4))/0x9)+-parseInt(_0x5af525(0xf1))/0xa;if(_0x1a7ddc===_0x17f548)break;else _0x532ab9['push'](_0x532ab9['shift']());}catch(_0x4d755e){_0x532ab9['push'](_0x532ab9['shift']());}}}(_0x37e6,0x951df));function _0x24d2(_0x2ed26c,_0x239e9a){_0x2ed26c=_0x2ed26c-0xe4;const _0x37e6ac=_0x37e6();let _0x24d28f=_0x37e6ac[_0x2ed26c];return _0x24d28f;}export async function addResourceFile(_0x8527f3,_0x32f072){const _0x1905c1=_0x24d2,_0x300a5b=await _0x32f072['pg'][_0x1905c1(0xeb)](_0x1905c1(0xe6),[_0x8527f3[_0x1905c1(0xf2)],String(_0x8527f3['id']),_0x8527f3[_0x1905c1(0xe7)],_0x8527f3[_0x1905c1(0xe5)]??null]);return _0x300a5b[_0x1905c1(0xee)][0x0];}
1
+ (function(_0x361dba,_0x542467){const _0x435262=_0x57f4,_0x381674=_0x361dba();while(!![]){try{const _0x41b6d2=parseInt(_0x435262(0x13c))/0x1+-parseInt(_0x435262(0x13e))/0x2*(-parseInt(_0x435262(0x140))/0x3)+parseInt(_0x435262(0x146))/0x4*(parseInt(_0x435262(0x149))/0x5)+-parseInt(_0x435262(0x144))/0x6*(-parseInt(_0x435262(0x143))/0x7)+-parseInt(_0x435262(0x147))/0x8*(parseInt(_0x435262(0x13f))/0x9)+-parseInt(_0x435262(0x148))/0xa+-parseInt(_0x435262(0x142))/0xb;if(_0x41b6d2===_0x542467)break;else _0x381674['push'](_0x381674['shift']());}catch(_0x2ca6e7){_0x381674['push'](_0x381674['shift']());}}}(_0x494e,0x59214));function _0x57f4(_0x369008,_0x3c6af0){_0x369008=_0x369008-0x139;const _0x494e0b=_0x494e();let _0x57f440=_0x494e0b[_0x369008];return _0x57f440;}export async function addResourceFile(_0x1fc84f,_0x46b7f6){const _0x447fbe=_0x57f4,_0x200543=await _0x46b7f6['pg'][_0x447fbe(0x141)](_0x447fbe(0x145),[_0x1fc84f[_0x447fbe(0x13b)],String(_0x1fc84f['id']),_0x1fc84f[_0x447fbe(0x13d)],_0x1fc84f[_0x447fbe(0x139)]??null]);return _0x200543[_0x447fbe(0x13a)][0x0];}function _0x494e(){const _0x5add75=['37514COOqUI','549VdeFUE','9xOHXnS','query','1683902Elywof','721xJMIvt','31614fKFdsI','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','28JaglIn','80088rAWLrE','4791480qszUZS','475845oFUZAU','size','rows','resource','342816pAuzdy','filePath'];_0x494e=function(){return _0x5add75;};return _0x494e();}
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * Implements the create resource relation application service for its module.
3
3
  */
4
- import type { AppContext } from '../../../context.js';
5
- export declare function createResourceRelation(params: any, ctx: AppContext): Promise<never>;
4
+ import type { AppContext, User } from '../../../context.js';
5
+ export declare function createResourceRelation(params: {
6
+ resource: string;
7
+ id: string;
8
+ relation: string;
9
+ data?: any;
10
+ user: User;
11
+ }, ctx: AppContext): Promise<any>;
6
12
  //# sourceMappingURL=create-resource-relation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-resource-relation.d.ts","sourceRoot":"","sources":["../../../../src/modules/resource/services/create-resource-relation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,CAEzF"}
1
+ {"version":3,"file":"create-resource-relation.d.ts","sourceRoot":"","sources":["../../../../src/modules/resource/services/create-resource-relation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,EAClF,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,GAAG,CAAC,CAGd"}
@@ -1 +1 @@
1
- (function(_0x2c3b92,_0x2f95f8){var _0x283dbf=_0x257f,_0x50cc82=_0x2c3b92();while(!![]){try{var _0x3a5c01=-parseInt(_0x283dbf(0xf6))/0x1+-parseInt(_0x283dbf(0xf3))/0x2*(parseInt(_0x283dbf(0xf9))/0x3)+parseInt(_0x283dbf(0xf7))/0x4*(-parseInt(_0x283dbf(0xf2))/0x5)+parseInt(_0x283dbf(0xfc))/0x6*(-parseInt(_0x283dbf(0xf4))/0x7)+-parseInt(_0x283dbf(0xfa))/0x8+-parseInt(_0x283dbf(0xf8))/0x9+-parseInt(_0x283dbf(0xf1))/0xa*(-parseInt(_0x283dbf(0xf5))/0xb);if(_0x3a5c01===_0x2f95f8)break;else _0x50cc82['push'](_0x50cc82['shift']());}catch(_0x102f76){_0x50cc82['push'](_0x50cc82['shift']());}}}(_0x1302,0xce86f));import{unsupported}from'../../utils/unsupported.js';function _0x257f(_0x25ade5,_0x599b64){_0x25ade5=_0x25ade5-0xf0;var _0x13024a=_0x1302();var _0x257f40=_0x13024a[_0x25ade5];return _0x257f40;}export async function createResourceRelation(_0x341d80,_0x25bffb){var _0x53878e=_0x257f,_0x15ba1d={'BYPSg':function(_0x5196ad,_0x2b8d7f){return _0x5196ad(_0x2b8d7f);}};return _0x15ba1d[_0x53878e(0xf0)](unsupported,_0x53878e(0xfb));}function _0x1302(){var _0x18fd59=['10MyAggR','2359815RKpfxh','2lmJatT','4525255TwhecV','42090059OzDkYV','220371YFNStE','4gZGjgn','5265387JzeKfe','3050349yoIzTg','318472ZvhfEF','Generic\x20Resource\x20relations','6BHBYsg','BYPSg'];_0x1302=function(){return _0x18fd59;};return _0x1302();}
1
+ function _0x27d4(){const _0x441aa8=['3075024idHMct','379620fiGSfX','6180256lByrLc','7mEnBDT','data','299983SjPmdt','13020588zrNySs','relation','2844870EFnmQU','name','resource','user','2SuOPfG','3701121ISmOeM','createRelation'];_0x27d4=function(){return _0x441aa8;};return _0x27d4();}function _0x4e13(_0x166109,_0x28e6c6){_0x166109=_0x166109-0x76;const _0x27d4bc=_0x27d4();let _0x4e1305=_0x27d4bc[_0x166109];return _0x4e1305;}(function(_0x5f2bdb,_0x4d0e6b){const _0x567542=_0x4e13,_0x296465=_0x5f2bdb();while(!![]){try{const _0x2e8af3=parseInt(_0x567542(0x7c))/0x1+parseInt(_0x567542(0x83))/0x2*(parseInt(_0x567542(0x84))/0x3)+parseInt(_0x567542(0x77))/0x4+parseInt(_0x567542(0x78))/0x5+parseInt(_0x567542(0x7f))/0x6+parseInt(_0x567542(0x7a))/0x7*(-parseInt(_0x567542(0x79))/0x8)+-parseInt(_0x567542(0x7d))/0x9;if(_0x2e8af3===_0x4d0e6b)break;else _0x296465['push'](_0x296465['shift']());}catch(_0x2c4fc2){_0x296465['push'](_0x296465['shift']());}}}(_0x27d4,0x9a9a3));export async function createResourceRelation(_0x5df916,_0x98764a){const _0x1949d2=_0x4e13,{resource:_0x3c17d1,id:_0x4b8792,relation:_0x563bac,data:_0x2a8653,user:_0x4d9fc1}=_0x5df916,_0x47e287={};return _0x47e287[_0x1949d2(0x80)]=_0x3c17d1,_0x47e287['id']=_0x4b8792,_0x47e287[_0x1949d2(0x7e)]=_0x563bac,_0x47e287[_0x1949d2(0x7b)]=_0x2a8653,_0x47e287[_0x1949d2(0x82)]=_0x4d9fc1,_0x98764a[_0x1949d2(0x81)][_0x1949d2(0x76)](_0x47e287);}
@@ -1 +1 @@
1
- (function(_0x1a6305,_0x1fb81c){var _0x554a33=_0x2d10,_0xc37be1=_0x1a6305();while(!![]){try{var _0x594509=-parseInt(_0x554a33(0x17e))/0x1+parseInt(_0x554a33(0x17f))/0x2*(parseInt(_0x554a33(0x189))/0x3)+parseInt(_0x554a33(0x180))/0x4*(parseInt(_0x554a33(0x18b))/0x5)+parseInt(_0x554a33(0x184))/0x6+parseInt(_0x554a33(0x188))/0x7*(parseInt(_0x554a33(0x17d))/0x8)+parseInt(_0x554a33(0x183))/0x9*(-parseInt(_0x554a33(0x181))/0xa)+-parseInt(_0x554a33(0x182))/0xb;if(_0x594509===_0x1fb81c)break;else _0xc37be1['push'](_0xc37be1['shift']());}catch(_0x91bd58){_0xc37be1['push'](_0xc37be1['shift']());}}}(_0x559c,0x78a00));function _0x559c(){var _0x1fb6ce=['514339rqlUqt','1829658HpejpJ','name','10VsxPJe','user','8aBkJmD','197577Phudnx','2ucLNdp','602380pqADAD','420SzDsvx','5601508jIglAj','7641XwdSOP','1511940NBepVw','create','data','resource'];_0x559c=function(){return _0x1fb6ce;};return _0x559c();}function _0x2d10(_0x5760c8,_0x22886c){_0x5760c8=_0x5760c8-0x17c;var _0x559ce1=_0x559c();var _0x2d1083=_0x559ce1[_0x5760c8];return _0x2d1083;}export async function createResource(_0x515c77,_0x130cf9){var _0x5e426a=_0x2d10,_0x4f5938={};return _0x4f5938[_0x5e426a(0x18a)]=_0x515c77[_0x5e426a(0x187)],_0x4f5938[_0x5e426a(0x186)]=_0x515c77[_0x5e426a(0x186)],_0x4f5938[_0x5e426a(0x17c)]=_0x515c77[_0x5e426a(0x17c)],_0x130cf9[_0x5e426a(0x187)][_0x5e426a(0x185)](_0x4f5938);}
1
+ (function(_0x14fbf2,_0x1fef71){var _0x593e07=_0x25ea,_0x200884=_0x14fbf2();while(!![]){try{var _0x1a788c=-parseInt(_0x593e07(0x1bd))/0x1*(parseInt(_0x593e07(0x1cb))/0x2)+-parseInt(_0x593e07(0x1bf))/0x3+parseInt(_0x593e07(0x1cd))/0x4*(-parseInt(_0x593e07(0x1c1))/0x5)+-parseInt(_0x593e07(0x1c9))/0x6*(-parseInt(_0x593e07(0x1cc))/0x7)+parseInt(_0x593e07(0x1ca))/0x8*(-parseInt(_0x593e07(0x1c7))/0x9)+-parseInt(_0x593e07(0x1c6))/0xa*(-parseInt(_0x593e07(0x1c0))/0xb)+parseInt(_0x593e07(0x1c2))/0xc;if(_0x1a788c===_0x1fef71)break;else _0x200884['push'](_0x200884['shift']());}catch(_0x21c580){_0x200884['push'](_0x200884['shift']());}}}(_0x218d,0x6c09e));function _0x25ea(_0x5c7959,_0x512ac4){_0x5c7959=_0x5c7959-0x1bd;var _0x218d90=_0x218d();var _0x25eab6=_0x218d90[_0x5c7959];return _0x25eab6;}export async function createResource(_0x19eb76,_0x5f505b){var _0x21b6f4=_0x25ea,_0x241061={};return _0x241061[_0x21b6f4(0x1c8)]=_0x19eb76[_0x21b6f4(0x1c5)],_0x241061[_0x21b6f4(0x1c3)]=_0x19eb76[_0x21b6f4(0x1c3)],_0x241061[_0x21b6f4(0x1be)]=_0x19eb76[_0x21b6f4(0x1be)],_0x5f505b[_0x21b6f4(0x1c5)][_0x21b6f4(0x1c4)](_0x241061);}function _0x218d(){var _0x2ca2ff=['resource','3123220xFtUSl','3530151MkZIPo','name','4209720eIkbPh','16rWfEoG','160nKHvPF','7yhpjhq','504148yjcZXy','3516uOrPyG','user','2222403KArpPo','22juKzaV','35oAfepb','21660960QXvTnD','data','create'];_0x218d=function(){return _0x2ca2ff;};return _0x218d();}
@@ -2,5 +2,12 @@
2
2
  * Implements the delete resource relation application service for its module.
3
3
  */
4
4
  import type { AppContext } from '../../../context.js';
5
- export declare function deleteResourceRelation(params: any, ctx: AppContext): Promise<never>;
5
+ export declare function deleteResourceRelation(params: {
6
+ resource: string;
7
+ id: string;
8
+ relation: string;
9
+ relationId: string;
10
+ }, ctx: AppContext): Promise<{
11
+ success: boolean;
12
+ }>;
6
13
  //# sourceMappingURL=delete-resource-relation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-resource-relation.d.ts","sourceRoot":"","sources":["../../../../src/modules/resource/services/delete-resource-relation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,CAEzF"}
1
+ {"version":3,"file":"delete-resource-relation.d.ts","sourceRoot":"","sources":["../../../../src/modules/resource/services/delete-resource-relation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAC9E,GAAG,EAAE,UAAU,GACd,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAG/B"}
@@ -1 +1 @@
1
- function _0xc40a(_0x4d8b46,_0x531f34){_0x4d8b46=_0x4d8b46-0x7c;var _0x161716=_0x1617();var _0xc40ab7=_0x161716[_0x4d8b46];return _0xc40ab7;}(function(_0x18fb66,_0x3cfbe2){var _0x5388fc=_0xc40a,_0x44d329=_0x18fb66();while(!![]){try{var _0x2b6114=parseInt(_0x5388fc(0x85))/0x1*(parseInt(_0x5388fc(0x87))/0x2)+-parseInt(_0x5388fc(0x89))/0x3+-parseInt(_0x5388fc(0x7f))/0x4+-parseInt(_0x5388fc(0x88))/0x5*(-parseInt(_0x5388fc(0x7c))/0x6)+-parseInt(_0x5388fc(0x81))/0x7*(-parseInt(_0x5388fc(0x7d))/0x8)+-parseInt(_0x5388fc(0x80))/0x9+-parseInt(_0x5388fc(0x82))/0xa*(-parseInt(_0x5388fc(0x86))/0xb);if(_0x2b6114===_0x3cfbe2)break;else _0x44d329['push'](_0x44d329['shift']());}catch(_0xec8951){_0x44d329['push'](_0x44d329['shift']());}}}(_0x1617,0xcc9e7));import{unsupported}from'../../utils/unsupported.js';export async function deleteResourceRelation(_0x3175e3,_0x57dc4e){var _0x1d4e6d=_0xc40a,_0x4906ad={'MGVdg':function(_0xc43279,_0x50af2c){return _0xc43279(_0x50af2c);},'MCXNQ':_0x1d4e6d(0x84)};return _0x4906ad[_0x1d4e6d(0x7e)](unsupported,_0x4906ad[_0x1d4e6d(0x83)]);}function _0x1617(){var _0xf82af2=['Generic\x20Resource\x20relations','444784vBXbHN','13840574eQbtRJ','4JLJqDz','20lxqUgq','2683275KryNyu','1262598iiOrfJ','1760816ZPJJoC','MGVdg','3918396SEdsvT','14382027kMkvnq','42ldhGmD','10odBBTR','MCXNQ'];_0x1617=function(){return _0xf82af2;};return _0x1617();}
1
+ (function(_0xe8d5c6,_0x2b5170){const _0x3d742e=_0xb8ef,_0x216818=_0xe8d5c6();while(!![]){try{const _0x3c6b6f=parseInt(_0x3d742e(0x168))/0x1*(-parseInt(_0x3d742e(0x165))/0x2)+-parseInt(_0x3d742e(0x161))/0x3*(-parseInt(_0x3d742e(0x16e))/0x4)+parseInt(_0x3d742e(0x167))/0x5*(-parseInt(_0x3d742e(0x16f))/0x6)+-parseInt(_0x3d742e(0x164))/0x7+parseInt(_0x3d742e(0x16c))/0x8+-parseInt(_0x3d742e(0x166))/0x9*(parseInt(_0x3d742e(0x16b))/0xa)+parseInt(_0x3d742e(0x162))/0xb;if(_0x3c6b6f===_0x2b5170)break;else _0x216818['push'](_0x216818['shift']());}catch(_0x25d52c){_0x216818['push'](_0x216818['shift']());}}}(_0x2e20,0xa5a21));export async function deleteResourceRelation(_0x5ac1d6,_0x41aa1b){const _0x3c511f=_0xb8ef,{resource:_0x5a3d81,id:_0x4f5e51,relation:_0x4ea19d,relationId:_0x2d9be8}=_0x5ac1d6,_0x2f5692={};return _0x2f5692[_0x3c511f(0x16d)]=_0x5a3d81,_0x2f5692['id']=_0x4f5e51,_0x2f5692[_0x3c511f(0x170)]=_0x4ea19d,_0x2f5692[_0x3c511f(0x16a)]=_0x2d9be8,_0x41aa1b[_0x3c511f(0x163)][_0x3c511f(0x169)](_0x2f5692);}function _0xb8ef(_0xc8d058,_0x5f2463){_0xc8d058=_0xc8d058-0x161;const _0x2e209e=_0x2e20();let _0xb8ef84=_0x2e209e[_0xc8d058];return _0xb8ef84;}function _0x2e20(){const _0x3265f4=['357DcHbVZ','20156334mMkmxO','resource','6196925VqLkxf','4358CnWCOb','2977857HhuYlQ','5fGxAzf','156NgeNwF','deleteRelation','relationId','20lRDkvR','6288144aJWMbP','name','8812WntWhm','1891146NFbpen','relation'];_0x2e20=function(){return _0x3265f4;};return _0x2e20();}
@@ -1 +1 @@
1
- function _0x3417(_0x4676ee,_0x2f1834){_0x4676ee=_0x4676ee-0x1b0;var _0xdb22d1=_0xdb22();var _0x3417eb=_0xdb22d1[_0x4676ee];return _0x3417eb;}function _0xdb22(){var _0x2105ec=['name','2gbYXbW','delete','700760PNfxIb','416420LmMMno','6ukXLqe','4047429DEoQFj','4391835bTHMQR','235976mnaAOL','751688JlHcYZ','user','319WplRAz','180sfMric','918458QeksdI','resource'];_0xdb22=function(){return _0x2105ec;};return _0xdb22();}(function(_0xb3e3dc,_0x19c8eb){var _0x1f2162=_0x3417,_0x242b74=_0xb3e3dc();while(!![]){try{var _0x295335=-parseInt(_0x1f2162(0x1b8))/0x1+-parseInt(_0x1f2162(0x1bb))/0x2*(-parseInt(_0x1f2162(0x1b1))/0x3)+parseInt(_0x1f2162(0x1b3))/0x4+parseInt(_0x1f2162(0x1b2))/0x5+parseInt(_0x1f2162(0x1b0))/0x6*(parseInt(_0x1f2162(0x1b4))/0x7)+parseInt(_0x1f2162(0x1bd))/0x8*(-parseInt(_0x1f2162(0x1b7))/0x9)+-parseInt(_0x1f2162(0x1be))/0xa*(-parseInt(_0x1f2162(0x1b6))/0xb);if(_0x295335===_0x19c8eb)break;else _0x242b74['push'](_0x242b74['shift']());}catch(_0x369c66){_0x242b74['push'](_0x242b74['shift']());}}}(_0xdb22,0xe354c));export async function deleteResource(_0x3433a6,_0x3478dc){var _0x2e3bd7=_0x3417,_0x156864={};return _0x156864[_0x2e3bd7(0x1ba)]=_0x3433a6[_0x2e3bd7(0x1b9)],_0x156864['id']=_0x3433a6['id'],_0x156864[_0x2e3bd7(0x1b5)]=_0x3433a6[_0x2e3bd7(0x1b5)],_0x3478dc[_0x2e3bd7(0x1b9)][_0x2e3bd7(0x1bc)](_0x156864);}
1
+ function _0x3440(_0x284297,_0x55cbc3){_0x284297=_0x284297-0x184;var _0x2befda=_0x2bef();var _0x3440f2=_0x2befda[_0x284297];return _0x3440f2;}(function(_0x4f1b89,_0xdbedac){var _0x1eb2f7=_0x3440,_0x555a55=_0x4f1b89();while(!![]){try{var _0x2bddc8=-parseInt(_0x1eb2f7(0x185))/0x1*(-parseInt(_0x1eb2f7(0x18a))/0x2)+parseInt(_0x1eb2f7(0x188))/0x3*(-parseInt(_0x1eb2f7(0x18d))/0x4)+parseInt(_0x1eb2f7(0x193))/0x5*(-parseInt(_0x1eb2f7(0x192))/0x6)+-parseInt(_0x1eb2f7(0x18b))/0x7*(-parseInt(_0x1eb2f7(0x18c))/0x8)+parseInt(_0x1eb2f7(0x18f))/0x9+-parseInt(_0x1eb2f7(0x18e))/0xa*(parseInt(_0x1eb2f7(0x189))/0xb)+parseInt(_0x1eb2f7(0x187))/0xc;if(_0x2bddc8===_0xdbedac)break;else _0x555a55['push'](_0x555a55['shift']());}catch(_0x44501e){_0x555a55['push'](_0x555a55['shift']());}}}(_0x2bef,0xb0cf5));function _0x2bef(){var _0x22ad72=['name','resource','46362bfvdoh','515LIxkMB','delete','6098AYxwvL','user','11801052EsDwTN','54MLRDyG','8537254wVrjER','130iEzrgP','7ShdlpG','2184888BfKDQs','64160RFSnPN','10BnsVOo','8388234hYzVvT'];_0x2bef=function(){return _0x22ad72;};return _0x2bef();}export async function deleteResource(_0x4c9773,_0x57aded){var _0x31a0d6=_0x3440,_0x2eb3c0={};return _0x2eb3c0[_0x31a0d6(0x190)]=_0x4c9773[_0x31a0d6(0x191)],_0x2eb3c0['id']=_0x4c9773['id'],_0x2eb3c0[_0x31a0d6(0x186)]=_0x4c9773[_0x31a0d6(0x186)],_0x57aded[_0x31a0d6(0x191)][_0x31a0d6(0x184)](_0x2eb3c0);}