@opengis/fcore 0.0.1-beta.4 → 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 (179) 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.map +1 -1
  9. package/dist/fastify.js +1 -1
  10. package/dist/fcore.js +1 -1
  11. package/dist/index.d.ts +0 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/migrations/cli.js +1 -1
  15. package/dist/migrations/runner.js +1 -1
  16. package/dist/modules/auth/adduser-cli.d.ts +3 -0
  17. package/dist/modules/auth/adduser-cli.d.ts.map +1 -0
  18. package/dist/modules/auth/adduser-cli.js +2 -0
  19. package/dist/modules/auth/passwd-cli.d.ts +3 -0
  20. package/dist/modules/auth/passwd-cli.d.ts.map +1 -0
  21. package/dist/modules/auth/passwd-cli.js +2 -0
  22. package/dist/modules/auth/permission-cli.d.ts +3 -0
  23. package/dist/modules/auth/permission-cli.d.ts.map +1 -0
  24. package/dist/modules/auth/permission-cli.js +2 -0
  25. package/dist/modules/auth/route.d.ts.map +1 -1
  26. package/dist/modules/auth/route.js +1 -1
  27. package/dist/modules/auth/schema.d.ts +7 -1
  28. package/dist/modules/auth/schema.d.ts.map +1 -1
  29. package/dist/modules/auth/schema.js +1 -1
  30. package/dist/modules/auth/services/change-password.d.ts +9 -0
  31. package/dist/modules/auth/services/change-password.d.ts.map +1 -0
  32. package/dist/modules/auth/services/change-password.js +1 -0
  33. package/dist/modules/auth/services/get-current-user.js +1 -1
  34. package/dist/modules/auth/services/registration.d.ts +14 -0
  35. package/dist/modules/auth/services/registration.d.ts.map +1 -0
  36. package/dist/modules/auth/services/registration.js +1 -0
  37. package/dist/modules/auth/services/verify-two-factor.js +1 -1
  38. package/dist/modules/file/route.js +1 -1
  39. package/dist/modules/file/schema.js +1 -1
  40. package/dist/modules/file/services/get-file.js +1 -1
  41. package/dist/modules/file/services/resize-file.js +1 -1
  42. package/dist/modules/file/services/upload-file.js +1 -1
  43. package/dist/modules/resource/route.d.ts.map +1 -1
  44. package/dist/modules/resource/route.js +1 -1
  45. package/dist/modules/resource/schema.js +1 -1
  46. package/dist/modules/resource/services/add-note.js +1 -1
  47. package/dist/modules/resource/services/add-resource-file.js +1 -1
  48. package/dist/modules/resource/services/create-resource-relation.d.ts +8 -2
  49. package/dist/modules/resource/services/create-resource-relation.d.ts.map +1 -1
  50. package/dist/modules/resource/services/create-resource-relation.js +1 -1
  51. package/dist/modules/resource/services/create-resource.js +1 -1
  52. package/dist/modules/resource/services/delete-resource-relation.d.ts +8 -1
  53. package/dist/modules/resource/services/delete-resource-relation.d.ts.map +1 -1
  54. package/dist/modules/resource/services/delete-resource-relation.js +1 -1
  55. package/dist/modules/resource/services/delete-resource.js +1 -1
  56. package/dist/modules/resource/services/export-resource.js +1 -1
  57. package/dist/modules/resource/services/get-resource.js +1 -1
  58. package/dist/modules/resource/services/list-resource-relation.d.ts +7 -2
  59. package/dist/modules/resource/services/list-resource-relation.d.ts.map +1 -1
  60. package/dist/modules/resource/services/list-resource-relation.js +1 -1
  61. package/dist/modules/resource/services/list-resources.js +1 -1
  62. package/dist/modules/resource/services/search-resource.js +1 -1
  63. package/dist/modules/resource/services/suggest-resource.d.ts +3 -0
  64. package/dist/modules/resource/services/suggest-resource.d.ts.map +1 -1
  65. package/dist/modules/resource/services/suggest-resource.js +1 -1
  66. package/dist/modules/resource/services/update-resource.js +1 -1
  67. package/dist/modules/resource/services/upload-resource-file.js +1 -1
  68. package/dist/modules/system/route.d.ts +2 -1
  69. package/dist/modules/system/route.d.ts.map +1 -1
  70. package/dist/modules/system/route.js +1 -1
  71. package/dist/modules/system/schema.d.ts +22 -1
  72. package/dist/modules/system/schema.d.ts.map +1 -1
  73. package/dist/modules/system/schema.js +1 -1
  74. package/dist/modules/system/services/check-system.d.ts.map +1 -1
  75. package/dist/modules/system/services/check-system.js +1 -1
  76. package/dist/modules/system/services/get-access.d.ts +14 -0
  77. package/dist/modules/system/services/get-access.d.ts.map +1 -0
  78. package/dist/modules/system/services/get-access.js +1 -0
  79. package/dist/modules/system/services/get-api-list.d.ts +4 -1
  80. package/dist/modules/system/services/get-api-list.d.ts.map +1 -1
  81. package/dist/modules/system/services/get-api-list.js +1 -1
  82. package/dist/modules/system/services/get-audit-log.js +1 -1
  83. package/dist/modules/system/services/get-dictionary.js +1 -1
  84. package/dist/modules/system/services/get-system-log.d.ts +9 -5
  85. package/dist/modules/system/services/get-system-log.d.ts.map +1 -1
  86. package/dist/modules/system/services/get-system-log.js +1 -1
  87. package/dist/modules/system/services/get-system-settings.js +1 -1
  88. package/dist/modules/system/services/list-dictionaries.js +1 -1
  89. package/dist/modules/system/services/set-access.d.ts +16 -0
  90. package/dist/modules/system/services/set-access.d.ts.map +1 -0
  91. package/dist/modules/system/services/set-access.js +1 -0
  92. package/dist/modules/system/services/update-dictionary.d.ts +13 -0
  93. package/dist/modules/system/services/update-dictionary.d.ts.map +1 -0
  94. package/dist/modules/system/services/update-dictionary.js +1 -0
  95. package/dist/modules/system/services/update-system-settings.js +1 -1
  96. package/dist/modules/utils/require-admin.js +1 -1
  97. package/dist/modules/utils/safe-user.js +1 -1
  98. package/dist/modules/utils/unsupported.js +1 -1
  99. package/dist/plugins/audit/audit.js +1 -1
  100. package/dist/plugins/audit/index.js +1 -1
  101. package/dist/plugins/audit/services/write-audit.js +1 -1
  102. package/dist/plugins/auth/get-user-permissions.d.ts +3 -0
  103. package/dist/plugins/auth/get-user-permissions.d.ts.map +1 -0
  104. package/dist/plugins/auth/get-user-permissions.js +1 -0
  105. package/dist/plugins/auth/index.d.ts +4 -0
  106. package/dist/plugins/auth/index.d.ts.map +1 -1
  107. package/dist/plugins/auth/index.js +1 -1
  108. package/dist/plugins/auth/verifyUser.d.ts +9 -0
  109. package/dist/plugins/auth/verifyUser.d.ts.map +1 -0
  110. package/dist/plugins/auth/verifyUser.js +1 -0
  111. package/dist/plugins/dictionary.js +1 -1
  112. package/dist/plugins/file.js +1 -1
  113. package/dist/plugins/index.d.ts +1 -0
  114. package/dist/plugins/index.d.ts.map +1 -1
  115. package/dist/plugins/index.js +1 -1
  116. package/dist/plugins/logger/index.js +1 -1
  117. package/dist/plugins/logger/transport.js +1 -1
  118. package/dist/plugins/pg.js +1 -1
  119. package/dist/plugins/redis.js +1 -1
  120. package/dist/plugins/resource/index.js +1 -1
  121. package/dist/plugins/resource/resource.d.ts.map +1 -1
  122. package/dist/plugins/resource/resource.js +1 -1
  123. package/dist/plugins/resource/resource.registry.js +1 -1
  124. package/dist/plugins/resource/resource.types.d.ts +23 -0
  125. package/dist/plugins/resource/resource.types.d.ts.map +1 -1
  126. package/dist/plugins/resource/services/create-relation.d.ts +13 -0
  127. package/dist/plugins/resource/services/create-relation.d.ts.map +1 -0
  128. package/dist/plugins/resource/services/create-relation.js +1 -0
  129. package/dist/plugins/resource/services/create.js +1 -1
  130. package/dist/plugins/resource/services/delete-relation.d.ts +15 -0
  131. package/dist/plugins/resource/services/delete-relation.d.ts.map +1 -0
  132. package/dist/plugins/resource/services/delete-relation.js +1 -0
  133. package/dist/plugins/resource/services/delete.js +1 -1
  134. package/dist/plugins/resource/services/find-one.js +1 -1
  135. package/dist/plugins/resource/services/find-relation.d.ts +12 -0
  136. package/dist/plugins/resource/services/find-relation.d.ts.map +1 -0
  137. package/dist/plugins/resource/services/find-relation.js +1 -0
  138. package/dist/plugins/resource/services/find.js +1 -1
  139. package/dist/plugins/resource/services/update.js +1 -1
  140. package/dist/plugins/resource/utils/fields.js +1 -1
  141. package/dist/plugins/resource/utils/filters.js +1 -1
  142. package/dist/plugins/resource/utils/permissions.js +1 -1
  143. package/dist/plugins/resource/utils/sort.js +1 -1
  144. package/dist/plugins/resource/utils/sql.js +1 -1
  145. package/dist/shared/getIP.js +1 -1
  146. package/dist/type.d.ts +14 -0
  147. package/dist/type.d.ts.map +1 -1
  148. package/migrations/20260903120000_core_schema.sql +22 -19
  149. package/migrations/20260903130000_move_notes_files_to_admin.sql +17 -17
  150. package/migrations/20260903140000_settings_nulls_not_distinct.sql +18 -18
  151. package/migrations/20260905120000_add_user_foreign_keys.sql +43 -0
  152. package/package.json +10 -5
  153. package/dist/modules/auth/index.d.ts +0 -9
  154. package/dist/modules/auth/index.d.ts.map +0 -1
  155. package/dist/modules/auth/index.js +0 -1
  156. package/dist/modules/auth/services/login.d.ts +0 -10
  157. package/dist/modules/auth/services/login.d.ts.map +0 -1
  158. package/dist/modules/auth/services/login.js +0 -1
  159. package/dist/modules/auth/services/logout.d.ts +0 -9
  160. package/dist/modules/auth/services/logout.d.ts.map +0 -1
  161. package/dist/modules/auth/services/logout.js +0 -1
  162. package/dist/modules/auth/services/verifyPassword.d.ts +0 -11
  163. package/dist/modules/auth/services/verifyPassword.d.ts.map +0 -1
  164. package/dist/modules/auth/services/verifyPassword.js +0 -1
  165. package/dist/modules/file/index.d.ts +0 -8
  166. package/dist/modules/file/index.d.ts.map +0 -1
  167. package/dist/modules/file/index.js +0 -1
  168. package/dist/modules/resource/index.d.ts +0 -20
  169. package/dist/modules/resource/index.d.ts.map +0 -1
  170. package/dist/modules/resource/index.js +0 -1
  171. package/dist/modules/resource/services/list-children.d.ts +0 -6
  172. package/dist/modules/resource/services/list-children.d.ts.map +0 -1
  173. package/dist/modules/resource/services/list-children.js +0 -1
  174. package/dist/modules/system/index.d.ts +0 -13
  175. package/dist/modules/system/index.d.ts.map +0 -1
  176. package/dist/modules/system/index.js +0 -1
  177. package/dist/modules/utils/get-user-permissions.d.ts +0 -3
  178. package/dist/modules/utils/get-user-permissions.d.ts.map +0 -1
  179. package/dist/modules/utils/get-user-permissions.js +0 -1
