@leonailtd/n8n-nodes-priority-erp 3.1.1 → 3.2.0

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 (48) hide show
  1. package/LICENSE +27 -15
  2. package/dist/LICENSE +27 -15
  3. package/dist/credentials/PriorityErpApi.credentials.js +134 -1
  4. package/dist/credentials/PriorityErpWebSdk.credentials.js +134 -1
  5. package/dist/nodes/PriorityERP/PriorityERP.node.js +311 -1
  6. package/dist/nodes/PriorityERP/actions/batch/batch.properties.js +83 -1
  7. package/dist/nodes/PriorityERP/actions/batch/execute.operation.js +43 -1
  8. package/dist/nodes/PriorityERP/actions/batch/index.js +8 -1
  9. package/dist/nodes/PriorityERP/actions/entity/create.operation.js +13 -1
  10. package/dist/nodes/PriorityERP/actions/entity/delete.operation.js +12 -1
  11. package/dist/nodes/PriorityERP/actions/entity/entity.properties.js +296 -1
  12. package/dist/nodes/PriorityERP/actions/entity/get.operation.js +35 -1
  13. package/dist/nodes/PriorityERP/actions/entity/getMany.operation.js +43 -1
  14. package/dist/nodes/PriorityERP/actions/entity/index.js +16 -1
  15. package/dist/nodes/PriorityERP/actions/entity/update.operation.js +14 -1
  16. package/dist/nodes/PriorityERP/actions/file/download.operation.js +23 -1
  17. package/dist/nodes/PriorityERP/actions/file/file.properties.js +123 -1
  18. package/dist/nodes/PriorityERP/actions/file/getFiles.operation.js +16 -1
  19. package/dist/nodes/PriorityERP/actions/file/index.js +12 -1
  20. package/dist/nodes/PriorityERP/actions/file/upload.operation.js +26 -1
  21. package/dist/nodes/PriorityERP/actions/procedure/activate.operation.js +33 -1
  22. package/dist/nodes/PriorityERP/actions/procedure/activateSubForm.operation.js +37 -1
  23. package/dist/nodes/PriorityERP/actions/procedure/index.js +10 -1
  24. package/dist/nodes/PriorityERP/actions/procedure/procedure.properties.js +157 -1
  25. package/dist/nodes/PriorityERP/actions/subForm/create.operation.js +15 -1
  26. package/dist/nodes/PriorityERP/actions/subForm/delete.operation.js +14 -1
  27. package/dist/nodes/PriorityERP/actions/subForm/get.operation.js +37 -1
  28. package/dist/nodes/PriorityERP/actions/subForm/getMany.operation.js +45 -1
  29. package/dist/nodes/PriorityERP/actions/subForm/index.js +16 -1
  30. package/dist/nodes/PriorityERP/actions/subForm/subForm.properties.js +304 -1
  31. package/dist/nodes/PriorityERP/actions/subForm/update.operation.js +16 -1
  32. package/dist/nodes/PriorityERP/actions/subSubForm/create.operation.js +17 -1
  33. package/dist/nodes/PriorityERP/actions/subSubForm/delete.operation.js +16 -1
  34. package/dist/nodes/PriorityERP/actions/subSubForm/get.operation.js +39 -1
  35. package/dist/nodes/PriorityERP/actions/subSubForm/getMany.operation.js +47 -1
  36. package/dist/nodes/PriorityERP/actions/subSubForm/index.js +16 -1
  37. package/dist/nodes/PriorityERP/actions/subSubForm/subSubForm.properties.js +296 -1
  38. package/dist/nodes/PriorityERP/actions/subSubForm/update.operation.js +18 -1
  39. package/dist/nodes/PriorityERP/actions/text/getText.operation.js +16 -1
  40. package/dist/nodes/PriorityERP/actions/text/index.js +10 -1
  41. package/dist/nodes/PriorityERP/actions/text/setText.operation.js +19 -1
  42. package/dist/nodes/PriorityERP/actions/text/text.properties.js +107 -1
  43. package/dist/nodes/PriorityERP/helpers/odata.js +54 -1
  44. package/dist/nodes/PriorityERP/helpers/utils.js +62 -1
  45. package/dist/nodes/PriorityERP/methods/loadOptions.js +643 -1
  46. package/dist/nodes/PriorityERP/transport/priorityApi.js +203 -1
  47. package/dist/package.json +2 -2
  48. package/package.json +3 -3
