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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) 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.js +1 -1
  5. package/dist/fcore.js +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/migrations/cli.js +1 -1
  8. package/dist/migrations/runner.js +1 -1
  9. package/dist/modules/auth/index.js +1 -1
  10. package/dist/modules/auth/route.js +1 -1
  11. package/dist/modules/auth/schema.js +1 -1
  12. package/dist/modules/auth/services/get-current-user.js +1 -1
  13. package/dist/modules/auth/services/login.js +1 -1
  14. package/dist/modules/auth/services/logout.js +1 -1
  15. package/dist/modules/auth/services/verify-two-factor.js +1 -1
  16. package/dist/modules/auth/services/verifyPassword.js +1 -1
  17. package/dist/modules/file/index.js +1 -1
  18. package/dist/modules/file/route.js +1 -1
  19. package/dist/modules/file/schema.js +1 -1
  20. package/dist/modules/file/services/get-file.js +1 -1
  21. package/dist/modules/file/services/resize-file.js +1 -1
  22. package/dist/modules/file/services/upload-file.js +1 -1
  23. package/dist/modules/resource/index.js +1 -1
  24. package/dist/modules/resource/route.js +1 -1
  25. package/dist/modules/resource/schema.js +1 -1
  26. package/dist/modules/resource/services/add-note.js +1 -1
  27. package/dist/modules/resource/services/add-resource-file.js +1 -1
  28. package/dist/modules/resource/services/create-resource-relation.js +1 -1
  29. package/dist/modules/resource/services/create-resource.js +1 -1
  30. package/dist/modules/resource/services/delete-resource-relation.js +1 -1
  31. package/dist/modules/resource/services/delete-resource.js +1 -1
  32. package/dist/modules/resource/services/export-resource.js +1 -1
  33. package/dist/modules/resource/services/get-resource.js +1 -1
  34. package/dist/modules/resource/services/list-children.js +1 -1
  35. package/dist/modules/resource/services/list-resource-relation.js +1 -1
  36. package/dist/modules/resource/services/list-resources.js +1 -1
  37. package/dist/modules/resource/services/search-resource.js +1 -1
  38. package/dist/modules/resource/services/suggest-resource.js +1 -1
  39. package/dist/modules/resource/services/update-resource.js +1 -1
  40. package/dist/modules/resource/services/upload-resource-file.js +1 -1
  41. package/dist/modules/system/index.js +1 -1
  42. package/dist/modules/system/route.js +1 -1
  43. package/dist/modules/system/schema.js +1 -1
  44. package/dist/modules/system/services/check-system.js +1 -1
  45. package/dist/modules/system/services/get-api-list.js +1 -1
  46. package/dist/modules/system/services/get-audit-log.js +1 -1
  47. package/dist/modules/system/services/get-dictionary.js +1 -1
  48. package/dist/modules/system/services/get-system-log.js +1 -1
  49. package/dist/modules/system/services/get-system-settings.js +1 -1
  50. package/dist/modules/system/services/list-dictionaries.js +1 -1
  51. package/dist/modules/system/services/update-system-settings.js +1 -1
  52. package/dist/modules/utils/get-user-permissions.js +1 -1
  53. package/dist/modules/utils/require-admin.js +1 -1
  54. package/dist/modules/utils/safe-user.js +1 -1
  55. package/dist/modules/utils/unsupported.js +1 -1
  56. package/dist/plugins/audit/audit.js +1 -1
  57. package/dist/plugins/audit/index.js +1 -1
  58. package/dist/plugins/audit/services/write-audit.js +1 -1
  59. package/dist/plugins/auth/index.js +1 -1
  60. package/dist/plugins/dictionary.js +1 -1
  61. package/dist/plugins/file.js +1 -1
  62. package/dist/plugins/index.js +1 -1
  63. package/dist/plugins/logger/index.js +1 -1
  64. package/dist/plugins/logger/transport.js +1 -1
  65. package/dist/plugins/pg.js +1 -1
  66. package/dist/plugins/redis.js +1 -1
  67. package/dist/plugins/resource/index.js +1 -1
  68. package/dist/plugins/resource/resource.js +1 -1
  69. package/dist/plugins/resource/resource.registry.js +1 -1
  70. package/dist/plugins/resource/resource.types.d.ts +8 -0
  71. package/dist/plugins/resource/resource.types.d.ts.map +1 -1
  72. package/dist/plugins/resource/services/create.d.ts.map +1 -1
  73. package/dist/plugins/resource/services/create.js +1 -1
  74. package/dist/plugins/resource/services/delete.js +1 -1
  75. package/dist/plugins/resource/services/find-one.js +1 -1
  76. package/dist/plugins/resource/services/find.d.ts.map +1 -1
  77. package/dist/plugins/resource/services/find.js +1 -1
  78. package/dist/plugins/resource/services/update.d.ts.map +1 -1
  79. package/dist/plugins/resource/services/update.js +1 -1
  80. package/dist/plugins/resource/utils/fields.d.ts +8 -1
  81. package/dist/plugins/resource/utils/fields.d.ts.map +1 -1
  82. package/dist/plugins/resource/utils/fields.js +1 -1
  83. package/dist/plugins/resource/utils/filters.js +1 -1
  84. package/dist/plugins/resource/utils/permissions.d.ts.map +1 -1
  85. package/dist/plugins/resource/utils/permissions.js +1 -1
  86. package/dist/plugins/resource/utils/sort.js +1 -1
  87. package/dist/plugins/resource/utils/sql.js +1 -1
  88. package/dist/shared/getIP.js +1 -1
  89. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x371763=_0x5ba9;function _0x5ba9(_0xec42a9,_0x2dc705){_0xec42a9=_0xec42a9-0x1f3;const _0x385765=_0x3857();let _0x5ba980=_0x385765[_0xec42a9];return _0x5ba980;}(function(_0x302652,_0x479461){const _0x36c16d=_0x5ba9,_0x3ac869=_0x302652();while(!![]){try{const _0x34a3bd=parseInt(_0x36c16d(0x1fd))/0x1+-parseInt(_0x36c16d(0x1f9))/0x2+parseInt(_0x36c16d(0x209))/0x3+-parseInt(_0x36c16d(0x1fe))/0x4+parseInt(_0x36c16d(0x1f8))/0x5*(-parseInt(_0x36c16d(0x1f6))/0x6)+parseInt(_0x36c16d(0x1f7))/0x7+-parseInt(_0x36c16d(0x1ff))/0x8;if(_0x34a3bd===_0x479461)break;else _0x3ac869['push'](_0x3ac869['shift']());}catch(_0x52b905){_0x3ac869['push'](_0x3ac869['shift']());}}}(_0x3857,0x92eec));import{Type}from'@sinclair/typebox';const _0x3214c3={};_0x3214c3[_0x371763(0x1f5)]=0x1,_0x3214c3[_0x371763(0x207)]=0x80;const _0x31ac6c={};_0x31ac6c[_0x371763(0x1f5)]=0x1,_0x31ac6c[_0x371763(0x207)]=0x800;const _0x524348={};_0x524348[_0x371763(0x1f5)]=0x1,_0x524348[_0x371763(0x207)]=0x400;const _0x5b22e1={};_0x5b22e1[_0x371763(0x1f5)]=0x1;const _0x2a9abc={};_0x2a9abc[_0x371763(0x1f5)]=0x1;const _0x181c8f={};_0x181c8f[_0x371763(0x1f5)]=0x1;const _0x564ab5={};_0x564ab5[_0x371763(0x1f5)]=0x1;const _0x1e8909={};_0x1e8909[_0x371763(0x1f5)]=0x1;const _0x18f51e={};_0x18f51e[_0x371763(0x1f5)]=0x1;const _0x643298={};_0x643298[_0x371763(0x205)]=0x1;const _0x8517a8={};function _0x3857(){const _0xbacaf2=['3417159caIVls','Any','inside','minLength','1356618jRFyiE','6659905IpfPKR','10lBhHzZ','2275722XIOcZE','contain','outside','Object','652968wwMLtw','1802952jfXmPW','806360BqXZuD','String','Union','Integer','Optional','fill','minimum','cover','maxLength','Literal'];_0x3857=function(){return _0xbacaf2;};return _0x3857();}_0x8517a8[_0x371763(0x205)]=0x1;export const fileSchemas={'fileId':Type[_0x371763(0x1fc)]({'id':Type[_0x371763(0x200)](_0x3214c3)}),'fileToken':Type[_0x371763(0x1fc)]({'token':Type[_0x371763(0x200)](_0x31ac6c)}),'filePath':Type[_0x371763(0x1fc)]({'*':Type[_0x371763(0x200)](_0x524348)}),'upload':Type[_0x371763(0x1fc)]({'file':Type[_0x371763(0x1f3)](),'metadata':Type[_0x371763(0x1fc)]({'name':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x5b22e1)),'path':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x2a9abc)),'entityType':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x181c8f)),'entityId':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x564ab5))})}),'filePatch':Type[_0x371763(0x1fc)]({'entityType':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x1e8909)),'entityId':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x18f51e))}),'resizeQuery':Type[_0x371763(0x1fc)]({'width':Type[_0x371763(0x203)](Type[_0x371763(0x202)](_0x643298)),'height':Type[_0x371763(0x203)](Type[_0x371763(0x202)](_0x8517a8)),'fit':Type[_0x371763(0x203)](Type[_0x371763(0x201)]([Type[_0x371763(0x208)](_0x371763(0x206)),Type[_0x371763(0x208)](_0x371763(0x1fa)),Type[_0x371763(0x208)](_0x371763(0x204)),Type[_0x371763(0x208)](_0x371763(0x1f4)),Type[_0x371763(0x208)](_0x371763(0x1fb))]))})};
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 +1 @@
1
- (function(_0x2a6861,_0x3ff262){var _0x3143c4=_0x20dd,_0x5e32e2=_0x2a6861();while(!![]){try{var _0x14890f=parseInt(_0x3143c4(0x74))/0x1+parseInt(_0x3143c4(0x7d))/0x2+parseInt(_0x3143c4(0x7f))/0x3*(-parseInt(_0x3143c4(0x7c))/0x4)+-parseInt(_0x3143c4(0x78))/0x5+-parseInt(_0x3143c4(0x70))/0x6*(-parseInt(_0x3143c4(0x79))/0x7)+-parseInt(_0x3143c4(0x7a))/0x8+parseInt(_0x3143c4(0x73))/0x9*(parseInt(_0x3143c4(0x77))/0xa);if(_0x14890f===_0x3ff262)break;else _0x5e32e2['push'](_0x5e32e2['shift']());}catch(_0x998707){_0x5e32e2['push'](_0x5e32e2['shift']());}}}(_0x4a12,0xdaec6));import{NotFoundError}from'../../../errors.js';export async function getFile(_0x124150,_0x291872){var _0xf04459=_0x20dd,_0x442bb5={};_0x442bb5[_0xf04459(0x75)]=_0xf04459(0x7b);var _0x1f369a=_0x442bb5;if(!_0x291872[_0xf04459(0x72)])throw new Error(_0xf04459(0x80));if(!await _0x291872[_0xf04459(0x72)][_0xf04459(0x71)](_0x124150[_0xf04459(0x7e)]))throw new NotFoundError(_0x1f369a[_0xf04459(0x75)]);return _0x291872[_0xf04459(0x72)][_0xf04459(0x76)](_0x124150[_0xf04459(0x7e)]);}function _0x20dd(_0x3783ae,_0x2ff3e2){_0x3783ae=_0x3783ae-0x70;var _0x4a12e0=_0x4a12();var _0x20dd38=_0x4a12e0[_0x3783ae];return _0x20dd38;}function _0x4a12(){var _0x5cc6cc=['9348neynGb','exists','file','2718lEidEV','978276rSGVPK','UVRaV','get','63900MupnOM','7818385vWmzqL','6699JzmFUj','13825920BnIOtq','File\x20not\x20found','2350104LPDqCv','1929234kLnIee','pathOrToken','6KKYSpk','empty\x20file'];_0x4a12=function(){return _0x5cc6cc;};return _0x4a12();}
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 +1 @@
1
- (function(_0x55a4f2,_0x2c0387){const _0x48dba5=_0x3962,_0x27bfd8=_0x55a4f2();while(!![]){try{const _0x58c1e0=-parseInt(_0x48dba5(0x1e8))/0x1*(parseInt(_0x48dba5(0x1cf))/0x2)+parseInt(_0x48dba5(0x1e2))/0x3+parseInt(_0x48dba5(0x1d8))/0x4+parseInt(_0x48dba5(0x1f3))/0x5*(parseInt(_0x48dba5(0x1cd))/0x6)+-parseInt(_0x48dba5(0x1e5))/0x7*(-parseInt(_0x48dba5(0x1e0))/0x8)+-parseInt(_0x48dba5(0x1eb))/0x9+-parseInt(_0x48dba5(0x1da))/0xa;if(_0x58c1e0===_0x2c0387)break;else _0x27bfd8['push'](_0x27bfd8['shift']());}catch(_0x134835){_0x27bfd8['push'](_0x27bfd8['shift']());}}}(_0x3d79,0xd528c));import{NotFoundError,ValidationError}from'../../../errors.js';import _0x349090 from'sharp';export async function resizeFile(_0x2c7d44,_0x1e7fe4){const _0x38abe7=_0x3962,_0x18cd6b={'qsWZe':_0x38abe7(0x1f4),'iSMaN':_0x38abe7(0x1ce),'PjrMy':function(_0x2922e4,_0x21477e,_0x36d3a9){return _0x2922e4(_0x21477e,_0x36d3a9);},'crhWQ':_0x38abe7(0x1d9),'GUWdc':function(_0x3010d1,_0x5a09b9,_0x2ade8a){return _0x3010d1(_0x5a09b9,_0x2ade8a);},'DSrUy':_0x38abe7(0x1d5),'nxvmX':function(_0x33e333,_0x1ffa89){return _0x33e333!==_0x1ffa89;},'WELJB':_0x38abe7(0x1dd),'jBnBY':_0x38abe7(0x1d6),'IRNSN':_0x38abe7(0x1ef),'Movgp':_0x38abe7(0x1e3)};if(!_0x1e7fe4[_0x38abe7(0x1ea)])throw new Error(_0x18cd6b[_0x38abe7(0x1e9)]);const _0x2ec94b=_0x2c7d44[_0x38abe7(0x1f8)]??_0x2c7d44[_0x38abe7(0x1f2)];if(!_0x2ec94b)throw new ValidationError(_0x18cd6b[_0x38abe7(0x1f5)]);const _0xa6eb89=_0x18cd6b[_0x38abe7(0x1d1)](parseDimension,_0x2c7d44[_0x38abe7(0x1d9)],_0x18cd6b[_0x38abe7(0x1ee)]),_0x3bb905=_0x18cd6b[_0x38abe7(0x1dc)](parseDimension,_0x2c7d44[_0x38abe7(0x1d5)],_0x18cd6b[_0x38abe7(0x1d7)]);if(!_0xa6eb89&&!_0x3bb905){if(_0x18cd6b[_0x38abe7(0x1cc)](_0x18cd6b[_0x38abe7(0x1d4)],_0x18cd6b[_0x38abe7(0x1ed)]))throw new ValidationError(_0x18cd6b[_0x38abe7(0x1f6)]);else throw new _0x32f15f(_0x38abe7(0x1ec));}if(!await _0x1e7fe4[_0x38abe7(0x1ea)][_0x38abe7(0x1f1)](_0x2ec94b))throw new NotFoundError(_0x38abe7(0x1ec));const _0x5cdb08={};return _0x5cdb08[_0x38abe7(0x1d9)]=_0xa6eb89,_0x5cdb08[_0x38abe7(0x1d5)]=_0x3bb905,_0x5cdb08[_0x38abe7(0x1db)]=_0x2c7d44[_0x38abe7(0x1db)]??_0x18cd6b[_0x38abe7(0x1de)],_0x349090(await _0x1e7fe4[_0x38abe7(0x1ea)][_0x38abe7(0x1f7)](_0x2ec94b))[_0x38abe7(0x1e1)](_0x5cdb08)[_0x38abe7(0x1d0)]();}function _0x3962(_0x1d0992,_0xc36085){_0x1d0992=_0x1d0992-0x1cc;const _0x3d7906=_0x3d79();let _0x3962a7=_0x3d7906[_0x1d0992];return _0x3962a7;}function parseDimension(_0x3ac8c9,_0x502f5f){const _0x318e6d=_0x3962,_0x141fd5={};_0x141fd5[_0x318e6d(0x1e6)]=function(_0x3857cb,_0x2623d3){return _0x3857cb===_0x2623d3;},_0x141fd5[_0x318e6d(0x1d3)]=function(_0x385877,_0x3f6128){return _0x385877<=_0x3f6128;},_0x141fd5[_0x318e6d(0x1e7)]=function(_0x12caba,_0x3e935f){return _0x12caba===_0x3e935f;},_0x141fd5[_0x318e6d(0x1df)]=_0x318e6d(0x1d2);const _0x12d289=_0x141fd5;if(_0x12d289[_0x318e6d(0x1e6)](_0x3ac8c9,undefined)||_0x3ac8c9==='')return undefined;const _0x13f74d=Number(_0x3ac8c9);if(!Number[_0x318e6d(0x1e4)](_0x13f74d)||_0x12d289[_0x318e6d(0x1d3)](_0x13f74d,0x0)){if(_0x12d289[_0x318e6d(0x1e7)](_0x318e6d(0x1d2),_0x12d289[_0x318e6d(0x1df)]))throw new ValidationError(_0x502f5f+_0x318e6d(0x1f0));else throw new _0x7937f8(_0x41d01d+_0x318e6d(0x1f0));}return _0x13f74d;}function _0x3d79(){const _0x153e1a=['XpzSH','WELJB','height','wnjUm','DSrUy','4126964PeKkAq','width','6721150QFLfGB','fit','GUWdc','QjPVd','Movgp','ZIitS','48328wiytXl','resize','1055724slGAMX','cover','isInteger','1974jWlVqd','Mnemh','rnnQb','1dWozWR','qsWZe','file','15495021vOpRRr','File\x20not\x20found','jBnBY','crhWQ','Width\x20or\x20height\x20is\x20required','\x20must\x20be\x20a\x20positive\x20integer','exists','path','175wXSjhf','empty\x20file','iSMaN','IRNSN','get','pathOrToken','nxvmX','99942IZTNjx','File\x20path\x20is\x20required','806644LpEaBg','toBuffer','PjrMy','erYca'];_0x3d79=function(){return _0x153e1a;};return _0x3d79();}
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 +1 @@
1
- (function(_0x4c152f,_0x48b29e){const _0x5d7518=_0x1f25,_0x526199=_0x4c152f();while(!![]){try{const _0x40b461=-parseInt(_0x5d7518(0x17e))/0x1+parseInt(_0x5d7518(0x189))/0x2*(parseInt(_0x5d7518(0x185))/0x3)+parseInt(_0x5d7518(0x17b))/0x4*(parseInt(_0x5d7518(0x187))/0x5)+parseInt(_0x5d7518(0x17f))/0x6*(-parseInt(_0x5d7518(0x17d))/0x7)+parseInt(_0x5d7518(0x181))/0x8*(parseInt(_0x5d7518(0x17a))/0x9)+parseInt(_0x5d7518(0x175))/0xa+-parseInt(_0x5d7518(0x184))/0xb*(parseInt(_0x5d7518(0x174))/0xc);if(_0x40b461===_0x48b29e)break;else _0x526199['push'](_0x526199['shift']());}catch(_0xd4e7fc){_0x526199['push'](_0x526199['shift']());}}}(_0x566b,0x3d9bc));function _0x1f25(_0x3061ea,_0x2114c1){_0x3061ea=_0x3061ea-0x16f;const _0x566b16=_0x566b();let _0x1f25e2=_0x566b16[_0x3061ea];return _0x1f25e2;}function _0x566b(){const _0x3b295b=['name','mWcRz','metadata','uploads/','path','3834180ImHiTk','2908970HIOeji','rows','entityId','query','put','2083734HrTyHO','69036mbCACy','entityType','297983JtKofC','399841Imnwla','6ebYHGW','file','16BVPVuJ','replace','\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','11xCQmez','6PWlYON','length','70OgdJBe','JBWSF','18698SXRjUt'];_0x566b=function(){return _0x3b295b;};return _0x566b();}import{randomUUID}from'node:crypto';export async function uploadFile(_0x31d264,_0x40e5fc){const _0x278d6f=_0x1f25,_0x525457={'mWcRz':_0x278d6f(0x180),'JBWSF':function(_0x50e062){return _0x50e062();}},_0x485974=(_0x31d264[_0x278d6f(0x171)][_0x278d6f(0x16f)]??_0x525457[_0x278d6f(0x170)])[_0x278d6f(0x182)](/[^a-zA-Z0-9._-]/g,'_'),_0x5dd3c0=_0x31d264[_0x278d6f(0x171)][_0x278d6f(0x173)]??_0x278d6f(0x172)+_0x525457[_0x278d6f(0x188)](randomUUID)+'-'+_0x485974;await _0x40e5fc[_0x278d6f(0x180)][_0x278d6f(0x179)](_0x5dd3c0,_0x31d264[_0x278d6f(0x180)]);const _0xc609cc=await _0x40e5fc['pg'][_0x278d6f(0x178)](_0x278d6f(0x183),[_0x31d264[_0x278d6f(0x171)][_0x278d6f(0x17c)]??null,_0x31d264[_0x278d6f(0x171)][_0x278d6f(0x177)]??null,_0x5dd3c0,_0x31d264[_0x278d6f(0x180)][_0x278d6f(0x186)]]);return _0xc609cc[_0x278d6f(0x176)][0x0];}
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 +1 @@
1
- function _0x497e(){var _0x289d41=['1962184PZmfOx','2143lKPtkS','1816yENIWz','322876SoZpJR','55zjaNAR','4065066jeTJqw','1049543hcBTjl','6326946IyYjFm','190HzUoAX','17694dpEejt','550Cfqsrs'];_0x497e=function(){return _0x289d41;};return _0x497e();}(function(_0x4f1309,_0x4f3a79){var _0x3fa140=_0x4ba1,_0x2390f8=_0x4f1309();while(!![]){try{var _0xedde71=-parseInt(_0x3fa140(0x16a))/0x1*(-parseInt(_0x3fa140(0x168))/0x2)+-parseInt(_0x3fa140(0x16e))/0x3+-parseInt(_0x3fa140(0x16c))/0x4*(-parseInt(_0x3fa140(0x16d))/0x5)+-parseInt(_0x3fa140(0x170))/0x6+parseInt(_0x3fa140(0x169))/0x7+parseInt(_0x3fa140(0x16b))/0x8*(-parseInt(_0x3fa140(0x167))/0x9)+-parseInt(_0x3fa140(0x171))/0xa*(-parseInt(_0x3fa140(0x16f))/0xb);if(_0xedde71===_0x4f3a79)break;else _0x2390f8['push'](_0x2390f8['shift']());}catch(_0x1202a0){_0x2390f8['push'](_0x2390f8['shift']());}}}(_0x497e,0xae766));export*from'./route.js';function _0x4ba1(_0x5787e6,_0x38fe7c){_0x5787e6=_0x5787e6-0x167;var _0x497ee2=_0x497e();var _0x4ba154=_0x497ee2[_0x5787e6];return _0x4ba154;}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';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(_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 +1 @@
1
- const _0x51485a=_0x22e5;(function(_0x410c08,_0x9ff2e9){const _0x5d5590=_0x22e5,_0x3641c4=_0x410c08();while(!![]){try{const _0x9e95a0=parseInt(_0x5d5590(0xcb))/0x1*(-parseInt(_0x5d5590(0xd5))/0x2)+-parseInt(_0x5d5590(0x111))/0x3+-parseInt(_0x5d5590(0x113))/0x4+parseInt(_0x5d5590(0x114))/0x5+parseInt(_0x5d5590(0xf9))/0x6*(-parseInt(_0x5d5590(0x10c))/0x7)+-parseInt(_0x5d5590(0x104))/0x8+parseInt(_0x5d5590(0x11b))/0x9;if(_0x9e95a0===_0x9ff2e9)break;else _0x3641c4['push'](_0x3641c4['shift']());}catch(_0xc1e4e6){_0x3641c4['push'](_0x3641c4['shift']());}}}(_0x1a6c,0x21fff));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';function _0x1a6c(){const _0x397d2b=['Returns\x20related\x20records\x20for\x20a\x20resource\x20record.','EHJDC','KUYKG','526hMONiI','LGbKJ','split','body','rMlAW','query','resource:update','Adds\x20a\x20file\x20to\x20a\x20resource\x20record.','/api/resource/:resource/search','mACSK','422QHxjnI','resourceIdRelationId','VBMZb','ZvgLU','post','delete','resource','Add\x20resource\x20file','Returns\x20notes\x20related\x20to\x20a\x20resource\x20record.','Returns\x20files\x20related\x20to\x20a\x20resource\x20record.','dAtpZ','Updates\x20a\x20record\x20in\x20a\x20registered\x20resource.','FLSGw','fcore','/api/resource/:resource/:id/:relation','tFdCf','Search\x20resource','Deletes\x20a\x20record\x20from\x20a\x20registered\x20resource.','iJRYD','DrQQm','Upload\x20resource\x20file','tags','List\x20resource\x20records','Export\x20resource\x20records','Removes\x20a\x20file\x20relation\x20from\x20a\x20resource\x20record.','Searches\x20records\x20in\x20a\x20registered\x20resource.','params','qEAdr','List\x20resource\x20relations','get','xmcqZ','uploadResourceFile','querystring','resourceIdRelation','Create\x20resource\x20relation','/api/resource/:resource/:id/files','1038QCdHcW','Returns\x20one\x20record\x20from\x20a\x20registered\x20resource.','wHJCb','gjxiz','7|5|8|3|13|12|14|15|9|4|1|11|2|16|0|6|10','HYBUt','/api/resource/:resource/:id/notes','schema','Add\x20resource\x20note','Returns\x20records\x20from\x20a\x20registered\x20resource.','Delete\x20resource\x20record','624672rLxlZa','/api/resource/:resource/suggest/:field','*:read','/api/resource/:resource/:id','Delete\x20resource\x20file','Create\x20resource\x20record','/api/resource/:resource/:id/files/:relationId','NCdtg','2338kaLoJA','Deletes\x20a\x20relation\x20from\x20a\x20resource\x20record.','user','kpxJN','NkWAS','641772DLAGSR','suggestQuery','504968iGoziJ','701960SPfAey','xnGRH','Get\x20resource\x20record','resourceField','resourceId','KPmOf','JUGgE','5273001cOGnNW','Delete\x20resource\x20relation','Update\x20resource\x20record','/api/resource/:resource/:id/:relation/:relationId','access','exportResource','eJKzp','description','GnwjR','uploadResourceFileBody','Creates\x20a\x20relation\x20for\x20a\x20resource\x20record.','/api/resource/:resource','notes','Creates\x20a\x20record\x20in\x20a\x20registered\x20resource.','Suggest\x20resource\x20values','iiDUG','CjgCs','exportResourceQuery','cUUlR','YtKeL','NCRes','tNeBr','EwIiB','DFVTq','Returns\x20suggested\x20values\x20for\x20a\x20resource\x20field.','/api/resource/:resource/export','files','qHgKq','List\x20resource\x20files','Exports\x20readable\x20records\x20from\x20a\x20registered\x20resource.','wKRjq','Adds\x20a\x20note\x20to\x20a\x20resource\x20record.','nyUGJ','/api/resource/:resource/:id/upload','List\x20resource\x20notes','Uploads\x20a\x20file\x20to\x20a\x20Resource\x20record\x20and\x20stores\x20its\x20metadata.','permissions','summary','patch'];_0x1a6c=function(){return _0x397d2b;};return _0x1a6c();}import{suggestResource}from'./services/suggest-resource.js';function _0x22e5(_0x47571c,_0x1e0dbc){_0x47571c=_0x47571c-0xa3;const _0x1a6cbe=_0x1a6c();let _0x22e57f=_0x1a6cbe[_0x47571c];return _0x22e57f;}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=_0x1025ab=>_0x1025ab[_0x51485a(0x10e)];export function resourceRoutes(_0x46320e){const _0xa1801=_0x51485a,_0xe713f8={};_0xe713f8[_0xa1801(0xb5)]=_0xa1801(0xe2),_0xe713f8[_0xa1801(0x110)]=_0xa1801(0xdb),_0xe713f8[_0xa1801(0xa9)]=_0xa1801(0xf1),_0xe713f8[_0xa1801(0xb6)]=_0xa1801(0xc8),_0xe713f8[_0xa1801(0xb4)]=_0xa1801(0xf8),_0xe713f8[_0xa1801(0xdf)]=_0xa1801(0xc2),_0xe713f8[_0xa1801(0xfb)]=_0xa1801(0xc4),_0xe713f8[_0xa1801(0x10f)]=_0xa1801(0x10e),_0xe713f8[_0xa1801(0xca)]=_0xa1801(0xd1),_0xe713f8[_0xa1801(0xb3)]=_0xa1801(0xac),_0xe713f8[_0xa1801(0xd4)]=_0xa1801(0xeb),_0xe713f8[_0xa1801(0xe8)]=_0xa1801(0x102),_0xe713f8[_0xa1801(0xf3)]=_0xa1801(0xff),_0xe713f8[_0xa1801(0xcc)]=_0xa1801(0x101),_0xe713f8[_0xa1801(0xd8)]=_0xa1801(0xc0),_0xe713f8[_0xa1801(0x10b)]=_0xa1801(0xaf),_0xe713f8[_0xa1801(0x11a)]=_0xa1801(0xe3),_0xe713f8[_0xa1801(0xe4)]=_0xa1801(0xab),_0xe713f8[_0xa1801(0xc9)]=_0xa1801(0xd3),_0xe713f8[_0xa1801(0xb1)]=_0xa1801(0xe5),_0xe713f8[_0xa1801(0x119)]=_0xa1801(0xee),_0xe713f8[_0xa1801(0xcf)]=_0xa1801(0xba),_0xe713f8[_0xa1801(0xe1)]=_0xa1801(0xec),_0xe713f8[_0xa1801(0xb8)]=_0xa1801(0xdd),_0xe713f8[_0xa1801(0xfe)]=_0xa1801(0xa4),_0xe713f8[_0xa1801(0xbf)]=_0xa1801(0x11c),_0xe713f8[_0xa1801(0xe7)]=_0xa1801(0x10d),_0xe713f8[_0xa1801(0xc1)]=_0xa1801(0xd2),_0xe713f8[_0xa1801(0xbc)]=_0xa1801(0xfa),_0xe713f8[_0xa1801(0xf0)]=_0xa1801(0x109),_0xe713f8[_0xa1801(0xb7)]=_0xa1801(0xae),_0xe713f8[_0xa1801(0xb0)]=_0xa1801(0x107),_0xe713f8[_0xa1801(0xd7)]=_0xa1801(0xa3),_0xe713f8[_0xa1801(0xa7)]=_0xa1801(0xe0),_0xe713f8[_0xa1801(0x115)]=_0xa1801(0x103),_0xe713f8[_0xa1801(0xfc)]=_0xa1801(0x108);const _0x1c1b43=_0xe713f8;return async _0x1a3b15=>{const _0x1f9d3d=_0xa1801,_0x4ae304=_0x1f9d3d(0xfd)[_0x1f9d3d(0xcd)]('|');let _0x12d522=0x0;while(!![]){switch(_0x4ae304[_0x12d522++]){case'0':const _0x220712={};_0x220712[_0x1f9d3d(0xea)]=[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],_0x220712[_0x1f9d3d(0xc6)]=_0x1c1b43[_0x1f9d3d(0xa9)],_0x220712[_0x1f9d3d(0xa8)]=_0x1c1b43[_0x1f9d3d(0xb6)],_0x220712[_0x1f9d3d(0xa5)]=_0x1f9d3d(0x10e),_0x220712[_0x1f9d3d(0xc5)]=[],_0x220712[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0xf6)];const _0x1c2417={};_0x1c2417[_0x1f9d3d(0x100)]=_0x220712,_0x1a3b15[_0x1f9d3d(0xf2)](_0x1f9d3d(0xe3),_0x1c2417,async _0x30de00=>listResourceRelation({..._0x30de00[_0x1f9d3d(0xd0)],..._0x30de00[_0x1f9d3d(0xef)],'user':user(_0x30de00)},_0x46320e));continue;case'1':_0x1a3b15[_0x1f9d3d(0xf2)](_0x1c1b43[_0x1f9d3d(0xb4)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1f9d3d(0xbd),'description':_0x1f9d3d(0xde),'access':_0x1f9d3d(0x10e),'permissions':[],'params':resourceSchemas[_0x1f9d3d(0x118)]}},async _0x51d004=>listResourceRelation({..._0x51d004[_0x1f9d3d(0xef)],'relation':_0x1f9d3d(0xbb),'user':user(_0x51d004)},_0x46320e));continue;case'2':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0xdf)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1f9d3d(0xe9),'description':_0x1c1b43[_0x1f9d3d(0xfb)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[_0x1c1b43[_0x1f9d3d(0xca)]],'params':resourceSchemas[_0x1f9d3d(0xf4)],'body':resourceSchemas[_0x1f9d3d(0xaa)]}},async _0x4ef707=>uploadResourceFile({..._0x4ef707[_0x1f9d3d(0xef)],..._0x4ef707[_0x1f9d3d(0xce)],'user':user(_0x4ef707)},_0x46320e));continue;case'3':_0x1a3b15[_0x1f9d3d(0xf2)](_0x1c1b43[_0x1f9d3d(0xb3)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xd4)],'description':_0x1c1b43[_0x1f9d3d(0xe8)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xdb)]}},async _0x1757cd=>listResources({..._0x1757cd[_0x1f9d3d(0xd0)],..._0x1757cd[_0x1f9d3d(0xef)],'user':user(_0x1757cd)},_0x46320e));continue;case'4':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0xf3)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1f9d3d(0xdb)],'summary':_0x1c1b43[_0x1f9d3d(0xcc)],'description':_0x1c1b43[_0x1f9d3d(0xd8)],'access':_0x1f9d3d(0x10e),'permissions':[],'params':resourceSchemas[_0x1f9d3d(0x118)]}},async _0x306d17=>addNote({..._0x306d17[_0x1f9d3d(0xef)],..._0x306d17[_0x1f9d3d(0xce)],'user':user(_0x306d17)},_0x46320e));continue;case'5':const _0x4c6d97={};_0x4c6d97[_0x1f9d3d(0xea)]=[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],_0x4c6d97[_0x1f9d3d(0xc6)]=_0x1c1b43[_0x1f9d3d(0x10b)],_0x4c6d97[_0x1f9d3d(0xa8)]=_0x1f9d3d(0xb9),_0x4c6d97[_0x1f9d3d(0xa5)]=_0x1c1b43[_0x1f9d3d(0x10f)],_0x4c6d97[_0x1f9d3d(0xc5)]=[],_0x4c6d97[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0x117)],_0x4c6d97[_0x1f9d3d(0xf5)]=resourceSchemas[_0x1f9d3d(0x112)];const _0x50281d={};_0x50281d[_0x1f9d3d(0x100)]=_0x4c6d97,_0x1a3b15[_0x1f9d3d(0xf2)](_0x1f9d3d(0x105),_0x50281d,async _0x1d4a88=>suggestResource({..._0x1d4a88[_0x1f9d3d(0xd0)],..._0x1d4a88[_0x1f9d3d(0xef)],'user':user(_0x1d4a88)},_0x46320e));continue;case'6':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0x11a)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1f9d3d(0xf7),'description':_0x1c1b43[_0x1f9d3d(0xe4)],'access':_0x1f9d3d(0x10e),'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xf6)]}},async _0x5d64d0=>createResourceRelation({..._0x5d64d0[_0x1f9d3d(0xef)],'data':_0x5d64d0[_0x1f9d3d(0xce)],'user':user(_0x5d64d0)},_0x46320e));continue;case'7':_0x1a3b15[_0x1f9d3d(0xf2)](_0x1c1b43[_0x1f9d3d(0xc9)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xb1)],'description':_0x1c1b43[_0x1f9d3d(0x119)],'access':_0x1f9d3d(0x10e),'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xdb)]}},async _0x333341=>searchResource({..._0x333341[_0x1f9d3d(0xd0)],..._0x333341[_0x1f9d3d(0xef)],'user':user(_0x333341)},_0x46320e));continue;case'8':_0x1a3b15[_0x1f9d3d(0xf2)](_0x1c1b43[_0x1f9d3d(0xcf)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1f9d3d(0xdb)],'summary':_0x1c1b43[_0x1f9d3d(0xe1)],'description':_0x1f9d3d(0xbe),'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[_0x1f9d3d(0x106)],'params':resourceSchemas[_0x1f9d3d(0xa6)],'querystring':resourceSchemas[_0x1f9d3d(0xb2)]}},async _0x504419=>exportResource({..._0x504419[_0x1f9d3d(0xd0)],..._0x504419[_0x1f9d3d(0xef)],'user':user(_0x504419)},_0x46320e));continue;case'9':const _0x58eccf={};_0x58eccf[_0x1f9d3d(0xea)]=[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],_0x58eccf[_0x1f9d3d(0xc6)]=_0x1f9d3d(0xc3),_0x58eccf[_0x1f9d3d(0xa8)]=_0x1c1b43[_0x1f9d3d(0xb8)],_0x58eccf[_0x1f9d3d(0xa5)]=_0x1c1b43[_0x1f9d3d(0x10f)],_0x58eccf[_0x1f9d3d(0xc5)]=[],_0x58eccf[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0x118)];const _0xab9f25={};_0xab9f25[_0x1f9d3d(0x100)]=_0x58eccf,_0x1a3b15[_0x1f9d3d(0xf2)](_0x1f9d3d(0xff),_0xab9f25,async _0x4b4d0f=>listResourceRelation({..._0x4b4d0f[_0x1f9d3d(0xef)],'relation':_0x1f9d3d(0xad),'user':user(_0x4b4d0f)},_0x46320e));continue;case'10':_0x1a3b15[_0x1f9d3d(0xda)](_0x1c1b43[_0x1f9d3d(0xfe)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xbf)],'description':_0x1c1b43[_0x1f9d3d(0xe7)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xd6)]}},async _0x214961=>deleteResourceRelation({..._0x214961[_0x1f9d3d(0xef)],'user':user(_0x214961)},_0x46320e));continue;case'11':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0xb4)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1f9d3d(0xdc),'description':_0x1c1b43[_0x1f9d3d(0xc1)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0x118)]}},async _0x35b150=>addResourceFile({..._0x35b150[_0x1f9d3d(0xef)],..._0x35b150[_0x1f9d3d(0xce)],'user':user(_0x35b150)},_0x46320e));continue;case'12':const _0x1c3936={};_0x1c3936[_0x1f9d3d(0xea)]=[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],_0x1c3936[_0x1f9d3d(0xc6)]=_0x1f9d3d(0x116),_0x1c3936[_0x1f9d3d(0xa8)]=_0x1c1b43[_0x1f9d3d(0xbc)],_0x1c3936[_0x1f9d3d(0xa5)]=_0x1c1b43[_0x1f9d3d(0x10f)],_0x1c3936[_0x1f9d3d(0xc5)]=[],_0x1c3936[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0x118)];const _0x1d47be={};_0x1d47be[_0x1f9d3d(0x100)]=_0x1c3936,_0x1a3b15[_0x1f9d3d(0xf2)](_0x1f9d3d(0x107),_0x1d47be,async _0x2636ca=>getResource({..._0x2636ca[_0x1f9d3d(0xef)],'user':user(_0x2636ca)},_0x46320e));continue;case'13':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0xb3)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xf0)],'description':_0x1c1b43[_0x1f9d3d(0xb7)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xdb)]}},async _0x3aabb2=>createResource({..._0x3aabb2[_0x1f9d3d(0xef)],'data':_0x3aabb2[_0x1f9d3d(0xce)],'user':user(_0x3aabb2)},_0x46320e));continue;case'14':_0x1a3b15[_0x1f9d3d(0xc7)](_0x1c1b43[_0x1f9d3d(0xb0)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xd7)],'description':_0x1c1b43[_0x1f9d3d(0xa7)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0x118)]}},async _0x3e4bde=>updateResource({..._0x3e4bde[_0x1f9d3d(0xef)],'patch':_0x3e4bde[_0x1f9d3d(0xce)],'user':user(_0x3e4bde)},_0x46320e));continue;case'15':const _0x2fbf60={};_0x2fbf60[_0x1f9d3d(0xea)]=[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1f9d3d(0xdb)],_0x2fbf60[_0x1f9d3d(0xc6)]=_0x1c1b43[_0x1f9d3d(0x115)],_0x2fbf60[_0x1f9d3d(0xa8)]=_0x1f9d3d(0xe6),_0x2fbf60[_0x1f9d3d(0xa5)]=_0x1f9d3d(0x10e),_0x2fbf60[_0x1f9d3d(0xc5)]=[],_0x2fbf60[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0x118)];const _0x100238={};_0x100238[_0x1f9d3d(0x100)]=_0x2fbf60,_0x1a3b15[_0x1f9d3d(0xda)](_0x1f9d3d(0x107),_0x100238,async _0x17458d=>deleteResource({..._0x17458d[_0x1f9d3d(0xef)],'user':user(_0x17458d)},_0x46320e));continue;case'16':const _0x3a950a={};_0x3a950a[_0x1f9d3d(0xea)]=[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],_0x3a950a[_0x1f9d3d(0xc6)]=_0x1c1b43[_0x1f9d3d(0xfc)],_0x3a950a[_0x1f9d3d(0xa8)]=_0x1f9d3d(0xed),_0x3a950a[_0x1f9d3d(0xa5)]=_0x1c1b43[_0x1f9d3d(0x10f)],_0x3a950a[_0x1f9d3d(0xc5)]=[],_0x3a950a[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0xd6)];const _0x51ad2c={};_0x51ad2c[_0x1f9d3d(0x100)]=_0x3a950a,_0x1a3b15[_0x1f9d3d(0xda)](_0x1f9d3d(0x10a),_0x51ad2c,async _0x2c38e7=>deleteResourceRelation({..._0x2c38e7[_0x1f9d3d(0xef)],'relation':_0x1f9d3d(0xbb),'user':user(_0x2c38e7)},_0x46320e));continue;}break;}};}
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 +1 @@
1
- const _0x5e8872=_0x4ec5;(function(_0x47e439,_0x2da2cf){const _0x3c3fde=_0x4ec5,_0x48c5b2=_0x47e439();while(!![]){try{const _0x198a8d=parseInt(_0x3c3fde(0x141))/0x1+parseInt(_0x3c3fde(0x158))/0x2+-parseInt(_0x3c3fde(0x144))/0x3+-parseInt(_0x3c3fde(0x152))/0x4*(parseInt(_0x3c3fde(0x148))/0x5)+parseInt(_0x3c3fde(0x13d))/0x6*(-parseInt(_0x3c3fde(0x14b))/0x7)+parseInt(_0x3c3fde(0x14f))/0x8*(-parseInt(_0x3c3fde(0x153))/0x9)+parseInt(_0x3c3fde(0x146))/0xa;if(_0x198a8d===_0x2da2cf)break;else _0x48c5b2['push'](_0x48c5b2['shift']());}catch(_0x12636a){_0x48c5b2['push'](_0x48c5b2['shift']());}}}(_0x56dd,0x338c1));import{Type}from'@sinclair/typebox';const _0x16a694={};_0x16a694[_0x5e8872(0x149)]=0x1,_0x16a694[_0x5e8872(0x140)]=0x80,_0x16a694[_0x5e8872(0x14e)]=_0x5e8872(0x14d);export const identifier=Type[_0x5e8872(0x150)](_0x16a694);const _0x34426a={};_0x34426a[_0x5e8872(0x142)]=identifier;const _0x15c939={};_0x15c939[_0x5e8872(0x13c)]=identifier;const _0x16b86a={};_0x16b86a[_0x5e8872(0x13c)]=identifier;const _0x1318e7={};_0x1318e7[_0x5e8872(0x13c)]=identifier,_0x1318e7[_0x5e8872(0x147)]=identifier;const _0x21f791={};_0x21f791[_0x5e8872(0x151)]=0x1,_0x21f791[_0x5e8872(0x154)]=0xc8;const _0x21df02={};_0x21df02[_0x5e8872(0x13c)]=identifier,_0x21df02['id']=identifier;const _0x1b22c3={};_0x1b22c3[_0x5e8872(0x13c)]=identifier,_0x1b22c3['id']=identifier,_0x1b22c3[_0x5e8872(0x13f)]=identifier;const _0x514bd2={};_0x514bd2[_0x5e8872(0x13c)]=identifier,_0x514bd2['id']=identifier,_0x514bd2[_0x5e8872(0x13f)]=identifier,_0x514bd2[_0x5e8872(0x145)]=identifier;const _0x2593ba={};_0x2593ba[_0x5e8872(0x13c)]=identifier,_0x2593ba['id']=identifier;const _0xd89ece={};_0xd89ece[_0x5e8872(0x149)]=0x1,_0xd89ece[_0x5e8872(0x140)]=0xff;const _0x568e4f={};function _0x56dd(){const _0x629f55=['Any','Integer','Unknown','566368cJomOg','resource','9168moZWsV','Object','relation','maxLength','44805AofoLx','name','Optional','358731gUZVij','relationId','7100400pLVlBs','field','5570STCocx','minLength','Record','1253wTJmTh','Array','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','pattern','24008tpRfTF','String','minimum','340ayQWZn','1017FVRTiQ','maximum'];_0x56dd=function(){return _0x629f55;};return _0x56dd();}function _0x4ec5(_0x41ff5d,_0x18d08b){_0x41ff5d=_0x41ff5d-0x13c;const _0x56dd28=_0x56dd();let _0x4ec5ff=_0x56dd28[_0x41ff5d];return _0x4ec5ff;}_0x568e4f[_0x5e8872(0x149)]=0x1;const _0x5f1c48={};_0x5f1c48[_0x5e8872(0x151)]=0x1,_0x5f1c48[_0x5e8872(0x154)]=0xc8;const _0x38399d={};_0x38399d[_0x5e8872(0x151)]=0x0;export const resourceSchemas={'dictionaryName':Type[_0x5e8872(0x13e)](_0x34426a),'resource':Type[_0x5e8872(0x13e)](_0x15c939),'exportResource':Type[_0x5e8872(0x13e)](_0x16b86a),'resourceField':Type[_0x5e8872(0x13e)](_0x1318e7),'suggestQuery':Type[_0x5e8872(0x13e)]({'q':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x150)]()),'search':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x150)]()),'limit':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x156)](_0x21f791))}),'resourceId':Type[_0x5e8872(0x13e)](_0x21df02),'resourceIdRelation':Type[_0x5e8872(0x13e)](_0x1b22c3),'resourceIdRelationId':Type[_0x5e8872(0x13e)](_0x514bd2),'uploadResourceFile':Type[_0x5e8872(0x13e)](_0x2593ba),'uploadResourceFileBody':Type[_0x5e8872(0x13e)]({'file':Type[_0x5e8872(0x155)](),'fileName':Type[_0x5e8872(0x150)](_0xd89ece)}),'exportResourceQuery':Type[_0x5e8872(0x13e)]({'filter':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x14a)](Type[_0x5e8872(0x150)](),Type[_0x5e8872(0x157)]())),'sort':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x14c)](Type[_0x5e8872(0x150)](_0x568e4f))),'search':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x150)]()),'limit':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x156)](_0x5f1c48)),'offset':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x156)](_0x38399d)),'fields':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x14c)](identifier))})};
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 +1 @@
1
- function _0x46b2(_0x19f9ec,_0x3cda9f){_0x19f9ec=_0x19f9ec-0x66;const _0x291b71=_0x291b();let _0x46b247=_0x291b71[_0x19f9ec];return _0x46b247;}(function(_0x403cc8,_0x11cd3d){const _0x46a4c2=_0x46b2,_0x60157c=_0x403cc8();while(!![]){try{const _0xade396=parseInt(_0x46a4c2(0x68))/0x1+parseInt(_0x46a4c2(0x6d))/0x2*(-parseInt(_0x46a4c2(0x66))/0x3)+-parseInt(_0x46a4c2(0x74))/0x4*(parseInt(_0x46a4c2(0x73))/0x5)+parseInt(_0x46a4c2(0x71))/0x6*(-parseInt(_0x46a4c2(0x6f))/0x7)+-parseInt(_0x46a4c2(0x70))/0x8+parseInt(_0x46a4c2(0x78))/0x9*(parseInt(_0x46a4c2(0x6a))/0xa)+parseInt(_0x46a4c2(0x72))/0xb*(parseInt(_0x46a4c2(0x6c))/0xc);if(_0xade396===_0x11cd3d)break;else _0x60157c['push'](_0x60157c['shift']());}catch(_0x3c04c4){_0x60157c['push'](_0x60157c['shift']());}}}(_0x291b,0x271c3));export async function addNote(_0x35a47a,_0x5bb1b3){const _0x195c6d=_0x46b2,_0x3b0b17={'lsJvm':_0x195c6d(0x75),'wKWAV':function(_0x4dcd55,_0x1261b0){return _0x4dcd55(_0x1261b0);}},_0x3947d8=await _0x5bb1b3['pg'][_0x195c6d(0x6b)](_0x3b0b17[_0x195c6d(0x77)],[_0x35a47a[_0x195c6d(0x6e)],_0x3b0b17[_0x195c6d(0x67)](String,_0x35a47a['id']),_0x35a47a[_0x195c6d(0x76)]]);return _0x3947d8[_0x195c6d(0x69)][0x0];}function _0x291b(){const _0x530084=['9lycCzQ','5769MReusq','wKWAV','218051EJCrEl','rows','2139130VrwNMc','query','24zwnZUK','144mJfWOe','resource','301uOYlTP','2243376ouBxMY','3900rVGerG','1352912rVpGsc','14185YZZLhj','100lkAwRZ','INSERT\x20INTO\x20admin.notes(resource,resource_id,body)\x20VALUES\x20($1,$2,$3)\x20RETURNING\x20*','body','lsJvm'];_0x291b=function(){return _0x530084;};return _0x291b();}
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 +1 @@
1
- function _0x215b(){const _0x227d33=['2340865xayvmH','5372088jJyStT','1UAPkdc','1504gydVyZ','query','9dIjFgJ','resource','\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','19467FzMDUO','rows','GTRQX','8732310levTev','size','18SaoTro','filePath','15797463bDLDaT','2217813hNkHmt','2308132DlgtkZ'];_0x215b=function(){return _0x227d33;};return _0x215b();}function _0x4531(_0x5b9655,_0x8e7e5c){_0x5b9655=_0x5b9655-0xcd;const _0x215b21=_0x215b();let _0x453187=_0x215b21[_0x5b9655];return _0x453187;}(function(_0x207bc6,_0x39c802){const _0x159128=_0x4531,_0x3dada6=_0x207bc6();while(!![]){try{const _0x359e41=-parseInt(_0x159128(0xd4))/0x1*(parseInt(_0x159128(0xd1))/0x2)+parseInt(_0x159128(0xd0))/0x3+-parseInt(_0x159128(0xd3))/0x4+parseInt(_0x159128(0xd2))/0x5*(parseInt(_0x159128(0xcd))/0x6)+-parseInt(_0x159128(0xda))/0x7*(-parseInt(_0x159128(0xd5))/0x8)+-parseInt(_0x159128(0xd7))/0x9*(parseInt(_0x159128(0xdd))/0xa)+parseInt(_0x159128(0xcf))/0xb;if(_0x359e41===_0x39c802)break;else _0x3dada6['push'](_0x3dada6['shift']());}catch(_0x55cedf){_0x3dada6['push'](_0x3dada6['shift']());}}}(_0x215b,0xb2d10));export async function addResourceFile(_0x2dda59,_0x3b13e6){const _0x29b44a=_0x4531,_0x923472={'GTRQX':function(_0x2828ed,_0x4c67c6){return _0x2828ed(_0x4c67c6);}},_0x22e453=await _0x3b13e6['pg'][_0x29b44a(0xd6)](_0x29b44a(0xd9),[_0x2dda59[_0x29b44a(0xd8)],_0x923472[_0x29b44a(0xdc)](String,_0x2dda59['id']),_0x2dda59[_0x29b44a(0xce)],_0x2dda59[_0x29b44a(0xde)]??null]);return _0x22e453[_0x29b44a(0xdb)][0x0];}
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 +1 @@
1
- (function(_0x2c0309,_0x552059){var _0x42f676=_0x54a9,_0x491113=_0x2c0309();while(!![]){try{var _0x2a0702=parseInt(_0x42f676(0x1de))/0x1*(parseInt(_0x42f676(0x1da))/0x2)+parseInt(_0x42f676(0x1df))/0x3+parseInt(_0x42f676(0x1e2))/0x4*(-parseInt(_0x42f676(0x1e7))/0x5)+parseInt(_0x42f676(0x1dd))/0x6+-parseInt(_0x42f676(0x1dc))/0x7*(parseInt(_0x42f676(0x1e4))/0x8)+parseInt(_0x42f676(0x1e0))/0x9*(-parseInt(_0x42f676(0x1e6))/0xa)+-parseInt(_0x42f676(0x1e3))/0xb;if(_0x2a0702===_0x552059)break;else _0x491113['push'](_0x491113['shift']());}catch(_0x5acdb6){_0x491113['push'](_0x491113['shift']());}}}(_0x206f,0xbdfe6));function _0x54a9(_0x293fba,_0x381b40){_0x293fba=_0x293fba-0x1da;var _0x206f38=_0x206f();var _0x54a948=_0x206f38[_0x293fba];return _0x54a948;}import{unsupported}from'../../utils/unsupported.js';function _0x206f(){var _0x367263=['3052cWHJaA','2697090jVUXma','424mteWvF','Generic\x20Resource\x20relations','48690iLUAoC','4795aevbAB','2GeXIlF','LhYqD','25137AwApnj','1768476LpBmav','1254737jMtMVy','3495789tGxzrs','1422xHyKAc','ToMLB'];_0x206f=function(){return _0x367263;};return _0x206f();}export async function createResourceRelation(_0x17e7a0,_0x394c95){var _0x19c183=_0x54a9,_0x22f57c={'ToMLB':function(_0x5c8e1d,_0x5adcf){return _0x5c8e1d(_0x5adcf);},'LhYqD':_0x19c183(0x1e5)};return _0x22f57c[_0x19c183(0x1e1)](unsupported,_0x22f57c[_0x19c183(0x1db)]);}
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 +1 @@
1
- (function(_0x1179ec,_0x2403cc){var _0x4d6298=_0x33bb,_0x483264=_0x1179ec();while(!![]){try{var _0x5544ef=parseInt(_0x4d6298(0x103))/0x1*(-parseInt(_0x4d6298(0x102))/0x2)+parseInt(_0x4d6298(0xf9))/0x3*(-parseInt(_0x4d6298(0xf6))/0x4)+parseInt(_0x4d6298(0x101))/0x5*(parseInt(_0x4d6298(0xf7))/0x6)+-parseInt(_0x4d6298(0xff))/0x7+parseInt(_0x4d6298(0xfa))/0x8+parseInt(_0x4d6298(0xfe))/0x9*(-parseInt(_0x4d6298(0xf8))/0xa)+parseInt(_0x4d6298(0x104))/0xb;if(_0x5544ef===_0x2403cc)break;else _0x483264['push'](_0x483264['shift']());}catch(_0x255e29){_0x483264['push'](_0x483264['shift']());}}}(_0x43ed,0x8e0c1));export async function createResource(_0x4eec67,_0x5a765b){var _0x245130=_0x33bb,_0x3755be={};return _0x3755be[_0x245130(0x105)]=_0x4eec67[_0x245130(0xfd)],_0x3755be[_0x245130(0xfb)]=_0x4eec67[_0x245130(0xfb)],_0x3755be[_0x245130(0xfc)]=_0x4eec67[_0x245130(0xfc)],_0x5a765b[_0x245130(0xfd)][_0x245130(0x100)](_0x3755be);}function _0x33bb(_0x54beef,_0x5f34a0){_0x54beef=_0x54beef-0xf6;var _0x43ed8b=_0x43ed();var _0x33bb8d=_0x43ed8b[_0x54beef];return _0x33bb8d;}function _0x43ed(){var _0x96f16d=['519oLpjQX','7882664oLtoJK','data','user','resource','5945337PGxhIO','6718124xcRfqD','create','930BnRjYl','6KhvtuC','303022MWTIVe','19618742URsPSi','name','8164CZREDR','22434brUMHF','10GCzBUU'];_0x43ed=function(){return _0x96f16d;};return _0x43ed();}
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 +1 @@
1
- function _0x4299(_0x2e2839,_0x213f7b){_0x2e2839=_0x2e2839-0x163;var _0x2dc67c=_0x2dc6();var _0x42997a=_0x2dc67c[_0x2e2839];return _0x42997a;}function _0x2dc6(){var _0x43e1a3=['Generic\x20Resource\x20relations','3280LaVhJu','lsPvi','116464FubDYm','6RuwvtX','681483HVRPnr','250hntskn','174690TWNIrM','418004iDMOcD','203RbppaQ','42026cBbQuO','61983nLlCsN'];_0x2dc6=function(){return _0x43e1a3;};return _0x2dc6();}(function(_0x492811,_0x40cc18){var _0x528e2a=_0x4299,_0x277893=_0x492811();while(!![]){try{var _0x5967ad=parseInt(_0x528e2a(0x163))/0x1+-parseInt(_0x528e2a(0x16d))/0x2+parseInt(_0x528e2a(0x16a))/0x3+-parseInt(_0x528e2a(0x168))/0x4+-parseInt(_0x528e2a(0x16c))/0x5*(parseInt(_0x528e2a(0x169))/0x6)+-parseInt(_0x528e2a(0x16e))/0x7*(parseInt(_0x528e2a(0x166))/0x8)+parseInt(_0x528e2a(0x164))/0x9*(parseInt(_0x528e2a(0x16b))/0xa);if(_0x5967ad===_0x40cc18)break;else _0x277893['push'](_0x277893['shift']());}catch(_0x37b5a1){_0x277893['push'](_0x277893['shift']());}}}(_0x2dc6,0x26300));import{unsupported}from'../../utils/unsupported.js';export async function deleteResourceRelation(_0x443329,_0xc76d03){var _0x1f9322=_0x4299,_0x45c01f={'lsPvi':function(_0xb8458e,_0x632e1c){return _0xb8458e(_0x632e1c);}};return _0x45c01f[_0x1f9322(0x167)](unsupported,_0x1f9322(0x165));}
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 +1 @@
1
- function _0x55ea(_0x34f2bb,_0x25698e){_0x34f2bb=_0x34f2bb-0x96;var _0xe1a195=_0xe1a1();var _0x55ea4e=_0xe1a195[_0x34f2bb];return _0x55ea4e;}function _0xe1a1(){var _0x4008c4=['resource','28460dDxFxP','264XWibea','934628LONocY','2yeSsKN','name','36620ybmaBA','901936TDyVBQ','259890lDifEU','5984811qzpiRx','4661391foTtCI','6182sTMUks','delete','user','9rgetdW'];_0xe1a1=function(){return _0x4008c4;};return _0xe1a1();}(function(_0x4357c2,_0x113b21){var _0x4b841b=_0x55ea,_0x26750f=_0x4357c2();while(!![]){try{var _0xfae214=-parseInt(_0x4b841b(0xa1))/0x1*(parseInt(_0x4b841b(0x9d))/0x2)+parseInt(_0x4b841b(0x98))/0x3*(parseInt(_0x4b841b(0x9c))/0x4)+parseInt(_0x4b841b(0x9f))/0x5*(parseInt(_0x4b841b(0x9b))/0x6)+parseInt(_0x4b841b(0xa3))/0x7+-parseInt(_0x4b841b(0xa0))/0x8+parseInt(_0x4b841b(0xa2))/0x9+parseInt(_0x4b841b(0x9a))/0xa*(-parseInt(_0x4b841b(0xa4))/0xb);if(_0xfae214===_0x113b21)break;else _0x26750f['push'](_0x26750f['shift']());}catch(_0x32eb46){_0x26750f['push'](_0x26750f['shift']());}}}(_0xe1a1,0x5d453));export async function deleteResource(_0xbe5eff,_0x3ec6aa){var _0x2a5513=_0x55ea,_0x4711ba={};return _0x4711ba[_0x2a5513(0x9e)]=_0xbe5eff[_0x2a5513(0x99)],_0x4711ba['id']=_0xbe5eff['id'],_0x4711ba[_0x2a5513(0x97)]=_0xbe5eff[_0x2a5513(0x97)],_0x3ec6aa[_0x2a5513(0x99)][_0x2a5513(0x96)](_0x4711ba);}
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 +1 @@
1
- (function(_0xaa0aa8,_0x25c2ee){const _0x26e607=_0x367b,_0x1fac7c=_0xaa0aa8();while(!![]){try{const _0x33b51e=parseInt(_0x26e607(0xbe))/0x1*(-parseInt(_0x26e607(0xc6))/0x2)+-parseInt(_0x26e607(0xc7))/0x3+-parseInt(_0x26e607(0xb6))/0x4+-parseInt(_0x26e607(0xb5))/0x5*(parseInt(_0x26e607(0xb9))/0x6)+-parseInt(_0x26e607(0xc5))/0x7+parseInt(_0x26e607(0xc1))/0x8*(parseInt(_0x26e607(0xba))/0x9)+parseInt(_0x26e607(0xc9))/0xa;if(_0x33b51e===_0x25c2ee)break;else _0x1fac7c['push'](_0x1fac7c['shift']());}catch(_0x56e92f){_0x1fac7c['push'](_0x1fac7c['shift']());}}}(_0x5d19,0x5af80));function _0x367b(_0x4ec992,_0x5b2c68){_0x4ec992=_0x4ec992-0xb4;const _0x5d1941=_0x5d19();let _0x367bde=_0x5d1941[_0x4ec992];return _0x367bde;}function _0x5d19(){const _0x3eb16d=['offset','limit','user','54729EVcAen','filter','sort','56NuJEFi','resource','query','fields','1535401VogMyT','14EhJIVl','1392621oOmjGi','name','21672380pIrydu','search','883825CAgtkM','2111236KDiWUJ','rows','find','18DlRmUi','424449MYrOPu'];_0x5d19=function(){return _0x3eb16d;};return _0x5d19();}export async function exportResource(_0x587693,_0x17da43){const _0x54ba31=_0x367b,_0x2725a6={};_0x2725a6[_0x54ba31(0xc8)]=_0x587693[_0x54ba31(0xc2)],_0x2725a6[_0x54ba31(0xc3)]={},_0x2725a6[_0x54ba31(0xbd)]=_0x587693[_0x54ba31(0xbd)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xbf)]=_0x587693[_0x54ba31(0xbf)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xc0)]=_0x587693[_0x54ba31(0xc0)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xb4)]=_0x587693[_0x54ba31(0xb4)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xbc)]=_0x587693[_0x54ba31(0xbc)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xbb)]=_0x587693[_0x54ba31(0xbb)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xc4)]=_0x587693[_0x54ba31(0xc4)];const _0x18d1a1=await _0x17da43[_0x54ba31(0xc2)][_0x54ba31(0xb8)](_0x2725a6);return _0x18d1a1[_0x54ba31(0xb7)];}
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 +1 @@
1
- (function(_0x53d0d6,_0x2bfc61){var _0x1ecd63=_0x2145,_0x2f14a8=_0x53d0d6();while(!![]){try{var _0x493451=parseInt(_0x1ecd63(0x10f))/0x1*(parseInt(_0x1ecd63(0x114))/0x2)+parseInt(_0x1ecd63(0x11c))/0x3*(-parseInt(_0x1ecd63(0x117))/0x4)+-parseInt(_0x1ecd63(0x116))/0x5*(-parseInt(_0x1ecd63(0x119))/0x6)+parseInt(_0x1ecd63(0x10c))/0x7*(parseInt(_0x1ecd63(0x11d))/0x8)+-parseInt(_0x1ecd63(0x111))/0x9*(parseInt(_0x1ecd63(0x113))/0xa)+-parseInt(_0x1ecd63(0x11b))/0xb*(parseInt(_0x1ecd63(0x10d))/0xc)+parseInt(_0x1ecd63(0x11a))/0xd*(parseInt(_0x1ecd63(0x10e))/0xe);if(_0x493451===_0x2bfc61)break;else _0x2f14a8['push'](_0x2f14a8['shift']());}catch(_0xa68a18){_0x2f14a8['push'](_0x2f14a8['shift']());}}}(_0x436e,0x5de9e));function _0x2145(_0x1d26cc,_0x1166db){_0x1d26cc=_0x1d26cc-0x10c;var _0x436e7a=_0x436e();var _0x214548=_0x436e7a[_0x1d26cc];return _0x214548;}export async function getResource(_0x58e4e5,_0x40b6c7){var _0xeb711e=_0x2145,_0x16b7be={};return _0x16b7be[_0xeb711e(0x118)]=_0x58e4e5[_0xeb711e(0x110)],_0x16b7be['id']=_0x58e4e5['id'],_0x16b7be[_0xeb711e(0x115)]=_0x58e4e5[_0xeb711e(0x115)],_0x40b6c7[_0xeb711e(0x110)][_0xeb711e(0x112)](_0x16b7be);}function _0x436e(){var _0x89f675=['44wVwtdg','14298dEUynk','136ewkfpV','177863TiHJtu','1245168eufMcR','28jAxxrE','5ololGU','resource','6060726PWTFZF','findOne','10lvxryA','249604lXDEug','user','1584265FkkHrM','208cyNLOV','name','6hhsdEQ','2263014lQphDV'];_0x436e=function(){return _0x89f675;};return _0x436e();}
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 +1 @@
1
- function _0x57f0(){var _0x3a760f=['RxMrT','4935432XJCSal','910092nGOixQ','76304TayYen','466604rEzwxc','5579720eQtmNN','17933976kZWafY','84mKCVqo','9ckUwkZ','554225tYYHix','zDiSS','Generic\x20Resource\x20children'];_0x57f0=function(){return _0x3a760f;};return _0x57f0();}(function(_0x234923,_0x1a6ec9){var _0xe8caae=_0x3b80,_0x2530e6=_0x234923();while(!![]){try{var _0x394447=-parseInt(_0xe8caae(0x169))/0x1+parseInt(_0xe8caae(0x16b))/0x2+parseInt(_0xe8caae(0x163))/0x3*(parseInt(_0xe8caae(0x16a))/0x4)+-parseInt(_0xe8caae(0x16c))/0x5+-parseInt(_0xe8caae(0x162))/0x6*(-parseInt(_0xe8caae(0x164))/0x7)+-parseInt(_0xe8caae(0x168))/0x8+parseInt(_0xe8caae(0x161))/0x9;if(_0x394447===_0x1a6ec9)break;else _0x2530e6['push'](_0x2530e6['shift']());}catch(_0x3ac13a){_0x2530e6['push'](_0x2530e6['shift']());}}}(_0x57f0,0xb6c87));function _0x3b80(_0x1572d7,_0x4ee5d3){_0x1572d7=_0x1572d7-0x161;var _0x57f0b6=_0x57f0();var _0x3b8052=_0x57f0b6[_0x1572d7];return _0x3b8052;}import{unsupported}from'../../utils/unsupported.js';export async function listChildren(_0x21d658,_0x56b80f){var _0x36a6ac=_0x3b80,_0xbe9dc8={'RxMrT':function(_0x301749,_0x23fdaf){return _0x301749(_0x23fdaf);},'zDiSS':_0x36a6ac(0x166)};return _0xbe9dc8[_0x36a6ac(0x167)](unsupported,_0xbe9dc8[_0x36a6ac(0x165)]);}
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 +1 @@
1
- function _0x39f6(_0x4289e0,_0xb34f5){_0x4289e0=_0x4289e0-0x8d;var _0x5b762b=_0x5b76();var _0x39f674=_0x5b762b[_0x4289e0];return _0x39f674;}function _0x5b76(){var _0x275ae8=['6MlXMrH','10TKOzfp','Generic\x20Resource\x20relations','7242KyXQoL','1739536Dqopiv','2816282RFlCIk','309tPOkLK','3206264JPHeUu','219810aFvngd','7370091KDUsUA','40410iGQneo'];_0x5b76=function(){return _0x275ae8;};return _0x5b76();}(function(_0x582f62,_0x536a20){var _0x5ce962=_0x39f6,_0x4d7ae2=_0x582f62();while(!![]){try{var _0x9f1573=parseInt(_0x5ce962(0x96))/0x1+-parseInt(_0x5ce962(0x91))/0x2*(-parseInt(_0x5ce962(0x94))/0x3)+-parseInt(_0x5ce962(0x95))/0x4+-parseInt(_0x5ce962(0x8d))/0x5+-parseInt(_0x5ce962(0x8e))/0x6*(parseInt(_0x5ce962(0x93))/0x7)+parseInt(_0x5ce962(0x92))/0x8+parseInt(_0x5ce962(0x97))/0x9*(parseInt(_0x5ce962(0x8f))/0xa);if(_0x9f1573===_0x536a20)break;else _0x4d7ae2['push'](_0x4d7ae2['shift']());}catch(_0x55c9bf){_0x4d7ae2['push'](_0x4d7ae2['shift']());}}}(_0x5b76,0x65d74));import{unsupported}from'../../utils/unsupported.js';export async function listResourceRelation(_0xb14432,_0x49b9e0){var _0x2e11c0=_0x39f6;return unsupported(_0x2e11c0(0x90));}
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 +1 @@
1
- function _0x852b(_0x4759b2,_0xbbaabd){_0x4759b2=_0x4759b2-0x19b;var _0x37bf97=_0x37bf();var _0x852b94=_0x37bf97[_0x4759b2];return _0x852b94;}(function(_0x2021ab,_0x362cf9){var _0x4c7446=_0x852b,_0x4cac3c=_0x2021ab();while(!![]){try{var _0xafa9cf=parseInt(_0x4c7446(0x19b))/0x1*(parseInt(_0x4c7446(0x1a3))/0x2)+parseInt(_0x4c7446(0x1a9))/0x3+-parseInt(_0x4c7446(0x19c))/0x4+-parseInt(_0x4c7446(0x1a0))/0x5+parseInt(_0x4c7446(0x1a4))/0x6*(-parseInt(_0x4c7446(0x19e))/0x7)+-parseInt(_0x4c7446(0x1ab))/0x8*(-parseInt(_0x4c7446(0x1a5))/0x9)+parseInt(_0x4c7446(0x1ac))/0xa*(-parseInt(_0x4c7446(0x1aa))/0xb);if(_0xafa9cf===_0x362cf9)break;else _0x4cac3c['push'](_0x4cac3c['shift']());}catch(_0x59fc71){_0x4cac3c['push'](_0x4cac3c['shift']());}}}(_0x37bf,0x5da43));function _0x37bf(){var _0xee4f84=['find','limit','9782RTjVPt','42GHWVfF','117JytXxo','sort','offset','resource','1321155IxRJhE','2816XKIJSH','323992XDCbNn','25800bCqmYf','search','SpCCl','page','user','136IhkyRF','934608oCOWtQ','filter','110915tWlbul','max','1217230JyUJwV'];_0x37bf=function(){return _0xee4f84;};return _0x37bf();}export async function listResources(_0x424867,_0x205543){var _0x5402aa=_0x852b,_0x1e6b6b={};_0x1e6b6b[_0x5402aa(0x1ae)]=function(_0x24ec9a,_0x29671c){return _0x24ec9a-_0x29671c;};var _0x4f2fa5=_0x1e6b6b;return _0x205543[_0x5402aa(0x1a8)][_0x5402aa(0x1a1)]({'name':_0x424867[_0x5402aa(0x1a8)],'query':{'filter':_0x424867[_0x5402aa(0x19d)],'sort':_0x424867[_0x5402aa(0x1a6)],'search':_0x424867[_0x5402aa(0x1ad)],'limit':_0x424867[_0x5402aa(0x1a2)],'offset':_0x424867[_0x5402aa(0x1a7)]??(_0x424867[_0x5402aa(0x1af)]?Math[_0x5402aa(0x19f)](_0x4f2fa5[_0x5402aa(0x1ae)](_0x424867[_0x5402aa(0x1af)],0x1),0x0):0x0)*(_0x424867[_0x5402aa(0x1a2)]??0x14)},'user':_0x424867[_0x5402aa(0x1b0)]});}
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 +1 @@
1
- (function(_0x5cbb21,_0x4106a9){var _0x564f96=_0x2f5f,_0xca8f5c=_0x5cbb21();while(!![]){try{var _0x34e6bc=-parseInt(_0x564f96(0xf4))/0x1+parseInt(_0x564f96(0xf3))/0x2+parseInt(_0x564f96(0xf2))/0x3*(parseInt(_0x564f96(0xec))/0x4)+-parseInt(_0x564f96(0xef))/0x5*(parseInt(_0x564f96(0xed))/0x6)+parseInt(_0x564f96(0xe7))/0x7+parseInt(_0x564f96(0xeb))/0x8*(-parseInt(_0x564f96(0xf0))/0x9)+-parseInt(_0x564f96(0xf7))/0xa*(parseInt(_0x564f96(0xe8))/0xb);if(_0x34e6bc===_0x4106a9)break;else _0xca8f5c['push'](_0xca8f5c['shift']());}catch(_0x4d8bd1){_0xca8f5c['push'](_0xca8f5c['shift']());}}}(_0x2a9e,0xd99d4));function _0x2f5f(_0x4ea245,_0x10839a){_0x4ea245=_0x4ea245-0xe7;var _0x2a9eb0=_0x2a9e();var _0x2f5fd4=_0x2a9eb0[_0x4ea245];return _0x2f5fd4;}export async function searchResource(_0x535daa,_0x2f2d70){var _0x1a14e3=_0x2f5f,_0x42fac6={};return _0x42fac6[_0x1a14e3(0xf6)]=_0x535daa[_0x1a14e3(0xe9)],_0x42fac6[_0x1a14e3(0xf5)]={..._0x535daa},_0x42fac6[_0x1a14e3(0xf1)]=_0x535daa[_0x1a14e3(0xf1)],_0x42fac6[_0x1a14e3(0xf5)][_0x1a14e3(0xea)]=_0x535daa[_0x1a14e3(0xea)],_0x2f2d70[_0x1a14e3(0xe9)][_0x1a14e3(0xee)](_0x42fac6);}function _0x2a9e(){var _0x3d7f61=['find','865Bcvzme','12879vliuVa','user','357LVcXcx','2207702hZiHUD','202203GWKCib','query','name','650DjHkcR','4447968aLnqob','204787jSvZwx','resource','filter','976ugjZuI','52868DYyEzE','28920WDqciR'];_0x2a9e=function(){return _0x3d7f61;};return _0x2a9e();}
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 +1 @@
1
- (function(_0x366133,_0x49ea6a){const _0x1cb9f6=_0x1d62,_0x3ed73c=_0x366133();while(!![]){try{const _0x25585a=-parseInt(_0x1cb9f6(0xc7))/0x1*(-parseInt(_0x1cb9f6(0xc2))/0x2)+parseInt(_0x1cb9f6(0xb6))/0x3+-parseInt(_0x1cb9f6(0xc4))/0x4*(parseInt(_0x1cb9f6(0xc8))/0x5)+parseInt(_0x1cb9f6(0xbc))/0x6+parseInt(_0x1cb9f6(0xba))/0x7+parseInt(_0x1cb9f6(0xcb))/0x8+-parseInt(_0x1cb9f6(0xbd))/0x9;if(_0x25585a===_0x49ea6a)break;else _0x3ed73c['push'](_0x3ed73c['shift']());}catch(_0x98523e){_0x3ed73c['push'](_0x3ed73c['shift']());}}}(_0x20a4,0x2bd2d));import{ValidationError}from'../../../errors.js';export async function suggestResource(_0x5f452f,_0x23a778){const _0x190233=_0x1d62,_0x47518e=_0x23a778[_0x190233(0xcc)][_0x190233(0xc3)](_0x5f452f[_0x190233(0xcc)]),_0xee9f92=_0x47518e[_0x190233(0xbe)][_0x5f452f[_0x190233(0xbb)]],_0x3d8288=_0xee9f92?.[_0x190233(0xc0)]?.[_0x190233(0xc5)];if(!_0x3d8288)throw new ValidationError(_0x190233(0xcd)+_0x5f452f[_0x190233(0xbb)]);const _0x3ccc45=await _0x23a778[_0x190233(0xc5)][_0x190233(0xc3)](_0x3d8288),_0x285dee=String(_0x5f452f[_0x190233(0xc1)]??_0x5f452f['q']??'')[_0x190233(0xb8)](),_0x451957=Math[_0x190233(0xbf)](Math[_0x190233(0xc6)](Number(_0x5f452f[_0x190233(0xb5)]??0x14),0x1),0xc8);return _0x3ccc45[_0x190233(0xca)](_0x394e9f=>!_0x285dee||_0x394e9f[_0x190233(0xb4)][_0x190233(0xb8)]()[_0x190233(0xb9)](_0x285dee)||_0x394e9f[_0x190233(0xc9)][_0x190233(0xb8)]()[_0x190233(0xb9)](_0x285dee))[_0x190233(0xb7)](0x0,_0x451957);}function _0x1d62(_0x2eea78,_0x411e2d){_0x2eea78=_0x2eea78-0xb4;const _0x20a43a=_0x20a4();let _0x1d6237=_0x20a43a[_0x2eea78];return _0x1d6237;}function _0x20a4(){const _0x523ec0=['toLowerCase','includes','937482kucMkd','field','701580jXcdGA','4580613vvduXX','fields','min','lookup','search','10vbRWaD','get','4020QAjiEa','dictionary','max','14767PcRnuD','55mlQOwm','name','filter','1687152PjAava','resource','Field\x20has\x20no\x20lookup\x20dictionary:\x20','code','limit','491784jPLcup','slice'];_0x20a4=function(){return _0x523ec0;};return _0x20a4();}
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 +1 @@
1
- function _0x5e52(_0x27d901,_0x2ae0a5){_0x27d901=_0x27d901-0x17f;var _0x8ae73e=_0x8ae7();var _0x5e5255=_0x8ae73e[_0x27d901];return _0x5e5255;}(function(_0x29f812,_0x549253){var _0x2d3ee3=_0x5e52,_0x3456a5=_0x29f812();while(!![]){try{var _0x501426=parseInt(_0x2d3ee3(0x18b))/0x1*(parseInt(_0x2d3ee3(0x184))/0x2)+parseInt(_0x2d3ee3(0x17f))/0x3*(-parseInt(_0x2d3ee3(0x180))/0x4)+-parseInt(_0x2d3ee3(0x188))/0x5+parseInt(_0x2d3ee3(0x187))/0x6+-parseInt(_0x2d3ee3(0x181))/0x7+-parseInt(_0x2d3ee3(0x183))/0x8*(-parseInt(_0x2d3ee3(0x186))/0x9)+-parseInt(_0x2d3ee3(0x18e))/0xa;if(_0x501426===_0x549253)break;else _0x3456a5['push'](_0x3456a5['shift']());}catch(_0x5f489f){_0x3456a5['push'](_0x3456a5['shift']());}}}(_0x8ae7,0xca736));function _0x8ae7(){var _0x18ba64=['resource','5203630BbvExI','33657tDSZfG','308fNxSDn','4493664HCxOSZ','name','990952yPSrbb','2vPTnxz','user','90QaOWDX','7673994QNgUgs','421870mWJEac','patch','update','422101hQAVRl','data'];_0x8ae7=function(){return _0x18ba64;};return _0x8ae7();}export async function updateResource(_0x26a6ef,_0xb95494){var _0x4825e3=_0x5e52,_0x514b96={};return _0x514b96[_0x4825e3(0x182)]=_0x26a6ef[_0x4825e3(0x18d)],_0x514b96['id']=_0x26a6ef['id'],_0x514b96[_0x4825e3(0x18c)]=_0x26a6ef[_0x4825e3(0x189)],_0x514b96[_0x4825e3(0x185)]=_0x26a6ef[_0x4825e3(0x185)],_0xb95494[_0x4825e3(0x18d)][_0x4825e3(0x18a)](_0x514b96);}
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 +1 @@
1
- function _0x1f6e(_0x4f410f,_0x128660){_0x4f410f=_0x4f410f-0xeb;const _0x5abc95=_0x5abc();let _0x1f6ef7=_0x5abc95[_0x4f410f];return _0x1f6ef7;}(function(_0x388cd3,_0x2ec844){const _0x18ac7d=_0x1f6e,_0x511801=_0x388cd3();while(!![]){try{const _0x2d696f=-parseInt(_0x18ac7d(0x10a))/0x1+parseInt(_0x18ac7d(0xfc))/0x2+-parseInt(_0x18ac7d(0x110))/0x3+parseInt(_0x18ac7d(0xf4))/0x4*(parseInt(_0x18ac7d(0x108))/0x5)+-parseInt(_0x18ac7d(0xf3))/0x6*(-parseInt(_0x18ac7d(0xfe))/0x7)+-parseInt(_0x18ac7d(0x101))/0x8+parseInt(_0x18ac7d(0x114))/0x9;if(_0x2d696f===_0x2ec844)break;else _0x511801['push'](_0x511801['shift']());}catch(_0x41cbc0){_0x511801['push'](_0x511801['shift']());}}}(_0x5abc,0x78095));import{ForbiddenError,NotFoundError,ValidationError}from'../../../errors.js';export async function uploadResourceFile(_0x16b7ae,_0x119123){const _0xa94895=_0x1f6e,_0x59771f={'mkNuf':function(_0x241bc1,_0x5a27f6){return _0x241bc1===_0x5a27f6;},'Gvemk':_0xa94895(0x119),'YCRfi':function(_0x4a90c4,_0x5ddf6){return _0x4a90c4!==_0x5ddf6;},'GTHpy':_0xa94895(0x109),'SJfqU':function(_0x233f7d,_0x20ba29){return _0x233f7d!==_0x20ba29;},'CPSUP':_0xa94895(0xec),'YkbWX':function(_0x4e14b1,_0xbd892e){return _0x4e14b1===_0xbd892e;},'ilIeB':_0xa94895(0xf1),'cloYe':_0xa94895(0x115),'qgcJE':function(_0x14a4e4,_0x1f105f){return _0x14a4e4(_0x1f105f);},'dmZsZ':function(_0x16b1e6,_0x12e88a){return _0x16b1e6(_0x12e88a);}},_0x71445a=_0x119123[_0xa94895(0xff)][_0xa94895(0xee)](_0x16b7ae[_0xa94895(0xff)]);if(_0x59771f[_0xa94895(0x10b)](_0x71445a[_0xa94895(0x10e)],_0x59771f[_0xa94895(0x116)])&&_0x59771f[_0xa94895(0x106)](_0x16b7ae[_0xa94895(0xf2)]?.[_0xa94895(0x100)],_0x59771f[_0xa94895(0x116)]))throw new ForbiddenError(_0x59771f[_0xa94895(0x117)]);if(_0x59771f[_0xa94895(0x111)](_0x16b7ae[_0xa94895(0xf2)]?.[_0xa94895(0x100)],_0x59771f[_0xa94895(0x116)])&&!_0x16b7ae[_0xa94895(0xf2)]?.[_0xa94895(0x107)]?.[_0xa94895(0x10c)]((_0x71445a[_0xa94895(0xfb)]??_0x71445a[_0xa94895(0x105)])+_0xa94895(0xfd))){if(_0x59771f[_0xa94895(0x10b)](_0x59771f[_0xa94895(0xfa)],_0x59771f[_0xa94895(0xfa)]))throw new ForbiddenError(_0xa94895(0xf0)+(_0x71445a[_0xa94895(0xfb)]??_0x71445a[_0xa94895(0x105)])+_0xa94895(0xfd));else throw new _0x51e87e(_0xa94895(0xf0)+(_0x3e0f09[_0xa94895(0xfb)]??_0x229434[_0xa94895(0x105)])+_0xa94895(0xfd));}if(!Buffer[_0xa94895(0x10d)](_0x16b7ae[_0xa94895(0x113)])||_0x59771f[_0xa94895(0xf7)](_0x16b7ae[_0xa94895(0x113)][_0xa94895(0xeb)],0x0))throw new ValidationError(_0x59771f[_0xa94895(0xed)]);const _0x139e87=_0x16b7ae[_0xa94895(0x11a)][_0xa94895(0x10f)](/[^A-Za-z0-9._-]/g,'_');if(!_0x139e87){if(_0x59771f[_0xa94895(0x111)](_0xa94895(0x115),_0x59771f[_0xa94895(0x11b)]))throw new _0x3e81bd(_0xa94895(0x109));else throw new ValidationError(_0xa94895(0x118));}const _0x101d31=_0xa94895(0xf8)+_0x16b7ae[_0xa94895(0xff)]+'/'+_0x59771f[_0xa94895(0xef)](String,_0x16b7ae['id'])+'/'+_0x139e87;await _0x119123[_0xa94895(0x113)][_0xa94895(0x103)](_0x101d31,_0x16b7ae[_0xa94895(0x113)]);if(!await _0x119123[_0xa94895(0x113)][_0xa94895(0x102)](_0x101d31))throw new NotFoundError(_0xa94895(0xf6));const _0x2d055c=await _0x119123['pg'][_0xa94895(0x112)](_0xa94895(0xf9),[_0x16b7ae[_0xa94895(0xff)],_0x59771f[_0xa94895(0xf5)](String,_0x16b7ae['id']),_0x101d31,_0x16b7ae[_0xa94895(0x113)][_0xa94895(0xeb)]]);return _0x2d055c[_0xa94895(0x104)][0x0];}function _0x5abc(){const _0x347165=['SJfqU','query','file','4318677GdYjaM','rvDqP','Gvemk','GTHpy','File\x20name\x20is\x20required','admin','fileName','cloYe','length','RnbJi','ilIeB','get','qgcJE','Missing\x20permission:\x20','File\x20is\x20required','user','6JqLEvD','712972iFFtGk','dmZsZ','Uploaded\x20file\x20not\x20found','YkbWX','files/','\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','CPSUP','permission','1900088xwYeHA',':update','6526065jdmSvE','resource','type','7750808LfSxWI','exists','put','rows','name','YCRfi','permissions','5BycKJN','Admin\x20access\x20required','483556ZbPoZe','mkNuf','includes','isBuffer','access','replace','1789077KLXdmB'];_0x5abc=function(){return _0x347165;};return _0x5abc();}
1
+ (function(_0x4bce31,_0x29d57b){const _0x5cf9cc=_0x3f95,_0x38d95e=_0x4bce31();while(!![]){try{const _0x495678=parseInt(_0x5cf9cc(0x212))/0x1*(parseInt(_0x5cf9cc(0x20f))/0x2)+parseInt(_0x5cf9cc(0x20c))/0x3*(parseInt(_0x5cf9cc(0x1f3))/0x4)+parseInt(_0x5cf9cc(0x20a))/0x5*(-parseInt(_0x5cf9cc(0x205))/0x6)+parseInt(_0x5cf9cc(0x1f4))/0x7+parseInt(_0x5cf9cc(0x1ec))/0x8*(-parseInt(_0x5cf9cc(0x226))/0x9)+-parseInt(_0x5cf9cc(0x1fd))/0xa*(parseInt(_0x5cf9cc(0x1ed))/0xb)+parseInt(_0x5cf9cc(0x1ff))/0xc*(parseInt(_0x5cf9cc(0x209))/0xd);if(_0x495678===_0x29d57b)break;else _0x38d95e['push'](_0x38d95e['shift']());}catch(_0x3e34ab){_0x38d95e['push'](_0x38d95e['shift']());}}}(_0x26c3,0xbd33a));function _0x3f95(_0x1d6e2d,_0x287797){_0x1d6e2d=_0x1d6e2d-0x1ec;const _0x26c37b=_0x26c3();let _0x3f95f2=_0x26c37b[_0x1d6e2d];return _0x3f95f2;}function _0x26c3(){const _0x54c485=['name','rows','10FgGfbp','GHowt','8078316ousYvF','query','dXiRw','isBuffer','access','UjDdp','50316ocPPuB','SSDUj','QKOam','HXapv','26upPRHX','865moBOKu','AJiSl','54iHNacH','replace','\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','20176vISjrO','put','length','151TOkmpf','uxAEI','Uploaded\x20file\x20not\x20found','File\x20is\x20required','files/','get','DZvfr','BrIYb','yIOey','Admin\x20access\x20required','admin','includes','file','exists','uHDQR','wdlEj','fileName','ASAwY','wSgBk','resource','153108SDEtlL','permission','permissions','Missing\x20permission:\x20','688gNBGGb','3553682NaPlnj',':update','vHKPV','JzlRA','myRKA','File\x20name\x20is\x20required','178884NdzzoV','2360330nhsapl','EeFvh','wFsut','type','WxolT','user','zqdzq'];_0x26c3=function(){return _0x54c485;};return _0x26c3();}import{ForbiddenError,NotFoundError,ValidationError}from'../../../errors.js';export async function uploadResourceFile(_0xbb2dc1,_0x1ff384){const _0x3daa18=_0x3f95,_0x117c72={'EeFvh':_0x3daa18(0x1f2),'GHowt':_0x3daa18(0x214),'UjDdp':_0x3daa18(0x215),'JzlRA':function(_0x381e05,_0x480dca){return _0x381e05===_0x480dca;},'AJiSl':function(_0x30a538,_0x208ffa){return _0x30a538!==_0x208ffa;},'WxolT':_0x3daa18(0x1ef),'DZvfr':_0x3daa18(0x1f1),'HXapv':_0x3daa18(0x21b),'wFsut':_0x3daa18(0x21c),'uxAEI':function(_0x20f39e,_0x3f8b9a){return _0x20f39e===_0x3f8b9a;},'SSDUj':_0x3daa18(0x221),'ASAwY':_0x3daa18(0x219),'uHDQR':function(_0x51ae9d,_0x525462){return _0x51ae9d(_0x525462);},'wSgBk':_0x3daa18(0x21a),'dXiRw':_0x3daa18(0x1fa),'QKOam':function(_0x49f49c,_0xdd1426){return _0x49f49c(_0xdd1426);}},_0x1e1fe3=_0x1ff384[_0x3daa18(0x225)][_0x3daa18(0x217)](_0xbb2dc1[_0x3daa18(0x225)]);if(_0x117c72[_0x3daa18(0x1f0)](_0x1e1fe3[_0x3daa18(0x203)],_0x3daa18(0x21c))&&_0x117c72[_0x3daa18(0x20b)](_0xbb2dc1[_0x3daa18(0x1f9)]?.[_0x3daa18(0x1f7)],_0x3daa18(0x21c))){if(_0x117c72[_0x3daa18(0x1f8)]===_0x117c72[_0x3daa18(0x218)])throw new _0x3d794d(_0x117c72[_0x3daa18(0x1f5)]);else throw new ForbiddenError(_0x117c72[_0x3daa18(0x208)]);}if(_0x117c72[_0x3daa18(0x20b)](_0xbb2dc1[_0x3daa18(0x1f9)]?.[_0x3daa18(0x1f7)],_0x117c72[_0x3daa18(0x1f6)])&&!_0xbb2dc1[_0x3daa18(0x1f9)]?.[_0x3daa18(0x228)]?.[_0x3daa18(0x21d)]((_0x1e1fe3[_0x3daa18(0x227)]??_0x1e1fe3[_0x3daa18(0x1fb)])+_0x3daa18(0x1ee)))throw new ForbiddenError(_0x3daa18(0x229)+(_0x1e1fe3[_0x3daa18(0x227)]??_0x1e1fe3[_0x3daa18(0x1fb)])+_0x3daa18(0x1ee));if(!Buffer[_0x3daa18(0x202)](_0xbb2dc1[_0x3daa18(0x21e)])||_0x117c72[_0x3daa18(0x213)](_0xbb2dc1[_0x3daa18(0x21e)][_0x3daa18(0x211)],0x0))throw new ValidationError(_0x117c72[_0x3daa18(0x204)]);const _0x7087d1=_0xbb2dc1[_0x3daa18(0x222)][_0x3daa18(0x20d)](/[^A-Za-z0-9._-]/g,'_');if(!_0x7087d1){if(_0x117c72[_0x3daa18(0x206)]!==_0x117c72[_0x3daa18(0x223)])throw new ValidationError(_0x117c72[_0x3daa18(0x1f5)]);else throw new _0x48b429(_0x117c72[_0x3daa18(0x1fe)]);}const _0x46dda8=_0x3daa18(0x216)+_0xbb2dc1[_0x3daa18(0x225)]+'/'+_0x117c72[_0x3daa18(0x220)](String,_0xbb2dc1['id'])+'/'+_0x7087d1;await _0x1ff384[_0x3daa18(0x21e)][_0x3daa18(0x210)](_0x46dda8,_0xbb2dc1[_0x3daa18(0x21e)]);if(!await _0x1ff384[_0x3daa18(0x21e)][_0x3daa18(0x21f)](_0x46dda8)){if(_0x117c72[_0x3daa18(0x20b)](_0x117c72[_0x3daa18(0x224)],_0x117c72[_0x3daa18(0x201)]))throw new NotFoundError(_0x117c72[_0x3daa18(0x1fe)]);else throw new _0x3ec486(_0x117c72[_0x3daa18(0x204)]);}const _0x222172=await _0x1ff384['pg'][_0x3daa18(0x200)](_0x3daa18(0x20e),[_0xbb2dc1[_0x3daa18(0x225)],_0x117c72[_0x3daa18(0x207)](String,_0xbb2dc1['id']),_0x46dda8,_0xbb2dc1[_0x3daa18(0x21e)][_0x3daa18(0x211)]]);return _0x222172[_0x3daa18(0x1fc)][0x0];}
@@ -1 +1 @@
1
- (function(_0x3ea55d,_0x5b612c){var _0x32ad9e=_0x598d,_0x29cb5b=_0x3ea55d();while(!![]){try{var _0x50829d=-parseInt(_0x32ad9e(0xaf))/0x1*(-parseInt(_0x32ad9e(0xad))/0x2)+parseInt(_0x32ad9e(0xaa))/0x3*(parseInt(_0x32ad9e(0xb3))/0x4)+-parseInt(_0x32ad9e(0xa9))/0x5+-parseInt(_0x32ad9e(0xb1))/0x6+-parseInt(_0x32ad9e(0xb2))/0x7*(-parseInt(_0x32ad9e(0xae))/0x8)+-parseInt(_0x32ad9e(0xac))/0x9*(parseInt(_0x32ad9e(0xb0))/0xa)+parseInt(_0x32ad9e(0xb4))/0xb*(parseInt(_0x32ad9e(0xab))/0xc);if(_0x50829d===_0x5b612c)break;else _0x29cb5b['push'](_0x29cb5b['shift']());}catch(_0x5c4b97){_0x29cb5b['push'](_0x29cb5b['shift']());}}}(_0x58cc,0xbd611));export*from'./route.js';export*from'./services/get-system-settings.js';export*from'./services/update-system-settings.js';export*from'./services/get-system-log.js';export*from'./services/get-audit-log.js';export*from'./services/check-system.js';export*from'./services/get-api-list.js';export*from'./services/list-dictionaries.js';function _0x598d(_0xe38d7,_0x3d4b9b){_0xe38d7=_0xe38d7-0xa9;var _0x58cc2a=_0x58cc();var _0x598dfe=_0x58cc2a[_0xe38d7];return _0x598dfe;}export*from'./services/get-dictionary.js';function _0x58cc(){var _0x5e9198=['13WjYZul','20zlNovm','5013408kbWwuJ','1179115wQJbQD','1644brEXGa','18358439rTkmFd','7252045wjtYOT','1569SNptjt','12vTUBlO','3752874rVaixs','179926UZPTUN','40KCJqaD'];_0x58cc=function(){return _0x5e9198;};return _0x58cc();}
1
+ (function(_0x1733b8,_0x4a4599){var _0x2c97dd=_0x5cef,_0x58f9f7=_0x1733b8();while(!![]){try{var _0x2fe641=-parseInt(_0x2c97dd(0x1f4))/0x1+-parseInt(_0x2c97dd(0x1f8))/0x2+-parseInt(_0x2c97dd(0x1f7))/0x3*(parseInt(_0x2c97dd(0x1f5))/0x4)+parseInt(_0x2c97dd(0x1f2))/0x5*(parseInt(_0x2c97dd(0x1fa))/0x6)+-parseInt(_0x2c97dd(0x1f3))/0x7*(parseInt(_0x2c97dd(0x1f6))/0x8)+parseInt(_0x2c97dd(0x1f9))/0x9+parseInt(_0x2c97dd(0x1fb))/0xa;if(_0x2fe641===_0x4a4599)break;else _0x58f9f7['push'](_0x58f9f7['shift']());}catch(_0x238ec9){_0x58f9f7['push'](_0x58f9f7['shift']());}}}(_0x1feb,0x37fe4));function _0x5cef(_0xcff964,_0x2da425){_0xcff964=_0xcff964-0x1f2;var _0x1febb8=_0x1feb();var _0x5cef20=_0x1febb8[_0xcff964];return _0x5cef20;}export*from'./route.js';export*from'./services/get-system-settings.js';export*from'./services/update-system-settings.js';export*from'./services/get-system-log.js';export*from'./services/get-audit-log.js';export*from'./services/check-system.js';export*from'./services/get-api-list.js';export*from'./services/list-dictionaries.js';function _0x1feb(){var _0x589c3b=['297865QkwBSO','28XMFVkR','382521kKJudb','2812keNgCQ','478304FhzeOk','1374fmyhrz','24174ZwiDTK','3461031GHgGZU','42vJEsiB','3835120CBFIpQ'];_0x1feb=function(){return _0x589c3b;};return _0x1feb();}export*from'./services/get-dictionary.js';