@@ -1 +1 @@
1
- function _0x41c7(){const _0x36ff0b=['ugZnD','Verify\x20two-factor\x20code','public','login','cITBF','AcbwL','vMORg','wYLVX','cookie','hMEYk','Authenticates\x20a\x20user\x20and\x20returns\x20a\x20bearer\x20access\x20token.','destroy','wyIPZ','VOOvE','/api/logout','yICAO','fXgRZ','zgIDO','Get\x20current\x20user','Get\x20two-factor\x20status','uKTnd','JISoj','35008mJkCku','sessionTimeout','ARxIo','13826800hgCkkY','yxbhJ','BtLCm','twoFactor','/api/2factor','Returns\x20the\x20current\x20two-factor\x20authentication\x20status.','GkpRc','mkeRH','schema','1166054NtDOHM','aCRGO','description','nircs','post','Recover\x20two-factor\x20access','get','UWrcm','writable','clearCookie','Not\x20authorized','uTVJk','fArRA','config','sBaGO','sBOHm','29976RKStjS','fcore','auth','MvFdm','JsuPP','7504fziKTB','/api/2factor/reset','configurable','save','credentials','fGVgL','FhkGu','JnTMk','tags','/api/2factor/verify','2724SsZxLx','VHbTQ','Uses\x20a\x20recovery\x20code\x20to\x20restore\x20two-factor\x20access.','eJsJI','408536SlVZBU','Terminates\x20the\x20current\x20user\x20session.','OGaTy','/api/login','Sign\x20out','not\x20supported\x20yet','FvgVB','/api/2factor/qr','permissions','bSyNd','Returns\x20the\x20authenticated\x20user\x27s\x20safe\x20profile.','kGaET','UIsTN','DENtL','Sign\x20in','session','RiSGv','Reset\x20two-factor\x20authentication','243XJbomE','JzITa','value','qzChq','Returns\x20the\x20QR\x20code\x20required\x20to\x20configure\x20two-factor\x20authentication.','Resets\x20two-factor\x20authentication\x20for\x20the\x20current\x20user.','cookieName','summary','ezAug','type','/api/2factor/recovery','695755pWLZSJ','redirectUrl','NVVeR','access','gJOEq','Tfifr','user','body','fRilX','RWKYX','Verifies\x20a\x20two-factor\x20authentication\x20code.','cMwWn','RPNBx','153pjXccS','maxAge','/api/user','ZTPiS','Get\x20two-factor\x20QR\x20code','sessionId','VKcHz','JsuBI','mRpdZ','jvagO','defineProperty'];_0x41c7=function(){return _0x36ff0b;};return _0x41c7();}(function(_0x361f2b,_0x387ba8){const _0x1d5e93=_0x4b8c,_0x479c2f=_0x361f2b();while(!![]){try{const _0x595384=parseInt(_0x1d5e93(0x8f))/0x1+parseInt(_0x1d5e93(0xe6))/0x2+parseInt(_0x1d5e93(0xb9))/0x3*(parseInt(_0x1d5e93(0xda))/0x4)+-parseInt(_0x1d5e93(0xac))/0x5+parseInt(_0x1d5e93(0x8b))/0x6*(parseInt(_0x1d5e93(0x81))/0x7)+-parseInt(_0x1d5e93(0x7c))/0x8*(parseInt(_0x1d5e93(0xa1))/0x9)+-parseInt(_0x1d5e93(0xdd))/0xa;if(_0x595384===_0x387ba8)break;else _0x479c2f['push'](_0x479c2f['shift']());}catch(_0x4e3ee6){_0x479c2f['push'](_0x479c2f['shift']());}}}(_0x41c7,0x49a23));import _0xa92e02 from'./services/login.js';import _0x5c2e1d from'./services/logout.js';function _0x4b8c(_0x1f139a,_0x8ef65){_0x1f139a=_0x1f139a-0x70;const _0x41c71c=_0x41c7();let _0x4b8cc2=_0x41c71c[_0x1f139a];return _0x4b8cc2;}import _0x4f70c2 from'./services/get-current-user.js';import{authSchemas}from'./schema.js';import _0x1ca37d from'../../shared/getIP.js';import{UnauthorizedError,UnsupportedError}from'../../errors.js';export function authRoutes(_0x3a4362){const _0x255fe4=_0x4b8c,_0x5030ee={'eJsJI':_0x255fe4(0x76),'jvagO':_0x255fe4(0x94),'VHbTQ':function(_0x1cf5c3,_0x41d936,_0x436a5b){return _0x1cf5c3(_0x41d936,_0x436a5b);},'bSyNd':_0x255fe4(0x9e),'MvFdm':function(_0x5f0d24,_0x282f43){return _0x5f0d24(_0x282f43);},'FvgVB':function(_0xc8fd1f,_0x1f76ff,_0x5ec4c2){return _0xc8fd1f(_0x1f76ff,_0x5ec4c2);},'UWrcm':function(_0x594a05,_0x54b451){return _0x594a05*_0x54b451;},'uKTnd':function(_0xd8e4e9,_0x3cc0f5){return _0xd8e4e9===_0x3cc0f5;},'aCRGO':_0x255fe4(0xb0),'cITBF':_0x255fe4(0xe9),'mRpdZ':_0x255fe4(0x86),'Tfifr':function(_0x183957,_0x3db13c){return _0x183957===_0x3db13c;},'JsuBI':_0x255fe4(0xe4),'UIsTN':function(_0x26e8e0,_0x5dfd77){return _0x26e8e0!==_0x5dfd77;},'RWKYX':_0x255fe4(0xa2),'yICAO':_0x255fe4(0x7e),'AcbwL':_0x255fe4(0x9d),'hMEYk':_0x255fe4(0xce),'fXgRZ':_0x255fe4(0xc6),'vMORg':_0x255fe4(0xd2),'RiSGv':_0x255fe4(0x7d),'JISoj':_0x255fe4(0xb2),'VOOvE':_0x255fe4(0xd6),'wYLVX':_0x255fe4(0x99),'fRilX':_0x255fe4(0xe1),'zgIDO':_0x255fe4(0xd7),'sBOHm':_0x255fe4(0xe2),'qzChq':_0x255fe4(0x96),'yxbhJ':_0x255fe4(0xa5),'fArRA':_0x255fe4(0x8a),'kGaET':_0x255fe4(0xc5),'OGaTy':_0x255fe4(0xb6),'ARxIo':_0x255fe4(0x71),'sBaGO':_0x255fe4(0x8d),'BtLCm':_0x255fe4(0x82),'cMwWn':_0x255fe4(0xa0),'VKcHz':_0x255fe4(0xa6)};return async _0x19499=>{const _0x56251f=_0x255fe4,_0x3fed30={'wyIPZ':function(_0x59c0f6,_0x3e6cd3){const _0x525b9f=_0x4b8c;return _0x5030ee[_0x525b9f(0x7f)](_0x59c0f6,_0x3e6cd3);},'JsuPP':function(_0x348115,_0x2ff3a3,_0x3a291c){const _0x534f15=_0x4b8c;return _0x5030ee[_0x534f15(0x95)](_0x348115,_0x2ff3a3,_0x3a291c);},'FhkGu':function(_0x4fe5f0,_0x461c48){const _0x2f0a0c=_0x4b8c;return _0x5030ee[_0x2f0a0c(0x73)](_0x4fe5f0,_0x461c48);},'ezAug':function(_0x4251bc,_0x34320e){const _0x5944c1=_0x4b8c;return _0x5030ee[_0x5944c1(0xd8)](_0x4251bc,_0x34320e);},'RPNBx':_0x5030ee[_0x56251f(0xe7)],'JnTMk':_0x5030ee[_0x56251f(0xc2)],'ZTPiS':function(_0x4effbb,_0x596acd){return _0x4effbb===_0x596acd;},'GkpRc':_0x5030ee[_0x56251f(0xc8)],'uTVJk':_0x5030ee[_0x56251f(0x8e)],'NVVeR':_0x5030ee[_0x56251f(0xc1)],'ugZnD':function(_0x596f6d,_0x484a26){const _0x3f3476=_0x56251f;return _0x5030ee[_0x3f3476(0xb1)](_0x596f6d,_0x484a26);},'DENtL':_0x5030ee[_0x56251f(0xc0)]};if(_0x5030ee[_0x56251f(0x9b)](_0x56251f(0xa2),_0x5030ee[_0x56251f(0xb5)])){if(!_0x5a7f72[_0x56251f(0xb2)])throw new _0x4cc73c(_0x5030ee[_0x56251f(0x8e)]);throw new _0x4618cb(_0x5030ee[_0x56251f(0xc2)]);}else{const _0x18b99c={};_0x18b99c[_0x56251f(0x89)]=[_0x56251f(0x7d),_0x5030ee[_0x56251f(0xd3)]],_0x18b99c[_0x56251f(0xa8)]=_0x5030ee[_0x56251f(0xc9)],_0x18b99c[_0x56251f(0xe8)]=_0x5030ee[_0x56251f(0xcd)],_0x18b99c[_0x56251f(0xaf)]=_0x5030ee[_0x56251f(0xd4)],_0x18b99c[_0x56251f(0x97)]=[],_0x18b99c[_0x56251f(0xb3)]=authSchemas[_0x56251f(0x85)];const _0x1d2494={};_0x1d2494[_0x56251f(0xe5)]=_0x18b99c,_0x19499[_0x56251f(0x70)](_0x56251f(0x92),_0x1d2494,async _0x1f8d60=>{const _0x2304c2=_0x56251f,_0x34a297=_0x3fed30[_0x2304c2(0xd0)](_0x1ca37d,_0x1f8d60),_0x1b1f1f={..._0x1f8d60[_0x2304c2(0xb3)]};_0x1b1f1f['ip']=_0x34a297;const {user:_0x117ca0,redirectUrl:redirectUrl='/'}=await _0x3fed30[_0x2304c2(0x80)](_0xa92e02,_0x1b1f1f,_0x3a4362);await _0x1f8d60[_0x2304c2(0xc7)](_0x117ca0);const _0x3412f9=_0x3fed30[_0x2304c2(0x87)](_0x3fed30[_0x2304c2(0x87)](_0x3a4362[_0x2304c2(0x79)][_0x2304c2(0x7e)][_0x2304c2(0xdb)],0x3e8),0x3c);if(_0x1f8d60[_0x2304c2(0x9e)]?.[_0x2304c2(0xcc)]){if(_0x3fed30[_0x2304c2(0xa9)](_0x2304c2(0xb0),_0x3fed30[_0x2304c2(0xb8)]))_0x1f8d60[_0x2304c2(0x9e)][_0x2304c2(0xcc)][_0x2304c2(0xba)]=_0x3412f9;else throw new _0x2ae357(_0x2304c2(0x76));}await _0x1f8d60[_0x2304c2(0x9e)][_0x2304c2(0x84)]();const _0x550e56={};_0x550e56['id']=_0x117ca0['id'],_0x550e56[_0x2304c2(0xaa)]=_0x117ca0[_0x2304c2(0xaa)];const _0x20b7ec={};return _0x20b7ec[_0x2304c2(0xb2)]=_0x550e56,_0x20b7ec[_0x2304c2(0xad)]=redirectUrl,_0x20b7ec;}),_0x19499[_0x56251f(0x70)](_0x5030ee[_0x56251f(0xca)],{'schema':{'tags':[_0x5030ee[_0x56251f(0x9f)],_0x5030ee[_0x56251f(0xd3)]],'summary':_0x56251f(0x93),'description':_0x56251f(0x90),'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[]}},async(_0x33220e,_0x49bd6)=>{const _0x1f984a=_0x56251f,_0x4c5056={};_0x4c5056[_0x1f984a(0xad)]='/';const _0x8238e5=_0x4c5056;if(!_0x33220e[_0x1f984a(0xb2)])return _0x8238e5;const _0x5963f1={};_0x5963f1[_0x1f984a(0xbe)]=_0x33220e[_0x1f984a(0x9e)][_0x1f984a(0xbe)],_0x5963f1[_0x1f984a(0xb2)]=_0x33220e[_0x1f984a(0xb2)],await _0x5030ee[_0x1f984a(0x8c)](_0x5c2e1d,_0x5963f1,_0x3a4362),await _0x33220e[_0x1f984a(0x9e)][_0x1f984a(0xcf)](),_0x49bd6[_0x1f984a(0x75)](_0x3a4362[_0x1f984a(0x79)][_0x1f984a(0x7e)][_0x1f984a(0xa7)]);const _0x104e3={};return _0x104e3[_0x1f984a(0xa3)]=null,_0x104e3[_0x1f984a(0x74)]=![],_0x104e3[_0x1f984a(0x83)]=![],Object[_0x1f984a(0xc3)](_0x33220e,_0x5030ee[_0x1f984a(0x98)],_0x104e3),_0x8238e5;});const _0x3d7773={};_0x3d7773[_0x56251f(0x89)]=[_0x5030ee[_0x56251f(0x9f)],_0x5030ee[_0x56251f(0xd3)]],_0x3d7773[_0x56251f(0xa8)]=_0x5030ee[_0x56251f(0xd1)],_0x3d7773[_0x56251f(0xe8)]=_0x5030ee[_0x56251f(0xcb)],_0x3d7773[_0x56251f(0xaf)]=_0x5030ee[_0x56251f(0xd9)],_0x3d7773[_0x56251f(0x97)]=[];const _0x1a4f3a={};_0x1a4f3a[_0x56251f(0xe5)]=_0x3d7773,_0x19499[_0x56251f(0x72)](_0x56251f(0xbb),_0x1a4f3a,async _0x16c1a8=>_0x4f70c2({'user':_0x16c1a8[_0x56251f(0xb2)]})),_0x19499[_0x56251f(0x72)](_0x5030ee[_0x56251f(0xb4)],{'schema':{'tags':[_0x5030ee[_0x56251f(0x9f)],_0x56251f(0x7e)],'summary':_0x5030ee[_0x56251f(0xd5)],'description':_0x5030ee[_0x56251f(0x7b)],'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[]}},async _0x2c551a=>{const _0x1f831b=_0x56251f;if(!_0x2c551a[_0x1f831b(0xb2)]){if(_0x3fed30[_0x1f831b(0xbc)](_0x3fed30[_0x1f831b(0xe3)],_0x1f831b(0xe9)))throw new UnauthorizedError(_0x3fed30[_0x1f831b(0x77)]);else{if(!_0x2f859e[_0x1f831b(0xb2)])throw new _0x5a34bd(_0x1f831b(0x76));throw new _0x4c8118(_0x3fed30[_0x1f831b(0x88)]);}}throw new UnsupportedError(_0x3fed30[_0x1f831b(0x88)]);}),_0x19499[_0x56251f(0x72)](_0x5030ee[_0x56251f(0xa4)],{'schema':{'tags':[_0x5030ee[_0x56251f(0x9f)],_0x5030ee[_0x56251f(0xd3)]],'summary':_0x56251f(0xbd),'description':_0x5030ee[_0x56251f(0xde)],'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[]}},async _0x3a5303=>{const _0x37619f=_0x56251f;if(!_0x3a5303[_0x37619f(0xb2)])throw new UnauthorizedError(_0x3fed30[_0x37619f(0x77)]);throw new UnsupportedError(_0x37619f(0x94));}),_0x19499[_0x56251f(0x70)](_0x5030ee[_0x56251f(0x78)],{'schema':{'tags':[_0x5030ee[_0x56251f(0x9f)],_0x56251f(0x7e)],'summary':_0x5030ee[_0x56251f(0x9a)],'description':_0x5030ee[_0x56251f(0x91)],'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[],'body':authSchemas[_0x56251f(0xe0)]}},async _0x3b4d55=>{const _0x2f0755=_0x56251f;if(!_0x3b4d55[_0x2f0755(0xb2)])throw new UnauthorizedError(_0x2f0755(0x76));throw new UnsupportedError(_0x3fed30[_0x2f0755(0x88)]);});const _0x4f703a={};_0x4f703a[_0x56251f(0x89)]=[_0x5030ee[_0x56251f(0x9f)],_0x5030ee[_0x56251f(0xd3)]],_0x4f703a[_0x56251f(0xa8)]=_0x5030ee[_0x56251f(0xdc)],_0x4f703a[_0x56251f(0xe8)]=_0x5030ee[_0x56251f(0x7a)],_0x4f703a[_0x56251f(0xaf)]=_0x5030ee[_0x56251f(0xd9)],_0x4f703a[_0x56251f(0x97)]=[],_0x4f703a[_0x56251f(0xb3)]=authSchemas[_0x56251f(0xe0)];const _0x5c5e50={};_0x5c5e50[_0x56251f(0xe5)]=_0x4f703a,_0x19499[_0x56251f(0x70)](_0x56251f(0xab),_0x5c5e50,async _0x4e29b7=>{const _0x5ce732=_0x56251f;if(!_0x4e29b7[_0x5ce732(0xb2)])throw new UnauthorizedError(_0x5ce732(0x76));throw new UnsupportedError(_0x3fed30[_0x5ce732(0x88)]);}),_0x19499[_0x56251f(0x70)](_0x5030ee[_0x56251f(0xdf)],{'schema':{'tags':[_0x56251f(0x7d),_0x5030ee[_0x56251f(0xd3)]],'summary':_0x5030ee[_0x56251f(0xb7)],'description':_0x5030ee[_0x56251f(0xbf)],'access':_0x5030ee[_0x56251f(0xd9)],'permissions':[],'body':authSchemas[_0x56251f(0xe0)]}},async _0xd78a4d=>{const _0x2c31dd=_0x56251f;if(_0x3fed30[_0x2c31dd(0xae)]!==_0x2c31dd(0x86))_0x500826[_0x2c31dd(0x9e)][_0x2c31dd(0xcc)][_0x2c31dd(0xba)]=_0x45487b;else{if(!_0xd78a4d[_0x2c31dd(0xb2)]){if(_0x3fed30[_0x2c31dd(0xc4)](_0x3fed30[_0x2c31dd(0x9c)],_0x3fed30[_0x2c31dd(0x9c)]))throw new UnauthorizedError(_0x3fed30[_0x2c31dd(0x77)]);else return _0x3f32f6;}throw new UnsupportedError(_0x3fed30[_0x2c31dd(0x88)]);}});}};}
1
+ (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
- const _0x31e094=_0x424f;(function(_0x5fa0c8,_0x517124){const _0x23a907=_0x424f,_0xc39c9d=_0x5fa0c8();while(!![]){try{const _0x321798=-parseInt(_0x23a907(0x1e9))/0x1+parseInt(_0x23a907(0x1f0))/0x2*(-parseInt(_0x23a907(0x1ea))/0x3)+-parseInt(_0x23a907(0x1e8))/0x4*(parseInt(_0x23a907(0x1e7))/0x5)+parseInt(_0x23a907(0x1e6))/0x6*(parseInt(_0x23a907(0x1e5))/0x7)+-parseInt(_0x23a907(0x1e3))/0x8*(-parseInt(_0x23a907(0x1e4))/0x9)+parseInt(_0x23a907(0x1e1))/0xa+parseInt(_0x23a907(0x1ef))/0xb*(parseInt(_0x23a907(0x1ee))/0xc);if(_0x321798===_0x517124)break;else _0xc39c9d['push'](_0xc39c9d['shift']());}catch(_0x4da2df){_0xc39c9d['push'](_0xc39c9d['shift']());}}}(_0x19bd,0xa08ef));import{Type}from'@sinclair/typebox';const _0x1dacc9={};_0x1dacc9[_0x31e094(0x1e2)]=0x1,_0x1dacc9[_0x31e094(0x1ed)]=0x64;function _0x424f(_0xe6d329,_0x367a18){_0xe6d329=_0xe6d329-0x1e1;const _0x19bd28=_0x19bd();let _0x424fc0=_0x19bd28[_0xe6d329];return _0x424fc0;}const _0x5cbfd7={};_0x5cbfd7[_0x31e094(0x1e2)]=0x1,_0x5cbfd7[_0x31e094(0x1ed)]=0x64;const _0x22809e={};function _0x19bd(){const _0x26fed0=['22DXMaPG','4vdvOBz','2156750ZqoOCU','minLength','248wwNBYG','351531CgFOZF','6366850zbjHSu','6xJrXsO','10mjyOIx','1763108SlCBCo','1243109cSHNvW','524859pmjssU','Object','String','maxLength','4776972zxnAcI'];_0x19bd=function(){return _0x26fed0;};return _0x19bd();}_0x22809e[_0x31e094(0x1e2)]=0x1;export const authSchemas={'credentials':Type[_0x31e094(0x1eb)]({'login':Type[_0x31e094(0x1ec)](_0x1dacc9),'password':Type[_0x31e094(0x1ec)](_0x5cbfd7)}),'twoFactor':Type[_0x31e094(0x1eb)]({'code':Type[_0x31e094(0x1ec)](_0x22809e)})};
1
+ 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 _0x2a6b(_0x140a13,_0x88c2a1){_0x140a13=_0x140a13-0x135;const _0x4ca9ea=_0x4ca9();let _0x2a6bd1=_0x4ca9ea[_0x140a13];return _0x2a6bd1;}(function(_0x206861,_0x46859f){const _0x451606=_0x2a6b,_0x41c64b=_0x206861();while(!![]){try{const _0x1cdca8=-parseInt(_0x451606(0x135))/0x1+parseInt(_0x451606(0x13a))/0x2*(-parseInt(_0x451606(0x136))/0x3)+parseInt(_0x451606(0x13e))/0x4+-parseInt(_0x451606(0x138))/0x5+-parseInt(_0x451606(0x137))/0x6+-parseInt(_0x451606(0x13b))/0x7+parseInt(_0x451606(0x139))/0x8;if(_0x1cdca8===_0x46859f)break;else _0x41c64b['push'](_0x41c64b['shift']());}catch(_0x2ff9b0){_0x41c64b['push'](_0x41c64b['shift']());}}}(_0x4ca9,0xdcafa));import{safeUser}from'../../utils/safe-user.js';function _0x4ca9(){const _0x3c607c=['999848UBCqCQ','193549BONXwV','6474ISMzBS','5936688HwqtOz','1557825QZCzgy','38304688tLMgJB','1384klWOjA','8023540wpTCUT','fBxKo','Mtxrx'];_0x4ca9=function(){return _0x3c607c;};return _0x4ca9();}export default async function getCurrentUser(_0x1f0232){const _0x198581=_0x2a6b,_0x5c34b9={'Mtxrx':function(_0x7ce7ac,_0x54d008){return _0x7ce7ac(_0x54d008);},'fBxKo':function(_0x576528,_0x1ba14e){return _0x576528||_0x1ba14e;}},{user:_0x12a6ef}=_0x1f0232;return _0x5c34b9[_0x198581(0x13d)](safeUser,_0x5c34b9[_0x198581(0x13c)](_0x12a6ef,{}));}
1
+ (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(_0x2d5584,_0x26cd9a){var _0x1881c2=_0x5014,_0x5e9a55=_0x2d5584();while(!![]){try{var _0x17f38f=-parseInt(_0x1881c2(0x175))/0x1+parseInt(_0x1881c2(0x170))/0x2*(parseInt(_0x1881c2(0x16e))/0x3)+parseInt(_0x1881c2(0x171))/0x4*(parseInt(_0x1881c2(0x178))/0x5)+parseInt(_0x1881c2(0x173))/0x6*(parseInt(_0x1881c2(0x176))/0x7)+-parseInt(_0x1881c2(0x179))/0x8+parseInt(_0x1881c2(0x172))/0x9+-parseInt(_0x1881c2(0x177))/0xa*(-parseInt(_0x1881c2(0x16f))/0xb);if(_0x17f38f===_0x26cd9a)break;else _0x5e9a55['push'](_0x5e9a55['shift']());}catch(_0x1b7af8){_0x5e9a55['push'](_0x5e9a55['shift']());}}}(_0x4ad0,0x6573f));import{unsupported}from'../../utils/unsupported.js';function _0x5014(_0x4a55c0,_0x4db151){_0x4a55c0=_0x4a55c0-0x16c;var _0x4ad09f=_0x4ad0();var _0x50145e=_0x4ad09f[_0x4a55c0];return _0x50145e;}export default async function verifyTwoFactor(_0x2e97a8,_0x516cbb){var _0x347003=_0x5014,_0x208024={'ZaqUn':function(_0x53a4a8,_0x322dab){return _0x53a4a8(_0x322dab);},'ziPeu':_0x347003(0x16d)};return _0x208024[_0x347003(0x16c)](unsupported,_0x208024[_0x347003(0x174)]);}function _0x4ad0(){var _0x4d269a=['1165813EgiatP','2wSHsCR','4KoDlWM','1320381cokkOK','50190AmVTup','ziPeu','431985lHwCjO','329DYgGXy','70RPAOYZ','1172095zkgqHk','6043192acdzwr','ZaqUn','Two-factor\x20provider','260313eGjXAf'];_0x4ad0=function(){return _0x4d269a;};return _0x4ad0();}
1
+ 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(_0x48f558,_0x4a1476){var _0x341088=_0x12ec,_0x402ef5=_0x48f558();while(!![]){try{var _0x49f050=parseInt(_0x341088(0x19d))/0x1+parseInt(_0x341088(0x182))/0x2*(-parseInt(_0x341088(0x195))/0x3)+parseInt(_0x341088(0x1aa))/0x4+parseInt(_0x341088(0x187))/0x5+-parseInt(_0x341088(0x1ac))/0x6*(parseInt(_0x341088(0x19a))/0x7)+-parseInt(_0x341088(0x1a4))/0x8+parseInt(_0x341088(0x19b))/0x9*(parseInt(_0x341088(0x186))/0xa);if(_0x49f050===_0x4a1476)break;else _0x402ef5['push'](_0x402ef5['shift']());}catch(_0xdaa286){_0x402ef5['push'](_0x402ef5['shift']());}}}(_0x2576,0x3cb95));import{uploadFile}from'./services/upload-file.js';function _0x12ec(_0xe6b3fc,_0x33b1bb){_0xe6b3fc=_0xe6b3fc-0x181;var _0x2576ba=_0x2576();var _0x12ecca=_0x2576ba[_0xe6b3fc];return _0x12ecca;}import{resizeFile}from'./services/resize-file.js';import{fileSchemas}from'./schema.js';function _0x2576(){var _0x318355=['Uploads\x20a\x20file\x20and\x20stores\x20its\x20metadata.','user','Returns\x20a\x20file\x20after\x20verifying\x20its\x20signed\x20access\x20token.','Returns\x20a\x20resized\x20image\x20file.','ARHPq','JfGXA','/api/file/:token/resize','BXtDs','query','uzCMN','params','3VXsLjO','iRfvN','KUXJC','fcore','Get\x20file\x20by\x20token','636139ZxEDUC','126KkruOe','jaZmW','397679jUJxUM','WqjHA','SsIio','bvsxe','Upload\x20file','/api/file/:token','FpsHE','3900712IpqCkC','qkCXi','fileToken','public','get','send','27048scCByA','post','24tfoSNf','LrbYC','/api/file/upload','upload','verify','token','resizeQuery','402260EOwbrC','files:read','files:create','Resize\x20file','545460tKARlP','664335Ajsneu','file','body'];_0x2576=function(){return _0x318355;};return _0x2576();}export function fileRoutes(_0x9a6583){var _0x5278b4=_0x12ec,_0x37d473={};_0x37d473[_0x5278b4(0x18e)]=_0x5278b4(0x1a2),_0x37d473[_0x5278b4(0x193)]=_0x5278b4(0x188),_0x37d473[_0x5278b4(0x1ad)]=_0x5278b4(0x199),_0x37d473[_0x5278b4(0x1a5)]=_0x5278b4(0x18c),_0x37d473[_0x5278b4(0x191)]=_0x5278b4(0x1a7),_0x37d473[_0x5278b4(0x1a3)]=_0x5278b4(0x1ae),_0x37d473[_0x5278b4(0x19c)]=_0x5278b4(0x198),_0x37d473[_0x5278b4(0x197)]=_0x5278b4(0x1a1),_0x37d473[_0x5278b4(0x1a0)]=_0x5278b4(0x18b),_0x37d473[_0x5278b4(0x19f)]=_0x5278b4(0x184),_0x37d473[_0x5278b4(0x196)]=_0x5278b4(0x190),_0x37d473[_0x5278b4(0x18f)]=_0x5278b4(0x18d),_0x37d473[_0x5278b4(0x19e)]=_0x5278b4(0x183);var _0x46d816=_0x37d473;return async _0x2b6fd2=>{var _0x184368=_0x5278b4;_0x2b6fd2[_0x184368(0x1a8)](_0x46d816[_0x184368(0x18e)],{'schema':{'tags':[_0x184368(0x198),_0x46d816[_0x184368(0x193)]],'summary':_0x46d816[_0x184368(0x1ad)],'description':_0x46d816[_0x184368(0x1a5)],'access':_0x46d816[_0x184368(0x191)],'permissions':[],'params':fileSchemas[_0x184368(0x1a6)]}},async(_0x3a1114,_0x4a10e7)=>_0x4a10e7[_0x184368(0x1a9)](await _0x9a6583[_0x184368(0x188)]?.[_0x184368(0x1a8)](_0x9a6583[_0x184368(0x188)][_0x184368(0x1b0)](_0x3a1114[_0x184368(0x194)][_0x184368(0x1b1)])['p']))),_0x2b6fd2[_0x184368(0x1ab)](_0x46d816[_0x184368(0x1a3)],{'schema':{'tags':[_0x46d816[_0x184368(0x19c)],_0x184368(0x188)],'summary':_0x46d816[_0x184368(0x197)],'description':_0x184368(0x18a),'access':_0x46d816[_0x184368(0x1a0)],'permissions':[_0x46d816[_0x184368(0x19f)]],'body':fileSchemas[_0x184368(0x1af)]}},async _0x4ea6c6=>uploadFile(_0x4ea6c6[_0x184368(0x189)],_0x9a6583)),_0x2b6fd2[_0x184368(0x1a8)](_0x46d816[_0x184368(0x196)],{'schema':{'tags':[_0x184368(0x198),_0x46d816[_0x184368(0x193)]],'summary':_0x184368(0x185),'description':_0x46d816[_0x184368(0x18f)],'access':_0x184368(0x18b),'permissions':[_0x46d816[_0x184368(0x19e)]],'params':fileSchemas[_0x184368(0x1a6)],'querystring':fileSchemas[_0x184368(0x181)]}},async _0x47e4bf=>resizeFile({'pathOrToken':_0x9a6583[_0x184368(0x188)]?.[_0x184368(0x1b0)](_0x47e4bf[_0x184368(0x194)][_0x184368(0x1b1)])['p'],..._0x47e4bf[_0x184368(0x192)]},_0x9a6583));};}
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 _0x596f0b=_0x3758;(function(_0x21263b,_0x2e2e41){const _0xd97f61=_0x3758,_0x307265=_0x21263b();while(!![]){try{const _0x2c4ef5=parseInt(_0xd97f61(0x162))/0x1*(parseInt(_0xd97f61(0x161))/0x2)+parseInt(_0xd97f61(0x15f))/0x3+-parseInt(_0xd97f61(0x150))/0x4*(parseInt(_0xd97f61(0x151))/0x5)+-parseInt(_0xd97f61(0x159))/0x6*(parseInt(_0xd97f61(0x158))/0x7)+-parseInt(_0xd97f61(0x15d))/0x8+parseInt(_0xd97f61(0x167))/0x9*(-parseInt(_0xd97f61(0x15e))/0xa)+parseInt(_0xd97f61(0x154))/0xb;if(_0x2c4ef5===_0x2e2e41)break;else _0x307265['push'](_0x307265['shift']());}catch(_0x2b175c){_0x307265['push'](_0x307265['shift']());}}}(_0x46df,0xde4a2));function _0x46df(){const _0xff05d8=['contain','minLength','9909544TCjrcG','1111270fvuFNg','5404974tJEXZu','Any','3481934ucvVoy','1pUDdNH','fill','Optional','inside','String','99dUffXk','minimum','Literal','4yzyEXt','5403755jMruvv','Object','Union','14371511fWRGUg','outside','cover','maxLength','1043HJtYfm','15978kEAvLw','Integer'];_0x46df=function(){return _0xff05d8;};return _0x46df();}import{Type}from'@sinclair/typebox';const _0x3a2741={};_0x3a2741[_0x596f0b(0x15c)]=0x1,_0x3a2741[_0x596f0b(0x157)]=0x80;const _0x5d05b8={};_0x5d05b8[_0x596f0b(0x15c)]=0x1,_0x5d05b8[_0x596f0b(0x157)]=0x800;const _0x2b60e4={};_0x2b60e4[_0x596f0b(0x15c)]=0x1,_0x2b60e4[_0x596f0b(0x157)]=0x400;const _0x22cb3f={};_0x22cb3f[_0x596f0b(0x15c)]=0x1;const _0x503dda={};_0x503dda[_0x596f0b(0x15c)]=0x1;const _0x5bb711={};_0x5bb711[_0x596f0b(0x15c)]=0x1;const _0x4c5b56={};_0x4c5b56[_0x596f0b(0x15c)]=0x1;function _0x3758(_0x1babcd,_0xcc36ea){_0x1babcd=_0x1babcd-0x14e;const _0x46df53=_0x46df();let _0x37583f=_0x46df53[_0x1babcd];return _0x37583f;}const _0x439757={};_0x439757[_0x596f0b(0x15c)]=0x1;const _0x4b25e2={};_0x4b25e2[_0x596f0b(0x15c)]=0x1;const _0x4f27a7={};_0x4f27a7[_0x596f0b(0x14e)]=0x1;const _0x5cb738={};_0x5cb738[_0x596f0b(0x14e)]=0x1;export const fileSchemas={'fileId':Type[_0x596f0b(0x152)]({'id':Type[_0x596f0b(0x166)](_0x3a2741)}),'fileToken':Type[_0x596f0b(0x152)]({'token':Type[_0x596f0b(0x166)](_0x5d05b8)}),'filePath':Type[_0x596f0b(0x152)]({'*':Type[_0x596f0b(0x166)](_0x2b60e4)}),'upload':Type[_0x596f0b(0x152)]({'file':Type[_0x596f0b(0x160)](),'metadata':Type[_0x596f0b(0x152)]({'name':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x22cb3f)),'path':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x503dda)),'entityType':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x5bb711)),'entityId':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x4c5b56))})}),'filePatch':Type[_0x596f0b(0x152)]({'entityType':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x439757)),'entityId':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x4b25e2))}),'resizeQuery':Type[_0x596f0b(0x152)]({'width':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x15a)](_0x4f27a7)),'height':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x15a)](_0x5cb738)),'fit':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x153)]([Type[_0x596f0b(0x14f)](_0x596f0b(0x156)),Type[_0x596f0b(0x14f)](_0x596f0b(0x15b)),Type[_0x596f0b(0x14f)](_0x596f0b(0x163)),Type[_0x596f0b(0x14f)](_0x596f0b(0x165)),Type[_0x596f0b(0x14f)](_0x596f0b(0x155))]))})};
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 _0x2ca3(_0x5a7d32,_0x1593e2){_0x5a7d32=_0x5a7d32-0xb3;var _0x251dcb=_0x251d();var _0x2ca30c=_0x251dcb[_0x5a7d32];return _0x2ca30c;}function _0x251d(){var _0x130bd0=['exists','pathOrToken','file','301wQbqGx','349386LMKoOd','File\x20not\x20found','105170nkFRgs','216xEefzt','265976nzdqou','980507jExifj','84tzxQyI','get','wWDzq','144295MznPgs','4glPiBK','981SDnFtV','1672344igNRNO','752097lqMTrS','empty\x20file'];_0x251d=function(){return _0x130bd0;};return _0x251d();}(function(_0x3b48d4,_0x484164){var _0x5266bb=_0x2ca3,_0x33c974=_0x3b48d4();while(!![]){try{var _0x415a1a=parseInt(_0x5266bb(0xbd))/0x1*(-parseInt(_0x5266bb(0xb3))/0x2)+-parseInt(_0x5266bb(0xc0))/0x3+-parseInt(_0x5266bb(0xbf))/0x4+parseInt(_0x5266bb(0xbc))/0x5*(-parseInt(_0x5266bb(0xb6))/0x6)+parseInt(_0x5266bb(0xc5))/0x7*(parseInt(_0x5266bb(0xb7))/0x8)+-parseInt(_0x5266bb(0xbe))/0x9*(-parseInt(_0x5266bb(0xb5))/0xa)+-parseInt(_0x5266bb(0xb8))/0xb*(-parseInt(_0x5266bb(0xb9))/0xc);if(_0x415a1a===_0x484164)break;else _0x33c974['push'](_0x33c974['shift']());}catch(_0x2b69b1){_0x33c974['push'](_0x33c974['shift']());}}}(_0x251d,0xc1b6c));import{NotFoundError}from'../../../errors.js';export async function getFile(_0x414abc,_0x54a88c){var _0x218c2a=_0x2ca3,_0x35f41d={};_0x35f41d[_0x218c2a(0xbb)]=_0x218c2a(0xb4);var _0xf92945=_0x35f41d;if(!_0x54a88c[_0x218c2a(0xc4)])throw new Error(_0x218c2a(0xc1));if(!await _0x54a88c[_0x218c2a(0xc4)][_0x218c2a(0xc2)](_0x414abc[_0x218c2a(0xc3)]))throw new NotFoundError(_0xf92945[_0x218c2a(0xbb)]);return _0x54a88c[_0x218c2a(0xc4)][_0x218c2a(0xba)](_0x414abc[_0x218c2a(0xc3)]);}
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(_0x2fb549,_0x2840f8){const _0xf8935e=_0x16c5,_0x460192=_0x2fb549();while(!![]){try{const _0x1a52f9=parseInt(_0xf8935e(0xe4))/0x1+parseInt(_0xf8935e(0xf1))/0x2+parseInt(_0xf8935e(0xf4))/0x3*(-parseInt(_0xf8935e(0xf0))/0x4)+-parseInt(_0xf8935e(0xd7))/0x5*(parseInt(_0xf8935e(0xdf))/0x6)+-parseInt(_0xf8935e(0xd8))/0x7*(-parseInt(_0xf8935e(0xe3))/0x8)+-parseInt(_0xf8935e(0xd5))/0x9*(-parseInt(_0xf8935e(0xd2))/0xa)+-parseInt(_0xf8935e(0xd6))/0xb;if(_0x1a52f9===_0x2840f8)break;else _0x460192['push'](_0x460192['shift']());}catch(_0x33ab07){_0x460192['push'](_0x460192['shift']());}}}(_0x30f4,0xe21f8));import{NotFoundError,ValidationError}from'../../../errors.js';function _0x16c5(_0x725dba,_0x1de205){_0x725dba=_0x725dba-0xcc;const _0x30f4e6=_0x30f4();let _0x16c5bc=_0x30f4e6[_0x725dba];return _0x16c5bc;}import _0x2cb571 from'sharp';export async function resizeFile(_0x2f231c,_0x52d49a){const _0x2130ab=_0x16c5,_0x229d71={'jOHbZ':_0x2130ab(0xef),'WkUjZ':_0x2130ab(0xe2),'erowe':function(_0x2733ef,_0x271602,_0x2a3724){return _0x2733ef(_0x271602,_0x2a3724);},'WpZFA':_0x2130ab(0xe1),'pLggf':_0x2130ab(0xe5),'SBTcl':function(_0x5e7ae2,_0x719ef4){return _0x5e7ae2&&_0x719ef4;},'pTjas':_0x2130ab(0xda),'ThLms':_0x2130ab(0xea),'NvIyt':_0x2130ab(0xd4)};if(!_0x52d49a[_0x2130ab(0xd1)])throw new Error(_0x229d71[_0x2130ab(0xde)]);const _0x563135=_0x2f231c[_0x2130ab(0xd9)]??_0x2f231c[_0x2130ab(0xe7)];if(!_0x563135)throw new ValidationError(_0x229d71[_0x2130ab(0xec)]);const _0x3f8c9d=_0x229d71[_0x2130ab(0xeb)](parseDimension,_0x2f231c[_0x2130ab(0xe1)],_0x229d71[_0x2130ab(0xce)]),_0x54bcd4=_0x229d71[_0x2130ab(0xeb)](parseDimension,_0x2f231c[_0x2130ab(0xe5)],_0x229d71[_0x2130ab(0xf3)]);if(_0x229d71[_0x2130ab(0xdc)](!_0x3f8c9d,!_0x54bcd4))throw new ValidationError(_0x229d71[_0x2130ab(0xd3)]);if(!await _0x52d49a[_0x2130ab(0xd1)][_0x2130ab(0xcf)](_0x563135))throw new NotFoundError(_0x229d71[_0x2130ab(0xe6)]);const _0x553e6e={};return _0x553e6e[_0x2130ab(0xe1)]=_0x3f8c9d,_0x553e6e[_0x2130ab(0xe5)]=_0x54bcd4,_0x553e6e[_0x2130ab(0xf2)]=_0x2f231c[_0x2130ab(0xf2)]??_0x229d71[_0x2130ab(0xe9)],_0x2cb571(await _0x52d49a[_0x2130ab(0xd1)][_0x2130ab(0xe8)](_0x563135))[_0x2130ab(0xcd)](_0x553e6e)[_0x2130ab(0xed)]();}function parseDimension(_0x567823,_0x5837f7){const _0x145979=_0x16c5,_0x33781c={'pCghM':function(_0x23b5db,_0x24e0b0){return _0x23b5db===_0x24e0b0;},'alics':_0x145979(0xd0),'JyPTA':function(_0x27c9bc,_0x45ed17){return _0x27c9bc(_0x45ed17);}};if(_0x33781c[_0x145979(0xdd)](_0x567823,undefined)||_0x567823===''){if(_0x33781c[_0x145979(0xee)]!==_0x145979(0xd0))throw new _0x13b320(_0x1320e0+_0x145979(0xe0));else return undefined;}const _0x27e897=_0x33781c[_0x145979(0xdb)](Number,_0x567823);if(!Number[_0x145979(0xcc)](_0x27e897)||_0x27e897<=0x0)throw new ValidationError(_0x5837f7+_0x145979(0xe0));return _0x27e897;}function _0x30f4(){const _0x29edef=['8DlOshi','1698742NZBoyz','height','ThLms','path','get','NvIyt','File\x20not\x20found','erowe','WkUjZ','toBuffer','alics','empty\x20file','4UeyqPd','3293718xDXjYd','fit','pLggf','413847vRVKfY','isInteger','resize','WpZFA','exists','sHPCx','file','110bhTnrB','pTjas','cover','879696xyLmXD','36839275pKMBaj','10kZkGyh','1873207DxrZEk','pathOrToken','Width\x20or\x20height\x20is\x20required','JyPTA','SBTcl','pCghM','jOHbZ','825636YKPaDc','\x20must\x20be\x20a\x20positive\x20integer','width','File\x20path\x20is\x20required'];_0x30f4=function(){return _0x29edef;};return _0x30f4();}
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(_0x52ab23,_0x17a192){const _0x5b7618=_0x369e,_0x359712=_0x52ab23();while(!![]){try{const _0x3f7240=-parseInt(_0x5b7618(0xb9))/0x1*(-parseInt(_0x5b7618(0xac))/0x2)+-parseInt(_0x5b7618(0xa9))/0x3+-parseInt(_0x5b7618(0xae))/0x4*(-parseInt(_0x5b7618(0xb3))/0x5)+-parseInt(_0x5b7618(0xa5))/0x6*(parseInt(_0x5b7618(0xab))/0x7)+-parseInt(_0x5b7618(0xa3))/0x8*(-parseInt(_0x5b7618(0xb8))/0x9)+-parseInt(_0x5b7618(0xb1))/0xa+parseInt(_0x5b7618(0xb6))/0xb;if(_0x3f7240===_0x17a192)break;else _0x359712['push'](_0x359712['shift']());}catch(_0x1b66ef){_0x359712['push'](_0x359712['shift']());}}}(_0x864f,0xad495));function _0x369e(_0x4bbe34,_0x31750a){_0x4bbe34=_0x4bbe34-0xa2;const _0x864f7e=_0x864f();let _0x369e2a=_0x864f7e[_0x4bbe34];return _0x369e2a;}import{randomUUID}from'node:crypto';function _0x864f(){const _0xdeaa89=['metadata','10356170DwbyyT','HXlce','3061665SACQht','322ABSHoT','length','path','24YezcAd','rows','216ETEKQY','entityType','query','\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','2802363qtwejJ','entityId','140742JzPEXV','3986CtFMNO','name','4BLyhGN','put','replace','3437330mZbmdB','uploads/','538400SWLilc','file'];_0x864f=function(){return _0xdeaa89;};return _0x864f();}export async function uploadFile(_0x35e88b,_0x4c9b60){const _0x47a033=_0x369e,_0x55d7f7={'HXlce':function(_0x3942ac){return _0x3942ac();}},_0x3e5995=(_0x35e88b[_0x47a033(0xb5)][_0x47a033(0xad)]??_0x47a033(0xb4))[_0x47a033(0xb0)](/[^a-zA-Z0-9._-]/g,'_'),_0x25e24e=_0x35e88b[_0x47a033(0xb5)][_0x47a033(0xa2)]??_0x47a033(0xb2)+_0x55d7f7[_0x47a033(0xb7)](randomUUID)+'-'+_0x3e5995;await _0x4c9b60[_0x47a033(0xb4)][_0x47a033(0xaf)](_0x25e24e,_0x35e88b[_0x47a033(0xb4)]);const _0x2b1874=await _0x4c9b60['pg'][_0x47a033(0xa7)](_0x47a033(0xa8),[_0x35e88b[_0x47a033(0xb5)][_0x47a033(0xa6)]??null,_0x35e88b[_0x47a033(0xb5)][_0x47a033(0xaa)]??null,_0x25e24e,_0x35e88b[_0x47a033(0xb4)][_0x47a033(0xba)]]);return _0x2b1874[_0x47a033(0xa4)][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 _0x58e7dd=_0x21f3;(function(_0x35ba4c,_0x4ddd89){const _0x27d7d3=_0x21f3,_0x40e9a2=_0x35ba4c();while(!![]){try{const _0x10bac5=parseInt(_0x27d7d3(0x1cb))/0x1*(parseInt(_0x27d7d3(0x20d))/0x2)+-parseInt(_0x27d7d3(0x204))/0x3+-parseInt(_0x27d7d3(0x1bb))/0x4*(-parseInt(_0x27d7d3(0x1c1))/0x5)+-parseInt(_0x27d7d3(0x1ff))/0x6+parseInt(_0x27d7d3(0x20b))/0x7+-parseInt(_0x27d7d3(0x21d))/0x8+parseInt(_0x27d7d3(0x20a))/0x9;if(_0x10bac5===_0x4ddd89)break;else _0x40e9a2['push'](_0x40e9a2['shift']());}catch(_0x12e6ef){_0x40e9a2['push'](_0x40e9a2['shift']());}}}(_0x2446,0xe0794));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';import{uploadResourceFile}from'./services/upload-resource-file.js';import{resourceSchemas}from'./schema.js';const user=_0x357654=>_0x357654[_0x58e7dd(0x1ed)];function _0x21f3(_0x6a5ba2,_0x400f35){_0x6a5ba2=_0x6a5ba2-0x1b0;const _0x2446c9=_0x2446();let _0x21f392=_0x2446c9[_0x6a5ba2];return _0x21f392;}export function resourceRoutes(_0x51872c){const _0xd4866c=_0x58e7dd,_0x324896={};_0x324896[_0xd4866c(0x1c0)]=_0xd4866c(0x1d5),_0x324896[_0xd4866c(0x1ca)]=_0xd4866c(0x1b9),_0x324896[_0xd4866c(0x211)]=_0xd4866c(0x224),_0x324896[_0xd4866c(0x1b8)]=_0xd4866c(0x214),_0x324896[_0xd4866c(0x1f8)]=_0xd4866c(0x1ec),_0x324896[_0xd4866c(0x1b0)]=_0xd4866c(0x220),_0x324896[_0xd4866c(0x221)]=_0xd4866c(0x1d7),_0x324896[_0xd4866c(0x1c4)]=_0xd4866c(0x1ed),_0x324896[_0xd4866c(0x1b4)]=_0xd4866c(0x1ce),_0x324896[_0xd4866c(0x1db)]=_0xd4866c(0x1cf),_0x324896[_0xd4866c(0x1e5)]=_0xd4866c(0x1f9),_0x324896[_0xd4866c(0x1d2)]=_0xd4866c(0x1d8),_0x324896[_0xd4866c(0x1d9)]=_0xd4866c(0x223),_0x324896[_0xd4866c(0x207)]=_0xd4866c(0x1e4),_0x324896[_0xd4866c(0x225)]=_0xd4866c(0x21a),_0x324896[_0xd4866c(0x1fe)]=_0xd4866c(0x213),_0x324896[_0xd4866c(0x219)]=_0xd4866c(0x1b2),_0x324896[_0xd4866c(0x1d6)]=_0xd4866c(0x1e8),_0x324896[_0xd4866c(0x1ea)]=_0xd4866c(0x1bf),_0x324896[_0xd4866c(0x1d4)]=_0xd4866c(0x203),_0x324896[_0xd4866c(0x1da)]=_0xd4866c(0x1fc),_0x324896[_0xd4866c(0x1d0)]=_0xd4866c(0x1c5),_0x324896[_0xd4866c(0x1fa)]=_0xd4866c(0x208),_0x324896[_0xd4866c(0x21c)]=_0xd4866c(0x1b6),_0x324896[_0xd4866c(0x20f)]=_0xd4866c(0x218),_0x324896[_0xd4866c(0x1cc)]=_0xd4866c(0x1e6),_0x324896[_0xd4866c(0x202)]=_0xd4866c(0x1c3),_0x324896[_0xd4866c(0x1c8)]=_0xd4866c(0x1bd),_0x324896[_0xd4866c(0x1f7)]=_0xd4866c(0x1be),_0x324896[_0xd4866c(0x21e)]=_0xd4866c(0x21f),_0x324896[_0xd4866c(0x1fb)]=_0xd4866c(0x216),_0x324896[_0xd4866c(0x222)]=_0xd4866c(0x1e0),_0x324896[_0xd4866c(0x1e2)]=_0xd4866c(0x205),_0x324896[_0xd4866c(0x1d1)]=_0xd4866c(0x1f0);const _0x59903e=_0x324896;return async _0x10d75f=>{const _0x35cff7=_0xd4866c,_0x2c7301=_0x59903e[_0x35cff7(0x1c0)][_0x35cff7(0x1e7)]('|');let _0x2c69ab=0x0;while(!![]){switch(_0x2c7301[_0x2c69ab++]){case'0':_0x10d75f[_0x35cff7(0x206)](_0x59903e[_0x35cff7(0x1ca)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x35cff7(0x220)],'summary':_0x59903e[_0x35cff7(0x1b8)],'description':_0x59903e[_0x35cff7(0x1f8)],'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x2a18ce=>updateResource({..._0x2a18ce[_0x35cff7(0x1e1)],'patch':_0x2a18ce[_0x35cff7(0x1b1)],'user':user(_0x2a18ce)},_0x51872c));continue;case'1':const _0x4e6f9e={};_0x4e6f9e[_0x35cff7(0x1dd)]=[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],_0x4e6f9e[_0x35cff7(0x215)]=_0x59903e[_0x35cff7(0x221)],_0x4e6f9e[_0x35cff7(0x1fd)]=_0x35cff7(0x1eb),_0x4e6f9e[_0x35cff7(0x1f5)]=_0x59903e[_0x35cff7(0x1c4)],_0x4e6f9e[_0x35cff7(0x1e3)]=[],_0x4e6f9e[_0x35cff7(0x1e1)]=resourceSchemas[_0x35cff7(0x226)];const _0x583fe2={};_0x583fe2[_0x35cff7(0x1ba)]=_0x4e6f9e,_0x10d75f[_0x35cff7(0x1df)](_0x35cff7(0x1f3),_0x583fe2,async _0x18659c=>deleteResourceRelation({..._0x18659c[_0x35cff7(0x1e1)],'relation':_0x35cff7(0x1de),'user':user(_0x18659c)},_0x51872c));continue;case'2':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1ca)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x209),'description':_0x59903e[_0x35cff7(0x1b4)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x24c210=>getResource({..._0x24c210[_0x35cff7(0x1e1)],'user':user(_0x24c210)},_0x51872c));continue;case'3':_0x10d75f[_0x35cff7(0x1df)](_0x59903e[_0x35cff7(0x1db)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x35cff7(0x220)],'summary':_0x59903e[_0x35cff7(0x1e5)],'description':_0x59903e[_0x35cff7(0x1d2)],'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x226)]}},async _0x1ff739=>deleteResourceRelation({..._0x1ff739[_0x35cff7(0x1e1)],'user':user(_0x1ff739)},_0x51872c));continue;case'4':_0x10d75f[_0x35cff7(0x1bc)](_0x59903e[_0x35cff7(0x1d9)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x210),'description':_0x59903e[_0x35cff7(0x207)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x220)]}},async _0x11177c=>createResource({..._0x11177c[_0x35cff7(0x1e1)],'data':_0x11177c[_0x35cff7(0x1b1)],'user':user(_0x11177c)},_0x51872c));continue;case'5':_0x10d75f[_0x35cff7(0x1bc)](_0x59903e[_0x35cff7(0x225)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x1f4),'description':_0x59903e[_0x35cff7(0x1fe)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1f2)]}},async _0x19fd8e=>createResourceRelation({..._0x19fd8e[_0x35cff7(0x1e1)],'data':_0x19fd8e[_0x35cff7(0x1b1)],'user':user(_0x19fd8e)},_0x51872c));continue;case'6':const _0x4e9a54={};_0x4e9a54[_0x35cff7(0x1dd)]=[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],_0x4e9a54[_0x35cff7(0x215)]=_0x59903e[_0x35cff7(0x219)],_0x4e9a54[_0x35cff7(0x1fd)]=_0x35cff7(0x1c2),_0x4e9a54[_0x35cff7(0x1f5)]=_0x35cff7(0x1ed),_0x4e9a54[_0x35cff7(0x1e3)]=[],_0x4e9a54[_0x35cff7(0x1e1)]=resourceSchemas[_0x35cff7(0x1f2)];const _0x56f5d6={};_0x56f5d6[_0x35cff7(0x1ba)]=_0x4e9a54,_0x10d75f[_0x35cff7(0x200)](_0x35cff7(0x21a),_0x56f5d6,async _0x131561=>listResourceRelation({..._0x131561[_0x35cff7(0x1f1)],..._0x131561[_0x35cff7(0x1e1)],'user':user(_0x131561)},_0x51872c));continue;case'7':_0x10d75f[_0x35cff7(0x1bc)](_0x59903e[_0x35cff7(0x1d6)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x1dc),'description':_0x35cff7(0x212),'access':_0x35cff7(0x1ed),'permissions':[_0x35cff7(0x1ee)],'params':resourceSchemas[_0x35cff7(0x21b)],'body':resourceSchemas[_0x35cff7(0x20e)]}},async _0x4c331a=>uploadResourceFile({..._0x4c331a[_0x35cff7(0x1e1)],..._0x4c331a[_0x35cff7(0x1b1)],'user':user(_0x4c331a)},_0x51872c));continue;case'8':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1ea)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x1cd),'description':_0x35cff7(0x1c7),'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x1f6)],'querystring':resourceSchemas[_0x35cff7(0x1c9)]}},async _0x1af09e=>suggestResource({..._0x1af09e[_0x35cff7(0x1f1)],..._0x1af09e[_0x35cff7(0x1e1)],'user':user(_0x1af09e)},_0x51872c));continue;case'9':_0x10d75f[_0x35cff7(0x1bc)](_0x59903e[_0x35cff7(0x1d4)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x35cff7(0x220)],'summary':_0x59903e[_0x35cff7(0x1da)],'description':_0x59903e[_0x35cff7(0x1d0)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x1ff407=>addResourceFile({..._0x1ff407[_0x35cff7(0x1e1)],..._0x1ff407[_0x35cff7(0x1b1)],'user':user(_0x1ff407)},_0x51872c));continue;case'10':const _0xab9361={};_0xab9361[_0x35cff7(0x1dd)]=[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],_0xab9361[_0x35cff7(0x215)]=_0x59903e[_0x35cff7(0x1fa)],_0xab9361[_0x35cff7(0x1fd)]=_0x59903e[_0x35cff7(0x21c)],_0xab9361[_0x35cff7(0x1f5)]=_0x59903e[_0x35cff7(0x1c4)],_0xab9361[_0x35cff7(0x1e3)]=[],_0xab9361[_0x35cff7(0x1e1)]=resourceSchemas[_0x35cff7(0x220)];const _0x2921c4={};_0x2921c4[_0x35cff7(0x1ba)]=_0xab9361,_0x10d75f[_0x35cff7(0x200)](_0x35cff7(0x217),_0x2921c4,async _0x218905=>searchResource({..._0x218905[_0x35cff7(0x1f1)],..._0x218905[_0x35cff7(0x1e1)],'user':user(_0x218905)},_0x51872c));continue;case'11':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1d4)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x59903e[_0x35cff7(0x20f)],'description':_0x35cff7(0x20c),'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x58c5bc=>listResourceRelation({..._0x58c5bc[_0x35cff7(0x1e1)],'relation':_0x35cff7(0x1de),'user':user(_0x58c5bc)},_0x51872c));continue;case'12':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1d9)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x59903e[_0x35cff7(0x1cc)],'description':_0x59903e[_0x35cff7(0x202)],'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x220)]}},async _0x3146af=>listResources({..._0x3146af[_0x35cff7(0x1f1)],..._0x3146af[_0x35cff7(0x1e1)],'user':user(_0x3146af)},_0x51872c));continue;case'13':_0x10d75f[_0x35cff7(0x1df)](_0x59903e[_0x35cff7(0x1ca)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x1ef),'description':_0x59903e[_0x35cff7(0x1c8)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x4ef3ce=>deleteResource({..._0x4ef3ce[_0x35cff7(0x1e1)],'user':user(_0x4ef3ce)},_0x51872c));continue;case'14':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1f7)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x35cff7(0x220)],'summary':_0x59903e[_0x35cff7(0x21e)],'description':_0x35cff7(0x1b7),'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x18cdb7=>listResourceRelation({..._0x18cdb7[_0x35cff7(0x1e1)],'relation':_0x35cff7(0x1b5),'user':user(_0x18cdb7)},_0x51872c));continue;case'15':const _0x3c2a3={};_0x3c2a3[_0x35cff7(0x1dd)]=[_0x35cff7(0x224),_0x59903e[_0x35cff7(0x1b0)]],_0x3c2a3[_0x35cff7(0x215)]=_0x59903e[_0x35cff7(0x1fb)],_0x3c2a3[_0x35cff7(0x1fd)]=_0x59903e[_0x35cff7(0x222)],_0x3c2a3[_0x35cff7(0x1f5)]=_0x59903e[_0x35cff7(0x1c4)],_0x3c2a3[_0x35cff7(0x1e3)]=[],_0x3c2a3[_0x35cff7(0x1e1)]=resourceSchemas[_0x35cff7(0x1c6)];const _0x1022c2={};_0x1022c2[_0x35cff7(0x1ba)]=_0x3c2a3,_0x10d75f[_0x35cff7(0x1bc)](_0x35cff7(0x1be),_0x1022c2,async _0x10f574=>addNote({..._0x10f574[_0x35cff7(0x1e1)],..._0x10f574[_0x35cff7(0x1b1)],'user':user(_0x10f574)},_0x51872c));continue;case'16':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1e2)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x201),'description':_0x35cff7(0x1b3),'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[_0x59903e[_0x35cff7(0x1d1)]],'params':resourceSchemas[_0x35cff7(0x1e9)],'querystring':resourceSchemas[_0x35cff7(0x1d3)]}},async _0x29b91a=>exportResource({..._0x29b91a[_0x35cff7(0x1f1)],..._0x29b91a[_0x35cff7(0x1e1)],'user':user(_0x29b91a)},_0x51872c));continue;}break;}};}function _0x2446(){const _0x207e55=['Returns\x20related\x20records\x20for\x20a\x20resource\x20record.','Returns\x20records\x20from\x20a\x20registered\x20resource.','rBgYE','Adds\x20a\x20file\x20to\x20a\x20resource\x20record.','resourceId','Returns\x20suggested\x20values\x20for\x20a\x20resource\x20field.','cyFjz','suggestQuery','edSzd','1184627qpUkfb','HmNeJ','Suggest\x20resource\x20values','Returns\x20one\x20record\x20from\x20a\x20registered\x20resource.','/api/resource/:resource/:id/:relation/:relationId','shCgO','sanQX','PhJcQ','exportResourceQuery','wWiim','10|8|16|12|4|2|0|13|14|15|11|9|7|1|6|5|3','UZDOU','Delete\x20resource\x20file','Deletes\x20a\x20relation\x20from\x20a\x20resource\x20record.','AGFWo','uVRUQ','jNklC','Upload\x20resource\x20file','tags','files','delete','Adds\x20a\x20note\x20to\x20a\x20resource\x20record.','params','ufPRo','permissions','Creates\x20a\x20record\x20in\x20a\x20registered\x20resource.','lMvLy','List\x20resource\x20records','split','/api/resource/:resource/:id/upload','exportResource','wozpT','Removes\x20a\x20file\x20relation\x20from\x20a\x20resource\x20record.','Updates\x20a\x20record\x20in\x20a\x20registered\x20resource.','user','resource:update','Delete\x20resource\x20record','*:read','query','resourceIdRelation','/api/resource/:resource/:id/files/:relationId','Create\x20resource\x20relation','access','resourceField','Kaqje','hoFyY','Delete\x20resource\x20relation','oxmHy','edyEa','Add\x20resource\x20file','description','TRSnA','8118162DqMhJu','get','Export\x20resource\x20records','CvxJk','/api/resource/:resource/:id/files','3559605uncZVt','/api/resource/:resource/export','put','XdXnC','Search\x20resource','Get\x20resource\x20record','23626485rqslNm','5104680CRdmhX','Returns\x20files\x20related\x20to\x20a\x20resource\x20record.','2GSyvOu','uploadResourceFileBody','yuMYt','Create\x20resource\x20record','PiJIs','Uploads\x20a\x20file\x20to\x20a\x20Resource\x20record\x20and\x20stores\x20its\x20metadata.','Creates\x20a\x20relation\x20for\x20a\x20resource\x20record.','Update\x20resource\x20record','summary','Add\x20resource\x20note','/api/resource/:resource/search','List\x20resource\x20files','nrpWj','/api/resource/:resource/:id/:relation','uploadResourceFile','snXaG','9643912AaDLRA','fyCAS','List\x20resource\x20notes','resource','EOFFY','IUUGn','/api/resource/:resource','fcore','muJVd','resourceIdRelationId','KxCMc','body','List\x20resource\x20relations','Exports\x20readable\x20records\x20from\x20a\x20registered\x20resource.','PGsZg','notes','Searches\x20records\x20in\x20a\x20registered\x20resource.','Returns\x20notes\x20related\x20to\x20a\x20resource\x20record.','hDxCG','/api/resource/:resource/:id','schema','38604jPnaSG','post','Deletes\x20a\x20record\x20from\x20a\x20registered\x20resource.','/api/resource/:resource/:id/notes','/api/suggest/:resource/:field','kiiRX','65QNDRiV'];_0x2446=function(){return _0x207e55;};return _0x2446();}
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 _0x283bd0=_0xc351;(function(_0x169bd7,_0x37ba61){const _0x314f29=_0xc351,_0x1327f5=_0x169bd7();while(!![]){try{const _0x584dfc=parseInt(_0x314f29(0x170))/0x1*(parseInt(_0x314f29(0x168))/0x2)+-parseInt(_0x314f29(0x16f))/0x3+parseInt(_0x314f29(0x17a))/0x4+parseInt(_0x314f29(0x15d))/0x5+parseInt(_0x314f29(0x161))/0x6*(parseInt(_0x314f29(0x15e))/0x7)+parseInt(_0x314f29(0x175))/0x8*(parseInt(_0x314f29(0x179))/0x9)+-parseInt(_0x314f29(0x16a))/0xa*(parseInt(_0x314f29(0x177))/0xb);if(_0x584dfc===_0x37ba61)break;else _0x1327f5['push'](_0x1327f5['shift']());}catch(_0x2e5cbe){_0x1327f5['push'](_0x1327f5['shift']());}}}(_0x4367,0xc2379));import{Type}from'@sinclair/typebox';const _0xc937e4={};_0xc937e4[_0x283bd0(0x165)]=0x1,_0xc937e4[_0x283bd0(0x166)]=0x80,_0xc937e4[_0x283bd0(0x15f)]=_0x283bd0(0x176);export const identifier=Type[_0x283bd0(0x172)](_0xc937e4);const _0xcad2d0={};_0xcad2d0[_0x283bd0(0x169)]=identifier;const _0x35541f={};_0x35541f[_0x283bd0(0x163)]=identifier;const _0x45effc={};_0x45effc[_0x283bd0(0x163)]=identifier;const _0x58a5d3={};_0x58a5d3[_0x283bd0(0x163)]=identifier,_0x58a5d3[_0x283bd0(0x171)]=identifier;const _0x1577a5={};_0x1577a5[_0x283bd0(0x16d)]=0x1,_0x1577a5[_0x283bd0(0x160)]=0xc8;const _0xdc4d43={};_0xdc4d43[_0x283bd0(0x163)]=identifier,_0xdc4d43['id']=identifier;const _0x14504f={};_0x14504f[_0x283bd0(0x163)]=identifier,_0x14504f['id']=identifier,_0x14504f[_0x283bd0(0x174)]=identifier;const _0x32f538={};_0x32f538[_0x283bd0(0x163)]=identifier,_0x32f538['id']=identifier,_0x32f538[_0x283bd0(0x174)]=identifier,_0x32f538[_0x283bd0(0x162)]=identifier;const _0x2f161d={};_0x2f161d[_0x283bd0(0x163)]=identifier,_0x2f161d['id']=identifier;const _0x51563e={};_0x51563e[_0x283bd0(0x165)]=0x1,_0x51563e[_0x283bd0(0x166)]=0xff;function _0x4367(){const _0x391038=['Unknown','minLength','maxLength','Optional','393202xHzMqT','name','10LjPCTw','Record','Any','minimum','Array','1154448SpVHfu','2crOLcS','field','String','Object','relation','784fqavBT','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','26850461bAMRqn','Integer','61416fPUwlD','4925360TKtVzu','2301170LNXrvG','6074264fEXaLt','pattern','maximum','6dOKvvR','relationId','resource'];_0x4367=function(){return _0x391038;};return _0x4367();}const _0x336b2a={};function _0xc351(_0x5b14be,_0x22f87){_0x5b14be=_0x5b14be-0x15d;const _0x436750=_0x4367();let _0xc35160=_0x436750[_0x5b14be];return _0xc35160;}_0x336b2a[_0x283bd0(0x165)]=0x1;const _0x42861b={};_0x42861b[_0x283bd0(0x16d)]=0x1,_0x42861b[_0x283bd0(0x160)]=0xc8;const _0xc2cfb6={};_0xc2cfb6[_0x283bd0(0x16d)]=0x0;export const resourceSchemas={'dictionaryName':Type[_0x283bd0(0x173)](_0xcad2d0),'resource':Type[_0x283bd0(0x173)](_0x35541f),'exportResource':Type[_0x283bd0(0x173)](_0x45effc),'resourceField':Type[_0x283bd0(0x173)](_0x58a5d3),'suggestQuery':Type[_0x283bd0(0x173)]({'q':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x172)]()),'search':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x172)]()),'limit':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x178)](_0x1577a5))}),'resourceId':Type[_0x283bd0(0x173)](_0xdc4d43),'resourceIdRelation':Type[_0x283bd0(0x173)](_0x14504f),'resourceIdRelationId':Type[_0x283bd0(0x173)](_0x32f538),'uploadResourceFile':Type[_0x283bd0(0x173)](_0x2f161d),'uploadResourceFileBody':Type[_0x283bd0(0x173)]({'file':Type[_0x283bd0(0x16c)](),'fileName':Type[_0x283bd0(0x172)](_0x51563e)}),'exportResourceQuery':Type[_0x283bd0(0x173)]({'filter':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x16b)](Type[_0x283bd0(0x172)](),Type[_0x283bd0(0x164)]())),'sort':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x16e)](Type[_0x283bd0(0x172)](_0x336b2a))),'search':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x172)]()),'limit':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x178)](_0x42861b)),'offset':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x178)](_0xc2cfb6)),'fields':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x16e)](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(_0x66d8cc,_0x2d344a){const _0x21a3f6=_0x2014,_0x4c4a5b=_0x66d8cc();while(!![]){try{const _0x26b35b=-parseInt(_0x21a3f6(0x151))/0x1+-parseInt(_0x21a3f6(0x15c))/0x2+parseInt(_0x21a3f6(0x15a))/0x3+-parseInt(_0x21a3f6(0x154))/0x4*(parseInt(_0x21a3f6(0x157))/0x5)+parseInt(_0x21a3f6(0x153))/0x6*(parseInt(_0x21a3f6(0x15b))/0x7)+-parseInt(_0x21a3f6(0x15f))/0x8*(-parseInt(_0x21a3f6(0x152))/0x9)+parseInt(_0x21a3f6(0x15d))/0xa*(-parseInt(_0x21a3f6(0x150))/0xb);if(_0x26b35b===_0x2d344a)break;else _0x4c4a5b['push'](_0x4c4a5b['shift']());}catch(_0x43f58e){_0x4c4a5b['push'](_0x4c4a5b['shift']());}}}(_0x3e62,0x80727));function _0x2014(_0x2d6084,_0x399046){_0x2d6084=_0x2d6084-0x14f;const _0x3e6223=_0x3e62();let _0x2014a4=_0x3e6223[_0x2d6084];return _0x2014a4;}export async function addNote(_0xdf4e04,_0x17ca19){const _0xc4c1a=_0x2014,_0x49919d={'aWmEv':_0xc4c1a(0x155),'rCTql':function(_0x20f54d,_0x42be5c){return _0x20f54d(_0x42be5c);}},_0x1243f6=await _0x17ca19['pg'][_0xc4c1a(0x156)](_0x49919d[_0xc4c1a(0x159)],[_0xdf4e04[_0xc4c1a(0x160)],_0x49919d[_0xc4c1a(0x14f)](String,_0xdf4e04['id']),_0xdf4e04[_0xc4c1a(0x158)]]);return _0x1243f6[_0xc4c1a(0x15e)][0x0];}function _0x3e62(){const _0x254c82=['2368MmRPmq','resource','rCTql','1578247xzWVri','72126FJOQfR','27549DBOlQm','60IRSDgT','546188AOZRtx','INSERT\x20INTO\x20admin.notes(resource,resource_id,body)\x20VALUES\x20($1,$2,$3)\x20RETURNING\x20*','query','5ucueBm','body','aWmEv','1769874ozJrQE','629573TmmJxc','451684yGxrQz','100rTxqzX','rows'];_0x3e62=function(){return _0x254c82;};return _0x3e62();}
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 _0xc2ee(){const _0x4787ef=['21803590yLLSdJ','889582tgrWoT','3sUddag','query','1305004RjsmYw','size','7EQXnfA','rows','pcNlI','resource','4432720vimfyg','5uePpCV','\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','4502898ihuKBV','11jkDdnN','3487602RHhslF','73654cdGpAG','filePath'];_0xc2ee=function(){return _0x4787ef;};return _0xc2ee();}function _0x2aef(_0x5f492c,_0x311bd4){_0x5f492c=_0x5f492c-0xcb;const _0xc2eead=_0xc2ee();let _0x2aef20=_0xc2eead[_0x5f492c];return _0x2aef20;}(function(_0x351056,_0x54a257){const _0x4878be=_0x2aef,_0x483904=_0x351056();while(!![]){try{const _0xe0d796=-parseInt(_0x4878be(0xcc))/0x1+parseInt(_0x4878be(0xcf))/0x2*(-parseInt(_0x4878be(0xd0))/0x3)+-parseInt(_0x4878be(0xd2))/0x4*(-parseInt(_0x4878be(0xd9))/0x5)+parseInt(_0x4878be(0xcb))/0x6*(-parseInt(_0x4878be(0xd4))/0x7)+-parseInt(_0x4878be(0xd8))/0x8+-parseInt(_0x4878be(0xdb))/0x9+-parseInt(_0x4878be(0xce))/0xa*(-parseInt(_0x4878be(0xdc))/0xb);if(_0xe0d796===_0x54a257)break;else _0x483904['push'](_0x483904['shift']());}catch(_0x5e2d10){_0x483904['push'](_0x483904['shift']());}}}(_0xc2ee,0x560e6));export async function addResourceFile(_0x3d03d9,_0x367a60){const _0x3c2ccf=_0x2aef,_0x18a543={'pcNlI':function(_0x508481,_0x4ca257){return _0x508481(_0x4ca257);}},_0x3ba734=await _0x367a60['pg'][_0x3c2ccf(0xd1)](_0x3c2ccf(0xda),[_0x3d03d9[_0x3c2ccf(0xd7)],_0x18a543[_0x3c2ccf(0xd6)](String,_0x3d03d9['id']),_0x3d03d9[_0x3c2ccf(0xcd)],_0x3d03d9[_0x3c2ccf(0xd3)]??null]);return _0x3ba734[_0x3c2ccf(0xd5)][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 _0x22c0(){var _0x483242=['3759789UDjywC','1598391ZltxSa','2992230CgGmXr','fSWoh','6570064wrIUEJ','10yOlwBz','39seKmCD','7rmMQLy','24OAvUsr','37092dQJELn','801798TukEhO','8UFOBwo','DScIs','1672080IvumZx','Generic\x20Resource\x20relations'];_0x22c0=function(){return _0x483242;};return _0x22c0();}(function(_0x15a082,_0x288700){var _0x3e72ba=_0x4520,_0x56a923=_0x15a082();while(!![]){try{var _0x2857b2=-parseInt(_0x3e72ba(0x174))/0x1*(parseInt(_0x3e72ba(0x177))/0x2)+parseInt(_0x3e72ba(0x16f))/0x3+parseInt(_0x3e72ba(0x179))/0x4*(parseInt(_0x3e72ba(0x16c))/0x5)+parseInt(_0x3e72ba(0x178))/0x6+-parseInt(_0x3e72ba(0x175))/0x7*(-parseInt(_0x3e72ba(0x172))/0x8)+parseInt(_0x3e72ba(0x170))/0x9*(-parseInt(_0x3e72ba(0x173))/0xa)+-parseInt(_0x3e72ba(0x16e))/0xb*(parseInt(_0x3e72ba(0x176))/0xc);if(_0x2857b2===_0x288700)break;else _0x56a923['push'](_0x56a923['shift']());}catch(_0x501e21){_0x56a923['push'](_0x56a923['shift']());}}}(_0x22c0,0x65d86));function _0x4520(_0x3fe74a,_0x5c4e5a){_0x3fe74a=_0x3fe74a-0x16b;var _0x22c085=_0x22c0();var _0x4520da=_0x22c085[_0x3fe74a];return _0x4520da;}import{unsupported}from'../../utils/unsupported.js';export async function createResourceRelation(_0x5e104f,_0x58ba75){var _0x1542a2=_0x4520,_0x2a07ec={'fSWoh':function(_0x1f2b87,_0x5dce7a){return _0x1f2b87(_0x5dce7a);},'DScIs':_0x1542a2(0x16d)};return _0x2a07ec[_0x1542a2(0x171)](unsupported,_0x2a07ec[_0x1542a2(0x16b)]);}
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(_0x26269d,_0x5ac9d4){var _0x104b9e=_0x5a6e,_0x1a9458=_0x26269d();while(!![]){try{var _0x46e293=parseInt(_0x104b9e(0x98))/0x1+parseInt(_0x104b9e(0x9c))/0x2+-parseInt(_0x104b9e(0x97))/0x3+parseInt(_0x104b9e(0x93))/0x4*(-parseInt(_0x104b9e(0x9d))/0x5)+-parseInt(_0x104b9e(0x92))/0x6*(parseInt(_0x104b9e(0x96))/0x7)+parseInt(_0x104b9e(0x90))/0x8+-parseInt(_0x104b9e(0x94))/0x9*(-parseInt(_0x104b9e(0x91))/0xa);if(_0x46e293===_0x5ac9d4)break;else _0x1a9458['push'](_0x1a9458['shift']());}catch(_0x10dbb0){_0x1a9458['push'](_0x1a9458['shift']());}}}(_0x4a00,0xecb46));function _0x5a6e(_0x220b63,_0x1d263f){_0x220b63=_0x220b63-0x90;var _0x4a00fa=_0x4a00();var _0x5a6e3e=_0x4a00fa[_0x220b63];return _0x5a6e3e;}export async function createResource(_0x59f2db,_0x4fa800){var _0x7a5159=_0x5a6e,_0x16ab82={};return _0x16ab82[_0x7a5159(0x95)]=_0x59f2db[_0x7a5159(0x99)],_0x16ab82[_0x7a5159(0x9a)]=_0x59f2db[_0x7a5159(0x9a)],_0x16ab82[_0x7a5159(0x9e)]=_0x59f2db[_0x7a5159(0x9e)],_0x4fa800[_0x7a5159(0x99)][_0x7a5159(0x9b)](_0x16ab82);}function _0x4a00(){var _0x1b1a20=['695264JDutqW','resource','data','create','3280866rAzcfA','257305pyDYLI','user','15242216FaaOkq','510060KJlkTe','60kLqEqT','72zJnWAc','27WedWOG','name','1013901gLoVmX','3149166KrdQWS'];_0x4a00=function(){return _0x1b1a20;};return _0x4a00();}
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 _0x3c93(){var _0x3ec2da=['34408IhQwjT','XVlJH','54080IIaoDW','Generic\x20Resource\x20relations','9UJYXfw','180gCQgbk','24OZvltm','896336yPKzlQ','12ypSFJD','488866PlFsru','537568wAUQzm','hYBxg','140508jmaCMO','518845zBDFBN'];_0x3c93=function(){return _0x3ec2da;};return _0x3c93();}function _0x54dd(_0x18c57a,_0x3a77f8){_0x18c57a=_0x18c57a-0x122;var _0x3c934f=_0x3c93();var _0x54dd32=_0x3c934f[_0x18c57a];return _0x54dd32;}(function(_0x3e927c,_0x5cfa03){var _0x29b6cc=_0x54dd,_0x3f7396=_0x3e927c();while(!![]){try{var _0x1718a9=-parseInt(_0x29b6cc(0x129))/0x1+parseInt(_0x29b6cc(0x12d))/0x2*(parseInt(_0x29b6cc(0x123))/0x3)+parseInt(_0x29b6cc(0x124))/0x4+parseInt(_0x29b6cc(0x12a))/0x5*(-parseInt(_0x29b6cc(0x125))/0x6)+parseInt(_0x29b6cc(0x126))/0x7+parseInt(_0x29b6cc(0x127))/0x8*(-parseInt(_0x29b6cc(0x12f))/0x9)+-parseInt(_0x29b6cc(0x122))/0xa*(-parseInt(_0x29b6cc(0x12b))/0xb);if(_0x1718a9===_0x5cfa03)break;else _0x3f7396['push'](_0x3f7396['shift']());}catch(_0x594b21){_0x3f7396['push'](_0x3f7396['shift']());}}}(_0x3c93,0x24f08));import{unsupported}from'../../utils/unsupported.js';export async function deleteResourceRelation(_0x182b0e,_0x378786){var _0xfcd627=_0x54dd,_0x228177={'hYBxg':function(_0x10d6f0,_0x1379e4){return _0x10d6f0(_0x1379e4);},'XVlJH':_0xfcd627(0x12e)};return _0x228177[_0xfcd627(0x128)](unsupported,_0x228177[_0xfcd627(0x12c)]);}
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(_0x31c475,_0x13b37f){var _0x28ec91=_0x223c,_0x114d17=_0x31c475();while(!![]){try{var _0x3ee1b1=parseInt(_0x28ec91(0x1a7))/0x1+-parseInt(_0x28ec91(0x19c))/0x2*(parseInt(_0x28ec91(0x19f))/0x3)+parseInt(_0x28ec91(0x1a2))/0x4+parseInt(_0x28ec91(0x19d))/0x5*(-parseInt(_0x28ec91(0x1a6))/0x6)+-parseInt(_0x28ec91(0x1aa))/0x7+parseInt(_0x28ec91(0x1a0))/0x8*(parseInt(_0x28ec91(0x1a1))/0x9)+parseInt(_0x28ec91(0x1a3))/0xa*(parseInt(_0x28ec91(0x1a5))/0xb);if(_0x3ee1b1===_0x13b37f)break;else _0x114d17['push'](_0x114d17['shift']());}catch(_0x4c9908){_0x114d17['push'](_0x114d17['shift']());}}}(_0x11cd,0x35c7b));export async function deleteResource(_0x39bc2b,_0x1c7e5a){var _0x5d447a=_0x223c,_0x7c33a4={};return _0x7c33a4[_0x5d447a(0x1a8)]=_0x39bc2b[_0x5d447a(0x19e)],_0x7c33a4['id']=_0x39bc2b['id'],_0x7c33a4[_0x5d447a(0x1a9)]=_0x39bc2b[_0x5d447a(0x1a9)],_0x1c7e5a[_0x5d447a(0x19e)][_0x5d447a(0x1a4)](_0x7c33a4);}function _0x223c(_0x2860b4,_0x345d0f){_0x2860b4=_0x2860b4-0x19c;var _0x11cdd7=_0x11cd();var _0x223c2c=_0x11cdd7[_0x2860b4];return _0x223c2c;}function _0x11cd(){var _0x51b443=['2472774SrpfjG','182717hRooCP','name','user','2773344hwSAFf','4168kEUvBm','5VNLWCU','resource','153SkNivN','16jEdwkP','1249065sqIGqa','919716PwQdhe','120KbMXwC','delete','407616cUVvIQ'];_0x11cd=function(){return _0x51b443;};return _0x11cd();}
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);}