@@ -1 +1,296 @@
1
- 'use strict';var _0x2a0c67=_0x4435;(function(_0x1e2e0e,_0x2e3141){var _0x44d3a1={_0x55981a:0xe8,_0x3c991f:0x140,_0x48178c:0x159,_0x4d6215:0x11c,_0x14c6ab:0x124},_0x1984a5=_0x4435,_0x542aab=_0x1e2e0e();while(!![]){try{var _0x1b8c9e=parseInt(_0x1984a5(0xf6))/0x1*(parseInt(_0x1984a5(0x151))/0x2)+-parseInt(_0x1984a5(0x109))/0x3+-parseInt(_0x1984a5(0x153))/0x4+-parseInt(_0x1984a5(0x13b))/0x5+parseInt(_0x1984a5(_0x44d3a1._0x55981a))/0x6*(-parseInt(_0x1984a5(_0x44d3a1._0x3c991f))/0x7)+parseInt(_0x1984a5(_0x44d3a1._0x48178c))/0x8*(-parseInt(_0x1984a5(_0x44d3a1._0x4d6215))/0x9)+-parseInt(_0x1984a5(_0x44d3a1._0x14c6ab))/0xa*(-parseInt(_0x1984a5(0x14a))/0xb);if(_0x1b8c9e===_0x2e3141)break;else _0x542aab['push'](_0x542aab['shift']());}catch(_0x3feabc){_0x542aab['push'](_0x542aab['shift']());}}}(_0x5b19,0x6966f));var _0x1f5a13={};_0x1f5a13[_0x2a0c67(0x129)]=!![],Object[_0x2a0c67(0xee)](exports,_0x2a0c67(0x148),_0x1f5a13),exports['entityFields']=exports[_0x2a0c67(0x146)]=void 0x0;var _0x3a0e82={};_0x3a0e82[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)];var _0x1deea6={};_0x1deea6['show']=_0x3a0e82;var _0x25ce11={};_0x25ce11[_0x2a0c67(0xfe)]=_0x2a0c67(0x115),_0x25ce11[_0x2a0c67(0x129)]=_0x2a0c67(0x150),_0x25ce11[_0x2a0c67(0x12d)]=_0x2a0c67(0x15b),_0x25ce11[_0x2a0c67(0xf5)]=_0x2a0c67(0x135);var _0x37f0e6={};_0x37f0e6[_0x2a0c67(0xfe)]=_0x2a0c67(0x118),_0x37f0e6[_0x2a0c67(0x129)]=_0x2a0c67(0x14f),_0x37f0e6[_0x2a0c67(0x12d)]=_0x2a0c67(0x10d),_0x37f0e6[_0x2a0c67(0xf5)]=_0x2a0c67(0x10d);var _0x458a72={};_0x458a72[_0x2a0c67(0xfe)]=_0x2a0c67(0x104),_0x458a72[_0x2a0c67(0x129)]=_0x2a0c67(0x126),_0x458a72['description']='Get\x20an\x20entity',_0x458a72[_0x2a0c67(0xf5)]=_0x2a0c67(0x142);var _0x60310d={};_0x60310d[_0x2a0c67(0xfe)]='Get\x20Many',_0x60310d[_0x2a0c67(0x129)]=_0x2a0c67(0x116),_0x60310d[_0x2a0c67(0x12d)]=_0x2a0c67(0xf3),_0x60310d[_0x2a0c67(0xf5)]='Get\x20many\x20entities';var _0x316a59={};_0x316a59[_0x2a0c67(0xfe)]='Update',_0x316a59[_0x2a0c67(0x129)]='update',_0x316a59['description']=_0x2a0c67(0x15d),_0x316a59['action']=_0x2a0c67(0x15d);var _0x114c2={};_0x114c2[_0x2a0c67(0x127)]=_0x2a0c67(0xeb),_0x114c2[_0x2a0c67(0xfe)]=_0x2a0c67(0xf9),_0x114c2['type']='options',_0x114c2[_0x2a0c67(0x149)]=!![],_0x114c2[_0x2a0c67(0xfd)]=_0x1deea6,_0x114c2['options']=[_0x25ce11,_0x37f0e6,_0x458a72,_0x60310d,_0x316a59],_0x114c2[_0x2a0c67(0x14b)]=_0x2a0c67(0x126),exports[_0x2a0c67(0x146)]=_0x114c2;var _0x2c373f={};_0x2c373f[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)];var _0x4d4c9e={};_0x4d4c9e[_0x2a0c67(0xe5)]=_0x2c373f;var _0x410c00={};_0x410c00[_0x2a0c67(0xfe)]='Customers',_0x410c00[_0x2a0c67(0x129)]='CUSTOMERS';var _0x54a9da={};_0x54a9da[_0x2a0c67(0xfe)]='Items',_0x54a9da[_0x2a0c67(0x129)]=_0x2a0c67(0x13f);var _0x377a50={};_0x377a50['name']='Orders',_0x377a50[_0x2a0c67(0x129)]=_0x2a0c67(0x130);var _0x304a57={};_0x304a57[_0x2a0c67(0xfe)]='Invoices',_0x304a57['value']='INVOICES';var _0x97b562={};_0x97b562['name']=_0x2a0c67(0x10b),_0x97b562[_0x2a0c67(0x129)]=_0x2a0c67(0x125);var _0x5233ac={};_0x5233ac[_0x2a0c67(0xfe)]=_0x2a0c67(0xf7),_0x5233ac[_0x2a0c67(0x129)]=_0x2a0c67(0x155);var _0x3710a9={};_0x3710a9[_0x2a0c67(0x127)]='Entity\x20Type',_0x3710a9[_0x2a0c67(0xfe)]=_0x2a0c67(0x144),_0x3710a9[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0x3710a9['required']=!![],_0x3710a9[_0x2a0c67(0xfd)]=_0x4d4c9e,_0x3710a9[_0x2a0c67(0x106)]=[_0x410c00,_0x54a9da,_0x377a50,_0x304a57,_0x97b562,_0x5233ac],_0x3710a9['default']=_0x2a0c67(0x147),_0x3710a9[_0x2a0c67(0x12d)]=_0x2a0c67(0x11d);var _0x52b79f={};_0x52b79f[_0x2a0c67(0x131)]=_0x2a0c67(0x13d);var _0xa7105f={};_0xa7105f['resource']=['entity'],_0xa7105f[_0x2a0c67(0x144)]=[_0x2a0c67(0x155)];var _0x55ae7a={};_0x55ae7a[_0x2a0c67(0xe5)]=_0xa7105f;var _0x46c810={};_0x46c810[_0x2a0c67(0x127)]=_0x2a0c67(0x15c),_0x46c810[_0x2a0c67(0xfe)]='customEntityName',_0x46c810['type']=_0x2a0c67(0x106),_0x46c810['typeOptions']=_0x52b79f,_0x46c810[_0x2a0c67(0x110)]=!![],_0x46c810[_0x2a0c67(0xfd)]=_0x55ae7a,_0x46c810[_0x2a0c67(0x14b)]='',_0x46c810['description']=_0x2a0c67(0x11e);var _0x40d15e={};_0x40d15e[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)],_0x40d15e[_0x2a0c67(0xf9)]=[_0x2a0c67(0x126),_0x2a0c67(0x12f),'delete'];var _0x8d0365={};_0x8d0365['show']=_0x40d15e;var _0x3ce10b={};_0x3ce10b[_0x2a0c67(0x127)]=_0x2a0c67(0xe4),_0x3ce10b['name']=_0x2a0c67(0x128),_0x3ce10b[_0x2a0c67(0x12c)]=_0x2a0c67(0x12e),_0x3ce10b[_0x2a0c67(0x110)]=!![],_0x3ce10b[_0x2a0c67(0xfd)]=_0x8d0365,_0x3ce10b['default']='',_0x3ce10b[_0x2a0c67(0x12d)]=_0x2a0c67(0x119);var _0x3e5a44={};_0x3e5a44['multipleValues']=!![];var _0x32cdd0={};_0x32cdd0['resource']=[_0x2a0c67(0x120)],_0x32cdd0[_0x2a0c67(0xf9)]=[_0x2a0c67(0x150),_0x2a0c67(0x12f)];var _0x3c69e2={};_0x3c69e2['show']=_0x32cdd0;var _0x3d56db={};_0x3d56db['loadOptionsMethod']=_0x2a0c67(0x157);var _0x1e1daa={};_0x1e1daa[_0x2a0c67(0x127)]=_0x2a0c67(0xff),_0x1e1daa[_0x2a0c67(0xfe)]=_0x2a0c67(0x121),_0x1e1daa[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0x1e1daa[_0x2a0c67(0x12b)]=_0x3d56db,_0x1e1daa[_0x2a0c67(0x14b)]='',_0x1e1daa[_0x2a0c67(0x12d)]=_0x2a0c67(0x100);var _0x557e6d={};_0x557e6d[_0x2a0c67(0x127)]='Field\x20Value',_0x557e6d['name']='fieldValue',_0x557e6d[_0x2a0c67(0x12c)]=_0x2a0c67(0x12e),_0x557e6d[_0x2a0c67(0x14b)]='',_0x557e6d[_0x2a0c67(0x12d)]=_0x2a0c67(0x122);var _0x162288={};_0x162288[_0x2a0c67(0xfe)]=_0x2a0c67(0x107),_0x162288[_0x2a0c67(0x127)]='Field',_0x162288[_0x2a0c67(0x139)]=[_0x1e1daa,_0x557e6d];var _0x570880={};_0x570880[_0x2a0c67(0x127)]=_0x2a0c67(0xea),_0x570880['name']='fieldsUi',_0x570880['placeholder']=_0x2a0c67(0x14c),_0x570880['type']='fixedCollection',_0x570880[_0x2a0c67(0x12b)]=_0x3e5a44,_0x570880[_0x2a0c67(0xfd)]=_0x3c69e2,_0x570880[_0x2a0c67(0x14b)]={},_0x570880['options']=[_0x162288];var _0xd9e641={};_0xd9e641[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)],_0xd9e641[_0x2a0c67(0xf9)]=[_0x2a0c67(0x126),_0x2a0c67(0x116)];var _0x2c7530={};_0x2c7530['show']=_0xd9e641;var _0x17094d={};_0x17094d['loadOptionsMethod']=_0x2a0c67(0x157);var _0x33ce25={};_0x33ce25[_0x2a0c67(0x127)]=_0x2a0c67(0x15a),_0x33ce25[_0x2a0c67(0xfe)]='select',_0x33ce25['type']='multiOptions',_0x33ce25[_0x2a0c67(0x12b)]=_0x17094d,_0x33ce25[_0x2a0c67(0x14b)]=[],_0x33ce25['description']='Fields\x20to\x20return.\x20Switch\x20to\x20expression\x20mode\x20to\x20type\x20manually.';var _0x3cfe38={};_0x3cfe38['multipleValues']=!![];var _0x4afe7b={};_0x4afe7b[_0x2a0c67(0x131)]=_0x2a0c67(0x157);var _0x3a6706={};_0x3a6706[_0x2a0c67(0x127)]='Column',_0x3a6706[_0x2a0c67(0xfe)]=_0x2a0c67(0x11f),_0x3a6706[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0x3a6706[_0x2a0c67(0x12b)]=_0x4afe7b,_0x3a6706[_0x2a0c67(0x14b)]='',_0x3a6706[_0x2a0c67(0x12d)]=_0x2a0c67(0xfa);var _0x27154a={};_0x27154a[_0x2a0c67(0xfe)]='Equals',_0x27154a[_0x2a0c67(0x129)]='eq';var _0x5f1818={};_0x5f1818[_0x2a0c67(0xfe)]='Not\x20Equals',_0x5f1818['value']='ne';var _0x137daf={};_0x137daf[_0x2a0c67(0xfe)]=_0x2a0c67(0xf2),_0x137daf['value']='gt';var _0x350e30={};_0x350e30[_0x2a0c67(0xfe)]='Greater\x20or\x20Equal',_0x350e30['value']='ge';var _0x355892={};_0x355892['name']=_0x2a0c67(0x158),_0x355892['value']='lt';var _0x5d0c8c={};_0x5d0c8c[_0x2a0c67(0xfe)]=_0x2a0c67(0x102),_0x5d0c8c[_0x2a0c67(0x129)]='le';var _0xd8011d={};_0xd8011d[_0x2a0c67(0xfe)]=_0x2a0c67(0xec),_0xd8011d[_0x2a0c67(0x129)]=_0x2a0c67(0xfc);var _0x17a156={};_0x17a156[_0x2a0c67(0xfe)]='Starts\x20With',_0x17a156[_0x2a0c67(0x129)]=_0x2a0c67(0x123);var _0x367697={};_0x367697['name']=_0x2a0c67(0x138),_0x367697[_0x2a0c67(0x129)]=_0x2a0c67(0x152);var _0xe5a633={};_0xe5a633[_0x2a0c67(0x127)]='Operator',_0xe5a633[_0x2a0c67(0xfe)]=_0x2a0c67(0x14d),_0xe5a633[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0xe5a633[_0x2a0c67(0x106)]=[_0x27154a,_0x5f1818,_0x137daf,_0x350e30,_0x355892,_0x5d0c8c,_0xd8011d,_0x17a156,_0x367697],_0xe5a633[_0x2a0c67(0x14b)]='eq';var _0x1195b2={};_0x1195b2[_0x2a0c67(0x127)]=_0x2a0c67(0x114),_0x1195b2['name']=_0x2a0c67(0x129),_0x1195b2['type']=_0x2a0c67(0x12e),_0x1195b2[_0x2a0c67(0x14b)]='';var _0x10e525={};_0x10e525['displayName']=_0x2a0c67(0x143),_0x10e525[_0x2a0c67(0xfe)]='filterValues',_0x10e525['values']=[_0x3a6706,_0xe5a633,_0x1195b2];var _0x413423={};_0x413423[_0x2a0c67(0x127)]=_0x2a0c67(0x137),_0x413423[_0x2a0c67(0xfe)]=_0x2a0c67(0x11b),_0x413423[_0x2a0c67(0x12c)]=_0x2a0c67(0xf1),_0x413423[_0x2a0c67(0x12b)]=_0x3cfe38,_0x413423[_0x2a0c67(0x14b)]={},_0x413423[_0x2a0c67(0x106)]=[_0x10e525];var _0x22dfeb={};_0x22dfeb['multipleValues']=!![];var _0x5b1741={};_0x5b1741[_0x2a0c67(0x131)]=_0x2a0c67(0x157);var _0x35bd9a={};_0x35bd9a[_0x2a0c67(0x127)]=_0x2a0c67(0x101),_0x35bd9a[_0x2a0c67(0xfe)]=_0x2a0c67(0x11f),_0x35bd9a[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0x35bd9a[_0x2a0c67(0x12b)]=_0x5b1741,_0x35bd9a[_0x2a0c67(0x14b)]='',_0x35bd9a[_0x2a0c67(0x12d)]=_0x2a0c67(0x10f);var _0x23f6f8={};_0x23f6f8[_0x2a0c67(0xfe)]=_0x2a0c67(0x10a),_0x23f6f8['value']='asc';var _0xbf0bed={};function _0x4435(_0x2cb1cb,_0x2b864c){_0x2cb1cb=_0x2cb1cb-0xe4;var _0x5b1982=_0x5b19();var _0x44352a=_0x5b1982[_0x2cb1cb];if(_0x4435['dzUdMh']===undefined){var _0x298f49=function(_0x2779b3){var _0x67409a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1f5a13='',_0x3a0e82='';for(var _0x1deea6=0x0,_0x25ce11,_0x37f0e6,_0x458a72=0x0;_0x37f0e6=_0x2779b3['charAt'](_0x458a72++);~_0x37f0e6&&(_0x25ce11=_0x1deea6%0x4?_0x25ce11*0x40+_0x37f0e6:_0x37f0e6,_0x1deea6++%0x4)?_0x1f5a13+=String['fromCharCode'](0xff&_0x25ce11>>(-0x2*_0x1deea6&0x6)):0x0){_0x37f0e6=_0x67409a['indexOf'](_0x37f0e6);}for(var _0x60310d=0x0,_0x316a59=_0x1f5a13['length'];_0x60310d<_0x316a59;_0x60310d++){_0x3a0e82+='%'+('00'+_0x1f5a13['charCodeAt'](_0x60310d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a0e82);};_0x4435['HkcYpd']=_0x298f49,_0x4435['YdWuxR']={},_0x4435['dzUdMh']=!![];}var _0x3da017=_0x5b1982[0x0],_0x45c24f=_0x2cb1cb+_0x3da017,_0xa4d189=_0x4435['YdWuxR'][_0x45c24f];return!_0xa4d189?(_0x44352a=_0x4435['HkcYpd'](_0x44352a),_0x4435['YdWuxR'][_0x45c24f]=_0x44352a):_0x44352a=_0xa4d189,_0x44352a;}_0xbf0bed[_0x2a0c67(0xfe)]=_0x2a0c67(0x154),_0xbf0bed['value']=_0x2a0c67(0x13a);var _0x5e6195={};_0x5e6195[_0x2a0c67(0x127)]=_0x2a0c67(0xfb),_0x5e6195['name']=_0x2a0c67(0x13e),_0x5e6195['type']=_0x2a0c67(0x106),_0x5e6195['options']=[_0x23f6f8,_0xbf0bed],_0x5e6195[_0x2a0c67(0x14b)]=_0x2a0c67(0x141);var _0x53b184={};_0x53b184['displayName']=_0x2a0c67(0x12a),_0x53b184[_0x2a0c67(0xfe)]=_0x2a0c67(0xf8),_0x53b184[_0x2a0c67(0x139)]=[_0x35bd9a,_0x5e6195];var _0x3e3143={};_0x3e3143[_0x2a0c67(0x127)]='Order\x20By',_0x3e3143[_0x2a0c67(0xfe)]=_0x2a0c67(0x13c),_0x3e3143[_0x2a0c67(0x12c)]=_0x2a0c67(0xf1),_0x3e3143['typeOptions']=_0x22dfeb,_0x3e3143[_0x2a0c67(0x14b)]={},_0x3e3143[_0x2a0c67(0x106)]=[_0x53b184];var _0x2b54ef={};_0x2b54ef[_0x2a0c67(0x131)]=_0x2a0c67(0x156);var _0x85067c={};_0x85067c[_0x2a0c67(0x127)]=_0x2a0c67(0x10c),_0x85067c[_0x2a0c67(0xfe)]=_0x2a0c67(0x108),_0x85067c[_0x2a0c67(0x12c)]=_0x2a0c67(0x113),_0x85067c[_0x2a0c67(0x12b)]=_0x2b54ef,_0x85067c[_0x2a0c67(0x14b)]=[],_0x85067c['description']=_0x2a0c67(0xe9);var _0x308fb3={};_0x308fb3[_0x2a0c67(0x127)]=_0x2a0c67(0x134),_0x308fb3[_0x2a0c67(0xfe)]=_0x2a0c67(0xf0),_0x308fb3['type']=_0x2a0c67(0x10e),_0x308fb3[_0x2a0c67(0x14b)]='',_0x308fb3[_0x2a0c67(0x12d)]=_0x2a0c67(0x117);var _0x4d5169={};_0x4d5169['displayName']=_0x2a0c67(0x145),_0x4d5169[_0x2a0c67(0xfe)]=_0x2a0c67(0xe7),_0x4d5169['type']=_0x2a0c67(0x111),_0x4d5169[_0x2a0c67(0xf4)]='Add\x20Option',_0x4d5169[_0x2a0c67(0x14b)]={},_0x4d5169[_0x2a0c67(0xfd)]=_0x2c7530,_0x4d5169[_0x2a0c67(0x106)]=[_0x33ce25,_0x413423,_0x3e3143,_0x85067c,_0x308fb3];var _0x58b71e={};_0x58b71e[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)],_0x58b71e[_0x2a0c67(0xf9)]=[_0x2a0c67(0x116)];var _0x4b98ab={};_0x4b98ab[_0x2a0c67(0xe5)]=_0x58b71e;var _0x544155={};_0x544155[_0x2a0c67(0x14e)]=0x1,_0x544155[_0x2a0c67(0x132)]=0x3e8;var _0x1dca37={};_0x1dca37[_0x2a0c67(0x127)]=_0x2a0c67(0x103),_0x1dca37[_0x2a0c67(0xfe)]=_0x2a0c67(0xef),_0x1dca37['type']='number',_0x1dca37[_0x2a0c67(0xfd)]=_0x4b98ab,_0x1dca37[_0x2a0c67(0x12b)]=_0x544155,_0x1dca37[_0x2a0c67(0x14b)]=0x32,_0x1dca37[_0x2a0c67(0x12d)]=_0x2a0c67(0x136);function _0x5b19(){var _0x4a7cee=['BgLTAxq','C2LUy2u','zML4zwrdB2XSzwn0Aw9U','r3jLyxrLCIbuAgfU','r2v0ig1HBNKGzw50AxrPzxm','CgXHy2vOB2XKzxi','ywn0Aw9U','mtu4mffmBuj4Dq','q3vZDg9TievUDgL0Eq','C29YDfzHBhvLCW','B3bLCMf0Aw9U','vgHLignVBhvTBIb0BYbMAwX0zxiGB24Uifn3AxrJAcb0BYbLEhbYzxnZAw9Uig1VzguGDg8GDhLWzsbTyw51ywXSEs4','rgLYzwn0Aw9U','y29UDgfPBNm','zgLZCgXHEu9WDgLVBNm','BMfTzq','rMLLBgqGtMfTzq','vgHLig5HBwuGB2yGDgHLigzPzwXKigLUifbYAw9YAxr5lIbtD2L0y2GGDg8GzxHWCMvZC2LVBIbTB2rLihrVihr5CguGBwfUDwfSBhKU','q29SDw1U','tgvZCYbVCIbfCxvHBa','tgLTAxq','r2v0','C2TPCa','B3b0Aw9UCW','zMLLBgrwywX1zxm','zxHWyw5K','mtCWntm0nhb6vuHptG','qxnJzw5KAw5N','u3vWCgXPzxjZ','rxHWyw5K','rgvSzxrLigfUigvUDgL0Eq','zgf0zvrPBwu','vgHLignVBhvTBIb0BYbZB3j0igj5lIbtD2L0y2GGDg8GzxHWCMvZC2LVBIbTB2rLihrVihr5CguGBwfUDwfSBhKU','CMvXDwLYzwq','y29SBgvJDgLVBG','CMvZB3vYy2u','BxvSDgLpChrPB25Z','vMfSDwu','q3jLyxrL','z2v0qwXS','t25SEsbYzxr1CM4GCMvJB3jKCYbTB2rPzMLLzcbZAw5Jzsb0AgLZigrHDguVDgLTzsaOzM9YigLUy3jLBwvUDgfSihn5BMmP','rgvSzxrL','vgHLieLeig9MihrOzsbLBNrPDhK','zw50Axr5rMLLBgrZ','zMLSDgvYCW','mJC1ngjeDhP2Aq','vgHLihr5CguGB2yGzw50Axr5ihrVihDVCMSGD2L0Aa','vgHLig5HBwuGB2yGDgHLign1C3rVBsbLBNrPDhKGAw4GuhjPB3jPDhKUifn3AxrJAcb0BYbLEhbYzxnZAw9Uig1VzguGDg8GDhLWzsbTyw51ywXSEs4','y29SDw1U','zw50Axr5','zMLLBgroyw1L','vgHLihzHBhvLihrVihnLDcbMB3iGDgHLigzPzwXK','C3rHCNrZD2L0Aa','mtKWt2HlvxH5','u1vqueXjrvjt','z2v0','zgLZCgXHEu5HBwu','zw50Axr5swq','DMfSDwu','u29YDa','DhLWzu9WDgLVBNm','DhLWzq','zgvZy3jPChrPB24','C3rYAw5N','DxbKyxrL','t1jervjt','Bg9Hze9WDgLVBNnnzxrOB2q','Bwf4vMfSDwu','BNvTyMvY','u2LUy2uGkenOyw5NzsbuCMfJA2LUzYK','q3jLyxrLigfUigvUDgL0Eq','sg93ig1HBNKGCMvZDwX0CYb0BYbYzxr1CM4','rMLSDgvYCW','rw5KCYbxAxrO','DMfSDwvZ','zgvZyW','mZC2nJG3meLSCgrhEG','B3jKzxjcEq','z2v0rM9YBxm','zgLYzwn0Aw9U','svrftvm','mJy2otq5ovz2qNvYBW','yxnJ','r2v0igfUigvUDgL0Eq','rMLSDgvY','zw50Axr5vhLWzq','qwrKAxrPB25HBcbpChrPB25Z','zw50Axr5t3bLCMf0Aw9UCW','q1vtve9nrvjt','x19LC01VzhvSzq','BM9eyxrHrxHWCMvZC2LVBG','mtu3mteWog1RCKXPqq','zgvMyxvSDa','qwrKiezPzwXK','B3bLCMf0B3i','BwLUvMfSDwu','zgvSzxrL','y3jLyxrL','otaWExrtCKff','zw5KC3DPDgG','mJaYnJC2nfrADxL4rq','rgvZy2vUzgLUzW','y3vZDg9T','z2v0u3vIrM9YBxm','z2v0rM9YBunVBhvTBNm','tgvZCYbuAgfU','mta1mdrJy1zAtwe','u2vSzwn0iezPzwXKCW','q3jLyxrLigeGBMv3igvUDgL0Eq','q3vZDg9TievUDgL0Esboyw1L','vxbKyxrLigfUigvUDgL0Eq','rw50Axr5ieLe','C2HVDW','u2TPCa','ywrKAxrPB25HBe9WDgLVBNm','mtjtzeneyNu','uMvSyxrLzcbZDwiTzM9YBxmGDg8GAw5JBhvKzs4Gu3DPDgnOihrVigv4ChjLC3nPB24GBw9Kzsb0BYb0ExbLig1HBNvHBgX5lG','rMLLBgrZ','t3bLCMf0Aw9U','q29UDgfPBNm','tNvTyMvYig9MihjLC3vSDhmGDg8GC2TPCcaOzM9YihbHz2LUyxrPB24P','zgvMAw5LuhjVCgvYDhK'];_0x5b19=function(){return _0x4a7cee;};return _0x5b19();}var _0x46db78={};_0x46db78[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)],_0x46db78['operation']=['getAll'];var _0x1bfa09={};_0x1bfa09[_0x2a0c67(0xe5)]=_0x46db78;var _0x3a4079={};_0x3a4079[_0x2a0c67(0x14e)]=0x0;var _0x3ecfc7={};_0x3ecfc7['displayName']=_0x2a0c67(0xe6),_0x3ecfc7[_0x2a0c67(0xfe)]=_0x2a0c67(0x105),_0x3ecfc7[_0x2a0c67(0x12c)]=_0x2a0c67(0x133),_0x3ecfc7[_0x2a0c67(0xfd)]=_0x1bfa09,_0x3ecfc7[_0x2a0c67(0x12b)]=_0x3a4079,_0x3ecfc7['default']=0x0,_0x3ecfc7[_0x2a0c67(0x12d)]=_0x2a0c67(0xed),exports[_0x2a0c67(0x11a)]=[_0x3710a9,_0x46c810,_0x3ce10b,_0x570880,_0x4d5169,_0x1dca37,_0x3ecfc7];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.entityFields = exports.entityOperations = void 0;
4
+ exports.entityOperations = {
5
+ displayName: 'Operation',
6
+ name: 'operation',
7
+ type: 'options',
8
+ noDataExpression: true,
9
+ displayOptions: {
10
+ show: {
11
+ resource: ['entity'],
12
+ },
13
+ },
14
+ options: [
15
+ {
16
+ name: 'Create',
17
+ value: 'create',
18
+ description: 'Create a new entity',
19
+ action: 'Create an entity',
20
+ },
21
+ {
22
+ name: 'Delete',
23
+ value: 'delete',
24
+ description: 'Delete an entity',
25
+ action: 'Delete an entity',
26
+ },
27
+ {
28
+ name: 'Get',
29
+ value: 'get',
30
+ description: 'Get an entity',
31
+ action: 'Get an entity',
32
+ },
33
+ {
34
+ name: 'Get Many',
35
+ value: 'getAll',
36
+ description: 'Get many entities',
37
+ action: 'Get many entities',
38
+ },
39
+ {
40
+ name: 'Update',
41
+ value: 'update',
42
+ description: 'Update an entity',
43
+ action: 'Update an entity',
44
+ },
45
+ ],
46
+ default: 'get',
47
+ };
48
+ exports.entityFields = [
49
+ {
50
+ displayName: 'Entity Type',
51
+ name: 'entityType',
52
+ type: 'options',
53
+ required: true,
54
+ displayOptions: {
55
+ show: {
56
+ resource: ['entity'],
57
+ },
58
+ },
59
+ options: [
60
+ { name: 'Customers', value: 'CUSTOMERS' },
61
+ { name: 'Items', value: 'ITEMS' },
62
+ { name: 'Orders', value: 'ORDERS' },
63
+ { name: 'Invoices', value: 'INVOICES' },
64
+ { name: 'Suppliers', value: 'SUPPLIERS' },
65
+ { name: 'Custom Entity', value: 'custom' },
66
+ ],
67
+ default: 'CUSTOMERS',
68
+ description: 'The type of entity to work with',
69
+ },
70
+ {
71
+ displayName: 'Custom Entity Name',
72
+ name: 'customEntityName',
73
+ type: 'options',
74
+ typeOptions: {
75
+ loadOptionsMethod: 'getForms',
76
+ },
77
+ required: true,
78
+ displayOptions: {
79
+ show: {
80
+ resource: ['entity'],
81
+ entityType: ['custom'],
82
+ },
83
+ },
84
+ default: '',
85
+ description: 'The name of the custom entity in Priority. Switch to expression mode to type manually.',
86
+ },
87
+ {
88
+ displayName: 'Entity ID',
89
+ name: 'entityId',
90
+ type: 'string',
91
+ required: true,
92
+ displayOptions: {
93
+ show: {
94
+ resource: ['entity'],
95
+ operation: ['get', 'update', 'delete'],
96
+ },
97
+ },
98
+ default: '',
99
+ description: 'The ID of the entity',
100
+ },
101
+ {
102
+ displayName: 'Fields',
103
+ name: 'fieldsUi',
104
+ placeholder: 'Add Field',
105
+ type: 'fixedCollection',
106
+ typeOptions: {
107
+ multipleValues: true,
108
+ },
109
+ displayOptions: {
110
+ show: {
111
+ resource: ['entity'],
112
+ operation: ['create', 'update'],
113
+ },
114
+ },
115
+ default: {},
116
+ options: [
117
+ {
118
+ name: 'fieldValues',
119
+ displayName: 'Field',
120
+ values: [
121
+ {
122
+ displayName: 'Field Name',
123
+ name: 'fieldName',
124
+ type: 'options',
125
+ typeOptions: {
126
+ loadOptionsMethod: 'getFormColumns',
127
+ },
128
+ default: '',
129
+ description: 'The name of the field in Priority. Switch to expression mode to type manually.',
130
+ },
131
+ {
132
+ displayName: 'Field Value',
133
+ name: 'fieldValue',
134
+ type: 'string',
135
+ default: '',
136
+ description: 'The value to set for the field',
137
+ },
138
+ ],
139
+ },
140
+ ],
141
+ },
142
+ {
143
+ displayName: 'Additional Options',
144
+ name: 'additionalOptions',
145
+ type: 'collection',
146
+ placeholder: 'Add Option',
147
+ default: {},
148
+ displayOptions: {
149
+ show: {
150
+ resource: ['entity'],
151
+ operation: ['get', 'getAll'],
152
+ },
153
+ },
154
+ options: [
155
+ {
156
+ displayName: 'Select Fields',
157
+ name: 'select',
158
+ type: 'multiOptions',
159
+ typeOptions: {
160
+ loadOptionsMethod: 'getFormColumns',
161
+ },
162
+ default: [],
163
+ description: 'Fields to return. Switch to expression mode to type manually.',
164
+ },
165
+ {
166
+ displayName: 'Filters',
167
+ name: 'filters',
168
+ type: 'fixedCollection',
169
+ typeOptions: { multipleValues: true },
170
+ default: {},
171
+ options: [
172
+ {
173
+ displayName: 'Filter',
174
+ name: 'filterValues',
175
+ values: [
176
+ {
177
+ displayName: 'Column',
178
+ name: 'column',
179
+ type: 'options',
180
+ typeOptions: { loadOptionsMethod: 'getFormColumns' },
181
+ default: '',
182
+ description: 'The column to filter on. Switch to expression mode to type manually.',
183
+ },
184
+ {
185
+ displayName: 'Operator',
186
+ name: 'operator',
187
+ type: 'options',
188
+ options: [
189
+ { name: 'Equals', value: 'eq' },
190
+ { name: 'Not Equals', value: 'ne' },
191
+ { name: 'Greater Than', value: 'gt' },
192
+ { name: 'Greater or Equal', value: 'ge' },
193
+ { name: 'Less Than', value: 'lt' },
194
+ { name: 'Less or Equal', value: 'le' },
195
+ { name: 'Contains', value: 'contains' },
196
+ { name: 'Starts With', value: 'startswith' },
197
+ { name: 'Ends With', value: 'endswith' },
198
+ ],
199
+ default: 'eq',
200
+ },
201
+ {
202
+ displayName: 'Value',
203
+ name: 'value',
204
+ type: 'string',
205
+ default: '',
206
+ },
207
+ ],
208
+ },
209
+ ],
210
+ },
211
+ {
212
+ displayName: 'Order By',
213
+ name: 'orderBy',
214
+ type: 'fixedCollection',
215
+ typeOptions: { multipleValues: true },
216
+ default: {},
217
+ options: [
218
+ {
219
+ displayName: 'Sort',
220
+ name: 'sortValues',
221
+ values: [
222
+ {
223
+ displayName: 'Column',
224
+ name: 'column',
225
+ type: 'options',
226
+ typeOptions: { loadOptionsMethod: 'getFormColumns' },
227
+ default: '',
228
+ description: 'The column to sort by. Switch to expression mode to type manually.',
229
+ },
230
+ {
231
+ displayName: 'Direction',
232
+ name: 'direction',
233
+ type: 'options',
234
+ options: [
235
+ { name: 'Ascending', value: 'asc' },
236
+ { name: 'Descending', value: 'desc' },
237
+ ],
238
+ default: 'asc',
239
+ },
240
+ ],
241
+ },
242
+ ],
243
+ },
244
+ {
245
+ displayName: 'Expand',
246
+ name: 'expand',
247
+ type: 'multiOptions',
248
+ typeOptions: {
249
+ loadOptionsMethod: 'getSubForms',
250
+ },
251
+ default: [],
252
+ description: 'Related sub-forms to include. Switch to expression mode to type manually.',
253
+ },
254
+ {
255
+ displayName: 'Since (Change Tracking)',
256
+ name: 'since',
257
+ type: 'dateTime',
258
+ default: '',
259
+ description: 'Only return records modified since this date/time (for incremental sync)',
260
+ },
261
+ ],
262
+ },
263
+ {
264
+ displayName: 'Limit',
265
+ name: 'limit',
266
+ type: 'number',
267
+ displayOptions: {
268
+ show: {
269
+ resource: ['entity'],
270
+ operation: ['getAll'],
271
+ },
272
+ },
273
+ typeOptions: {
274
+ minValue: 1,
275
+ maxValue: 1000,
276
+ },
277
+ default: 50,
278
+ description: 'How many results to return',
279
+ },
280
+ {
281
+ displayName: 'Skip',
282
+ name: 'skip',
283
+ type: 'number',
284
+ displayOptions: {
285
+ show: {
286
+ resource: ['entity'],
287
+ operation: ['getAll'],
288
+ },
289
+ },
290
+ typeOptions: {
291
+ minValue: 0,
292
+ },
293
+ default: 0,
294
+ description: 'Number of results to skip (for pagination)',
295
+ },
296
+ ];
@@ -1 +1,35 @@
1
- 'use strict';const _0x1a4294=_0x1d1b;(function(_0x377ef6,_0x253a4e){const _0x2ac61b={_0x32023f:0x10d,_0xff0171:0x123,_0x2a1ce8:0x109,_0x190832:0x11a,_0x20b059:0x11d},_0x557ca6=_0x1d1b,_0x298a52=_0x377ef6();while(!![]){try{const _0x45a2c2=parseInt(_0x557ca6(0x126))/0x1*(-parseInt(_0x557ca6(_0x2ac61b._0x32023f))/0x2)+-parseInt(_0x557ca6(_0x2ac61b._0xff0171))/0x3+-parseInt(_0x557ca6(0x119))/0x4*(-parseInt(_0x557ca6(_0x2ac61b._0x2a1ce8))/0x5)+-parseInt(_0x557ca6(_0x2ac61b._0x190832))/0x6*(parseInt(_0x557ca6(_0x2ac61b._0x20b059))/0x7)+parseInt(_0x557ca6(0x108))/0x8*(-parseInt(_0x557ca6(0x121))/0x9)+parseInt(_0x557ca6(0x112))/0xa*(parseInt(_0x557ca6(0x10b))/0xb)+parseInt(_0x557ca6(0x124))/0xc;if(_0x45a2c2===_0x253a4e)break;else _0x298a52['push'](_0x298a52['shift']());}catch(_0x188444){_0x298a52['push'](_0x298a52['shift']());}}}(_0x51c9,0x519e2));function _0x1d1b(_0x7efe43,_0x46a2e5){_0x7efe43=_0x7efe43-0x107;const _0x51c9bf=_0x51c9();let _0x1d1b02=_0x51c9bf[_0x7efe43];if(_0x1d1b['QZkzKE']===undefined){var _0x561ab8=function(_0xde0099){const _0x37a07c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b2654='',_0x132cc7='';for(let _0xbcb095=0x0,_0x70775f,_0xa682ce,_0x51a609=0x0;_0xa682ce=_0xde0099['charAt'](_0x51a609++);~_0xa682ce&&(_0x70775f=_0xbcb095%0x4?_0x70775f*0x40+_0xa682ce:_0xa682ce,_0xbcb095++%0x4)?_0x3b2654+=String['fromCharCode'](0xff&_0x70775f>>(-0x2*_0xbcb095&0x6)):0x0){_0xa682ce=_0x37a07c['indexOf'](_0xa682ce);}for(let _0x54b2bc=0x0,_0x51cc3b=_0x3b2654['length'];_0x54b2bc<_0x51cc3b;_0x54b2bc++){_0x132cc7+='%'+('00'+_0x3b2654['charCodeAt'](_0x54b2bc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x132cc7);};_0x1d1b['yRMteq']=_0x561ab8,_0x1d1b['FIYxNF']={},_0x1d1b['QZkzKE']=!![];}const _0x4adc09=_0x51c9bf[0x0],_0x1bf717=_0x7efe43+_0x4adc09,_0x2c8668=_0x1d1b['FIYxNF'][_0x1bf717];return!_0x2c8668?(_0x1d1b02=_0x1d1b['yRMteq'](_0x1d1b02),_0x1d1b['FIYxNF'][_0x1bf717]=_0x1d1b02):_0x1d1b02=_0x2c8668,_0x1d1b02;}const _0x4d80db={};_0x4d80db[_0x1a4294(0x10e)]=!![],Object[_0x1a4294(0x125)](exports,_0x1a4294(0x116),_0x4d80db),exports['get']=get;function _0x51c9(){const _0x32065e=['DMfSDwu','uff1t0m','A0DTwgy','yNvPBgrprgf0yvf1zxj5','odiWu2vjDxPY','zMLSDgvYvMfSDwvZ','yNvPBgrpCMrLCKj5u3rYAw5N','txnisKK','x19LC01VzhvSzq','s3Hcwui','BgvUz3rO','ngf0t0Hmwa','mZm2nJC4thjSDfzd','l2fWAs8','lI4VlI4VDhjHBNnWB3j0l3bYAw9YAxr5qxbP','mJHkA1f4vfO','B3jKzxjcEq','lI4VlI4VAgvSCgvYCY9Vzgf0yq','ywrKAxrPB25HBe9WDgLVBNm','ndmXodj5rMX6u2m','C29YDfzHBhvLCW','mteXnJCYnKH5wfLPBW','mtmYmZq3ndbqt0Pqrwy','zgvMAw5LuhjVCgvYDhK','mJjOrgvwyNu','z2jLv2i','y29UBMvJDgLVBLr5Cgu','CM91DgvY','z2v0tM9KzvbHCMfTzxrLCG','C2vSzwn0','nZC2wurQsxfl','mteYmZq5nxLmCgTiua','zMLSDgvYCW','ntm5mZniCxDUzeC','zxHWyw5K','mZaYotr6vxbMz04'];_0x51c9=function(){return _0x32065e;};return _0x51c9();}const odata_1=require(_0x1a4294(0x11f)),priorityApi_1=require(_0x1a4294(0x11c));async function get(_0x4ee799,_0x536c04,_0x1f0107,_0x5f3b22){const _0x58dc62={_0x12a423:0x120,_0x1fb1d6:0x110,_0x46564d:0x10f,_0x1042b0:0x12a,_0x314592:0x115,_0x47628d:0x10a,_0x186119:0x113,_0x2372f2:0x118,_0x339d56:0x11e,_0x4fd6c2:0x114,_0x30e32d:0x111,_0x641ca1:0x117,_0x28d58b:0x10c,_0x478012:0x128,_0x228e97:0x129,_0x30e60c:0x11b},_0x477f2b=_0x1a4294,_0x586fcc={};_0x586fcc['PQuOC']='entityId',_0x586fcc['MsHJI']=_0x477f2b(_0x58dc62._0x12a423),_0x586fcc[_0x477f2b(0x117)]=function(_0x3ac958,_0x3a7984){return _0x3ac958||_0x3a7984;},_0x586fcc[_0x477f2b(0x127)]=function(_0x4548ae,_0x77fbe8){return _0x4548ae===_0x77fbe8;},_0x586fcc[_0x477f2b(_0x58dc62._0x1fb1d6)]='GET';const _0x4b246f=_0x586fcc,_0x5c1e17=_0x4ee799[_0x477f2b(0x12a)](_0x4b246f[_0x477f2b(_0x58dc62._0x46564d)],_0x536c04),_0x34c3dd=_0x4ee799[_0x477f2b(_0x58dc62._0x1042b0)](_0x4b246f[_0x477f2b(_0x58dc62._0x314592)],_0x536c04);let _0x170abe='';if(_0x34c3dd[_0x477f2b(0x10a)]){const _0x1a6cd5=_0x34c3dd[_0x477f2b(_0x58dc62._0x47628d)],_0x4df90e=_0x1a6cd5[_0x477f2b(_0x58dc62._0x186119)];_0x4df90e?.[_0x477f2b(_0x58dc62._0x2372f2)]&&(_0x170abe=(0x0,odata_1['buildFilterString'])(_0x4df90e));}let _0x33ef15='';if(_0x34c3dd['orderBy']){const _0x2268bf=_0x34c3dd[_0x477f2b(_0x58dc62._0x339d56)],_0x29e261=_0x2268bf[_0x477f2b(0x122)];_0x29e261?.[_0x477f2b(_0x58dc62._0x2372f2)]&&(_0x33ef15=(0x0,odata_1[_0x477f2b(_0x58dc62._0x4fd6c2)])(_0x29e261));}const _0x5cdb83=(0x0,odata_1[_0x477f2b(_0x58dc62._0x30e32d)])({'select':_0x34c3dd[_0x477f2b(0x107)],'filter':_0x4b246f[_0x477f2b(_0x58dc62._0x641ca1)](_0x170abe,undefined),'orderby':_0x33ef15||undefined,'expand':_0x34c3dd[_0x477f2b(_0x58dc62._0x28d58b)]}),_0x32ce0a=_0x4b246f['gbeWb'](_0x1f0107[_0x477f2b(_0x58dc62._0x478012)],_0x477f2b(_0x58dc62._0x228e97))?'/'+_0x5f3b22+'(\x27'+_0x5c1e17+'\x27)':_0x477f2b(_0x58dc62._0x30e60c)+_0x5f3b22+'(\x27'+_0x5c1e17+'\x27)';return(0x0,priorityApi_1['priorityApiRequest'])(_0x4ee799,_0x4b246f[_0x477f2b(_0x58dc62._0x1fb1d6)],_0x32ce0a,_0x1f0107,undefined,_0x5cdb83);}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.get = get;
4
+ const odata_1 = require("../../helpers/odata");
5
+ const priorityApi_1 = require("../../transport/priorityApi");
6
+ async function get(execFns, index, context, entityName) {
7
+ const entityId = execFns.getNodeParameter('entityId', index);
8
+ const additionalOptions = execFns.getNodeParameter('additionalOptions', index);
9
+ let filterString = '';
10
+ if (additionalOptions.filters) {
11
+ const filtersObj = additionalOptions.filters;
12
+ const filterValues = filtersObj.filterValues;
13
+ if (filterValues?.length) {
14
+ filterString = (0, odata_1.buildFilterString)(filterValues);
15
+ }
16
+ }
17
+ let orderbyString = '';
18
+ if (additionalOptions.orderBy) {
19
+ const orderByObj = additionalOptions.orderBy;
20
+ const sortValues = orderByObj.sortValues;
21
+ if (sortValues?.length) {
22
+ orderbyString = (0, odata_1.buildOrderByString)(sortValues);
23
+ }
24
+ }
25
+ const qs = (0, odata_1.buildODataQuery)({
26
+ select: additionalOptions.select,
27
+ filter: filterString || undefined,
28
+ orderby: orderbyString || undefined,
29
+ expand: additionalOptions.expand,
30
+ });
31
+ const urlPath = context.connectionType === 'router'
32
+ ? `/${entityName}('${entityId}')`
33
+ : `/api/${entityName}('${entityId}')`;
34
+ return (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
35
+ }
@@ -1 +1,43 @@
1
- 'use strict';const _0x2984e7=_0x1e8a;(function(_0x5b20ad,_0xce3ffb){const _0x25068d={_0xae13b9:0x1e0,_0x7015d5:0x1e2,_0x4e585b:0x1db},_0x374b59=_0x1e8a,_0x23923e=_0x5b20ad();while(!![]){try{const _0x5cb646=-parseInt(_0x374b59(0x1d4))/0x1+parseInt(_0x374b59(0x1e6))/0x2+-parseInt(_0x374b59(_0x25068d._0xae13b9))/0x3*(parseInt(_0x374b59(0x1c9))/0x4)+parseInt(_0x374b59(_0x25068d._0x7015d5))/0x5+parseInt(_0x374b59(0x1dc))/0x6*(-parseInt(_0x374b59(0x1d6))/0x7)+parseInt(_0x374b59(0x1ed))/0x8+parseInt(_0x374b59(_0x25068d._0x4e585b))/0x9*(parseInt(_0x374b59(0x1d3))/0xa);if(_0x5cb646===_0xce3ffb)break;else _0x23923e['push'](_0x23923e['shift']());}catch(_0x3b4198){_0x23923e['push'](_0x23923e['shift']());}}}(_0x12ec,0xb2c22));function _0x12ec(){const _0x1f0e8b=['Bxztqxe','zxHWyw5K','y29UBMvJDgLVBLr5Cgu','DvLwDKS','mZmXmdy4mfDfrvfjuq','C2LUy2u','qM5gEuq','BMzAsfy','ntu2nti2ofb4vfPSrq','BgvUz3rO','B3jKzxjcEq','lI4VlI4VAgvSCgvYCY9Vzgf0yq','zMLSDgvYvMfSDwvZ','l2fWAs8','ywrKAxrPB25HBe9WDgLVBNm','zMLSDgvYCW','x19LC01VzhvSzq','zgvMAw5LuhjVCgvYDhK','otiWnZyXmhLor3bcBW','ntCXnJuZB3b1v2fj','C2TPCa','n2rrqM5SuW','yNvPBgrprgf0yvf1zxj5','DMfSDwu','yNvPBgrgAwX0zxjtDhjPBMC','CM91DgvY','ovLXD1bNDW','mZu3otqXnhDlCNPzwG','AxnbCNjHEq','z2v0tM9KzvbHCMfTzxrLCG','ChjPB3jPDhLbCgLszxf1zxn0','m1nNzeTuwa','yNvPBgrpCMrLCKj5u3rYAw5N','mZK3ndqWmfjMC0D4va','lI4VlI4VDhjHBNnWB3j0l3bYAw9YAxr5qxbP','z2v0twfUEq','DMXOy0y','mJmYnduXngHfvM1Zza','rfLxqvC','C29YDfzHBhvLCW'];_0x12ec=function(){return _0x1f0e8b;};return _0x12ec();}function _0x1e8a(_0x2c6d11,_0x104f0c){_0x2c6d11=_0x2c6d11-0x1c8;const _0x12ec27=_0x12ec();let _0x1e8a66=_0x12ec27[_0x2c6d11];if(_0x1e8a['HuAHKs']===undefined){var _0x458951=function(_0x2146d5){const _0x302343='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bba24='',_0x9ca659='';for(let _0x90e304=0x0,_0x17bcdb,_0x56208e,_0x26e7d=0x0;_0x56208e=_0x2146d5['charAt'](_0x26e7d++);~_0x56208e&&(_0x17bcdb=_0x90e304%0x4?_0x17bcdb*0x40+_0x56208e:_0x56208e,_0x90e304++%0x4)?_0x2bba24+=String['fromCharCode'](0xff&_0x17bcdb>>(-0x2*_0x90e304&0x6)):0x0){_0x56208e=_0x302343['indexOf'](_0x56208e);}for(let _0x340ea0=0x0,_0x544d31=_0x2bba24['length'];_0x340ea0<_0x544d31;_0x340ea0++){_0x9ca659+='%'+('00'+_0x2bba24['charCodeAt'](_0x340ea0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x9ca659);};_0x1e8a['DIRehY']=_0x458951,_0x1e8a['qkNsWy']={},_0x1e8a['HuAHKs']=!![];}const _0x5d4a32=_0x12ec27[0x0],_0x15aa8f=_0x2c6d11+_0x5d4a32,_0x4af18b=_0x1e8a['qkNsWy'][_0x15aa8f];return!_0x4af18b?(_0x1e8a66=_0x1e8a['DIRehY'](_0x1e8a66),_0x1e8a['qkNsWy'][_0x15aa8f]=_0x1e8a66):_0x1e8a66=_0x4af18b,_0x1e8a66;}const _0x37e27d={};_0x37e27d['value']=!![],Object[_0x2984e7(0x1d2)](exports,_0x2984e7(0x1d1),_0x37e27d),exports[_0x2984e7(0x1e4)]=getMany;const odata_1=require(_0x2984e7(0x1cc)),priorityApi_1=require(_0x2984e7(0x1e3));async function getMany(_0xb53de9,_0x65b43d,_0xa3714f,_0x556194){const _0x3ef752={_0x203e71:0x1e7,_0x3f45e9:0x1d5,_0x1353db:0x1ef,_0x2f14a9:0x1c8,_0x1274f4:0x1ef,_0x5c575e:0x1d0,_0x520652:0x1ca,_0x35d435:0x1d9,_0x1917fc:0x1cb,_0x71c87e:0x1e1,_0x398769:0x1ee,_0x43ba21:0x1eb,_0xd5d698:0x1da,_0x28ebcd:0x1ce,_0x460d11:0x1df},_0x15e4ad=_0x2984e7,_0x2e17af={};_0x2e17af[_0x15e4ad(_0x3ef752._0x203e71)]='limit',_0x2e17af[_0x15e4ad(0x1c8)]=_0x15e4ad(_0x3ef752._0x3f45e9),_0x2e17af[_0x15e4ad(_0x3ef752._0x1353db)]=_0x15e4ad(0x1cf),_0x2e17af[_0x15e4ad(0x1e9)]=function(_0x35ba23,_0x28c550){return _0x35ba23||_0x28c550;},_0x2e17af['uYVvK']=function(_0x554e83,_0x4d7ca5){return _0x554e83||_0x4d7ca5;},_0x2e17af[_0x15e4ad(0x1e5)]='GET';const _0x435ac6=_0x2e17af,_0x32948d=_0xb53de9[_0x15e4ad(0x1de)](_0x435ac6[_0x15e4ad(_0x3ef752._0x203e71)],_0x65b43d),_0x5cc80d=_0xb53de9[_0x15e4ad(0x1de)](_0x435ac6[_0x15e4ad(_0x3ef752._0x2f14a9)],_0x65b43d,0x0),_0x148085=_0xb53de9['getNodeParameter'](_0x435ac6[_0x15e4ad(_0x3ef752._0x1274f4)],_0x65b43d);let _0x1e44ab='';if(_0x148085[_0x15e4ad(0x1d0)]){const _0x43eba4=_0x148085[_0x15e4ad(_0x3ef752._0x5c575e)],_0x5b2602=_0x43eba4[_0x15e4ad(0x1cd)];_0x5b2602?.[_0x15e4ad(_0x3ef752._0x520652)]&&(_0x1e44ab=(0x0,odata_1[_0x15e4ad(_0x3ef752._0x35d435)])(_0x5b2602));}let _0x16a4e2='';if(_0x148085[_0x15e4ad(0x1cb)]){const _0x5985be=_0x148085[_0x15e4ad(_0x3ef752._0x1917fc)],_0x5c5a4c=_0x5985be[_0x15e4ad(0x1e8)];_0x5c5a4c?.['length']&&(_0x16a4e2=(0x0,odata_1[_0x15e4ad(_0x3ef752._0x71c87e)])(_0x5c5a4c));}const _0x459b4e=(0x0,odata_1[_0x15e4ad(0x1d7)])({'top':_0x32948d,'skip':_0x5cc80d||undefined,'select':_0x148085['select'],'filter':_0x435ac6['mvSAq'](_0x1e44ab,undefined),'orderby':_0x435ac6[_0x15e4ad(0x1ec)](_0x16a4e2,undefined),'expand':_0x148085[_0x15e4ad(0x1ea)],'since':_0x148085[_0x15e4ad(_0x3ef752._0x398769)]}),_0x45bf12=_0xa3714f[_0x15e4ad(_0x3ef752._0x43ba21)]===_0x15e4ad(_0x3ef752._0xd5d698)?'/'+_0x556194:_0x15e4ad(_0x3ef752._0x28ebcd)+_0x556194,_0x4d0873=await(0x0,priorityApi_1[_0x15e4ad(_0x3ef752._0x460d11)])(_0xb53de9,_0x435ac6['vlhcF'],_0x45bf12,_0xa3714f,undefined,_0x459b4e);if(_0x4d0873['value']&&Array[_0x15e4ad(0x1dd)](_0x4d0873[_0x15e4ad(0x1d8)]))return _0x4d0873[_0x15e4ad(0x1d8)];return[_0x4d0873];}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMany = getMany;
4
+ const odata_1 = require("../../helpers/odata");
5
+ const priorityApi_1 = require("../../transport/priorityApi");
6
+ async function getMany(execFns, index, context, entityName) {
7
+ const limit = execFns.getNodeParameter('limit', index);
8
+ const skip = execFns.getNodeParameter('skip', index, 0);
9
+ const additionalOptions = execFns.getNodeParameter('additionalOptions', index);
10
+ let filterString = '';
11
+ if (additionalOptions.filters) {
12
+ const filtersObj = additionalOptions.filters;
13
+ const filterValues = filtersObj.filterValues;
14
+ if (filterValues?.length) {
15
+ filterString = (0, odata_1.buildFilterString)(filterValues);
16
+ }
17
+ }
18
+ let orderbyString = '';
19
+ if (additionalOptions.orderBy) {
20
+ const orderByObj = additionalOptions.orderBy;
21
+ const sortValues = orderByObj.sortValues;
22
+ if (sortValues?.length) {
23
+ orderbyString = (0, odata_1.buildOrderByString)(sortValues);
24
+ }
25
+ }
26
+ const qs = (0, odata_1.buildODataQuery)({
27
+ top: limit,
28
+ skip: skip || undefined,
29
+ select: additionalOptions.select,
30
+ filter: filterString || undefined,
31
+ orderby: orderbyString || undefined,
32
+ expand: additionalOptions.expand,
33
+ since: additionalOptions.since,
34
+ });
35
+ const urlPath = context.connectionType === 'router'
36
+ ? `/${entityName}`
37
+ : `/api/${entityName}`;
38
+ const response = await (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
39
+ if (response.value && Array.isArray(response.value)) {
40
+ return response.value;
41
+ }
42
+ return [response];
43
+ }
@@ -1 +1,16 @@
1
- 'use strict';var _0x17da2b=_0x2647;(function(_0x33b117,_0x1860ac){var _0x335380={_0x3c6402:0x12a,_0xf0345b:0x12c,_0x4d7d9b:0x120,_0x4b89c4:0x129,_0x5e5d2e:0x11e,_0x1f86f0:0x12e},_0x38a70d=_0x2647,_0x201cf3=_0x33b117();while(!![]){try{var _0x2223ea=parseInt(_0x38a70d(_0x335380._0x3c6402))/0x1*(-parseInt(_0x38a70d(0x12d))/0x2)+-parseInt(_0x38a70d(0x123))/0x3+-parseInt(_0x38a70d(_0x335380._0xf0345b))/0x4+-parseInt(_0x38a70d(0x11f))/0x5*(-parseInt(_0x38a70d(_0x335380._0x4d7d9b))/0x6)+-parseInt(_0x38a70d(_0x335380._0x4b89c4))/0x7*(parseInt(_0x38a70d(_0x335380._0x5e5d2e))/0x8)+parseInt(_0x38a70d(0x12f))/0x9*(parseInt(_0x38a70d(_0x335380._0x1f86f0))/0xa)+parseInt(_0x38a70d(0x126))/0xb*(parseInt(_0x38a70d(0x118))/0xc);if(_0x2223ea===_0x1860ac)break;else _0x201cf3['push'](_0x201cf3['shift']());}catch(_0x44915f){_0x201cf3['push'](_0x201cf3['shift']());}}}(_0x25ea,0x90fac));function _0x25ea(){var _0x3b1435=['lI9Nzxrnyw55lM9WzxjHDgLVBG','zgvSzxrLrw50Axr5','z2v0twfUEq','mZi0t2LowKr0','y3jLyxrL','lI91CgrHDguUB3bLCMf0Aw9U','lI9KzwXLDguUB3bLCMf0Aw9U','x19LC01VzhvSzq','lI9JCMvHDguUB3bLCMf0Aw9U','ohfbCeDOCq','mtKWBMnAqK1H','mti5ndm4A010CLLY','z2v0','lI9LBNrPDhKUChjVCgvYDgLLCW','mtq1mte5m2Tyu0rHsW','zgvMAw5LuhjVCgvYDhK','DxbKyxrL','nJiXmdGYq3Lwrhb6','lI9NzxqUB3bLCMf0Aw9U','zw51BwvYywjSzq','otmWmdu1sNPVBKfp','ntG3EwvnyxDO','zw50Axr5rMLLBgrZ','nde2mJiXnKj5vvj0Ba','nZq2rwTLChHy','mJKYmZbfshHcvKK','mZG3vu9zqvPK','zw50Axr5t3bLCMf0Aw9UCW'];_0x25ea=function(){return _0x3b1435;};return _0x25ea();}var _0x454e13={};_0x454e13['value']=!![],Object[_0x17da2b(0x124)](exports,_0x17da2b(0x11c),_0x454e13),exports[_0x17da2b(0x132)]=exports['update']=exports[_0x17da2b(0x133)]=exports[_0x17da2b(0x121)]=exports[_0x17da2b(0x119)]=exports[_0x17da2b(0x12b)]=exports[_0x17da2b(0x130)]=void 0x0;function _0x2647(_0x2913cf,_0x2f5187){_0x2913cf=_0x2913cf-0x118;var _0x25ea64=_0x25ea();var _0x2647b8=_0x25ea64[_0x2913cf];if(_0x2647['efQDWc']===undefined){var _0x31c523=function(_0xdcfd70){var _0xf834a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xfe87b6='',_0x11a9ee='';for(var _0x325293=0x0,_0x6e9dde,_0x1875da,_0x103786=0x0;_0x1875da=_0xdcfd70['charAt'](_0x103786++);~_0x1875da&&(_0x6e9dde=_0x325293%0x4?_0x6e9dde*0x40+_0x1875da:_0x1875da,_0x325293++%0x4)?_0xfe87b6+=String['fromCharCode'](0xff&_0x6e9dde>>(-0x2*_0x325293&0x6)):0x0){_0x1875da=_0xf834a['indexOf'](_0x1875da);}for(var _0x2a8812=0x0,_0x4d886e=_0xfe87b6['length'];_0x2a8812<_0x4d886e;_0x2a8812++){_0x11a9ee+='%'+('00'+_0xfe87b6['charCodeAt'](_0x2a8812)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x11a9ee);};_0x2647['JQnbdj']=_0x31c523,_0x2647['MnIjrM']={},_0x2647['efQDWc']=!![];}var _0x3c5d43=_0x25ea64[0x0],_0x18bd43=_0x2913cf+_0x3c5d43,_0x1fe819=_0x2647['MnIjrM'][_0x18bd43];return!_0x1fe819?(_0x2647b8=_0x2647['JQnbdj'](_0x2647b8),_0x2647['MnIjrM'][_0x18bd43]=_0x2647b8):_0x2647b8=_0x1fe819,_0x2647b8;}var entity_properties_1=require(_0x17da2b(0x122)),_0x3b982e={};_0x3b982e[_0x17da2b(0x128)]=!![],_0x3b982e[_0x17da2b(0x121)]=function(){var _0x404f41={_0x5b1e60:0x130},_0x4cc6fd=_0x17da2b;return entity_properties_1[_0x4cc6fd(_0x404f41._0x5b1e60)];},Object['defineProperty'](exports,_0x17da2b(0x130),_0x3b982e);var _0x4f633d={};_0x4f633d['enumerable']=!![],_0x4f633d[_0x17da2b(0x121)]=function(){return entity_properties_1['entityFields'];},Object[_0x17da2b(0x124)](exports,'entityFields',_0x4f633d);var create_operation_1=require(_0x17da2b(0x11d)),_0x241ee9={};_0x241ee9[_0x17da2b(0x128)]=!![],_0x241ee9[_0x17da2b(0x121)]=function(){var _0x522ee4={_0x5c600b:0x119},_0x2a493c=_0x17da2b;return create_operation_1[_0x2a493c(_0x522ee4._0x5c600b)];},Object[_0x17da2b(0x124)](exports,_0x17da2b(0x119),_0x241ee9);var get_operation_1=require(_0x17da2b(0x127)),_0x6c1477={};_0x6c1477[_0x17da2b(0x128)]=!![],_0x6c1477[_0x17da2b(0x121)]=function(){var _0x56a1ba={_0x3ba468:0x121},_0x37285e=_0x17da2b;return get_operation_1[_0x37285e(_0x56a1ba._0x3ba468)];},Object[_0x17da2b(0x124)](exports,_0x17da2b(0x121),_0x6c1477);var getMany_operation_1=require(_0x17da2b(0x131)),_0xf15d9f={};_0xf15d9f[_0x17da2b(0x128)]=!![],_0xf15d9f[_0x17da2b(0x121)]=function(){var _0x2abb21={_0x826a7e:0x133},_0x569351=_0x17da2b;return getMany_operation_1[_0x569351(_0x2abb21._0x826a7e)];},Object['defineProperty'](exports,'getMany',_0xf15d9f);var update_operation_1=require(_0x17da2b(0x11a)),_0x4eb93f={};_0x4eb93f[_0x17da2b(0x128)]=!![],_0x4eb93f[_0x17da2b(0x121)]=function(){var _0x47b75e=_0x17da2b;return update_operation_1[_0x47b75e(0x125)];},Object[_0x17da2b(0x124)](exports,'update',_0x4eb93f);var delete_operation_1=require(_0x17da2b(0x11b)),_0xcae74a={};_0xcae74a['enumerable']=!![],_0xcae74a[_0x17da2b(0x121)]=function(){return delete_operation_1['deleteEntity'];},Object['defineProperty'](exports,_0x17da2b(0x132),_0xcae74a);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteEntity = exports.update = exports.getMany = exports.get = exports.create = exports.entityFields = exports.entityOperations = void 0;
4
+ var entity_properties_1 = require("./entity.properties");
5
+ Object.defineProperty(exports, "entityOperations", { enumerable: true, get: function () { return entity_properties_1.entityOperations; } });
6
+ Object.defineProperty(exports, "entityFields", { enumerable: true, get: function () { return entity_properties_1.entityFields; } });
7
+ var create_operation_1 = require("./create.operation");
8
+ Object.defineProperty(exports, "create", { enumerable: true, get: function () { return create_operation_1.create; } });
9
+ var get_operation_1 = require("./get.operation");
10
+ Object.defineProperty(exports, "get", { enumerable: true, get: function () { return get_operation_1.get; } });
11
+ var getMany_operation_1 = require("./getMany.operation");
12
+ Object.defineProperty(exports, "getMany", { enumerable: true, get: function () { return getMany_operation_1.getMany; } });
13
+ var update_operation_1 = require("./update.operation");
14
+ Object.defineProperty(exports, "update", { enumerable: true, get: function () { return update_operation_1.update; } });
15
+ var delete_operation_1 = require("./delete.operation");
16
+ Object.defineProperty(exports, "deleteEntity", { enumerable: true, get: function () { return delete_operation_1.deleteEntity; } });
@@ -1 +1,14 @@
1
- 'use strict';const _0x4c2a9a=_0x462f;(function(_0x3d4824,_0x5754f7){const _0x170143={_0x2cf25f:0x1d0,_0x22911:0x1ce,_0x47f6cf:0x1dc,_0x500da1:0x1dd,_0x36e739:0x1e6,_0x4734ce:0x1d4,_0xf7a39f:0x1d2},_0x556721=_0x462f,_0x43ceec=_0x3d4824();while(!![]){try{const _0x5ea1ef=parseInt(_0x556721(0x1d9))/0x1+parseInt(_0x556721(_0x170143._0x2cf25f))/0x2+-parseInt(_0x556721(_0x170143._0x22911))/0x3*(-parseInt(_0x556721(0x1da))/0x4)+-parseInt(_0x556721(_0x170143._0x47f6cf))/0x5+-parseInt(_0x556721(_0x170143._0x500da1))/0x6*(-parseInt(_0x556721(_0x170143._0x36e739))/0x7)+parseInt(_0x556721(_0x170143._0x4734ce))/0x8+parseInt(_0x556721(_0x170143._0xf7a39f))/0x9*(-parseInt(_0x556721(0x1e1))/0xa);if(_0x5ea1ef===_0x5754f7)break;else _0x43ceec['push'](_0x43ceec['shift']());}catch(_0x4a4fdf){_0x43ceec['push'](_0x43ceec['shift']());}}}(_0x3c18,0x84c36));function _0x3c18(){const _0x4278b1=['ndGWmZG2mgfNCvHQBa','ntGYndjIqKDmu3a','zw50Axr5swq','qunnqLC','DMfSDwu','mtKXndG5mgzXs1PSqq','wwXqweS','x19LC01VzhvSzq','zMLLBgrZvwK','z2v0tM9KzvbHCMfTzxrLCG','mJfAv25rDMm','lI4VlI4VAgvSCgvYCY91DgLSCW','mtK4mtv5vfDqsNK','ChjPB3jPDhLbCgLszxf1zxn0','ndq0mJaYy3rpsMnk','zxH0CMfJDezPzwXKvMfSDwvZ','mtHcq0fjzuG','z21JAwG','ndyYmtG2nendsu5gvW','l2fWAs8','lI4VlI4VDhjHBNnWB3j0l3bYAw9YAxr5qxbP','zgvMAw5LuhjVCgvYDhK','D0zfBw8','nZa4nti4qK9ewgf0','mJeYtMrgrKzn','CM91DgvY'];_0x3c18=function(){return _0x4278b1;};return _0x3c18();}function _0x462f(_0x2d6f22,_0x4e48f5){_0x2d6f22=_0x2d6f22-0x1ce;const _0x3c1894=_0x3c18();let _0x462ff5=_0x3c1894[_0x2d6f22];if(_0x462f['eXcslO']===undefined){var _0x522a3b=function(_0x2c558a){const _0xe34691='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5aac0b='',_0x4b7253='';for(let _0x20d94a=0x0,_0x260d70,_0xddbd5c,_0x4855da=0x0;_0xddbd5c=_0x2c558a['charAt'](_0x4855da++);~_0xddbd5c&&(_0x260d70=_0x20d94a%0x4?_0x260d70*0x40+_0xddbd5c:_0xddbd5c,_0x20d94a++%0x4)?_0x5aac0b+=String['fromCharCode'](0xff&_0x260d70>>(-0x2*_0x20d94a&0x6)):0x0){_0xddbd5c=_0xe34691['indexOf'](_0xddbd5c);}for(let _0x237b63=0x0,_0xe396b7=_0x5aac0b['length'];_0x237b63<_0xe396b7;_0x237b63++){_0x4b7253+='%'+('00'+_0x5aac0b['charCodeAt'](_0x237b63)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b7253);};_0x462f['BDRWwN']=_0x522a3b,_0x462f['CpmaeJ']={},_0x462f['eXcslO']=!![];}const _0x3bc2bb=_0x3c1894[0x0],_0x27c16c=_0x2d6f22+_0x3bc2bb,_0x4da7ef=_0x462f['CpmaeJ'][_0x27c16c];return!_0x4da7ef?(_0x462ff5=_0x462f['BDRWwN'](_0x462ff5),_0x462f['CpmaeJ'][_0x27c16c]=_0x462ff5):_0x462ff5=_0x4da7ef,_0x462ff5;}const _0x1a8fde={};_0x1a8fde[_0x4c2a9a(0x1e0)]=!![],Object[_0x4c2a9a(0x1d7)](exports,_0x4c2a9a(0x1e3),_0x1a8fde),exports['update']=update;const utils_1=require(_0x4c2a9a(0x1e7)),priorityApi_1=require(_0x4c2a9a(0x1d6));async function update(_0x15e4b3,_0x12ce90,_0x3f8222,_0xfd656b){const _0x5bcae0={_0x114e4b:0x1de,_0x545c77:0x1db,_0x4a31f7:0x1e5,_0x48c9c7:0x1e2,_0x5da061:0x1d1,_0x1a3890:0x1d5},_0x230773=_0x4c2a9a,_0x31e572={};_0x31e572[_0x230773(0x1df)]=_0x230773(_0x5bcae0._0x114e4b),_0x31e572[_0x230773(0x1e2)]=_0x230773(0x1e4),_0x31e572[_0x230773(0x1d3)]=function(_0x49e564,_0x5071c5){return _0x49e564===_0x5071c5;},_0x31e572[_0x230773(0x1d8)]=_0x230773(_0x5bcae0._0x545c77);const _0x723b1f=_0x31e572,_0x51ba9f=_0x15e4b3['getNodeParameter'](_0x723b1f['ACMBW'],_0x12ce90),_0x5495fb=_0x15e4b3[_0x230773(_0x5bcae0._0x4a31f7)](_0x723b1f[_0x230773(_0x5bcae0._0x48c9c7)],_0x12ce90),_0x1ca2bd=(0x0,utils_1[_0x230773(_0x5bcae0._0x5da061)])(_0x5495fb),_0x24e7e8=_0x723b1f[_0x230773(0x1d3)](_0x3f8222['connectionType'],_0x723b1f[_0x230773(0x1d8)])?'/'+_0xfd656b+'(\x27'+_0x51ba9f+'\x27)':_0x230773(_0x5bcae0._0x1a3890)+_0xfd656b+'(\x27'+_0x51ba9f+'\x27)';return(0x0,priorityApi_1[_0x230773(0x1cf)])(_0x15e4b3,'PATCH',_0x24e7e8,_0x3f8222,_0x1ca2bd);}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.update = update;
4
+ const utils_1 = require("../../helpers/utils");
5
+ const priorityApi_1 = require("../../transport/priorityApi");
6
+ async function update(execFns, index, context, entityName) {
7
+ const entityId = execFns.getNodeParameter('entityId', index);
8
+ const fieldsUi = execFns.getNodeParameter('fieldsUi', index);
9
+ const body = (0, utils_1.extractFieldValues)(fieldsUi);
10
+ const urlPath = context.connectionType === 'router'
11
+ ? `/${entityName}('${entityId}')`
12
+ : `/api/${entityName}('${entityId}')`;
13
+ return (0, priorityApi_1.priorityApiRequest)(execFns, 'PATCH', urlPath, context, body);
14
+ }
@@ -1 +1,23 @@
1
- 'use strict';const _0x2eb63d=_0xeca0;(function(_0x492a30,_0x1b5ebe){const _0x329d03={_0xe7f1f8:0xed,_0x1bb1de:0xde,_0x301ce4:0xfa,_0x49507a:0xf2,_0x513479:0xf1},_0x4e98c2=_0xeca0,_0x402371=_0x492a30();while(!![]){try{const _0x1d119c=parseInt(_0x4e98c2(_0x329d03._0xe7f1f8))/0x1*(parseInt(_0x4e98c2(0xe8))/0x2)+-parseInt(_0x4e98c2(0xdf))/0x3*(-parseInt(_0x4e98c2(_0x329d03._0x1bb1de))/0x4)+parseInt(_0x4e98c2(0xf3))/0x5+-parseInt(_0x4e98c2(0xda))/0x6*(parseInt(_0x4e98c2(_0x329d03._0x301ce4))/0x7)+-parseInt(_0x4e98c2(0xe6))/0x8*(parseInt(_0x4e98c2(0xf0))/0x9)+parseInt(_0x4e98c2(0xdc))/0xa*(parseInt(_0x4e98c2(0xdb))/0xb)+-parseInt(_0x4e98c2(_0x329d03._0x49507a))/0xc*(parseInt(_0x4e98c2(_0x329d03._0x513479))/0xd);if(_0x1d119c===_0x1b5ebe)break;else _0x402371['push'](_0x402371['shift']());}catch(_0x591c23){_0x402371['push'](_0x402371['shift']());}}}(_0x853c,0x91e12));function _0x853c(){const _0x46f6bb=['mZq1nJm1n21MuML3vG','DMfSDwu','BgvUz3rO','zMLSzu5HBwu','l2fWAq','rvHurKLmru5btuu','zMLSzvnPEMu','ndu4odKWne1NEMzerG','r0vu','mZuYz09xyMvi','z2v0tM9KzvbHCMfTzxrLCG','y29UBMvJDgLVBLr5Cgu','rvHurKLmru5btuuSrvHurKLmrurbvee','AgvSCgvYCW','mJq5mwXPCeTjAW','zMLSzuLK','ChjPB3jPDhLbCgLszxf1zxn0','oxHgvhjmDa','otm0n1bdBMLhBG','mJC1mtzqs1vVDxi','nti3mda1nwnOyK5Suq','Bg5iEvq','qKDZwuy','CMvJB3jKswq','ywPZtxK','x19LC01VzhvSzq','zMLSzq','n2voChDqsa','zMLSzxntDwjgB3jT','CM91DgvY','wvntDuS','jYKV','yMLUyxj5','z0rKt0C','B3v0Chv0qMLUyxj5uhjVCgvYDhK','r3jczKm','zgvMAw5LuhjVCgvYDhK','yMDiD2S','yu1oreG','mZqXntm4u25dB2H0','ndqXmuDNrwvkqq','ntC5mffsr1DIyG','rvHurKLmrurbvee','ngXxzKviEq'];_0x853c=function(){return _0x46f6bb;};return _0x853c();}const _0x3c7c3d={};_0x3c7c3d[_0x2eb63d(0xe0)]=!![],Object[_0x2eb63d(0xd7)](exports,_0x2eb63d(0xf8),_0x3c7c3d),exports['download']=download;function _0xeca0(_0xb95e08,_0x3c9057){_0xb95e08=_0xb95e08-0xd6;const _0x853c08=_0x853c();let _0xeca0ff=_0x853c08[_0xb95e08];if(_0xeca0['aQoOUF']===undefined){var _0x2cd686=function(_0x2fcd29){const _0x2dd31b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2cfaba='',_0xb1378e='';for(let _0x390835=0x0,_0x564915,_0x272edd,_0x173ea7=0x0;_0x272edd=_0x2fcd29['charAt'](_0x173ea7++);~_0x272edd&&(_0x564915=_0x390835%0x4?_0x564915*0x40+_0x272edd:_0x272edd,_0x390835++%0x4)?_0x2cfaba+=String['fromCharCode'](0xff&_0x564915>>(-0x2*_0x390835&0x6)):0x0){_0x272edd=_0x2dd31b['indexOf'](_0x272edd);}for(let _0x35647d=0x0,_0x10fa22=_0x2cfaba['length'];_0x35647d<_0x10fa22;_0x35647d++){_0xb1378e+='%'+('00'+_0x2cfaba['charCodeAt'](_0x35647d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb1378e);};_0xeca0['kQDjdh']=_0x2cd686,_0xeca0['ToXFQj']={},_0xeca0['aQoOUF']=!![];}const _0x318948=_0x853c08[0x0],_0xf3d7b1=_0xb95e08+_0x318948,_0xb88b52=_0xeca0['ToXFQj'][_0xf3d7b1];return!_0xb88b52?(_0xeca0ff=_0xeca0['kQDjdh'](_0xeca0ff),_0xeca0['ToXFQj'][_0xf3d7b1]=_0xeca0ff):_0xeca0ff=_0xb88b52,_0xeca0ff;}const priorityApi_1=require('../../transport/priorityApi');async function download(_0x5c9810,_0x7688b9,_0x296ce){const _0x17ae2e={_0x1a075f:0xd8,_0x212781:0xf7,_0xc5c158:0xfc,_0x32ac80:0xe3,_0x535363:0xfd,_0x5d2391:0xeb,_0x54a409:0xee,_0x22c60d:0xe9,_0x15c29a:0xea,_0x3c5ebb:0xf4,_0x410e64:0xe7,_0x2a83a0:0xe4,_0x32e9ea:0xdd,_0x25a138:0xe2},_0x242f0f=_0x2eb63d,_0x3a70a2={};_0x3a70a2[_0x242f0f(0xd9)]='formName',_0x3a70a2[_0x242f0f(_0x17ae2e._0x1a075f)]=_0x242f0f(0xf6),_0x3a70a2[_0x242f0f(0xf5)]=_0x242f0f(0x101),_0x3a70a2[_0x242f0f(_0x17ae2e._0x212781)]=function(_0x3611a6,_0x55054c){return _0x3611a6===_0x55054c;},_0x3a70a2[_0x242f0f(0xd6)]=_0x242f0f(_0x17ae2e._0xc5c158),_0x3a70a2['lnHyT']=_0x242f0f(_0x17ae2e._0x32ac80),_0x3a70a2[_0x242f0f(_0x17ae2e._0x535363)]=_0x242f0f(_0x17ae2e._0x5d2391),_0x3a70a2[_0x242f0f(0x100)]=_0x242f0f(0xf9);const _0x58ba94=_0x3a70a2,_0x34ff2=_0x5c9810[_0x242f0f(0xe9)](_0x58ba94[_0x242f0f(0xd9)],_0x7688b9),_0x1bb86f=_0x5c9810['getNodeParameter'](_0x58ba94['bgHwk'],_0x7688b9),_0xf0b057=_0x5c9810['getNodeParameter'](_0x242f0f(0xfb),_0x7688b9),_0x5d7a6b=_0x5c9810['getNodeParameter'](_0x242f0f(_0x17ae2e._0x54a409),_0x7688b9),_0x5ca239=_0x5c9810[_0x242f0f(_0x17ae2e._0x22c60d)](_0x58ba94[_0x242f0f(0xf5)],_0x7688b9),_0x105005=_0x58ba94[_0x242f0f(0xf7)](_0x296ce[_0x242f0f(_0x17ae2e._0x15c29a)],_0x58ba94['GrBfC'])?'':_0x58ba94[_0x242f0f(_0x17ae2e._0x3c5ebb)],_0x1bcc78=_0x105005+'/'+_0x34ff2+'(\x27'+_0x1bb86f+_0x242f0f(0xfe)+_0xf0b057+'(\x27'+_0x5d7a6b+'\x27)',_0x64f900={};_0x64f900['$select']=_0x58ba94[_0x242f0f(0xfd)];const _0x1ec7e0=_0x64f900,_0x6aac53=await(0x0,priorityApi_1[_0x242f0f(0xef)])(_0x5c9810,_0x242f0f(_0x17ae2e._0x410e64),_0x1bcc78,_0x296ce,undefined,_0x1ec7e0),_0x4caf91=_0x6aac53[_0x242f0f(_0x17ae2e._0x2a83a0)]||_0x58ba94[_0x242f0f(0x100)],_0x4aa05a=_0x6aac53[_0x242f0f(_0x17ae2e._0x32e9ea)],_0x3b7baf=Buffer['from'](_0x4aa05a,'base64'),_0x2ab60b=await _0x5c9810[_0x242f0f(0xec)]['prepareBinaryData'](_0x3b7baf,_0x4caf91),_0x14529a={};_0x14529a[_0x242f0f(_0x17ae2e._0x25a138)]=_0x4caf91,_0x14529a[_0x242f0f(0xe5)]=_0x3b7baf[_0x242f0f(0xe1)];const _0x126d12={};_0x126d12[_0x5ca239]=_0x2ab60b;const _0x5d3ca={};return _0x5d3ca['json']=_0x14529a,_0x5d3ca[_0x242f0f(0xff)]=_0x126d12,_0x5d3ca;}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.download = download;
4
+ const priorityApi_1 = require("../../transport/priorityApi");
5
+ async function download(execFns, index, context) {
6
+ const formName = execFns.getNodeParameter('formName', index);
7
+ const recordId = execFns.getNodeParameter('recordId', index);
8
+ const filesSubForm = execFns.getNodeParameter('filesSubForm', index);
9
+ const fileId = execFns.getNodeParameter('fileId', index);
10
+ const outputBinaryProperty = execFns.getNodeParameter('outputBinaryProperty', index);
11
+ const prefix = context.connectionType === 'router' ? '' : '/api';
12
+ const urlPath = `${prefix}/${formName}('${recordId}')/${filesSubForm}('${fileId}')`;
13
+ const qs = { $select: 'EXTFILENAME,EXTFILEDATA' };
14
+ const response = await (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
15
+ const fileName = response.EXTFILENAME || 'file';
16
+ const base64Data = response.EXTFILEDATA;
17
+ const buffer = Buffer.from(base64Data, 'base64');
18
+ const binaryData = await execFns.helpers.prepareBinaryData(buffer, fileName);
19
+ return {
20
+ json: { fileName, fileSize: buffer.length },
21
+ binary: { [outputBinaryProperty]: binaryData },
22
+ };
23
+ }