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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/context.js +1 -1
  3. package/dist/errors.js +1 -1
  4. package/dist/fastify.d.ts +4 -5
  5. package/dist/fastify.d.ts.map +1 -1
  6. package/dist/fastify.js +1 -1
  7. package/dist/fcore.js +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/migrations/cli.js +1 -1
  10. package/dist/migrations/runner.js +1 -1
  11. package/dist/modules/auth/index.js +1 -1
  12. package/dist/modules/auth/route.js +1 -1
  13. package/dist/modules/auth/schema.js +1 -1
  14. package/dist/modules/auth/services/get-current-user.js +1 -1
  15. package/dist/modules/auth/services/login.js +1 -1
  16. package/dist/modules/auth/services/logout.js +1 -1
  17. package/dist/modules/auth/services/verify-two-factor.js +1 -1
  18. package/dist/modules/auth/services/verifyPassword.js +1 -1
  19. package/dist/modules/file/index.js +1 -1
  20. package/dist/modules/file/route.js +1 -1
  21. package/dist/modules/file/schema.js +1 -1
  22. package/dist/modules/file/services/get-file.js +1 -1
  23. package/dist/modules/file/services/resize-file.js +1 -1
  24. package/dist/modules/file/services/upload-file.js +1 -1
  25. package/dist/modules/resource/index.js +1 -1
  26. package/dist/modules/resource/route.js +1 -1
  27. package/dist/modules/resource/schema.js +1 -1
  28. package/dist/modules/resource/services/add-note.js +1 -1
  29. package/dist/modules/resource/services/add-resource-file.js +1 -1
  30. package/dist/modules/resource/services/create-resource-relation.js +1 -1
  31. package/dist/modules/resource/services/create-resource.js +1 -1
  32. package/dist/modules/resource/services/delete-resource-relation.js +1 -1
  33. package/dist/modules/resource/services/delete-resource.js +1 -1
  34. package/dist/modules/resource/services/export-resource.js +1 -1
  35. package/dist/modules/resource/services/get-resource.js +1 -1
  36. package/dist/modules/resource/services/list-children.js +1 -1
  37. package/dist/modules/resource/services/list-resource-relation.js +1 -1
  38. package/dist/modules/resource/services/list-resources.js +1 -1
  39. package/dist/modules/resource/services/search-resource.js +1 -1
  40. package/dist/modules/resource/services/suggest-resource.d.ts +7 -4
  41. package/dist/modules/resource/services/suggest-resource.d.ts.map +1 -1
  42. package/dist/modules/resource/services/suggest-resource.js +1 -1
  43. package/dist/modules/resource/services/update-resource.js +1 -1
  44. package/dist/modules/resource/services/upload-resource-file.js +1 -1
  45. package/dist/modules/system/index.js +1 -1
  46. package/dist/modules/system/route.js +1 -1
  47. package/dist/modules/system/schema.js +1 -1
  48. package/dist/modules/system/services/check-system.js +1 -1
  49. package/dist/modules/system/services/get-api-list.js +1 -1
  50. package/dist/modules/system/services/get-audit-log.js +1 -1
  51. package/dist/modules/system/services/get-dictionary.js +1 -1
  52. package/dist/modules/system/services/get-system-log.js +1 -1
  53. package/dist/modules/system/services/get-system-settings.js +1 -1
  54. package/dist/modules/system/services/list-dictionaries.js +1 -1
  55. package/dist/modules/system/services/update-system-settings.js +1 -1
  56. package/dist/modules/utils/get-user-permissions.js +1 -1
  57. package/dist/modules/utils/require-admin.js +1 -1
  58. package/dist/modules/utils/safe-user.js +1 -1
  59. package/dist/modules/utils/unsupported.js +1 -1
  60. package/dist/plugins/audit/audit.js +1 -1
  61. package/dist/plugins/audit/index.js +1 -1
  62. package/dist/plugins/audit/services/write-audit.js +1 -1
  63. package/dist/plugins/auth/index.js +1 -1
  64. package/dist/plugins/dictionary.js +1 -1
  65. package/dist/plugins/file.js +1 -1
  66. package/dist/plugins/index.js +1 -1
  67. package/dist/plugins/logger/index.js +1 -1
  68. package/dist/plugins/logger/transport.js +1 -1
  69. package/dist/plugins/pg.js +1 -1
  70. package/dist/plugins/redis.js +1 -1
  71. package/dist/plugins/resource/index.js +1 -1
  72. package/dist/plugins/resource/resource.js +1 -1
  73. package/dist/plugins/resource/resource.registry.js +1 -1
  74. package/dist/plugins/resource/services/create.js +1 -1
  75. package/dist/plugins/resource/services/delete.js +1 -1
  76. package/dist/plugins/resource/services/find-one.js +1 -1
  77. package/dist/plugins/resource/services/find.js +1 -1
  78. package/dist/plugins/resource/services/update.js +1 -1
  79. package/dist/plugins/resource/utils/fields.js +1 -1
  80. package/dist/plugins/resource/utils/filters.js +1 -1
  81. package/dist/plugins/resource/utils/permissions.js +1 -1
  82. package/dist/plugins/resource/utils/sort.js +1 -1
  83. package/dist/plugins/resource/utils/sql.js +1 -1
  84. package/dist/shared/getIP.js +1 -1
  85. package/package.json +1 -2
@@ -1 +1 @@
1
- function _0x415b(){var _0x602086=['get','params','pgwtD','2766589VteERf','jzoDb','public','Get\x20file\x20by\x20token','token','Upload\x20file','Returns\x20a\x20resized\x20image\x20file.','SLevO','file','SZIYc','618438WSQFmh','MJeio','query','180639eSHxoP','bwKhn','SLABI','/api/file/:token','HivyX','files:read','NdaiX','Uploads\x20a\x20file\x20and\x20stores\x20its\x20metadata.','user','530AYaYns','upload','verify','post','/api/file/:token/resize','IjUud','send','aMQNQ','5199275ibxkEa','Returns\x20a\x20file\x20after\x20verifying\x20its\x20signed\x20access\x20token.','1749088JvSeXR','626404CUsYgP','WVaoP','2655kMHkpP','/api/file/upload','fcore','files:create','Resize\x20file','16wEUkjW','resizeQuery','6568OZCZRq','body','fileToken','VjKOf'];_0x415b=function(){return _0x602086;};return _0x415b();}(function(_0x454cab,_0x26ece6){var _0x4b1050=_0x21ab,_0x4a0ffd=_0x454cab();while(!![]){try{var _0x1aca0d=-parseInt(_0x4b1050(0xda))/0x1+parseInt(_0x4b1050(0xd9))/0x2+-parseInt(_0x4b1050(0xdc))/0x3*(-parseInt(_0x4b1050(0xe3))/0x4)+parseInt(_0x4b1050(0xd7))/0x5+-parseInt(_0x4b1050(0xf4))/0x6+parseInt(_0x4b1050(0xea))/0x7*(-parseInt(_0x4b1050(0xe1))/0x8)+-parseInt(_0x4b1050(0xf7))/0x9*(parseInt(_0x4b1050(0xcf))/0xa);if(_0x1aca0d===_0x26ece6)break;else _0x4a0ffd['push'](_0x4a0ffd['shift']());}catch(_0xe6524d){_0x4a0ffd['push'](_0x4a0ffd['shift']());}}}(_0x415b,0xbf603));import{uploadFile}from'./services/upload-file.js';import{resizeFile}from'./services/resize-file.js';import{fileSchemas}from'./schema.js';function _0x21ab(_0xa7ac2e,_0x42bfe1){_0xa7ac2e=_0xa7ac2e-0xc8;var _0x415b39=_0x415b();var _0x21abb8=_0x415b39[_0xa7ac2e];return _0x21abb8;}export function fileRoutes(_0xa253c1){var _0x2531fa=_0x21ab,_0x1379a3={};_0x1379a3[_0x2531fa(0xdb)]=_0x2531fa(0xc9),_0x1379a3[_0x2531fa(0xf3)]=_0x2531fa(0xde),_0x1379a3[_0x2531fa(0xd6)]=_0x2531fa(0xf2),_0x1379a3[_0x2531fa(0xd4)]=_0x2531fa(0xed),_0x1379a3[_0x2531fa(0xe6)]=_0x2531fa(0xd8),_0x1379a3[_0x2531fa(0xe9)]=_0x2531fa(0xec),_0x1379a3[_0x2531fa(0xeb)]=_0x2531fa(0xdd),_0x1379a3[_0x2531fa(0xca)]=_0x2531fa(0xcd),_0x1379a3[_0x2531fa(0xf1)]=_0x2531fa(0xdf),_0x1379a3[_0x2531fa(0xf8)]=_0x2531fa(0xd3),_0x1379a3[_0x2531fa(0xcc)]=_0x2531fa(0xe0),_0x1379a3[_0x2531fa(0xc8)]=_0x2531fa(0xf0),_0x1379a3[_0x2531fa(0xf5)]=_0x2531fa(0xcb);var _0x548d77=_0x1379a3;return async _0x259317=>{var _0xa49f8b=_0x2531fa;_0x259317[_0xa49f8b(0xe7)](_0x548d77[_0xa49f8b(0xdb)],{'schema':{'tags':[_0x548d77[_0xa49f8b(0xf3)],_0x548d77[_0xa49f8b(0xd6)]],'summary':_0x548d77[_0xa49f8b(0xd4)],'description':_0x548d77[_0xa49f8b(0xe6)],'access':_0x548d77[_0xa49f8b(0xe9)],'permissions':[],'params':fileSchemas[_0xa49f8b(0xe5)]}},async(_0x174a8b,_0x3c309a)=>_0x3c309a[_0xa49f8b(0xd5)](await _0xa253c1[_0xa49f8b(0xf2)]?.[_0xa49f8b(0xe7)](_0xa253c1[_0xa49f8b(0xf2)][_0xa49f8b(0xd1)](_0x174a8b[_0xa49f8b(0xe8)][_0xa49f8b(0xee)])['p']))),_0x259317[_0xa49f8b(0xd2)](_0x548d77[_0xa49f8b(0xeb)],{'schema':{'tags':[_0x548d77[_0xa49f8b(0xf3)],_0x548d77[_0xa49f8b(0xd6)]],'summary':_0xa49f8b(0xef),'description':_0x548d77[_0xa49f8b(0xca)],'access':_0xa49f8b(0xce),'permissions':[_0x548d77[_0xa49f8b(0xf1)]],'body':fileSchemas[_0xa49f8b(0xd0)]}},async _0x175b83=>uploadFile(_0x175b83[_0xa49f8b(0xe4)],_0xa253c1)),_0x259317[_0xa49f8b(0xe7)](_0x548d77[_0xa49f8b(0xf8)],{'schema':{'tags':[_0x548d77[_0xa49f8b(0xf3)],_0xa49f8b(0xf2)],'summary':_0x548d77[_0xa49f8b(0xcc)],'description':_0x548d77[_0xa49f8b(0xc8)],'access':_0xa49f8b(0xce),'permissions':[_0x548d77[_0xa49f8b(0xf5)]],'params':fileSchemas[_0xa49f8b(0xe5)],'querystring':fileSchemas[_0xa49f8b(0xe2)]}},async _0x55e2fe=>resizeFile({'pathOrToken':_0xa253c1[_0xa49f8b(0xf2)]?.[_0xa49f8b(0xd1)](_0x55e2fe[_0xa49f8b(0xe8)][_0xa49f8b(0xee)])['p'],..._0x55e2fe[_0xa49f8b(0xf6)]},_0xa253c1));};}
1
+ (function(_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 +1 @@
1
- const _0x17e4da=_0x31ba;(function(_0x1a80b0,_0x4557b9){const _0x5e9b70=_0x31ba,_0x3f5898=_0x1a80b0();while(!![]){try{const _0x544555=parseInt(_0x5e9b70(0x201))/0x1+-parseInt(_0x5e9b70(0x1f7))/0x2+-parseInt(_0x5e9b70(0x1f8))/0x3+parseInt(_0x5e9b70(0x1f5))/0x4+parseInt(_0x5e9b70(0x1fc))/0x5+parseInt(_0x5e9b70(0x1fb))/0x6+-parseInt(_0x5e9b70(0x202))/0x7;if(_0x544555===_0x4557b9)break;else _0x3f5898['push'](_0x3f5898['shift']());}catch(_0x411664){_0x3f5898['push'](_0x3f5898['shift']());}}}(_0x19e7,0x30164));import{Type}from'@sinclair/typebox';const _0x33ab16={};_0x33ab16[_0x17e4da(0x1ef)]=0x1,_0x33ab16[_0x17e4da(0x1fa)]=0x80;const _0x973db5={};_0x973db5[_0x17e4da(0x1ef)]=0x1,_0x973db5[_0x17e4da(0x1fa)]=0x800;const _0x530af9={};_0x530af9[_0x17e4da(0x1ef)]=0x1,_0x530af9[_0x17e4da(0x1fa)]=0x400;const _0x595354={};_0x595354[_0x17e4da(0x1ef)]=0x1;const _0x2f8c71={};_0x2f8c71[_0x17e4da(0x1ef)]=0x1;const _0x27b4b6={};_0x27b4b6[_0x17e4da(0x1ef)]=0x1;const _0x5df695={};_0x5df695[_0x17e4da(0x1ef)]=0x1;const _0x5837fa={};function _0x31ba(_0x16bcaf,_0x298f0f){_0x16bcaf=_0x16bcaf-0x1ed;const _0x19e7fd=_0x19e7();let _0x31ba5e=_0x19e7fd[_0x16bcaf];return _0x31ba5e;}_0x5837fa[_0x17e4da(0x1ef)]=0x1;const _0x5137cf={};_0x5137cf[_0x17e4da(0x1ef)]=0x1;const _0x503c47={};_0x503c47[_0x17e4da(0x1fd)]=0x1;const _0x509e8b={};_0x509e8b[_0x17e4da(0x1fd)]=0x1;function _0x19e7(){const _0x103084=['minLength','Any','fill','inside','contain','Literal','757468xwvboN','String','669096JPMTVT','549810UAWTRr','outside','maxLength','1363650UlvGtr','1766885DgoVUg','minimum','Optional','Integer','Union','283146PpPLHg','2368681xnEEdh','Object','cover'];_0x19e7=function(){return _0x103084;};return _0x19e7();}export const fileSchemas={'fileId':Type[_0x17e4da(0x1ed)]({'id':Type[_0x17e4da(0x1f6)](_0x33ab16)}),'fileToken':Type[_0x17e4da(0x1ed)]({'token':Type[_0x17e4da(0x1f6)](_0x973db5)}),'filePath':Type[_0x17e4da(0x1ed)]({'*':Type[_0x17e4da(0x1f6)](_0x530af9)}),'upload':Type[_0x17e4da(0x1ed)]({'file':Type[_0x17e4da(0x1f0)](),'metadata':Type[_0x17e4da(0x1ed)]({'name':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x595354)),'path':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x2f8c71)),'entityType':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x27b4b6)),'entityId':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x5df695))})}),'filePatch':Type[_0x17e4da(0x1ed)]({'entityType':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x5837fa)),'entityId':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1f6)](_0x5137cf))}),'resizeQuery':Type[_0x17e4da(0x1ed)]({'width':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1ff)](_0x503c47)),'height':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x1ff)](_0x509e8b)),'fit':Type[_0x17e4da(0x1fe)](Type[_0x17e4da(0x200)]([Type[_0x17e4da(0x1f4)](_0x17e4da(0x1ee)),Type[_0x17e4da(0x1f4)](_0x17e4da(0x1f3)),Type[_0x17e4da(0x1f4)](_0x17e4da(0x1f1)),Type[_0x17e4da(0x1f4)](_0x17e4da(0x1f2)),Type[_0x17e4da(0x1f4)](_0x17e4da(0x1f9))]))})};
1
+ 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 +1 @@
1
- (function(_0x874c84,_0x1bee1d){var _0x1083b9=_0x1bf6,_0x59af7a=_0x874c84();while(!![]){try{var _0x196e32=parseInt(_0x1083b9(0x13f))/0x1+-parseInt(_0x1083b9(0x141))/0x2+-parseInt(_0x1083b9(0x144))/0x3*(-parseInt(_0x1083b9(0x138))/0x4)+-parseInt(_0x1083b9(0x13e))/0x5*(-parseInt(_0x1083b9(0x140))/0x6)+-parseInt(_0x1083b9(0x142))/0x7+parseInt(_0x1083b9(0x149))/0x8*(parseInt(_0x1083b9(0x13b))/0x9)+-parseInt(_0x1083b9(0x146))/0xa*(parseInt(_0x1083b9(0x13d))/0xb);if(_0x196e32===_0x1bee1d)break;else _0x59af7a['push'](_0x59af7a['shift']());}catch(_0x5947de){_0x59af7a['push'](_0x59af7a['shift']());}}}(_0x3dd5,0x2359a));import{NotFoundError}from'../../../errors.js';export async function getFile(_0x1f0b69,_0x35d64b){var _0x3f12ef=_0x1bf6,_0x469bdc={};_0x469bdc[_0x3f12ef(0x139)]=_0x3f12ef(0x14a),_0x469bdc[_0x3f12ef(0x13a)]=_0x3f12ef(0x13c);var _0x4fe041=_0x469bdc;if(!_0x35d64b[_0x3f12ef(0x145)])throw new Error(_0x4fe041[_0x3f12ef(0x139)]);if(!await _0x35d64b[_0x3f12ef(0x145)][_0x3f12ef(0x143)](_0x1f0b69[_0x3f12ef(0x148)]))throw new NotFoundError(_0x4fe041[_0x3f12ef(0x13a)]);return _0x35d64b[_0x3f12ef(0x145)][_0x3f12ef(0x147)](_0x1f0b69[_0x3f12ef(0x148)]);}function _0x1bf6(_0x52f74a,_0x334342){_0x52f74a=_0x52f74a-0x138;var _0x3dd500=_0x3dd5();var _0x1bf6bb=_0x3dd500[_0x52f74a];return _0x1bf6bb;}function _0x3dd5(){var _0x325ba5=['2128GPxRjw','empty\x20file','192420xEEaeQ','ujWjo','STtOd','2916mAfgqa','File\x20not\x20found','11sHMEbT','12605leOJSA','192179gRrBbC','318ONdRnt','18396YGEYNt','230818dYdnEI','exists','18OURVwj','file','5136400QFrMUe','get','pathOrToken'];_0x3dd5=function(){return _0x325ba5;};return _0x3dd5();}
1
+ function _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 +1 @@
1
- function _0x337a(_0x27d661,_0x5da77e){_0x27d661=_0x27d661-0x93;const _0x58046c=_0x5804();let _0x337aee=_0x58046c[_0x27d661];return _0x337aee;}(function(_0x20e1b2,_0x247ded){const _0x270f3a=_0x337a,_0x266981=_0x20e1b2();while(!![]){try{const _0x48e8b9=parseInt(_0x270f3a(0x99))/0x1*(-parseInt(_0x270f3a(0xba))/0x2)+parseInt(_0x270f3a(0x9d))/0x3*(parseInt(_0x270f3a(0xa2))/0x4)+-parseInt(_0x270f3a(0xb2))/0x5+parseInt(_0x270f3a(0xbc))/0x6*(-parseInt(_0x270f3a(0xbe))/0x7)+-parseInt(_0x270f3a(0xa7))/0x8*(parseInt(_0x270f3a(0xbd))/0x9)+-parseInt(_0x270f3a(0x9c))/0xa+-parseInt(_0x270f3a(0x9b))/0xb*(-parseInt(_0x270f3a(0x98))/0xc);if(_0x48e8b9===_0x247ded)break;else _0x266981['push'](_0x266981['shift']());}catch(_0x452742){_0x266981['push'](_0x266981['shift']());}}}(_0x5804,0x8ea41));import{NotFoundError,ValidationError}from'../../../errors.js';import _0xc3a691 from'sharp';function _0x5804(){const _0x46cb2d=['htiRv','get','isInteger','zpBlg','PhCdr','nunSi','Width\x20or\x20height\x20is\x20required','5481165Yhlujm','cover','JvXTD','toBuffer','OiUcF','UCgDI','JTpeT','exists','24WpNcrw','PLemv','6186fHRCQA','987876eehmYx','3409ZElsPc','width','nvGDS','pathOrToken','\x20must\x20be\x20a\x20positive\x20integer','file','192SLhpnw','54421pLYPea','height','2236839AShsfe','7899180IbJFXK','273cRtXit','eGzIA','File\x20path\x20is\x20required','pJtMr','fit','50124gmrErz','CftAi','File\x20not\x20found','resize','mgNcq','56yijIlI','path','empty\x20file','tzgRa'];_0x5804=function(){return _0x46cb2d;};return _0x5804();}export async function resizeFile(_0x560168,_0x6fb329){const _0x19c469=_0x337a,_0x406a69={'PhCdr':_0x19c469(0xa9),'eGzIA':_0x19c469(0x9f),'nunSi':function(_0x25f573,_0x14da1d,_0x4c4b9f){return _0x25f573(_0x14da1d,_0x4c4b9f);},'JvXTD':_0x19c469(0x93),'OiUcF':_0x19c469(0x9a),'mgNcq':_0x19c469(0xb1),'PLemv':function(_0x25254c,_0x3c5418){return _0x25254c!==_0x3c5418;},'tzgRa':_0x19c469(0xb8),'UCgDI':_0x19c469(0xa4),'nvGDS':function(_0x4799da,_0x137dfe){return _0x4799da(_0x137dfe);}};if(!_0x6fb329[_0x19c469(0x97)])throw new Error(_0x406a69[_0x19c469(0xaf)]);const _0x172835=_0x560168[_0x19c469(0x95)]??_0x560168[_0x19c469(0xa8)];if(!_0x172835)throw new ValidationError(_0x406a69[_0x19c469(0x9e)]);const _0x47e00d=_0x406a69[_0x19c469(0xb0)](parseDimension,_0x560168[_0x19c469(0x93)],_0x406a69[_0x19c469(0xb4)]),_0x2cc90e=parseDimension(_0x560168[_0x19c469(0x9a)],_0x406a69[_0x19c469(0xb6)]);if(!_0x47e00d&&!_0x2cc90e)throw new ValidationError(_0x406a69[_0x19c469(0xa6)]);if(!await _0x6fb329[_0x19c469(0x97)][_0x19c469(0xb9)](_0x172835)){if(_0x406a69[_0x19c469(0xbb)](_0x406a69[_0x19c469(0xaa)],_0x406a69[_0x19c469(0xaa)]))throw new _0xe9bc7(_0x406a69[_0x19c469(0xaf)]);else throw new NotFoundError(_0x406a69[_0x19c469(0xb7)]);}const _0x58503c={};return _0x58503c[_0x19c469(0x93)]=_0x47e00d,_0x58503c[_0x19c469(0x9a)]=_0x2cc90e,_0x58503c[_0x19c469(0xa1)]=_0x560168[_0x19c469(0xa1)]??_0x19c469(0xb3),_0x406a69[_0x19c469(0x94)](_0xc3a691,await _0x6fb329[_0x19c469(0x97)][_0x19c469(0xac)](_0x172835))[_0x19c469(0xa5)](_0x58503c)[_0x19c469(0xb5)]();}function parseDimension(_0x36637b,_0x4dfcb0){const _0x5322d4=_0x337a,_0x22ed28={};_0x22ed28[_0x5322d4(0xa3)]=function(_0x3dbb69,_0x2316d1){return _0x3dbb69===_0x2316d1;};const _0x4efd2f=_0x22ed28;if(_0x4efd2f[_0x5322d4(0xa3)](_0x36637b,undefined)||_0x36637b===''){if(_0x5322d4(0xa0)!==_0x5322d4(0xae))return undefined;else throw new _0x531f99(_0x5322d4(0x9f));}const _0x362b58=Number(_0x36637b);if(!Number[_0x5322d4(0xad)](_0x362b58)||_0x362b58<=0x0){if(_0x4efd2f[_0x5322d4(0xa3)](_0x5322d4(0xab),_0x5322d4(0xab)))throw new ValidationError(_0x4dfcb0+_0x5322d4(0x96));else return _0x2f16ae;}return _0x362b58;}
1
+ (function(_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 +1 @@
1
- (function(_0x16d81d,_0x161e6d){const _0x4e77fe=_0x16c4,_0x39cc17=_0x16d81d();while(!![]){try{const _0x425d76=-parseInt(_0x4e77fe(0x1c2))/0x1+-parseInt(_0x4e77fe(0x1d3))/0x2*(parseInt(_0x4e77fe(0x1d0))/0x3)+parseInt(_0x4e77fe(0x1bd))/0x4*(-parseInt(_0x4e77fe(0x1cd))/0x5)+parseInt(_0x4e77fe(0x1c5))/0x6+-parseInt(_0x4e77fe(0x1cf))/0x7+-parseInt(_0x4e77fe(0x1c8))/0x8+parseInt(_0x4e77fe(0x1c6))/0x9;if(_0x425d76===_0x161e6d)break;else _0x39cc17['push'](_0x39cc17['shift']());}catch(_0x3b5964){_0x39cc17['push'](_0x39cc17['shift']());}}}(_0x33d8,0xe6246));import{randomUUID}from'node:crypto';function _0x33d8(){const _0x576a39=['put','uploads/','length','entityType','146515MaZStX','metadata','1641542WKxLiq','3ItkVMW','path','replace','94154TEcLAf','200lQZfiw','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','query','file','entityId','6624xMamai','name','EZwTi','3558462JFkenB','28350153BsYRzN','rows','8376600gaOBBl'];_0x33d8=function(){return _0x576a39;};return _0x33d8();}function _0x16c4(_0x284351,_0x331941){_0x284351=_0x284351-0x1bd;const _0x33d804=_0x33d8();let _0x16c4a7=_0x33d804[_0x284351];return _0x16c4a7;}export async function uploadFile(_0x27403f,_0x493e3c){const _0x35c010=_0x16c4,_0xd6a9d4={};_0xd6a9d4[_0x35c010(0x1c4)]=_0x35c010(0x1c0);const _0x2a908e=_0xd6a9d4,_0x5799f2=(_0x27403f[_0x35c010(0x1ce)][_0x35c010(0x1c3)]??_0x2a908e[_0x35c010(0x1c4)])[_0x35c010(0x1d2)](/[^a-zA-Z0-9._-]/g,'_'),_0x578136=_0x27403f[_0x35c010(0x1ce)][_0x35c010(0x1d1)]??_0x35c010(0x1ca)+randomUUID()+'-'+_0x5799f2;await _0x493e3c[_0x35c010(0x1c0)][_0x35c010(0x1c9)](_0x578136,_0x27403f[_0x35c010(0x1c0)]);const _0x45605d=await _0x493e3c['pg'][_0x35c010(0x1bf)](_0x35c010(0x1be),[_0x27403f[_0x35c010(0x1ce)][_0x35c010(0x1cc)]??null,_0x27403f[_0x35c010(0x1ce)][_0x35c010(0x1c1)]??null,_0x578136,_0x27403f[_0x35c010(0x1c0)][_0x35c010(0x1cb)]]);return _0x45605d[_0x35c010(0x1c7)][0x0];}
1
+ (function(_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 +1 @@
1
- (function(_0x2c8481,_0x298303){var _0x10b584=_0x19bc,_0x1b0443=_0x2c8481();while(!![]){try{var _0x507383=-parseInt(_0x10b584(0x167))/0x1+-parseInt(_0x10b584(0x162))/0x2*(-parseInt(_0x10b584(0x166))/0x3)+parseInt(_0x10b584(0x164))/0x4+-parseInt(_0x10b584(0x165))/0x5*(parseInt(_0x10b584(0x16b))/0x6)+parseInt(_0x10b584(0x168))/0x7*(-parseInt(_0x10b584(0x169))/0x8)+-parseInt(_0x10b584(0x16a))/0x9+parseInt(_0x10b584(0x163))/0xa;if(_0x507383===_0x298303)break;else _0x1b0443['push'](_0x1b0443['shift']());}catch(_0x3c2b11){_0x1b0443['push'](_0x1b0443['shift']());}}}(_0x3f01,0x1ba0a));export*from'./route.js';export*from'./services/list-resources.js';export*from'./services/get-resource.js';export*from'./services/create-resource.js';function _0x19bc(_0x8dc0bb,_0x54b2c6){_0x8dc0bb=_0x8dc0bb-0x162;var _0x3f01a3=_0x3f01();var _0x19bc2d=_0x3f01a3[_0x8dc0bb];return _0x19bc2d;}export*from'./services/update-resource.js';export*from'./services/delete-resource.js';export*from'./services/list-resource-relation.js';export*from'./services/create-resource-relation.js';function _0x3f01(){var _0x3fa1c9=['1939005BVPXmH','32424jKlIso','21354FuTznT','3154760AktIFU','533824SYlVuv','65LdBtCH','57NWQKIr','81827qZfkHx','8617eFdKFV','1112vktXWj'];_0x3f01=function(){return _0x3fa1c9;};return _0x3f01();}export*from'./services/delete-resource-relation.js';export*from'./services/list-children.js';export*from'./services/search-resource.js';export*from'./services/export-resource.js';export*from'./services/suggest-resource.js';export*from'./services/add-note.js';export*from'./services/add-resource-file.js';export*from'./services/upload-resource-file.js';
1
+ (function(_0x474bdf,_0x3e5e4f){var _0x307076=_0x1281,_0x5ad970=_0x474bdf();while(!![]){try{var _0x2adcae=-parseInt(_0x307076(0xd2))/0x1+-parseInt(_0x307076(0xd6))/0x2+-parseInt(_0x307076(0xd0))/0x3+parseInt(_0x307076(0xcf))/0x4*(parseInt(_0x307076(0xce))/0x5)+-parseInt(_0x307076(0xd5))/0x6*(parseInt(_0x307076(0xd3))/0x7)+parseInt(_0x307076(0xd1))/0x8*(parseInt(_0x307076(0xcd))/0x9)+parseInt(_0x307076(0xd4))/0xa;if(_0x2adcae===_0x3e5e4f)break;else _0x5ad970['push'](_0x5ad970['shift']());}catch(_0x2b1eaf){_0x5ad970['push'](_0x5ad970['shift']());}}}(_0x2749,0xd5f77));export*from'./route.js';export*from'./services/list-resources.js';export*from'./services/get-resource.js';export*from'./services/create-resource.js';export*from'./services/update-resource.js';export*from'./services/delete-resource.js';export*from'./services/list-resource-relation.js';export*from'./services/create-resource-relation.js';function _0x2749(){var _0x526a9c=['2828pKobQs','1605771CHqjQE','64WtrYch','684597JiqJPU','47719KuPXRB','29790640ikZNzg','138tJhjCW','2387212xoyJcd','5868LYiDKT','3270bAJCJo'];_0x2749=function(){return _0x526a9c;};return _0x2749();}export*from'./services/delete-resource-relation.js';export*from'./services/list-children.js';export*from'./services/search-resource.js';export*from'./services/export-resource.js';function _0x1281(_0x52f17e,_0x4d481b){_0x52f17e=_0x52f17e-0xcd;var _0x274914=_0x2749();var _0x12811e=_0x274914[_0x52f17e];return _0x12811e;}export*from'./services/suggest-resource.js';export*from'./services/add-note.js';export*from'./services/add-resource-file.js';export*from'./services/upload-resource-file.js';
@@ -1 +1 @@
1
- const _0x5d1b31=_0x2a24;(function(_0x4dd5b6,_0x55a27d){const _0x4925c4=_0x2a24,_0x135aca=_0x4dd5b6();while(!![]){try{const _0x2c04a5=parseInt(_0x4925c4(0x223))/0x1*(parseInt(_0x4925c4(0x241))/0x2)+-parseInt(_0x4925c4(0x1d7))/0x3*(parseInt(_0x4925c4(0x1e7))/0x4)+parseInt(_0x4925c4(0x230))/0x5+-parseInt(_0x4925c4(0x251))/0x6+-parseInt(_0x4925c4(0x1e0))/0x7*(-parseInt(_0x4925c4(0x1f8))/0x8)+parseInt(_0x4925c4(0x201))/0x9*(-parseInt(_0x4925c4(0x219))/0xa)+parseInt(_0x4925c4(0x1fc))/0xb*(parseInt(_0x4925c4(0x1fe))/0xc);if(_0x2c04a5===_0x55a27d)break;else _0x135aca['push'](_0x135aca['shift']());}catch(_0x547559){_0x135aca['push'](_0x135aca['shift']());}}}(_0x38ae,0x1e306));import{listResources}from'./services/list-resources.js';import{getResource}from'./services/get-resource.js';import{createResource}from'./services/create-resource.js';import{updateResource}from'./services/update-resource.js';import{deleteResource}from'./services/delete-resource.js';import{listResourceRelation}from'./services/list-resource-relation.js';import{createResourceRelation}from'./services/create-resource-relation.js';import{deleteResourceRelation}from'./services/delete-resource-relation.js';import{searchResource}from'./services/search-resource.js';import{exportResource}from'./services/export-resource.js';import{suggestResource}from'./services/suggest-resource.js';import{addNote}from'./services/add-note.js';import{addResourceFile}from'./services/add-resource-file.js';function _0x2a24(_0x38c099,_0x24b71b){_0x38c099=_0x38c099-0x1d3;const _0x38ae6e=_0x38ae();let _0x2a24be=_0x38ae6e[_0x38c099];return _0x2a24be;}function _0x38ae(){const _0x5d5c6f=['Returns\x20notes\x20related\x20to\x20a\x20resource\x20record.','querystring','qawrU','4338EcFCcL','notes','suggestQuery','exportResourceQuery','WzLCV','Kkpsy','fkoAA','Deletes\x20a\x20record\x20from\x20a\x20registered\x20resource.','VtKgQ','691418dEOWHC','Suggest\x20resource\x20values','Adds\x20a\x20file\x20to\x20a\x20resource\x20record.','/api/resource/:resource/export','ArvmT','TRNwL','yYIyY','68gQGPOY','Returns\x20records\x20from\x20a\x20registered\x20resource.','DusVs','List\x20resource\x20notes','Deletes\x20a\x20relation\x20from\x20a\x20resource\x20record.','exportResource','*:read','access','jEemD','ipiYq','/api/resource/:resource/:id/files/:relationId','Qfmak','/api/resource/:resource/:id/:relation/:relationId','oKdBw','patch','Ezhjl','/api/resource/:resource/:id/notes','16TrcDvC','Creates\x20a\x20record\x20in\x20a\x20registered\x20resource.','resourceField','vAaVm','143oOabQP','HKzPy','1692dOifqr','XXbCc','/api/resource/:resource/search','117GUxXEr','params','Delete\x20resource\x20file','Searches\x20records\x20in\x20a\x20registered\x20resource.','/api/resource/:resource/suggest/:field','urZuQ','lBGTV','ODcKU','Creates\x20a\x20relation\x20for\x20a\x20resource\x20record.','Export\x20resource\x20records','List\x20resource\x20relations','Create\x20resource\x20relation','dMvdu','3|12|13|1|10|4|14|2|9|8|15|6|5|11|0|16|7','VeAzD','/api/resource/:resource/:id/files','uqzHc','Returns\x20files\x20related\x20to\x20a\x20resource\x20record.','tags','YTfyO','pVWRM','Search\x20resource','sGcxN','/api/resource/:resource','105730WZkMGw','Updates\x20a\x20record\x20in\x20a\x20registered\x20resource.','schema','WwHFT','Update\x20resource\x20record','Returns\x20related\x20records\x20for\x20a\x20resource\x20record.','description','acJrp','pkVkg','permissions','3026AzjddN','UzkFy','user','ZTEXJ','IyldD','/api/resource/:resource/:id','query','fcore','summary','uploadResourceFile','Removes\x20a\x20file\x20relation\x20from\x20a\x20resource\x20record.','Get\x20resource\x20record','List\x20resource\x20files','400235sbJHBa','resource:update','qMRFb','List\x20resource\x20records','split','fShsU','Exports\x20readable\x20records\x20from\x20a\x20registered\x20resource.','XJcVk','uploadResourceFileBody','Returns\x20suggested\x20values\x20for\x20a\x20resource\x20field.','resourceId','Add\x20resource\x20note','Zzywn','Delete\x20resource\x20record','Edvil','cVajB','resource','82ATNGJM','Uploads\x20a\x20file\x20to\x20a\x20Resource\x20record\x20and\x20stores\x20its\x20metadata.','UCOQd','lRtco','Upload\x20resource\x20file','UKUyd','post','/api/resource/:resource/:id/:relation','Returns\x20one\x20record\x20from\x20a\x20registered\x20resource.','Delete\x20resource\x20relation','FyjTV','delete','/api/resource/:resource/:id/upload','Adds\x20a\x20note\x20to\x20a\x20resource\x20record.','resourceIdRelation','AOBlZ','706854iKxASK','dXiur','files','body','resourceIdRelationId','Create\x20resource\x20record','get','Add\x20resource\x20file'];_0x38ae=function(){return _0x5d5c6f;};return _0x38ae();}import{uploadResourceFile}from'./services/upload-resource-file.js';import{resourceSchemas}from'./schema.js';const user=_0x38625f=>_0x38625f[_0x5d1b31(0x225)];export function resourceRoutes(_0x449154){const _0x339a7b=_0x5d1b31,_0x3f8e07={};_0x3f8e07[_0x339a7b(0x246)]=_0x339a7b(0x20e),_0x3f8e07[_0x339a7b(0x24b)]=_0x339a7b(0x248),_0x3f8e07[_0x339a7b(0x1ff)]=_0x339a7b(0x22a),_0x3f8e07[_0x339a7b(0x1dc)]=_0x339a7b(0x240),_0x3f8e07[_0x339a7b(0x232)]=_0x339a7b(0x21e),_0x3f8e07[_0x339a7b(0x1f0)]=_0x339a7b(0x225),_0x3f8e07[_0x339a7b(0x1f6)]=_0x339a7b(0x218),_0x3f8e07[_0x339a7b(0x226)]=_0x339a7b(0x233),_0x3f8e07[_0x339a7b(0x220)]=_0x339a7b(0x1e8),_0x3f8e07[_0x339a7b(0x23c)]=_0x339a7b(0x228),_0x3f8e07[_0x339a7b(0x206)]=_0x339a7b(0x23d),_0x3f8e07[_0x339a7b(0x1e6)]=_0x339a7b(0x200),_0x3f8e07[_0x339a7b(0x214)]=_0x339a7b(0x216),_0x3f8e07[_0x339a7b(0x207)]=_0x339a7b(0x204),_0x3f8e07[_0x339a7b(0x217)]=_0x339a7b(0x22e),_0x3f8e07[_0x339a7b(0x23e)]=_0x339a7b(0x245),_0x3f8e07[_0x339a7b(0x20d)]=_0x339a7b(0x242),_0x3f8e07[_0x339a7b(0x1dd)]=_0x339a7b(0x210),_0x3f8e07[_0x339a7b(0x20f)]=_0x339a7b(0x1d3),_0x3f8e07[_0x339a7b(0x224)]=_0x339a7b(0x1e2),_0x3f8e07[_0x339a7b(0x243)]=_0x339a7b(0x1f3),_0x3f8e07[_0x339a7b(0x1e4)]=_0x339a7b(0x24a),_0x3f8e07[_0x339a7b(0x1f4)]=_0x339a7b(0x1eb),_0x3f8e07[_0x339a7b(0x1ef)]=_0x339a7b(0x1f7),_0x3f8e07[_0x339a7b(0x215)]=_0x339a7b(0x23b),_0x3f8e07[_0x339a7b(0x235)]=_0x339a7b(0x24e),_0x3f8e07[_0x339a7b(0x244)]=_0x339a7b(0x1ea),_0x3f8e07[_0x339a7b(0x227)]=_0x339a7b(0x1d4),_0x3f8e07[_0x339a7b(0x1e9)]=_0x339a7b(0x1f9),_0x3f8e07[_0x339a7b(0x1db)]=_0x339a7b(0x1f1),_0x3f8e07[_0x339a7b(0x211)]=_0x339a7b(0x203),_0x3f8e07[_0x339a7b(0x1d6)]=_0x339a7b(0x22d),_0x3f8e07[_0x339a7b(0x1e5)]=_0x339a7b(0x205),_0x3f8e07[_0x339a7b(0x1df)]=_0x339a7b(0x1e1),_0x3f8e07[_0x339a7b(0x1f2)]=_0x339a7b(0x239),_0x3f8e07[_0x339a7b(0x21c)]=_0x339a7b(0x20a),_0x3f8e07[_0x339a7b(0x221)]=_0x339a7b(0x236),_0x3f8e07[_0x339a7b(0x23f)]=_0x339a7b(0x1ed),_0x3f8e07[_0x339a7b(0x237)]=_0x339a7b(0x21d),_0x3f8e07[_0x339a7b(0x252)]=_0x339a7b(0x21a),_0x3f8e07[_0x339a7b(0x250)]=_0x339a7b(0x22f),_0x3f8e07[_0x339a7b(0x1fb)]=_0x339a7b(0x212),_0x3f8e07[_0x339a7b(0x1fd)]=_0x339a7b(0x20c),_0x3f8e07[_0x339a7b(0x208)]=_0x339a7b(0x209);const _0x153a74=_0x3f8e07;return async _0x23caa9=>{const _0x3e2483=_0x339a7b,_0x33c71e=_0x153a74[_0x3e2483(0x246)][_0x3e2483(0x234)]('|');let _0x19bb4a=0x0;while(!![]){switch(_0x33c71e[_0x19bb4a++]){case'0':_0x23caa9[_0x3e2483(0x257)](_0x153a74[_0x3e2483(0x24b)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x3e2483(0x20b),'description':_0x153a74[_0x3e2483(0x232)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x24f)]}},async _0x4edf69=>listResourceRelation({..._0x4edf69[_0x3e2483(0x229)],..._0x4edf69[_0x3e2483(0x202)],'user':user(_0x4edf69)},_0x449154));continue;case'1':_0x23caa9[_0x3e2483(0x257)](_0x153a74[_0x3e2483(0x1f6)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x226)],'description':_0x153a74[_0x3e2483(0x220)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x240)]}},async _0x3502e8=>listResources({..._0x3502e8[_0x3e2483(0x229)],..._0x3502e8[_0x3e2483(0x202)],'user':user(_0x3502e8)},_0x449154));continue;case'2':_0x23caa9[_0x3e2483(0x24c)](_0x153a74[_0x3e2483(0x23c)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x3e2483(0x240)],'summary':_0x153a74[_0x3e2483(0x206)],'description':_0x3e2483(0x1de),'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x23a)]}},async _0xf3b1a1=>deleteResource({..._0xf3b1a1[_0x3e2483(0x202)],'user':user(_0xf3b1a1)},_0x449154));continue;case'3':_0x23caa9[_0x3e2483(0x257)](_0x153a74[_0x3e2483(0x1e6)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x214)],'description':_0x153a74[_0x3e2483(0x207)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x240)]}},async _0x342749=>searchResource({..._0x342749[_0x3e2483(0x229)],..._0x342749[_0x3e2483(0x202)],'user':user(_0x342749)},_0x449154));continue;case'4':const _0x21c2bf={};_0x21c2bf[_0x3e2483(0x213)]=[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],_0x21c2bf[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x217)],_0x21c2bf[_0x3e2483(0x21f)]=_0x3e2483(0x249),_0x21c2bf[_0x3e2483(0x1ee)]=_0x3e2483(0x225),_0x21c2bf[_0x3e2483(0x222)]=[],_0x21c2bf[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x23a)];const _0x355c15={};_0x355c15[_0x3e2483(0x21b)]=_0x21c2bf,_0x23caa9[_0x3e2483(0x257)](_0x3e2483(0x228),_0x355c15,async _0x2530ff=>getResource({..._0x2530ff[_0x3e2483(0x202)],'user':user(_0x2530ff)},_0x449154));continue;case'5':const _0x298a36={};_0x298a36[_0x3e2483(0x213)]=[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],_0x298a36[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x23e)],_0x298a36[_0x3e2483(0x21f)]=_0x153a74[_0x3e2483(0x20d)],_0x298a36[_0x3e2483(0x1ee)]=_0x153a74[_0x3e2483(0x1f0)],_0x298a36[_0x3e2483(0x222)]=[_0x3e2483(0x231)],_0x298a36[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x22c)],_0x298a36[_0x3e2483(0x254)]=resourceSchemas[_0x3e2483(0x238)];const _0x23e29c={};_0x23e29c[_0x3e2483(0x21b)]=_0x298a36,_0x23caa9[_0x3e2483(0x247)](_0x3e2483(0x24d),_0x23e29c,async _0x43844b=>uploadResourceFile({..._0x43844b[_0x3e2483(0x202)],..._0x43844b[_0x3e2483(0x254)],'user':user(_0x43844b)},_0x449154));continue;case'6':_0x23caa9[_0x3e2483(0x247)](_0x153a74[_0x3e2483(0x1dd)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x20f)],'description':_0x153a74[_0x3e2483(0x224)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x23a)]}},async _0x3faf07=>addResourceFile({..._0x3faf07[_0x3e2483(0x202)],..._0x3faf07[_0x3e2483(0x254)],'user':user(_0x3faf07)},_0x449154));continue;case'7':_0x23caa9[_0x3e2483(0x24c)](_0x153a74[_0x3e2483(0x243)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x1e4)],'description':_0x153a74[_0x3e2483(0x1f4)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x255)]}},async _0x180a6f=>deleteResourceRelation({..._0x180a6f[_0x3e2483(0x202)],'user':user(_0x180a6f)},_0x449154));continue;case'8':_0x23caa9[_0x3e2483(0x247)](_0x153a74[_0x3e2483(0x1ef)],{'schema':{'tags':[_0x3e2483(0x22a),_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x215)],'description':_0x153a74[_0x3e2483(0x235)],'access':_0x3e2483(0x225),'permissions':[],'params':resourceSchemas[_0x3e2483(0x23a)]}},async _0x6eb8bd=>addNote({..._0x6eb8bd[_0x3e2483(0x202)],..._0x6eb8bd[_0x3e2483(0x254)],'user':user(_0x6eb8bd)},_0x449154));continue;case'9':const _0x5d5e8e={};_0x5d5e8e[_0x3e2483(0x213)]=[_0x3e2483(0x22a),_0x153a74[_0x3e2483(0x1dc)]],_0x5d5e8e[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x244)],_0x5d5e8e[_0x3e2483(0x21f)]=_0x153a74[_0x3e2483(0x227)],_0x5d5e8e[_0x3e2483(0x1ee)]=_0x153a74[_0x3e2483(0x1f0)],_0x5d5e8e[_0x3e2483(0x222)]=[],_0x5d5e8e[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x23a)];const _0x11d38b={};_0x11d38b[_0x3e2483(0x21b)]=_0x5d5e8e,_0x23caa9[_0x3e2483(0x257)](_0x3e2483(0x1f7),_0x11d38b,async _0x54c63f=>listResourceRelation({..._0x54c63f[_0x3e2483(0x202)],'relation':_0x3e2483(0x1d8),'user':user(_0x54c63f)},_0x449154));continue;case'10':_0x23caa9[_0x3e2483(0x247)](_0x153a74[_0x3e2483(0x1f6)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x3e2483(0x256),'description':_0x153a74[_0x3e2483(0x1e9)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x240)]}},async _0x53df71=>createResource({..._0x53df71[_0x3e2483(0x202)],'data':_0x53df71[_0x3e2483(0x254)],'user':user(_0x53df71)},_0x449154));continue;case'11':_0x23caa9[_0x3e2483(0x24c)](_0x153a74[_0x3e2483(0x1db)],{'schema':{'tags':[_0x3e2483(0x22a),_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x211)],'description':_0x153a74[_0x3e2483(0x1d6)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x255)]}},async _0x3f41ad=>deleteResourceRelation({..._0x3f41ad[_0x3e2483(0x202)],'relation':_0x3e2483(0x253),'user':user(_0x3f41ad)},_0x449154));continue;case'12':_0x23caa9[_0x3e2483(0x257)](_0x153a74[_0x3e2483(0x1e5)],{'schema':{'tags':[_0x3e2483(0x22a),_0x3e2483(0x240)],'summary':_0x153a74[_0x3e2483(0x1df)],'description':_0x153a74[_0x3e2483(0x1f2)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x1fa)],'querystring':resourceSchemas[_0x3e2483(0x1d9)]}},async _0x261f72=>suggestResource({..._0x261f72[_0x3e2483(0x229)],..._0x261f72[_0x3e2483(0x202)],'user':user(_0x261f72)},_0x449154));continue;case'13':const _0x4264aa={};_0x4264aa[_0x3e2483(0x213)]=[_0x153a74[_0x3e2483(0x1ff)],_0x3e2483(0x240)],_0x4264aa[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x21c)],_0x4264aa[_0x3e2483(0x21f)]=_0x153a74[_0x3e2483(0x221)],_0x4264aa[_0x3e2483(0x1ee)]=_0x153a74[_0x3e2483(0x1f0)],_0x4264aa[_0x3e2483(0x222)]=[_0x153a74[_0x3e2483(0x23f)]],_0x4264aa[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x1ec)],_0x4264aa[_0x3e2483(0x1d5)]=resourceSchemas[_0x3e2483(0x1da)];const _0x4adc20={};_0x4adc20[_0x3e2483(0x21b)]=_0x4264aa,_0x23caa9[_0x3e2483(0x257)](_0x3e2483(0x1e3),_0x4adc20,async _0x7037b1=>exportResource({..._0x7037b1[_0x3e2483(0x229)],..._0x7037b1[_0x3e2483(0x202)],'user':user(_0x7037b1)},_0x449154));continue;case'14':_0x23caa9[_0x3e2483(0x1f5)](_0x153a74[_0x3e2483(0x23c)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x3e2483(0x240)],'summary':_0x153a74[_0x3e2483(0x237)],'description':_0x153a74[_0x3e2483(0x252)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x23a)]}},async _0x5b0070=>updateResource({..._0x5b0070[_0x3e2483(0x202)],'patch':_0x5b0070[_0x3e2483(0x254)],'user':user(_0x5b0070)},_0x449154));continue;case'15':const _0x4f10b2={};_0x4f10b2[_0x3e2483(0x213)]=[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],_0x4f10b2[_0x3e2483(0x22b)]=_0x153a74[_0x3e2483(0x250)],_0x4f10b2[_0x3e2483(0x21f)]=_0x153a74[_0x3e2483(0x1fb)],_0x4f10b2[_0x3e2483(0x1ee)]=_0x153a74[_0x3e2483(0x1f0)],_0x4f10b2[_0x3e2483(0x222)]=[],_0x4f10b2[_0x3e2483(0x202)]=resourceSchemas[_0x3e2483(0x23a)];const _0x13638d={};_0x13638d[_0x3e2483(0x21b)]=_0x4f10b2,_0x23caa9[_0x3e2483(0x257)](_0x3e2483(0x210),_0x13638d,async _0x25f43b=>listResourceRelation({..._0x25f43b[_0x3e2483(0x202)],'relation':_0x3e2483(0x253),'user':user(_0x25f43b)},_0x449154));continue;case'16':_0x23caa9[_0x3e2483(0x247)](_0x153a74[_0x3e2483(0x24b)],{'schema':{'tags':[_0x153a74[_0x3e2483(0x1ff)],_0x153a74[_0x3e2483(0x1dc)]],'summary':_0x153a74[_0x3e2483(0x1fd)],'description':_0x153a74[_0x3e2483(0x208)],'access':_0x153a74[_0x3e2483(0x1f0)],'permissions':[],'params':resourceSchemas[_0x3e2483(0x24f)]}},async _0x554979=>createResourceRelation({..._0x554979[_0x3e2483(0x202)],'data':_0x554979[_0x3e2483(0x254)],'user':user(_0x554979)},_0x449154));continue;}break;}};}
1
+ const _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 +1 @@
1
- const _0x56d90d=_0x1e82;(function(_0x5e100b,_0x1ee87c){const _0x290bf9=_0x1e82,_0x2022d2=_0x5e100b();while(!![]){try{const _0x463082=-parseInt(_0x290bf9(0x188))/0x1+parseInt(_0x290bf9(0x18a))/0x2*(-parseInt(_0x290bf9(0x171))/0x3)+-parseInt(_0x290bf9(0x177))/0x4+parseInt(_0x290bf9(0x183))/0x5*(-parseInt(_0x290bf9(0x17d))/0x6)+-parseInt(_0x290bf9(0x180))/0x7+-parseInt(_0x290bf9(0x17b))/0x8*(-parseInt(_0x290bf9(0x16d))/0x9)+parseInt(_0x290bf9(0x189))/0xa*(parseInt(_0x290bf9(0x186))/0xb);if(_0x463082===_0x1ee87c)break;else _0x2022d2['push'](_0x2022d2['shift']());}catch(_0x36209f){_0x2022d2['push'](_0x2022d2['shift']());}}}(_0x2143,0xc588a));import{Type}from'@sinclair/typebox';const _0x13bf22={};_0x13bf22[_0x56d90d(0x187)]=0x1,_0x13bf22[_0x56d90d(0x17c)]=0x80,_0x13bf22[_0x56d90d(0x16e)]=_0x56d90d(0x175);function _0x1e82(_0x555c25,_0x26b4ae){_0x555c25=_0x555c25-0x16d;const _0x2143e9=_0x2143();let _0x1e829c=_0x2143e9[_0x555c25];return _0x1e829c;}export const identifier=Type[_0x56d90d(0x17e)](_0x13bf22);const _0x4eee1e={};_0x4eee1e[_0x56d90d(0x174)]=identifier;const _0x26e967={};_0x26e967[_0x56d90d(0x16f)]=identifier;const _0x175335={};_0x175335[_0x56d90d(0x16f)]=identifier;const _0x1d286f={};_0x1d286f[_0x56d90d(0x16f)]=identifier,_0x1d286f[_0x56d90d(0x181)]=identifier;const _0x293933={};_0x293933[_0x56d90d(0x17a)]=0x1,_0x293933[_0x56d90d(0x179)]=0xc8;const _0x1df434={};_0x1df434[_0x56d90d(0x16f)]=identifier,_0x1df434['id']=identifier;const _0xd54263={};_0xd54263[_0x56d90d(0x16f)]=identifier,_0xd54263['id']=identifier,_0xd54263[_0x56d90d(0x184)]=identifier;const _0x549345={};_0x549345[_0x56d90d(0x16f)]=identifier,_0x549345['id']=identifier,_0x549345[_0x56d90d(0x184)]=identifier,_0x549345[_0x56d90d(0x182)]=identifier;const _0x4cf6be={};_0x4cf6be[_0x56d90d(0x16f)]=identifier,_0x4cf6be['id']=identifier;const _0x3a0f7d={};function _0x2143(){const _0x20044c=['Integer','604269JQKpTj','Optional','Unknown','name','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','Array','2094416HQBqZi','Object','maximum','minimum','1360NzmcST','maxLength','138fUrQSM','String','Record','6830453gaeCyX','field','relationId','211605lpHyke','relation','Any','139964VpNImq','minLength','1240248HucBzV','3770KLzLfN','4kVUZvL','6777bKNwYo','pattern','resource'];_0x2143=function(){return _0x20044c;};return _0x2143();}_0x3a0f7d[_0x56d90d(0x187)]=0x1,_0x3a0f7d[_0x56d90d(0x17c)]=0xff;const _0x4adf55={};_0x4adf55[_0x56d90d(0x187)]=0x1;const _0x2b6955={};_0x2b6955[_0x56d90d(0x17a)]=0x1,_0x2b6955[_0x56d90d(0x179)]=0xc8;const _0x215148={};_0x215148[_0x56d90d(0x17a)]=0x0;export const resourceSchemas={'dictionaryName':Type[_0x56d90d(0x178)](_0x4eee1e),'resource':Type[_0x56d90d(0x178)](_0x26e967),'exportResource':Type[_0x56d90d(0x178)](_0x175335),'resourceField':Type[_0x56d90d(0x178)](_0x1d286f),'suggestQuery':Type[_0x56d90d(0x178)]({'q':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x17e)]()),'search':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x17e)]()),'limit':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x170)](_0x293933))}),'resourceId':Type[_0x56d90d(0x178)](_0x1df434),'resourceIdRelation':Type[_0x56d90d(0x178)](_0xd54263),'resourceIdRelationId':Type[_0x56d90d(0x178)](_0x549345),'uploadResourceFile':Type[_0x56d90d(0x178)](_0x4cf6be),'uploadResourceFileBody':Type[_0x56d90d(0x178)]({'file':Type[_0x56d90d(0x185)](),'fileName':Type[_0x56d90d(0x17e)](_0x3a0f7d)}),'exportResourceQuery':Type[_0x56d90d(0x178)]({'filter':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x17f)](Type[_0x56d90d(0x17e)](),Type[_0x56d90d(0x173)]())),'sort':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x176)](Type[_0x56d90d(0x17e)](_0x4adf55))),'search':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x17e)]()),'limit':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x170)](_0x2b6955)),'offset':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x170)](_0x215148)),'fields':Type[_0x56d90d(0x172)](Type[_0x56d90d(0x176)](identifier))})};
1
+ const _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 +1 @@
1
- (function(_0x5c544f,_0xd094c1){const _0x1b1f31=_0x5950,_0x22a795=_0x5c544f();while(!![]){try{const _0x15df50=-parseInt(_0x1b1f31(0x199))/0x1*(-parseInt(_0x1b1f31(0x19e))/0x2)+parseInt(_0x1b1f31(0x197))/0x3+-parseInt(_0x1b1f31(0x19c))/0x4+parseInt(_0x1b1f31(0x18f))/0x5*(parseInt(_0x1b1f31(0x19a))/0x6)+parseInt(_0x1b1f31(0x193))/0x7*(parseInt(_0x1b1f31(0x194))/0x8)+parseInt(_0x1b1f31(0x18e))/0x9*(-parseInt(_0x1b1f31(0x198))/0xa)+-parseInt(_0x1b1f31(0x19b))/0xb;if(_0x15df50===_0xd094c1)break;else _0x22a795['push'](_0x22a795['shift']());}catch(_0x20dbb8){_0x22a795['push'](_0x22a795['shift']());}}}(_0x44fa,0xbc8ca));function _0x5950(_0x3ff033,_0x5f414c){_0x3ff033=_0x3ff033-0x18e;const _0x44fa75=_0x44fa();let _0x5950dd=_0x44fa75[_0x3ff033];return _0x5950dd;}export async function addNote(_0x4ba8b6,_0x58ffda){const _0x121a9e=_0x5950,_0x1188aa={'nBIGK':function(_0x1c8038,_0x41603){return _0x1c8038(_0x41603);}},_0x20f304=await _0x58ffda['pg'][_0x121a9e(0x19d)](_0x121a9e(0x196),[_0x4ba8b6[_0x121a9e(0x191)],_0x1188aa[_0x121a9e(0x190)](String,_0x4ba8b6['id']),_0x4ba8b6[_0x121a9e(0x192)]]);return _0x20f304[_0x121a9e(0x195)][0x0];}function _0x44fa(){const _0x1338f8=['nBIGK','resource','body','139188zlXJSl','96KcPOAy','rows','INSERT\x20INTO\x20admin.notes(resource,resource_id,body)\x20VALUES\x20($1,$2,$3)\x20RETURNING\x20*','338394XEgYTD','1359140JKrZUr','7159aVbVaf','7863102HJYvUI','7103921cdPyeh','6044256ZdXaJC','query','392kSgzVD','9xguMwm','5JEaIKQ'];_0x44fa=function(){return _0x1338f8;};return _0x44fa();}
1
+ (function(_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 +1 @@
1
- function _0x37e6(){const _0x30c282=['4068030tVsMMP','81gGidBu','query','285440SKFCDz','7ZGlyzi','rows','8886232HAwAgX','5487805TAnzEk','3934570vTbRac','resource','52002fKkaZi','9eHZJqS','size','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','filePath','2697800wtDMUv'];_0x37e6=function(){return _0x30c282;};return _0x37e6();}(function(_0x47760b,_0x17f548){const _0x5af525=_0x24d2,_0x532ab9=_0x47760b();while(!![]){try{const _0x1a7ddc=parseInt(_0x5af525(0xec))/0x1+parseInt(_0x5af525(0xf3))/0x2*(parseInt(_0x5af525(0xea))/0x3)+-parseInt(_0x5af525(0xe8))/0x4+-parseInt(_0x5af525(0xf0))/0x5+-parseInt(_0x5af525(0xe9))/0x6*(-parseInt(_0x5af525(0xed))/0x7)+-parseInt(_0x5af525(0xef))/0x8*(-parseInt(_0x5af525(0xe4))/0x9)+-parseInt(_0x5af525(0xf1))/0xa;if(_0x1a7ddc===_0x17f548)break;else _0x532ab9['push'](_0x532ab9['shift']());}catch(_0x4d755e){_0x532ab9['push'](_0x532ab9['shift']());}}}(_0x37e6,0x951df));function _0x24d2(_0x2ed26c,_0x239e9a){_0x2ed26c=_0x2ed26c-0xe4;const _0x37e6ac=_0x37e6();let _0x24d28f=_0x37e6ac[_0x2ed26c];return _0x24d28f;}export async function addResourceFile(_0x8527f3,_0x32f072){const _0x1905c1=_0x24d2,_0x300a5b=await _0x32f072['pg'][_0x1905c1(0xeb)](_0x1905c1(0xe6),[_0x8527f3[_0x1905c1(0xf2)],String(_0x8527f3['id']),_0x8527f3[_0x1905c1(0xe7)],_0x8527f3[_0x1905c1(0xe5)]??null]);return _0x300a5b[_0x1905c1(0xee)][0x0];}
1
+ function _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 +1 @@
1
- (function(_0x2c3b92,_0x2f95f8){var _0x283dbf=_0x257f,_0x50cc82=_0x2c3b92();while(!![]){try{var _0x3a5c01=-parseInt(_0x283dbf(0xf6))/0x1+-parseInt(_0x283dbf(0xf3))/0x2*(parseInt(_0x283dbf(0xf9))/0x3)+parseInt(_0x283dbf(0xf7))/0x4*(-parseInt(_0x283dbf(0xf2))/0x5)+parseInt(_0x283dbf(0xfc))/0x6*(-parseInt(_0x283dbf(0xf4))/0x7)+-parseInt(_0x283dbf(0xfa))/0x8+-parseInt(_0x283dbf(0xf8))/0x9+-parseInt(_0x283dbf(0xf1))/0xa*(-parseInt(_0x283dbf(0xf5))/0xb);if(_0x3a5c01===_0x2f95f8)break;else _0x50cc82['push'](_0x50cc82['shift']());}catch(_0x102f76){_0x50cc82['push'](_0x50cc82['shift']());}}}(_0x1302,0xce86f));import{unsupported}from'../../utils/unsupported.js';function _0x257f(_0x25ade5,_0x599b64){_0x25ade5=_0x25ade5-0xf0;var _0x13024a=_0x1302();var _0x257f40=_0x13024a[_0x25ade5];return _0x257f40;}export async function createResourceRelation(_0x341d80,_0x25bffb){var _0x53878e=_0x257f,_0x15ba1d={'BYPSg':function(_0x5196ad,_0x2b8d7f){return _0x5196ad(_0x2b8d7f);}};return _0x15ba1d[_0x53878e(0xf0)](unsupported,_0x53878e(0xfb));}function _0x1302(){var _0x18fd59=['10MyAggR','2359815RKpfxh','2lmJatT','4525255TwhecV','42090059OzDkYV','220371YFNStE','4gZGjgn','5265387JzeKfe','3050349yoIzTg','318472ZvhfEF','Generic\x20Resource\x20relations','6BHBYsg','BYPSg'];_0x1302=function(){return _0x18fd59;};return _0x1302();}
1
+ function _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 +1 @@
1
- (function(_0x1a6305,_0x1fb81c){var _0x554a33=_0x2d10,_0xc37be1=_0x1a6305();while(!![]){try{var _0x594509=-parseInt(_0x554a33(0x17e))/0x1+parseInt(_0x554a33(0x17f))/0x2*(parseInt(_0x554a33(0x189))/0x3)+parseInt(_0x554a33(0x180))/0x4*(parseInt(_0x554a33(0x18b))/0x5)+parseInt(_0x554a33(0x184))/0x6+parseInt(_0x554a33(0x188))/0x7*(parseInt(_0x554a33(0x17d))/0x8)+parseInt(_0x554a33(0x183))/0x9*(-parseInt(_0x554a33(0x181))/0xa)+-parseInt(_0x554a33(0x182))/0xb;if(_0x594509===_0x1fb81c)break;else _0xc37be1['push'](_0xc37be1['shift']());}catch(_0x91bd58){_0xc37be1['push'](_0xc37be1['shift']());}}}(_0x559c,0x78a00));function _0x559c(){var _0x1fb6ce=['514339rqlUqt','1829658HpejpJ','name','10VsxPJe','user','8aBkJmD','197577Phudnx','2ucLNdp','602380pqADAD','420SzDsvx','5601508jIglAj','7641XwdSOP','1511940NBepVw','create','data','resource'];_0x559c=function(){return _0x1fb6ce;};return _0x559c();}function _0x2d10(_0x5760c8,_0x22886c){_0x5760c8=_0x5760c8-0x17c;var _0x559ce1=_0x559c();var _0x2d1083=_0x559ce1[_0x5760c8];return _0x2d1083;}export async function createResource(_0x515c77,_0x130cf9){var _0x5e426a=_0x2d10,_0x4f5938={};return _0x4f5938[_0x5e426a(0x18a)]=_0x515c77[_0x5e426a(0x187)],_0x4f5938[_0x5e426a(0x186)]=_0x515c77[_0x5e426a(0x186)],_0x4f5938[_0x5e426a(0x17c)]=_0x515c77[_0x5e426a(0x17c)],_0x130cf9[_0x5e426a(0x187)][_0x5e426a(0x185)](_0x4f5938);}
1
+ (function(_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 +1 @@
1
- function _0xc40a(_0x4d8b46,_0x531f34){_0x4d8b46=_0x4d8b46-0x7c;var _0x161716=_0x1617();var _0xc40ab7=_0x161716[_0x4d8b46];return _0xc40ab7;}(function(_0x18fb66,_0x3cfbe2){var _0x5388fc=_0xc40a,_0x44d329=_0x18fb66();while(!![]){try{var _0x2b6114=parseInt(_0x5388fc(0x85))/0x1*(parseInt(_0x5388fc(0x87))/0x2)+-parseInt(_0x5388fc(0x89))/0x3+-parseInt(_0x5388fc(0x7f))/0x4+-parseInt(_0x5388fc(0x88))/0x5*(-parseInt(_0x5388fc(0x7c))/0x6)+-parseInt(_0x5388fc(0x81))/0x7*(-parseInt(_0x5388fc(0x7d))/0x8)+-parseInt(_0x5388fc(0x80))/0x9+-parseInt(_0x5388fc(0x82))/0xa*(-parseInt(_0x5388fc(0x86))/0xb);if(_0x2b6114===_0x3cfbe2)break;else _0x44d329['push'](_0x44d329['shift']());}catch(_0xec8951){_0x44d329['push'](_0x44d329['shift']());}}}(_0x1617,0xcc9e7));import{unsupported}from'../../utils/unsupported.js';export async function deleteResourceRelation(_0x3175e3,_0x57dc4e){var _0x1d4e6d=_0xc40a,_0x4906ad={'MGVdg':function(_0xc43279,_0x50af2c){return _0xc43279(_0x50af2c);},'MCXNQ':_0x1d4e6d(0x84)};return _0x4906ad[_0x1d4e6d(0x7e)](unsupported,_0x4906ad[_0x1d4e6d(0x83)]);}function _0x1617(){var _0xf82af2=['Generic\x20Resource\x20relations','444784vBXbHN','13840574eQbtRJ','4JLJqDz','20lxqUgq','2683275KryNyu','1262598iiOrfJ','1760816ZPJJoC','MGVdg','3918396SEdsvT','14382027kMkvnq','42ldhGmD','10odBBTR','MCXNQ'];_0x1617=function(){return _0xf82af2;};return _0x1617();}
1
+ function _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 +1 @@
1
- function _0x3417(_0x4676ee,_0x2f1834){_0x4676ee=_0x4676ee-0x1b0;var _0xdb22d1=_0xdb22();var _0x3417eb=_0xdb22d1[_0x4676ee];return _0x3417eb;}function _0xdb22(){var _0x2105ec=['name','2gbYXbW','delete','700760PNfxIb','416420LmMMno','6ukXLqe','4047429DEoQFj','4391835bTHMQR','235976mnaAOL','751688JlHcYZ','user','319WplRAz','180sfMric','918458QeksdI','resource'];_0xdb22=function(){return _0x2105ec;};return _0xdb22();}(function(_0xb3e3dc,_0x19c8eb){var _0x1f2162=_0x3417,_0x242b74=_0xb3e3dc();while(!![]){try{var _0x295335=-parseInt(_0x1f2162(0x1b8))/0x1+-parseInt(_0x1f2162(0x1bb))/0x2*(-parseInt(_0x1f2162(0x1b1))/0x3)+parseInt(_0x1f2162(0x1b3))/0x4+parseInt(_0x1f2162(0x1b2))/0x5+parseInt(_0x1f2162(0x1b0))/0x6*(parseInt(_0x1f2162(0x1b4))/0x7)+parseInt(_0x1f2162(0x1bd))/0x8*(-parseInt(_0x1f2162(0x1b7))/0x9)+-parseInt(_0x1f2162(0x1be))/0xa*(-parseInt(_0x1f2162(0x1b6))/0xb);if(_0x295335===_0x19c8eb)break;else _0x242b74['push'](_0x242b74['shift']());}catch(_0x369c66){_0x242b74['push'](_0x242b74['shift']());}}}(_0xdb22,0xe354c));export async function deleteResource(_0x3433a6,_0x3478dc){var _0x2e3bd7=_0x3417,_0x156864={};return _0x156864[_0x2e3bd7(0x1ba)]=_0x3433a6[_0x2e3bd7(0x1b9)],_0x156864['id']=_0x3433a6['id'],_0x156864[_0x2e3bd7(0x1b5)]=_0x3433a6[_0x2e3bd7(0x1b5)],_0x3478dc[_0x2e3bd7(0x1b9)][_0x2e3bd7(0x1bc)](_0x156864);}
1
+ (function(_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 +1 @@
1
- function _0x1e2c(_0x1a3521,_0x5695b0){_0x1a3521=_0x1a3521-0x1ac;const _0x128fb9=_0x128f();let _0x1e2ca9=_0x128fb9[_0x1a3521];return _0x1e2ca9;}(function(_0x265195,_0x2e7b02){const _0x5e0eb=_0x1e2c,_0x2f9fe9=_0x265195();while(!![]){try{const _0x239d3e=-parseInt(_0x5e0eb(0x1bb))/0x1+parseInt(_0x5e0eb(0x1ac))/0x2+parseInt(_0x5e0eb(0x1b7))/0x3*(-parseInt(_0x5e0eb(0x1b0))/0x4)+parseInt(_0x5e0eb(0x1be))/0x5*(parseInt(_0x5e0eb(0x1b5))/0x6)+parseInt(_0x5e0eb(0x1b3))/0x7*(-parseInt(_0x5e0eb(0x1bd))/0x8)+-parseInt(_0x5e0eb(0x1b4))/0x9*(-parseInt(_0x5e0eb(0x1bc))/0xa)+-parseInt(_0x5e0eb(0x1bf))/0xb;if(_0x239d3e===_0x2e7b02)break;else _0x2f9fe9['push'](_0x2f9fe9['shift']());}catch(_0x3b4ac2){_0x2f9fe9['push'](_0x2f9fe9['shift']());}}}(_0x128f,0xb4e62));export async function exportResource(_0x1a1ab5,_0x3f12e9){const _0xe2f4eb=_0x1e2c,_0x4ed087={};_0x4ed087[_0xe2f4eb(0x1b8)]=_0x1a1ab5[_0xe2f4eb(0x1af)],_0x4ed087[_0xe2f4eb(0x1b9)]={},_0x4ed087[_0xe2f4eb(0x1ad)]=_0x1a1ab5[_0xe2f4eb(0x1ad)],_0x4ed087[_0xe2f4eb(0x1b9)][_0xe2f4eb(0x1c0)]=_0x1a1ab5[_0xe2f4eb(0x1c0)],_0x4ed087[_0xe2f4eb(0x1b9)][_0xe2f4eb(0x1c1)]=_0x1a1ab5[_0xe2f4eb(0x1c1)],_0x4ed087[_0xe2f4eb(0x1b9)][_0xe2f4eb(0x1ba)]=_0x1a1ab5[_0xe2f4eb(0x1ba)],_0x4ed087[_0xe2f4eb(0x1b9)][_0xe2f4eb(0x1b2)]=_0x1a1ab5[_0xe2f4eb(0x1b2)],_0x4ed087[_0xe2f4eb(0x1b9)][_0xe2f4eb(0x1b6)]=_0x1a1ab5[_0xe2f4eb(0x1b6)],_0x4ed087[_0xe2f4eb(0x1b9)][_0xe2f4eb(0x1b1)]=_0x1a1ab5[_0xe2f4eb(0x1b1)];const _0x3ad9ff=await _0x3f12e9[_0xe2f4eb(0x1af)][_0xe2f4eb(0x1c2)](_0x4ed087);return _0x3ad9ff[_0xe2f4eb(0x1ae)];}function _0x128f(){const _0x1a3045=['9oTbIxd','16986jAReIg','offset','6zKwPww','name','query','search','423015bEIewv','11005750XYIXUZ','1091152nmloGR','1855UEPSKT','5121578hqUYMY','filter','sort','find','799742jWUToL','user','rows','resource','1569556NFvsKP','fields','limit','7nfTViT'];_0x128f=function(){return _0x1a3045;};return _0x128f();}
1
+ function _0xafa2(){const _0x22fb90=['filter','resource','find','offset','2385UEwEkg','3779968ZVcJTc','826120LpWQyI','6ThOuAw','174AYWRuJ','query','fields','name','sort','8610puqUvC','search','4423515KwvypW','limit','893574fPiTJR','263991YeUZKD','user','311810Mxlfow','rows'];_0xafa2=function(){return _0x22fb90;};return _0xafa2();}function _0x5cc0(_0x10737b,_0x2a74c0){_0x10737b=_0x10737b-0x198;const _0xafa265=_0xafa2();let _0x5cc052=_0xafa265[_0x10737b];return _0x5cc052;}(function(_0x5484ee,_0x571989){const _0x38cde8=_0x5cc0,_0x388ca8=_0x5484ee();while(!![]){try{const _0xd41b4f=-parseInt(_0x38cde8(0x198))/0x1+parseInt(_0x38cde8(0x19b))/0x2+parseInt(_0x38cde8(0x1a4))/0x3*(parseInt(_0x38cde8(0x1a3))/0x4)+-parseInt(_0x38cde8(0x1ac))/0x5+-parseInt(_0x38cde8(0x1a5))/0x6*(-parseInt(_0x38cde8(0x199))/0x7)+parseInt(_0x38cde8(0x1a2))/0x8+-parseInt(_0x38cde8(0x1a1))/0x9*(-parseInt(_0x38cde8(0x1aa))/0xa);if(_0xd41b4f===_0x571989)break;else _0x388ca8['push'](_0x388ca8['shift']());}catch(_0x1a5289){_0x388ca8['push'](_0x388ca8['shift']());}}}(_0xafa2,0x8ed42));export async function exportResource(_0x4883f3,_0x1ea8dc){const _0x4c2342=_0x5cc0,_0x6f022={};_0x6f022[_0x4c2342(0x1a8)]=_0x4883f3[_0x4c2342(0x19e)],_0x6f022[_0x4c2342(0x1a6)]={},_0x6f022[_0x4c2342(0x19a)]=_0x4883f3[_0x4c2342(0x19a)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x19d)]=_0x4883f3[_0x4c2342(0x19d)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1a9)]=_0x4883f3[_0x4c2342(0x1a9)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1ab)]=_0x4883f3[_0x4c2342(0x1ab)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1ad)]=_0x4883f3[_0x4c2342(0x1ad)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1a0)]=_0x4883f3[_0x4c2342(0x1a0)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1a7)]=_0x4883f3[_0x4c2342(0x1a7)];const _0x571d3f=await _0x1ea8dc[_0x4c2342(0x19e)][_0x4c2342(0x19f)](_0x6f022);return _0x571d3f[_0x4c2342(0x19c)];}
@@ -1 +1 @@
1
- (function(_0x5179e1,_0x2b7df5){var _0x37b3c3=_0x1aef,_0x33196c=_0x5179e1();while(!![]){try{var _0x2334ff=-parseInt(_0x37b3c3(0x1db))/0x1+parseInt(_0x37b3c3(0x1e4))/0x2*(parseInt(_0x37b3c3(0x1de))/0x3)+-parseInt(_0x37b3c3(0x1e1))/0x4*(-parseInt(_0x37b3c3(0x1d6))/0x5)+-parseInt(_0x37b3c3(0x1dd))/0x6*(-parseInt(_0x37b3c3(0x1d9))/0x7)+parseInt(_0x37b3c3(0x1e0))/0x8+parseInt(_0x37b3c3(0x1e2))/0x9+parseInt(_0x37b3c3(0x1da))/0xa*(-parseInt(_0x37b3c3(0x1e3))/0xb);if(_0x2334ff===_0x2b7df5)break;else _0x33196c['push'](_0x33196c['shift']());}catch(_0x5df38d){_0x33196c['push'](_0x33196c['shift']());}}}(_0x334d,0x87ff9));export async function getResource(_0x4202be,_0xc99b0){var _0x3777a8=_0x1aef,_0x2c221f={};return _0x2c221f[_0x3777a8(0x1d8)]=_0x4202be[_0x3777a8(0x1dc)],_0x2c221f['id']=_0x4202be['id'],_0x2c221f[_0x3777a8(0x1df)]=_0x4202be[_0x3777a8(0x1df)],_0xc99b0[_0x3777a8(0x1dc)][_0x3777a8(0x1d7)](_0x2c221f);}function _0x1aef(_0x2dede9,_0x510eed){_0x2dede9=_0x2dede9-0x1d6;var _0x334d11=_0x334d();var _0x1aefec=_0x334d11[_0x2dede9];return _0x1aefec;}function _0x334d(){var _0x4fd6c2=['308819heuDwo','resource','1694598lHkuMG','22521gJXzXD','user','3358840ZsQmuS','1532AsZrai','1023174vKTjPq','429Ukuqem','118svDuFx','10315FZMRQM','findOne','name','14JHsMNG','375790EzTRgy'];_0x334d=function(){return _0x4fd6c2;};return _0x334d();}
1
+ (function(_0x157039,_0x143176){var _0x33a7fd=_0x12fb,_0x225d80=_0x157039();while(!![]){try{var _0x32c94f=-parseInt(_0x33a7fd(0x88))/0x1*(parseInt(_0x33a7fd(0x7e))/0x2)+parseInt(_0x33a7fd(0x83))/0x3*(-parseInt(_0x33a7fd(0x87))/0x4)+parseInt(_0x33a7fd(0x86))/0x5+parseInt(_0x33a7fd(0x85))/0x6*(-parseInt(_0x33a7fd(0x81))/0x7)+-parseInt(_0x33a7fd(0x82))/0x8*(parseInt(_0x33a7fd(0x79))/0x9)+-parseInt(_0x33a7fd(0x84))/0xa*(parseInt(_0x33a7fd(0x7d))/0xb)+parseInt(_0x33a7fd(0x7c))/0xc;if(_0x32c94f===_0x143176)break;else _0x225d80['push'](_0x225d80['shift']());}catch(_0xfb575c){_0x225d80['push'](_0x225d80['shift']());}}}(_0x1c17,0x606a8));function _0x1c17(){var _0xebd8ad=['32561364NsCOvN','55pHBhKm','6436PKZGsU','resource','user','7SQpkWA','59336YZQeHW','3wTbUNl','1385010jTFUpK','4085502vxcrob','1389385VyFCTJ','2429780JrJwXB','106bMvUij','333bAurdX','findOne','name'];_0x1c17=function(){return _0xebd8ad;};return _0x1c17();}function _0x12fb(_0x26fff4,_0x19ebe7){_0x26fff4=_0x26fff4-0x79;var _0x1c1784=_0x1c17();var _0x12fbba=_0x1c1784[_0x26fff4];return _0x12fbba;}export async function getResource(_0x5f22c6,_0x16011d){var _0x4875ef=_0x12fb,_0xb7d5ab={};return _0xb7d5ab[_0x4875ef(0x7b)]=_0x5f22c6[_0x4875ef(0x7f)],_0xb7d5ab['id']=_0x5f22c6['id'],_0xb7d5ab[_0x4875ef(0x80)]=_0x5f22c6[_0x4875ef(0x80)],_0x16011d[_0x4875ef(0x7f)][_0x4875ef(0x7a)](_0xb7d5ab);}
@@ -1 +1 @@
1
- function _0x7378(){var _0x12832b=['1224RrStXA','jebfV','1324DCJhtg','128GQgfsd','1534740etXlGJ','2280KMuQVf','27RmhCoX','16584eXuiQJ','135837iymkHz','96803jlLeUq','Generic\x20Resource\x20children','23248aEHzUp'];_0x7378=function(){return _0x12832b;};return _0x7378();}(function(_0x356cdc,_0x394cab){var _0x4a5219=_0xb90b,_0x37629f=_0x356cdc();while(!![]){try{var _0x273086=parseInt(_0x4a5219(0x1eb))/0x1*(parseInt(_0x4a5219(0x1e8))/0x2)+parseInt(_0x4a5219(0x1e4))/0x3+-parseInt(_0x4a5219(0x1ea))/0x4*(parseInt(_0x4a5219(0x1ed))/0x5)+parseInt(_0x4a5219(0x1ef))/0x6+-parseInt(_0x4a5219(0x1e5))/0x7+-parseInt(_0x4a5219(0x1e7))/0x8*(-parseInt(_0x4a5219(0x1ee))/0x9)+parseInt(_0x4a5219(0x1ec))/0xa;if(_0x273086===_0x394cab)break;else _0x37629f['push'](_0x37629f['shift']());}catch(_0x357ed5){_0x37629f['push'](_0x37629f['shift']());}}}(_0x7378,0x1e39e));import{unsupported}from'../../utils/unsupported.js';function _0xb90b(_0x23fa81,_0x3dc267){_0x23fa81=_0x23fa81-0x1e4;var _0x737821=_0x7378();var _0xb90b15=_0x737821[_0x23fa81];return _0xb90b15;}export async function listChildren(_0x23ba2a,_0x436223){var _0x5b06a7=_0xb90b,_0x352cd8={'jebfV':function(_0x85ae01,_0x37d93a){return _0x85ae01(_0x37d93a);}};return _0x352cd8[_0x5b06a7(0x1e9)](unsupported,_0x5b06a7(0x1e6));}
1
+ (function(_0x1ed0dc,_0x54c3c7){var _0x177516=_0xcf31,_0x409438=_0x1ed0dc();while(!![]){try{var _0x55990d=-parseInt(_0x177516(0x198))/0x1+-parseInt(_0x177516(0x19b))/0x2*(parseInt(_0x177516(0x1a1))/0x3)+parseInt(_0x177516(0x1a2))/0x4+-parseInt(_0x177516(0x19e))/0x5+parseInt(_0x177516(0x1a0))/0x6*(parseInt(_0x177516(0x199))/0x7)+parseInt(_0x177516(0x19f))/0x8*(-parseInt(_0x177516(0x1a3))/0x9)+parseInt(_0x177516(0x19c))/0xa;if(_0x55990d===_0x54c3c7)break;else _0x409438['push'](_0x409438['shift']());}catch(_0x57c66f){_0x409438['push'](_0x409438['shift']());}}}(_0x494b,0x41db9));function _0xcf31(_0xfe0206,_0x3dc1ff){_0xfe0206=_0xfe0206-0x198;var _0x494b77=_0x494b();var _0xcf31fc=_0x494b77[_0xfe0206];return _0xcf31fc;}function _0x494b(){var _0x10c755=['6fXEfUF','54FzhBzi','162180KhLevw','2191437ydjSWo','ZLZuI','111187yXHrpW','1634906ZQaPof','Generic\x20Resource\x20children','15154vsoyFh','9945570nUFxIR','dhZFd','2539205ZNdCyi','8GJJVoI'];_0x494b=function(){return _0x10c755;};return _0x494b();}import{unsupported}from'../../utils/unsupported.js';export async function listChildren(_0x3d34e7,_0x191262){var _0x372843=_0xcf31,_0x477e2e={'dhZFd':function(_0x554e56,_0x5b8f00){return _0x554e56(_0x5b8f00);},'ZLZuI':_0x372843(0x19a)};return _0x477e2e[_0x372843(0x19d)](unsupported,_0x477e2e[_0x372843(0x1a4)]);}
@@ -1 +1 @@
1
- (function(_0xb81aa9,_0x374c22){var _0x52aba1=_0x3243,_0x39116c=_0xb81aa9();while(!![]){try{var _0x547f7e=parseInt(_0x52aba1(0x86))/0x1*(parseInt(_0x52aba1(0x85))/0x2)+-parseInt(_0x52aba1(0x83))/0x3+parseInt(_0x52aba1(0x88))/0x4+-parseInt(_0x52aba1(0x82))/0x5*(parseInt(_0x52aba1(0x7e))/0x6)+parseInt(_0x52aba1(0x8a))/0x7+parseInt(_0x52aba1(0x89))/0x8+-parseInt(_0x52aba1(0x81))/0x9*(-parseInt(_0x52aba1(0x7f))/0xa);if(_0x547f7e===_0x374c22)break;else _0x39116c['push'](_0x39116c['shift']());}catch(_0x29ca0e){_0x39116c['push'](_0x39116c['shift']());}}}(_0x122a,0xe54a3));import{unsupported}from'../../utils/unsupported.js';function _0x3243(_0x4cf021,_0x2d68da){_0x4cf021=_0x4cf021-0x7e;var _0x122a6b=_0x122a();var _0x324324=_0x122a6b[_0x4cf021];return _0x324324;}function _0x122a(){var _0x531c43=['29njXvyP','LzzSt','1731952LTTLDL','14007400CqoYAW','9975917qpQDZm','10842162TGisVp','19330SbcYhd','Generic\x20Resource\x20relations','468pAmpBd','5swmhVj','5424048RlJbKN','eHigO','58252WlGfiA'];_0x122a=function(){return _0x531c43;};return _0x122a();}export async function listResourceRelation(_0x462b6a,_0x336452){var _0x1e5a4f=_0x3243,_0x534218={'LzzSt':function(_0x3bcfd7,_0x327bd9){return _0x3bcfd7(_0x327bd9);},'eHigO':_0x1e5a4f(0x80)};return _0x534218[_0x1e5a4f(0x87)](unsupported,_0x534218[_0x1e5a4f(0x84)]);}
1
+ (function(_0x267d52,_0x41003b){var _0x3ce592=_0x4da8,_0x4dd73c=_0x267d52();while(!![]){try{var _0x3df46e=parseInt(_0x3ce592(0xb7))/0x1*(parseInt(_0x3ce592(0xb6))/0x2)+-parseInt(_0x3ce592(0xb5))/0x3*(-parseInt(_0x3ce592(0xbb))/0x4)+-parseInt(_0x3ce592(0xc0))/0x5*(parseInt(_0x3ce592(0xbf))/0x6)+-parseInt(_0x3ce592(0xc1))/0x7+-parseInt(_0x3ce592(0xbd))/0x8*(parseInt(_0x3ce592(0xb8))/0x9)+parseInt(_0x3ce592(0xba))/0xa+parseInt(_0x3ce592(0xbc))/0xb;if(_0x3df46e===_0x41003b)break;else _0x4dd73c['push'](_0x4dd73c['shift']());}catch(_0x4fb02d){_0x4dd73c['push'](_0x4dd73c['shift']());}}}(_0x26b1,0x34144));import{unsupported}from'../../utils/unsupported.js';function _0x4da8(_0x2bff0b,_0x577dc5){_0x2bff0b=_0x2bff0b-0xb5;var _0x26b17c=_0x26b1();var _0x4da874=_0x26b17c[_0x2bff0b];return _0x4da874;}function _0x26b1(){var _0xecad21=['124hGVjqL','5923599tlTXsI','7880VxZyCY','Generic\x20Resource\x20relations','77892DKZNKv','35TzSDUS','1732871kCVVoF','RJveX','15123GUuVCd','84KldNnm','1011ktSzdc','3339bzhcFM','GHIBs','1799360EsInjd'];_0x26b1=function(){return _0xecad21;};return _0x26b1();}export async function listResourceRelation(_0x38187b,_0x3edba0){var _0x22ba33=_0x4da8,_0x1e9b39={'GHIBs':function(_0x197c65,_0x5eff36){return _0x197c65(_0x5eff36);},'RJveX':_0x22ba33(0xbe)};return _0x1e9b39[_0x22ba33(0xb9)](unsupported,_0x1e9b39[_0x22ba33(0xc2)]);}
@@ -1 +1 @@
1
- function _0x4128(_0x5d1ed4,_0x38d0cc){_0x5d1ed4=_0x5d1ed4-0xf7;var _0xb1b07e=_0xb1b0();var _0x41287c=_0xb1b07e[_0x5d1ed4];return _0x41287c;}(function(_0x5652ca,_0x531d98){var _0x3662a8=_0x4128,_0xcfbaab=_0x5652ca();while(!![]){try{var _0x368567=-parseInt(_0x3662a8(0xfe))/0x1+-parseInt(_0x3662a8(0xfb))/0x2+parseInt(_0x3662a8(0xfd))/0x3+parseInt(_0x3662a8(0x101))/0x4*(parseInt(_0x3662a8(0x10a))/0x5)+parseInt(_0x3662a8(0xfc))/0x6*(parseInt(_0x3662a8(0xf7))/0x7)+-parseInt(_0x3662a8(0x109))/0x8*(-parseInt(_0x3662a8(0xf8))/0x9)+-parseInt(_0x3662a8(0x100))/0xa;if(_0x368567===_0x531d98)break;else _0xcfbaab['push'](_0xcfbaab['shift']());}catch(_0xbc420e){_0xcfbaab['push'](_0xcfbaab['shift']());}}}(_0xb1b0,0xc4c0d));function _0xb1b0(){var _0x4d29a9=['3949428GHLJFE','60128FGGJab','page','25750440xieGFy','368KVfBaA','find','sort','user','offset','filter','EqZmW','max','1017496JkgoEn','46715brprYF','resource','112rjKcKA','54yRyclZ','limit','search','986594CXabdH','373206rfrGiX'];_0xb1b0=function(){return _0x4d29a9;};return _0xb1b0();}export async function listResources(_0x11b770,_0x3e8524){var _0x398133=_0x4128,_0x140f65={};_0x140f65[_0x398133(0x107)]=function(_0x5b8aae,_0x4a82fd){return _0x5b8aae-_0x4a82fd;};var _0x559417=_0x140f65;return _0x3e8524[_0x398133(0x10b)][_0x398133(0x102)]({'name':_0x11b770[_0x398133(0x10b)],'query':{'filter':_0x11b770[_0x398133(0x106)],'sort':_0x11b770[_0x398133(0x103)],'search':_0x11b770[_0x398133(0xfa)],'limit':_0x11b770[_0x398133(0xf9)],'offset':_0x11b770[_0x398133(0x105)]??(_0x11b770[_0x398133(0xff)]?Math[_0x398133(0x108)](_0x559417[_0x398133(0x107)](_0x11b770[_0x398133(0xff)],0x1),0x0):0x0)*(_0x11b770[_0x398133(0xf9)]??0x14)},'user':_0x11b770[_0x398133(0x104)]});}
1
+ function _0x5cde(){var _0x5439c5=['find','1508264JzLaMN','2539708wtcREF','8465930dTxCFI','1012254qxYGMV','resource','limit','max','page','filter','40EzvfPx','5974885gjpPLB','2157744dmgryV','196aUbJsB','search','sort','offset','user','54865KHzSoQ','63rakoKS','3KbEjrZ'];_0x5cde=function(){return _0x5439c5;};return _0x5cde();}function _0x6a5f(_0x15be57,_0x780ef0){_0x15be57=_0x15be57-0xac;var _0x5cde97=_0x5cde();var _0x6a5f07=_0x5cde97[_0x15be57];return _0x6a5f07;}(function(_0x17c912,_0xa21159){var _0x5db0f7=_0x6a5f,_0xcb45e1=_0x17c912();while(!![]){try{var _0x4fd682=parseInt(_0x5db0f7(0xb4))/0x1+-parseInt(_0x5db0f7(0xb2))/0x2*(parseInt(_0x5db0f7(0xaf))/0x3)+-parseInt(_0x5db0f7(0xbd))/0x4*(-parseInt(_0x5db0f7(0xad))/0x5)+-parseInt(_0x5db0f7(0xbc))/0x6+-parseInt(_0x5db0f7(0xbb))/0x7+parseInt(_0x5db0f7(0xb1))/0x8*(-parseInt(_0x5db0f7(0xae))/0x9)+-parseInt(_0x5db0f7(0xba))/0xa*(-parseInt(_0x5db0f7(0xb3))/0xb);if(_0x4fd682===_0xa21159)break;else _0xcb45e1['push'](_0xcb45e1['shift']());}catch(_0xa3d3c5){_0xcb45e1['push'](_0xcb45e1['shift']());}}}(_0x5cde,0xc9957));export async function listResources(_0x433f3a,_0x117f69){var _0x551bd0=_0x6a5f;return _0x117f69[_0x551bd0(0xb5)][_0x551bd0(0xb0)]({'name':_0x433f3a[_0x551bd0(0xb5)],'query':{'filter':_0x433f3a[_0x551bd0(0xb9)],'sort':_0x433f3a[_0x551bd0(0xbf)],'search':_0x433f3a[_0x551bd0(0xbe)],'limit':_0x433f3a[_0x551bd0(0xb6)],'offset':_0x433f3a[_0x551bd0(0xc0)]??(_0x433f3a[_0x551bd0(0xb8)]?Math[_0x551bd0(0xb7)](_0x433f3a[_0x551bd0(0xb8)]-0x1,0x0):0x0)*(_0x433f3a[_0x551bd0(0xb6)]??0x14)},'user':_0x433f3a[_0x551bd0(0xac)]});}
@@ -1 +1 @@
1
- function _0x21a5(_0x46e1e5,_0x343187){_0x46e1e5=_0x46e1e5-0x7e;var _0x5652bf=_0x5652();var _0x21a5ca=_0x5652bf[_0x46e1e5];return _0x21a5ca;}(function(_0x339eba,_0x2d33b7){var _0x3c3277=_0x21a5,_0x44df60=_0x339eba();while(!![]){try{var _0xa2f8d9=-parseInt(_0x3c3277(0x88))/0x1*(-parseInt(_0x3c3277(0x87))/0x2)+parseInt(_0x3c3277(0x86))/0x3+parseInt(_0x3c3277(0x84))/0x4+-parseInt(_0x3c3277(0x89))/0x5+-parseInt(_0x3c3277(0x85))/0x6*(-parseInt(_0x3c3277(0x83))/0x7)+parseInt(_0x3c3277(0x80))/0x8+-parseInt(_0x3c3277(0x82))/0x9;if(_0xa2f8d9===_0x2d33b7)break;else _0x44df60['push'](_0x44df60['shift']());}catch(_0x3210ae){_0x44df60['push'](_0x44df60['shift']());}}}(_0x5652,0x43748));function _0x5652(){var _0x422ee1=['resource','name','filter','find','query','504120xCXPNS','user','5653287bMWsqp','98245EFUXrF','743780lWvqgE','138lNLiVf','1502058YQHQVf','58trohNn','97FVKEgg','854125cLjudy'];_0x5652=function(){return _0x422ee1;};return _0x5652();}export async function searchResource(_0x2bfb4f,_0x5c7f1a){var _0x565d11=_0x21a5,_0x58aa61={};return _0x58aa61[_0x565d11(0x8b)]=_0x2bfb4f[_0x565d11(0x8a)],_0x58aa61[_0x565d11(0x7f)]={..._0x2bfb4f},_0x58aa61[_0x565d11(0x81)]=_0x2bfb4f[_0x565d11(0x81)],_0x58aa61[_0x565d11(0x7f)][_0x565d11(0x8c)]=_0x2bfb4f[_0x565d11(0x8c)],_0x5c7f1a[_0x565d11(0x8a)][_0x565d11(0x7e)](_0x58aa61);}
1
+ function _0x3344(){var _0x3b3947=['1590352eOkceM','5565241csDjlX','556638nXhtub','query','865HQRebJ','name','80IWgMXt','4251glczLH','filter','find','user','17848UzaXhk','7YYbEEY','resource','549566Rwdpyp','20iiLeZH','3688002UUsugO'];_0x3344=function(){return _0x3b3947;};return _0x3344();}function _0x9e7e(_0x409125,_0x127219){_0x409125=_0x409125-0xa6;var _0x33440c=_0x3344();var _0x9e7eef=_0x33440c[_0x409125];return _0x9e7eef;}(function(_0x48e95a,_0x24a786){var _0x3b6c12=_0x9e7e,_0x5ad4ec=_0x48e95a();while(!![]){try{var _0xe794a6=-parseInt(_0x3b6c12(0xb1))/0x1+-parseInt(_0x3b6c12(0xa9))/0x2*(parseInt(_0x3b6c12(0xaa))/0x3)+parseInt(_0x3b6c12(0xae))/0x4*(parseInt(_0x3b6c12(0xa7))/0x5)+-parseInt(_0x3b6c12(0xb6))/0x6*(parseInt(_0x3b6c12(0xaf))/0x7)+-parseInt(_0x3b6c12(0xb4))/0x8+-parseInt(_0x3b6c12(0xb3))/0x9+-parseInt(_0x3b6c12(0xb2))/0xa*(-parseInt(_0x3b6c12(0xb5))/0xb);if(_0xe794a6===_0x24a786)break;else _0x5ad4ec['push'](_0x5ad4ec['shift']());}catch(_0x45d3f3){_0x5ad4ec['push'](_0x5ad4ec['shift']());}}}(_0x3344,0x74425));export async function searchResource(_0x59bbc5,_0x46feac){var _0x2a053c=_0x9e7e,_0x5311ff={};return _0x5311ff[_0x2a053c(0xa8)]=_0x59bbc5[_0x2a053c(0xb0)],_0x5311ff[_0x2a053c(0xa6)]={..._0x59bbc5},_0x5311ff[_0x2a053c(0xad)]=_0x59bbc5[_0x2a053c(0xad)],_0x5311ff[_0x2a053c(0xa6)][_0x2a053c(0xab)]=_0x59bbc5[_0x2a053c(0xab)],_0x46feac[_0x2a053c(0xb0)][_0x2a053c(0xac)](_0x5311ff);}
@@ -1,6 +1,9 @@
1
- /**
2
- * Implements the suggest resource application service for its module.
3
- */
4
1
  import type { AppContext } from '../../../context.js';
5
- export declare function suggestResource(params: any, ctx: AppContext): Promise<any[]>;
2
+ type SuggestResourceResult = {
3
+ search: string;
4
+ time: number;
5
+ data: any[];
6
+ };
7
+ export declare function suggestResource(params: any, ctx: AppContext): Promise<SuggestResourceResult>;
8
+ export {};
6
9
  //# sourceMappingURL=suggest-resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"suggest-resource.d.ts","sourceRoot":"","sources":["../../../../src/modules/resource/services/suggest-resource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,wBAAsB,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAclF"}
1
+ {"version":3,"file":"suggest-resource.d.ts","sourceRoot":"","sources":["../../../../src/modules/resource/services/suggest-resource.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,KAAK,qBAAqB,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,EAAE,CAAC;CACf,CAAC;AAEF,wBAAsB,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAmClG"}
@@ -1 +1 @@
1
- function _0x2cf9(){const _0x20f0cf=['lookup','fields','2236oYVbZr','630840hGnOuz','limit','field','747vKFRDG','dictionary','slice','9412KchlCp','filter','toLowerCase','18Uzjtdp','GOfVT','2485330ZVnCGy','get','includes','min','name','124psWkdt','code','12ePyJGk','search','resource','22668cgLMSr','107365ATaaId','Field\x20has\x20no\x20lookup\x20dictionary:\x20','468080JWKGfc','11gAyuuc','201670byJbXH','max'];_0x2cf9=function(){return _0x20f0cf;};return _0x2cf9();}(function(_0x411f89,_0x345a8c){const _0x2cf1fc=_0xb252,_0xc61c57=_0x411f89();while(!![]){try{const _0x2790d9=-parseInt(_0x2cf1fc(0x19a))/0x1+-parseInt(_0x2cf1fc(0x199))/0x2*(-parseInt(_0x2cf1fc(0x19d))/0x3)+-parseInt(_0x2cf1fc(0x1aa))/0x4*(parseInt(_0x2cf1fc(0x191))/0x5)+parseInt(_0x2cf1fc(0x1ac))/0x6*(-parseInt(_0x2cf1fc(0x195))/0x7)+parseInt(_0x2cf1fc(0x193))/0x8*(-parseInt(_0x2cf1fc(0x1a3))/0x9)+parseInt(_0x2cf1fc(0x1a5))/0xa*(parseInt(_0x2cf1fc(0x194))/0xb)+-parseInt(_0x2cf1fc(0x190))/0xc*(-parseInt(_0x2cf1fc(0x1a0))/0xd);if(_0x2790d9===_0x345a8c)break;else _0xc61c57['push'](_0xc61c57['shift']());}catch(_0x4f9340){_0xc61c57['push'](_0xc61c57['shift']());}}}(_0x2cf9,0x675f0));function _0xb252(_0x3ca62d,_0x5db57d){_0x3ca62d=_0x3ca62d-0x190;const _0x2cf983=_0x2cf9();let _0xb2529c=_0x2cf983[_0x3ca62d];return _0xb2529c;}import{ValidationError}from'../../../errors.js';export async function suggestResource(_0x25ae18,_0x36a2e2){const _0x466090=_0xb252,_0x2fa2b5={'GOfVT':function(_0xc33ffb,_0x3720b6){return _0xc33ffb(_0x3720b6);}},_0x5344a2=_0x36a2e2[_0x466090(0x1ae)][_0x466090(0x1a6)](_0x25ae18[_0x466090(0x1ae)]),_0x34fe22=_0x5344a2[_0x466090(0x198)][_0x25ae18[_0x466090(0x19c)]],_0x50405d=_0x34fe22?.[_0x466090(0x197)]?.[_0x466090(0x19e)];if(!_0x50405d)throw new ValidationError(_0x466090(0x192)+_0x25ae18[_0x466090(0x19c)]);const _0xddca63=await _0x36a2e2[_0x466090(0x19e)][_0x466090(0x1a6)](_0x50405d),_0xd57768=_0x2fa2b5[_0x466090(0x1a4)](String,_0x25ae18[_0x466090(0x1ad)]??_0x25ae18['q']??'')[_0x466090(0x1a2)](),_0x355b7c=Math[_0x466090(0x1a8)](Math[_0x466090(0x196)](Number(_0x25ae18[_0x466090(0x19b)]??0x14),0x1),0xc8);return _0xddca63[_0x466090(0x1a1)](_0x326879=>!_0xd57768||_0x326879[_0x466090(0x1ab)][_0x466090(0x1a2)]()[_0x466090(0x1a7)](_0xd57768)||_0x326879[_0x466090(0x1a9)][_0x466090(0x1a2)]()[_0x466090(0x1a7)](_0xd57768))[_0x466090(0x19f)](0x0,_0x355b7c);}
1
+ function _0x45cd(){const _0x5ba63f=['search','now','204799JoxjKE','4020OawIJF','\x20as\x20id,\x20','Field\x20has\x20no\x20lookup\x20dictionary:\x20','84MlmEpe','11106nRLBqW','query','table','1248960GTnhTO','lookup','then','max','toLowerCase','dictionary','field','14440382EfYdwb','3175048GRkVrK','40822ZzJzwI','name','filter','valueField','4olrSQz','textField','limit','min','\x20as\x20text\x20FROM\x20','MjZsO','startsWith','code','fields','slice','12PzmFdQ','resource','qLghD','\x20WHERE\x20lower(','rows',')\x20~\x20$1\x20LIMIT\x20$2','get','SELECT\x20','25lGMqwo','157460eTPnEh'];_0x45cd=function(){return _0x5ba63f;};return _0x45cd();}function _0x3c93(_0x4654bf,_0x162a89){_0x4654bf=_0x4654bf-0x77;const _0x45cdb5=_0x45cd();let _0x3c93c6=_0x45cdb5[_0x4654bf];return _0x3c93c6;}(function(_0x489d9b,_0x3cb11e){const _0x344dd7=_0x3c93,_0x478eeb=_0x489d9b();while(!![]){try{const _0x4076e4=-parseInt(_0x344dd7(0x80))/0x1*(-parseInt(_0x344dd7(0x7c))/0x2)+-parseInt(_0x344dd7(0x9e))/0x3+-parseInt(_0x344dd7(0x93))/0x4*(parseInt(_0x344dd7(0x92))/0x5)+parseInt(_0x344dd7(0x9a))/0x6*(-parseInt(_0x344dd7(0x96))/0x7)+parseInt(_0x344dd7(0x7b))/0x8+parseInt(_0x344dd7(0x9b))/0x9*(-parseInt(_0x344dd7(0x97))/0xa)+-parseInt(_0x344dd7(0x7a))/0xb*(-parseInt(_0x344dd7(0x8a))/0xc);if(_0x4076e4===_0x3cb11e)break;else _0x478eeb['push'](_0x478eeb['shift']());}catch(_0x48fb16){_0x478eeb['push'](_0x478eeb['shift']());}}}(_0x45cd,0x4285c));import{ValidationError}from'../../../errors.js';export async function suggestResource(_0x457683,_0x3b4afd){const _0x3d418b=_0x3c93,_0x2db042={'MjZsO':function(_0x4ca14a,_0x314dde){return _0x4ca14a(_0x314dde);},'qLghD':function(_0x545369,_0xb482d4){return _0x545369-_0xb482d4;}},_0x5a405d=_0x3b4afd[_0x3d418b(0x8b)][_0x3d418b(0x90)](_0x457683[_0x3d418b(0x8b)]),_0x295d9d=_0x2db042[_0x3d418b(0x85)](String,_0x457683[_0x3d418b(0x94)]??_0x457683['q']??'')[_0x3d418b(0x77)](),_0x24edf2=Math[_0x3d418b(0x83)](Math[_0x3d418b(0xa1)](Number(_0x457683[_0x3d418b(0x82)]??0x14),0x1),0xc8),_0x194544=Date[_0x3d418b(0x95)](),_0x12bb54=_0x5a405d[_0x3d418b(0x88)][_0x457683[_0x3d418b(0x79)]],_0x12107d=_0x12bb54?.[_0x3d418b(0x9f)]?.[_0x3d418b(0x78)],_0x3ea57f=_0x12bb54?.[_0x3d418b(0x9f)]?.[_0x3d418b(0x9d)];if(_0x3ea57f){const _0x4c5fae=_0x12bb54?.[_0x3d418b(0x9f)]?.[_0x3d418b(0x81)],_0x3d11ca=_0x12bb54?.[_0x3d418b(0x9f)]?.[_0x3d418b(0x7f)],_0x3ecdb7=await _0x3b4afd['pg'][_0x3d418b(0x9c)](_0x3d418b(0x91)+_0x3d11ca+_0x3d418b(0x98)+_0x4c5fae+_0x3d418b(0x84)+_0x3ea57f+_0x3d418b(0x8d)+_0x4c5fae+_0x3d418b(0x8f),[''+_0x295d9d[_0x3d418b(0x77)](),_0x24edf2])[_0x3d418b(0xa0)](_0x4bb480=>_0x4bb480[_0x3d418b(0x8e)]);return{'search':_0x295d9d,'time':_0x2db042[_0x3d418b(0x8c)](Date[_0x3d418b(0x95)](),_0x194544),'data':_0x3ecdb7};}if(!_0x12107d)throw new ValidationError(_0x3d418b(0x99)+_0x457683[_0x3d418b(0x79)]);const _0x188a43=await _0x3b4afd[_0x3d418b(0x78)][_0x3d418b(0x90)](_0x12107d),_0x5c412f=_0x188a43[_0x3d418b(0x7e)](_0x2882d3=>!_0x295d9d||_0x2882d3[_0x3d418b(0x87)][_0x3d418b(0x86)](_0x295d9d)||_0x2882d3[_0x3d418b(0x7d)][_0x3d418b(0x86)](_0x295d9d))[_0x3d418b(0x89)](0x0,_0x24edf2);return{'search':_0x295d9d,'time':_0x2db042[_0x3d418b(0x8c)](Date[_0x3d418b(0x95)](),_0x194544),'data':_0x5c412f};}
@@ -1 +1 @@
1
- (function(_0x55d8a7,_0x1097a1){var _0x524120=_0x2be6,_0x51f031=_0x55d8a7();while(!![]){try{var _0x355989=-parseInt(_0x524120(0x73))/0x1*(-parseInt(_0x524120(0x71))/0x2)+parseInt(_0x524120(0x7b))/0x3+-parseInt(_0x524120(0x75))/0x4+-parseInt(_0x524120(0x76))/0x5*(parseInt(_0x524120(0x7a))/0x6)+-parseInt(_0x524120(0x70))/0x7*(parseInt(_0x524120(0x78))/0x8)+-parseInt(_0x524120(0x79))/0x9+parseInt(_0x524120(0x77))/0xa*(parseInt(_0x524120(0x7f))/0xb);if(_0x355989===_0x1097a1)break;else _0x51f031['push'](_0x51f031['shift']());}catch(_0x2de8f8){_0x51f031['push'](_0x51f031['shift']());}}}(_0x341f,0xa44d8));function _0x2be6(_0x21a7ac,_0x2128d9){_0x21a7ac=_0x21a7ac-0x6f;var _0x341f01=_0x341f();var _0x2be618=_0x341f01[_0x21a7ac];return _0x2be618;}function _0x341f(){var _0xfdaeb2=['2774107PhHiLM','24vYlzBa','data','28581fpxtyG','user','1759832uPJyhM','1665cBgkww','10jCrIUX','8yvgNGK','8825391RRDVoO','13638rbwipE','550815ARFKNw','resource','update','name','29921914szBUHi','patch'];_0x341f=function(){return _0xfdaeb2;};return _0x341f();}export async function updateResource(_0x5ebfc4,_0x33ab20){var _0x18bff3=_0x2be6,_0x567b69={};return _0x567b69[_0x18bff3(0x7e)]=_0x5ebfc4[_0x18bff3(0x7c)],_0x567b69['id']=_0x5ebfc4['id'],_0x567b69[_0x18bff3(0x72)]=_0x5ebfc4[_0x18bff3(0x6f)],_0x567b69[_0x18bff3(0x74)]=_0x5ebfc4[_0x18bff3(0x74)],_0x33ab20[_0x18bff3(0x7c)][_0x18bff3(0x7d)](_0x567b69);}
1
+ function _0x268c(_0x4a3e3e,_0x1b4749){_0x4a3e3e=_0x4a3e3e-0xd6;var _0x147b9c=_0x147b();var _0x268ca=_0x147b9c[_0x4a3e3e];return _0x268ca;}(function(_0x139f48,_0x469e2d){var _0x1be02f=_0x268c,_0x3e73a5=_0x139f48();while(!![]){try{var _0x215ab0=parseInt(_0x1be02f(0xd9))/0x1*(-parseInt(_0x1be02f(0xdf))/0x2)+-parseInt(_0x1be02f(0xdd))/0x3*(-parseInt(_0x1be02f(0xdb))/0x4)+-parseInt(_0x1be02f(0xe3))/0x5+-parseInt(_0x1be02f(0xe1))/0x6+-parseInt(_0x1be02f(0xdc))/0x7+-parseInt(_0x1be02f(0xd7))/0x8*(parseInt(_0x1be02f(0xe0))/0x9)+parseInt(_0x1be02f(0xd8))/0xa;if(_0x215ab0===_0x469e2d)break;else _0x3e73a5['push'](_0x3e73a5['shift']());}catch(_0x11647d){_0x3e73a5['push'](_0x3e73a5['shift']());}}}(_0x147b,0x5d3dc));function _0x147b(){var _0x207846=['29982410AWLftq','10iZPLcS','patch','4ltvrsl','4976692jWbTil','116109mbfVUF','data','105372ufzkEC','1957581kMkotu','3907884kolztB','user','2741945ceYCah','name','update','resource','8EiAhgV'];_0x147b=function(){return _0x207846;};return _0x147b();}export async function updateResource(_0x5b9199,_0x57fc11){var _0x201dc2=_0x268c,_0x13c835={};return _0x13c835[_0x201dc2(0xe4)]=_0x5b9199[_0x201dc2(0xd6)],_0x13c835['id']=_0x5b9199['id'],_0x13c835[_0x201dc2(0xde)]=_0x5b9199[_0x201dc2(0xda)],_0x13c835[_0x201dc2(0xe2)]=_0x5b9199[_0x201dc2(0xe2)],_0x57fc11[_0x201dc2(0xd6)][_0x201dc2(0xe5)](_0x13c835);}