@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,123 @@
1
- 'use strict';var _0x2f9692=_0x4e6d;(function(_0x197372,_0x1530e7){var _0x5f4973={_0x3e79e5:0x1a4,_0x14cf03:0x18e,_0x598c0b:0x1b7,_0x3ac519:0x1a9,_0x19a2b6:0x19c,_0x3f8cd0:0x1a5},_0x2e86df=_0x4e6d,_0x4e6b46=_0x197372();while(!![]){try{var _0x2df27f=-parseInt(_0x2e86df(0x1a0))/0x1+-parseInt(_0x2e86df(_0x5f4973._0x3e79e5))/0x2*(-parseInt(_0x2e86df(_0x5f4973._0x14cf03))/0x3)+-parseInt(_0x2e86df(_0x5f4973._0x598c0b))/0x4*(-parseInt(_0x2e86df(0x1bc))/0x5)+-parseInt(_0x2e86df(0x193))/0x6*(parseInt(_0x2e86df(_0x5f4973._0x3ac519))/0x7)+parseInt(_0x2e86df(0x187))/0x8*(parseInt(_0x2e86df(_0x5f4973._0x19a2b6))/0x9)+parseInt(_0x2e86df(0x191))/0xa*(parseInt(_0x2e86df(_0x5f4973._0x3f8cd0))/0xb)+-parseInt(_0x2e86df(0x192))/0xc;if(_0x2df27f===_0x1530e7)break;else _0x4e6b46['push'](_0x4e6b46['shift']());}catch(_0x328c24){_0x4e6b46['push'](_0x4e6b46['shift']());}}}(_0x3c64,0x9417b));var _0x5aada2={};_0x5aada2[_0x2f9692(0x19d)]=!![],Object[_0x2f9692(0x1b0)](exports,_0x2f9692(0x19b),_0x5aada2),exports[_0x2f9692(0x1b8)]=exports['fileOperations']=void 0x0;var _0xc4c6b9={};_0xc4c6b9['resource']=[_0x2f9692(0x1b1)];var _0x5d6948={};_0x5d6948[_0x2f9692(0x1a8)]=_0xc4c6b9;var _0x49ce31={};_0x49ce31[_0x2f9692(0x18a)]=_0x2f9692(0x182),_0x49ce31[_0x2f9692(0x19d)]=_0x2f9692(0x1a1),_0x49ce31['description']=_0x2f9692(0x183),_0x49ce31[_0x2f9692(0x1b6)]='Upload\x20a\x20file';var _0x28b690={};_0x28b690['name']='Get\x20Files',_0x28b690[_0x2f9692(0x19d)]='getFiles',_0x28b690[_0x2f9692(0x180)]=_0x2f9692(0x1ba),_0x28b690[_0x2f9692(0x1b6)]=_0x2f9692(0x18c);var _0x4d7fea={};_0x4d7fea[_0x2f9692(0x18a)]=_0x2f9692(0x18f),_0x4d7fea[_0x2f9692(0x19d)]='download',_0x4d7fea[_0x2f9692(0x180)]='Download\x20a\x20file\x20attachment',_0x4d7fea['action']=_0x2f9692(0x1ad);var _0x6ef8fa={};_0x6ef8fa[_0x2f9692(0x185)]=_0x2f9692(0x1bd),_0x6ef8fa[_0x2f9692(0x18a)]=_0x2f9692(0x1a2),_0x6ef8fa['type']=_0x2f9692(0x1bb),_0x6ef8fa['noDataExpression']=!![],_0x6ef8fa['displayOptions']=_0x5d6948,_0x6ef8fa[_0x2f9692(0x1bb)]=[_0x49ce31,_0x28b690,_0x4d7fea],_0x6ef8fa[_0x2f9692(0x196)]='upload',exports[_0x2f9692(0x181)]=_0x6ef8fa;var _0x1fcd34={};_0x1fcd34[_0x2f9692(0x19f)]=_0x2f9692(0x1af);var _0x1daaa7={};_0x1daaa7[_0x2f9692(0x198)]=['file'];var _0x4d368b={};_0x4d368b[_0x2f9692(0x1a8)]=_0x1daaa7;var _0x127bb5={};_0x127bb5[_0x2f9692(0x185)]=_0x2f9692(0x19e),_0x127bb5[_0x2f9692(0x18a)]=_0x2f9692(0x1a7),_0x127bb5[_0x2f9692(0x1ab)]=_0x2f9692(0x1bb),_0x127bb5[_0x2f9692(0x199)]=_0x1fcd34,_0x127bb5[_0x2f9692(0x1ac)]=!![],_0x127bb5['displayOptions']=_0x4d368b,_0x127bb5['default']='',_0x127bb5[_0x2f9692(0x180)]='The\x20form\x20that\x20owns\x20the\x20file\x20attachments';var _0x7bdeea={};_0x7bdeea[_0x2f9692(0x198)]=['file'];var _0x13bba4={};_0x13bba4[_0x2f9692(0x1a8)]=_0x7bdeea;var _0x5b628e={};_0x5b628e[_0x2f9692(0x185)]=_0x2f9692(0x186),_0x5b628e[_0x2f9692(0x18a)]=_0x2f9692(0x1b3),_0x5b628e[_0x2f9692(0x1ab)]='string',_0x5b628e[_0x2f9692(0x1ac)]=!![],_0x5b628e[_0x2f9692(0x1aa)]=_0x13bba4,_0x5b628e[_0x2f9692(0x196)]='',_0x5b628e[_0x2f9692(0x180)]='The\x20ID\x20of\x20the\x20record\x20to\x20attach\x20files\x20to';var _0x3eb8a9={};_0x3eb8a9[_0x2f9692(0x19f)]=_0x2f9692(0x1b4);var _0xe16693={};function _0x4e6d(_0x355cb5,_0x13e1f9){_0x355cb5=_0x355cb5-0x17f;var _0x3c649b=_0x3c64();var _0x4e6d86=_0x3c649b[_0x355cb5];if(_0x4e6d['KjCIet']===undefined){var _0x2bd913=function(_0x25693e){var _0x1644d4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5aada2='',_0xc4c6b9='';for(var _0x5d6948=0x0,_0x49ce31,_0x28b690,_0x4d7fea=0x0;_0x28b690=_0x25693e['charAt'](_0x4d7fea++);~_0x28b690&&(_0x49ce31=_0x5d6948%0x4?_0x49ce31*0x40+_0x28b690:_0x28b690,_0x5d6948++%0x4)?_0x5aada2+=String['fromCharCode'](0xff&_0x49ce31>>(-0x2*_0x5d6948&0x6)):0x0){_0x28b690=_0x1644d4['indexOf'](_0x28b690);}for(var _0x6ef8fa=0x0,_0x1fcd34=_0x5aada2['length'];_0x6ef8fa<_0x1fcd34;_0x6ef8fa++){_0xc4c6b9+='%'+('00'+_0x5aada2['charCodeAt'](_0x6ef8fa)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc4c6b9);};_0x4e6d['BlsRpU']=_0x2bd913,_0x4e6d['GFiIdk']={},_0x4e6d['KjCIet']=!![];}var _0x2ae37=_0x3c649b[0x0],_0x4196ec=_0x355cb5+_0x2ae37,_0x49e8f7=_0x4e6d['GFiIdk'][_0x4196ec];return!_0x49e8f7?(_0x4e6d86=_0x4e6d['BlsRpU'](_0x4e6d86),_0x4e6d['GFiIdk'][_0x4196ec]=_0x4e6d86):_0x4e6d86=_0x49e8f7,_0x4e6d86;}_0xe16693[_0x2f9692(0x198)]=[_0x2f9692(0x1b1)];var _0x4cf173={};_0x4cf173['show']=_0xe16693;var _0x30e122={};_0x30e122[_0x2f9692(0x185)]=_0x2f9692(0x1b9),_0x30e122[_0x2f9692(0x18a)]=_0x2f9692(0x1b5),_0x30e122[_0x2f9692(0x1ab)]='options',_0x30e122['typeOptions']=_0x3eb8a9,_0x30e122[_0x2f9692(0x1ac)]=!![],_0x30e122[_0x2f9692(0x1aa)]=_0x4cf173,_0x30e122[_0x2f9692(0x196)]='EXTFILES',_0x30e122[_0x2f9692(0x180)]=_0x2f9692(0x18d);var _0x932282={};_0x932282[_0x2f9692(0x198)]=[_0x2f9692(0x1b1)],_0x932282[_0x2f9692(0x1a2)]=[_0x2f9692(0x189)];var _0x29f537={};_0x29f537[_0x2f9692(0x1a8)]=_0x932282;var _0x5dd7f4={};_0x5dd7f4[_0x2f9692(0x185)]=_0x2f9692(0x1b2),_0x5dd7f4['name']=_0x2f9692(0x190),_0x5dd7f4[_0x2f9692(0x1ab)]=_0x2f9692(0x188),_0x5dd7f4['required']=!![],_0x5dd7f4[_0x2f9692(0x1aa)]=_0x29f537,_0x5dd7f4['default']='',_0x5dd7f4['description']=_0x2f9692(0x18b);function _0x3c64(){var _0x57f945=['BMfTzq','vgHLieLeig9MihrOzsbMAwXLigf0DgfJAg1LBNqGDg8Gzg93BMXVywq','r2v0igzPBguGyxr0ywnOBwvUDhm','vgHLihn1yI1MB3jTihrOyxqGAg9SzhmGzMLSzsbHDhrHy2HTzw50CYaODxn1ywXSEsbfwfrgsuXfuYKUifn3AxrJAcb0BYbLEhbYzxnZAw9Uig1VzguGDg8GDhLWzsbTyw51ywXSEs4','mtiZm2jeu0Dqza','rg93BMXVywq','zMLSzuLK','ntm1mtbZCevmDxy','otC5nZCXmLDQwerbtG','mZzIAKTpwhG','zgf0yq','vgHLig5HBwuGB2yGDgHLigjPBMfYEsbWCM9Wzxj0EsbJB250ywLUAw5NihrOzsbMAwXLihrVihvWBg9Hza','zgvMyxvSDa','rMLSzsbezxnJCMLWDgLVBG','CMvZB3vYy2u','DhLWzu9WDgLVBNm','zMLSzurLC2nYAxb0Aw9U','x19LC01VzhvSzq','ourRCvfoDq','DMfSDwu','rM9YBsboyw1L','Bg9Hze9WDgLVBNnnzxrOB2q','ntKWodq5Dez4yvbz','DxbSB2fK','B3bLCMf0Aw9U','vgHLig5HBwuGB2yGDgHLigjPBMfYEsbWCM9Wzxj0Esb0BYbZDg9Yzsb0AguGzg93BMXVywrLzcbMAwXL','ndaYofDytfPsAq','otLYvffyvum','qMLUyxj5ifbYB3bLCNr5','zM9YBu5HBwu','C2HVDW','nZC5otK2wKnXrgDr','zgLZCgXHEu9WDgLVBNm','DhLWzq','CMvXDwLYzwq','rg93BMXVywqGysbMAwXL','zMLSzu5HBwu','z2v0rM9YBxm','zgvMAw5LuhjVCgvYDhK','zMLSzq','rMLSzsbjra','CMvJB3jKswq','z2v0u3vIrM9YBxm','zMLSzxntDwjgB3jT','ywn0Aw9U','nfnOv3bYCG','zMLSzuzPzwXKCW','rMLSzxmGu3vIluzVCM0','tgLZDcbMAwXLigf0DgfJAg1LBNrZ','B3b0Aw9UCW','ntCZodyYmgnlt3D4sa','t3bLCMf0Aw9U','rMLSzsboyw1L','zgvZy3jPChrPB24','zMLSzu9WzxjHDgLVBNm','vxbSB2fK','vxbSB2fKigeGzMLSzsbHDhrHy2HTzw50','t3v0Chv0iejPBMfYEsbqCM9Wzxj0Eq','zgLZCgXHEu5HBwu','uMvJB3jKieLe','nti3mdC0ngHgs0fnyW','C3rYAw5N','zg93BMXVywq'];_0x3c64=function(){return _0x57f945;};return _0x3c64();}var _0x39fd4d={};_0x39fd4d[_0x2f9692(0x198)]=[_0x2f9692(0x1b1)],_0x39fd4d['operation']=[_0x2f9692(0x1a1)];var _0x41830f={};_0x41830f[_0x2f9692(0x1a8)]=_0x39fd4d;var _0x5bdb92={};_0x5bdb92[_0x2f9692(0x185)]=_0x2f9692(0x1a6),_0x5bdb92['name']='binaryPropertyName',_0x5bdb92['type']=_0x2f9692(0x188),_0x5bdb92[_0x2f9692(0x1ac)]=!![],_0x5bdb92['displayOptions']=_0x41830f,_0x5bdb92[_0x2f9692(0x196)]=_0x2f9692(0x194),_0x5bdb92[_0x2f9692(0x180)]=_0x2f9692(0x195);var _0x37bd26={};_0x37bd26[_0x2f9692(0x198)]=[_0x2f9692(0x1b1)],_0x37bd26[_0x2f9692(0x1a2)]=[_0x2f9692(0x1a1)];var _0x7a6e09={};_0x7a6e09[_0x2f9692(0x1a8)]=_0x37bd26;var _0x34683d={};_0x34683d[_0x2f9692(0x185)]=_0x2f9692(0x17f),_0x34683d[_0x2f9692(0x18a)]=_0x2f9692(0x1ae),_0x34683d[_0x2f9692(0x1ab)]=_0x2f9692(0x188),_0x34683d[_0x2f9692(0x1aa)]=_0x7a6e09,_0x34683d['default']='',_0x34683d[_0x2f9692(0x180)]='Override\x20the\x20file\x20name\x20(leave\x20empty\x20to\x20use\x20original\x20name)';var _0x2e6d55={};_0x2e6d55[_0x2f9692(0x198)]=[_0x2f9692(0x1b1)],_0x2e6d55[_0x2f9692(0x1a2)]=[_0x2f9692(0x1a1)];var _0x16d472={};_0x16d472[_0x2f9692(0x1a8)]=_0x2e6d55;var _0x2afc6f={};_0x2afc6f[_0x2f9692(0x185)]=_0x2f9692(0x197),_0x2afc6f['name']=_0x2f9692(0x19a),_0x2afc6f[_0x2f9692(0x1ab)]=_0x2f9692(0x188),_0x2afc6f['displayOptions']=_0x16d472,_0x2afc6f[_0x2f9692(0x196)]='',_0x2afc6f[_0x2f9692(0x180)]='Optional\x20description\x20for\x20the\x20file\x20attachment';var _0x436975={};_0x436975[_0x2f9692(0x198)]=[_0x2f9692(0x1b1)],_0x436975[_0x2f9692(0x1a2)]=[_0x2f9692(0x189)];var _0x499b53={};_0x499b53[_0x2f9692(0x1a8)]=_0x436975;var _0x4fbdb5={};_0x4fbdb5[_0x2f9692(0x185)]=_0x2f9692(0x184),_0x4fbdb5[_0x2f9692(0x18a)]='outputBinaryProperty',_0x4fbdb5[_0x2f9692(0x1ab)]=_0x2f9692(0x188),_0x4fbdb5[_0x2f9692(0x1ac)]=!![],_0x4fbdb5[_0x2f9692(0x1aa)]=_0x499b53,_0x4fbdb5[_0x2f9692(0x196)]='data',_0x4fbdb5[_0x2f9692(0x180)]=_0x2f9692(0x1a3),exports[_0x2f9692(0x1b8)]=[_0x127bb5,_0x5b628e,_0x30e122,_0x5dd7f4,_0x5bdb92,_0x34683d,_0x2afc6f,_0x4fbdb5];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fileFields = exports.fileOperations = void 0;
4
+ exports.fileOperations = {
5
+ displayName: 'Operation',
6
+ name: 'operation',
7
+ type: 'options',
8
+ noDataExpression: true,
9
+ displayOptions: {
10
+ show: {
11
+ resource: ['file'],
12
+ },
13
+ },
14
+ options: [
15
+ {
16
+ name: 'Upload',
17
+ value: 'upload',
18
+ description: 'Upload a file attachment',
19
+ action: 'Upload a file',
20
+ },
21
+ {
22
+ name: 'Get Files',
23
+ value: 'getFiles',
24
+ description: 'List file attachments',
25
+ action: 'Get file attachments',
26
+ },
27
+ {
28
+ name: 'Download',
29
+ value: 'download',
30
+ description: 'Download a file attachment',
31
+ action: 'Download a file',
32
+ },
33
+ ],
34
+ default: 'upload',
35
+ };
36
+ exports.fileFields = [
37
+ {
38
+ displayName: 'Form Name',
39
+ name: 'formName',
40
+ type: 'options',
41
+ typeOptions: {
42
+ loadOptionsMethod: 'getForms',
43
+ },
44
+ required: true,
45
+ displayOptions: { show: { resource: ['file'] } },
46
+ default: '',
47
+ description: 'The form that owns the file attachments',
48
+ },
49
+ {
50
+ displayName: 'Record ID',
51
+ name: 'recordId',
52
+ type: 'string',
53
+ required: true,
54
+ displayOptions: { show: { resource: ['file'] } },
55
+ default: '',
56
+ description: 'The ID of the record to attach files to',
57
+ },
58
+ {
59
+ displayName: 'Files Sub-Form',
60
+ name: 'filesSubForm',
61
+ type: 'options',
62
+ typeOptions: {
63
+ loadOptionsMethod: 'getSubForms',
64
+ },
65
+ required: true,
66
+ displayOptions: { show: { resource: ['file'] } },
67
+ default: 'EXTFILES',
68
+ description: 'The sub-form that holds file attachments (usually EXTFILES). Switch to expression mode to type manually.',
69
+ },
70
+ {
71
+ displayName: 'File ID',
72
+ name: 'fileId',
73
+ type: 'string',
74
+ required: true,
75
+ displayOptions: {
76
+ show: { resource: ['file'], operation: ['download'] },
77
+ },
78
+ default: '',
79
+ description: 'The ID of the file attachment to download',
80
+ },
81
+ {
82
+ displayName: 'Binary Property',
83
+ name: 'binaryPropertyName',
84
+ type: 'string',
85
+ required: true,
86
+ displayOptions: {
87
+ show: { resource: ['file'], operation: ['upload'] },
88
+ },
89
+ default: 'data',
90
+ description: 'The name of the binary property containing the file to upload',
91
+ },
92
+ {
93
+ displayName: 'File Name',
94
+ name: 'fileName',
95
+ type: 'string',
96
+ displayOptions: {
97
+ show: { resource: ['file'], operation: ['upload'] },
98
+ },
99
+ default: '',
100
+ description: 'Override the file name (leave empty to use original name)',
101
+ },
102
+ {
103
+ displayName: 'File Description',
104
+ name: 'fileDescription',
105
+ type: 'string',
106
+ displayOptions: {
107
+ show: { resource: ['file'], operation: ['upload'] },
108
+ },
109
+ default: '',
110
+ description: 'Optional description for the file attachment',
111
+ },
112
+ {
113
+ displayName: 'Output Binary Property',
114
+ name: 'outputBinaryProperty',
115
+ type: 'string',
116
+ required: true,
117
+ displayOptions: {
118
+ show: { resource: ['file'], operation: ['download'] },
119
+ },
120
+ default: 'data',
121
+ description: 'The name of the binary property to store the downloaded file',
122
+ },
123
+ ];
@@ -1 +1,16 @@
1
- 'use strict';const _0x50d90c=_0x5643;(function(_0x276814,_0x4b8a7d){const _0x587efd={_0x5cfc6c:0x195,_0x52f6c1:0x18b,_0x1e9e9b:0x19e,_0x566640:0x196,_0x21f841:0x18f},_0x327e3a=_0x5643,_0x456ea3=_0x276814();while(!![]){try{const _0x345c87=-parseInt(_0x327e3a(0x198))/0x1*(-parseInt(_0x327e3a(_0x587efd._0x5cfc6c))/0x2)+-parseInt(_0x327e3a(_0x587efd._0x52f6c1))/0x3+parseInt(_0x327e3a(0x199))/0x4*(parseInt(_0x327e3a(0x19b))/0x5)+parseInt(_0x327e3a(_0x587efd._0x1e9e9b))/0x6+parseInt(_0x327e3a(_0x587efd._0x566640))/0x7+-parseInt(_0x327e3a(0x19a))/0x8*(-parseInt(_0x327e3a(_0x587efd._0x21f841))/0x9)+-parseInt(_0x327e3a(0x18d))/0xa;if(_0x345c87===_0x4b8a7d)break;else _0x456ea3['push'](_0x456ea3['shift']());}catch(_0x5c5dcd){_0x456ea3['push'](_0x456ea3['shift']());}}}(_0x39b6,0x1fe60));const _0x5dc271={};_0x5dc271['value']=!![],Object['defineProperty'](exports,'__esModule',_0x5dc271),exports[_0x50d90c(0x18c)]=getFiles;const priorityApi_1=require('../../transport/priorityApi');function _0x5643(_0x4ed109,_0x6d0a16){_0x4ed109=_0x4ed109-0x18b;const _0x39b636=_0x39b6();let _0x564393=_0x39b636[_0x4ed109];if(_0x5643['nWRgTM']===undefined){var _0x2546c5=function(_0x1f8754){const _0x55505c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1142fd='',_0x41c655='';for(let _0x57572f=0x0,_0x168210,_0x397e0d,_0x39aab8=0x0;_0x397e0d=_0x1f8754['charAt'](_0x39aab8++);~_0x397e0d&&(_0x168210=_0x57572f%0x4?_0x168210*0x40+_0x397e0d:_0x397e0d,_0x57572f++%0x4)?_0x1142fd+=String['fromCharCode'](0xff&_0x168210>>(-0x2*_0x57572f&0x6)):0x0){_0x397e0d=_0x55505c['indexOf'](_0x397e0d);}for(let _0x1baa8c=0x0,_0x437cd7=_0x1142fd['length'];_0x1baa8c<_0x437cd7;_0x1baa8c++){_0x41c655+='%'+('00'+_0x1142fd['charCodeAt'](_0x1baa8c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x41c655);};_0x5643['TmWeEZ']=_0x2546c5,_0x5643['GmgiMW']={},_0x5643['nWRgTM']=!![];}const _0x798b93=_0x39b636[0x0],_0x3e8fa6=_0x4ed109+_0x798b93,_0x1b536c=_0x5643['GmgiMW'][_0x3e8fa6];return!_0x1b536c?(_0x564393=_0x5643['TmWeEZ'](_0x564393),_0x5643['GmgiMW'][_0x3e8fa6]=_0x564393):_0x564393=_0x1b536c,_0x564393;}function _0x39b6(){const _0x55baa1=['uM1pzLu','DMfSDwu','z2v0tM9KzvbHCMfTzxrLCG','nenRq0L0Aa','nZG3otq4zfn6Ew13','zMLSzxntDwjgB3jT','nJy4nZnlvxz2sva','mJqYmJHhzgn1q3i','ntC4mtzdsK5Nvxa','mtm1BM1eqwD4','ChjPB3jPDhLbCgLszxf1zxn0','r0vu','otCYmgXoENjNsW','uhnRrey','mtq3mtCXBfvOEw5u','z2v0rMLSzxm','mJm4otGZmgHxCM1Wsq','l2fWAq','ouXNBM1wuG','uff5yvO','CM91DgvY'];_0x39b6=function(){return _0x55baa1;};return _0x39b6();}async function getFiles(_0x21e110,_0x3fd245,_0x5d1e20){const _0x5ad41f={_0x2b4e43:0x190,_0x153fcb:0x192,_0x6113c4:0x197,_0x429c79:0x19f,_0x1b0738:0x18e,_0x12ca3c:0x194,_0x149c53:0x19d,_0x288ff6:0x193,_0x59a0be:0x193},_0x1cdbf1=_0x50d90c,_0xbf67c0={};_0xbf67c0[_0x1cdbf1(_0x5ad41f._0x2b4e43)]='formName',_0xbf67c0[_0x1cdbf1(_0x5ad41f._0x153fcb)]=_0x1cdbf1(_0x5ad41f._0x6113c4),_0xbf67c0[_0x1cdbf1(_0x5ad41f._0x429c79)]=_0x1cdbf1(_0x5ad41f._0x1b0738);const _0x37adf5=_0xbf67c0,_0x3baa54=_0x21e110[_0x1cdbf1(0x194)](_0x37adf5[_0x1cdbf1(0x190)],_0x3fd245),_0x5682e6=_0x21e110[_0x1cdbf1(_0x5ad41f._0x12ca3c)]('recordId',_0x3fd245),_0x26a4c1=_0x21e110[_0x1cdbf1(_0x5ad41f._0x12ca3c)](_0x37adf5['RmOfU'],_0x3fd245),_0x2931d3=_0x5d1e20['connectionType']===_0x1cdbf1(0x191)?'':_0x37adf5[_0x1cdbf1(0x19f)],_0x10aed9=_0x2931d3+'/'+_0x3baa54+'(\x27'+_0x5682e6+'\x27)/'+_0x26a4c1,_0xaf5dd3=await(0x0,priorityApi_1[_0x1cdbf1(0x19c)])(_0x21e110,_0x1cdbf1(_0x5ad41f._0x149c53),_0x10aed9,_0x5d1e20);if(_0xaf5dd3['value']&&Array['isArray'](_0xaf5dd3[_0x1cdbf1(_0x5ad41f._0x288ff6)]))return _0xaf5dd3[_0x1cdbf1(_0x5ad41f._0x59a0be)];return[_0xaf5dd3];}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFiles = getFiles;
4
+ const priorityApi_1 = require("../../transport/priorityApi");
5
+ async function getFiles(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 prefix = context.connectionType === 'router' ? '' : '/api';
10
+ const urlPath = `${prefix}/${formName}('${recordId}')/${filesSubForm}`;
11
+ const response = await (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context);
12
+ if (response.value && Array.isArray(response.value)) {
13
+ return response.value;
14
+ }
15
+ return [response];
16
+ }
@@ -1 +1,12 @@
1
- 'use strict';var _0x2f7117=_0x237a;(function(_0x3e874f,_0x1a102d){var _0xfc5a65={_0x54c0b0:0x1da,_0x27b910:0x1e5,_0xfa59d5:0x1e3,_0xb4e4c4:0x1d6,_0x3026ff:0x1e4,_0x3c680d:0x1ce},_0x5a8185=_0x237a,_0x4400f1=_0x3e874f();while(!![]){try{var _0x57ca50=-parseInt(_0x5a8185(0x1e6))/0x1*(-parseInt(_0x5a8185(0x1d2))/0x2)+parseInt(_0x5a8185(0x1d3))/0x3*(-parseInt(_0x5a8185(_0xfc5a65._0x54c0b0))/0x4)+-parseInt(_0x5a8185(0x1e0))/0x5*(-parseInt(_0x5a8185(0x1d8))/0x6)+-parseInt(_0x5a8185(_0xfc5a65._0x27b910))/0x7*(parseInt(_0x5a8185(_0xfc5a65._0xfa59d5))/0x8)+-parseInt(_0x5a8185(_0xfc5a65._0xb4e4c4))/0x9*(-parseInt(_0x5a8185(_0xfc5a65._0x3026ff))/0xa)+parseInt(_0x5a8185(_0xfc5a65._0x3c680d))/0xb+-parseInt(_0x5a8185(0x1e2))/0xc*(parseInt(_0x5a8185(0x1cf))/0xd);if(_0x57ca50===_0x1a102d)break;else _0x4400f1['push'](_0x4400f1['shift']());}catch(_0x4313a9){_0x4400f1['push'](_0x4400f1['shift']());}}}(_0x3006,0xad825));function _0x237a(_0x2c2baf,_0x261a65){_0x2c2baf=_0x2c2baf-0x1ce;var _0x30066b=_0x3006();var _0x237ae7=_0x30066b[_0x2c2baf];if(_0x237a['VRscaq']===undefined){var _0x99facc=function(_0x523bba){var _0xe3157e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4749a9='',_0x2aea1f='';for(var _0x781ed2=0x0,_0x233159,_0x366ae6,_0x27fda5=0x0;_0x366ae6=_0x523bba['charAt'](_0x27fda5++);~_0x366ae6&&(_0x233159=_0x781ed2%0x4?_0x233159*0x40+_0x366ae6:_0x366ae6,_0x781ed2++%0x4)?_0x4749a9+=String['fromCharCode'](0xff&_0x233159>>(-0x2*_0x781ed2&0x6)):0x0){_0x366ae6=_0xe3157e['indexOf'](_0x366ae6);}for(var _0x4551a5=0x0,_0x2737cd=_0x4749a9['length'];_0x4551a5<_0x2737cd;_0x4551a5++){_0x2aea1f+='%'+('00'+_0x4749a9['charCodeAt'](_0x4551a5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2aea1f);};_0x237a['KglKED']=_0x99facc,_0x237a['vCdlpd']={},_0x237a['VRscaq']=!![];}var _0x53b090=_0x30066b[0x0],_0x2f36cf=_0x2c2baf+_0x53b090,_0x30b7a5=_0x237a['vCdlpd'][_0x2f36cf];return!_0x30b7a5?(_0x237ae7=_0x237a['KglKED'](_0x237ae7),_0x237a['vCdlpd'][_0x2f36cf]=_0x237ae7):_0x237ae7=_0x30b7a5,_0x237ae7;}var _0x14e3e3={};_0x14e3e3['value']=!![],Object[_0x2f7117(0x1e1)](exports,_0x2f7117(0x1dc),_0x14e3e3),exports['download']=exports[_0x2f7117(0x1db)]=exports[_0x2f7117(0x1de)]=exports['fileFields']=exports[_0x2f7117(0x1dd)]=void 0x0;var file_properties_1=require('./file.properties'),_0x2b76d3={};_0x2b76d3[_0x2f7117(0x1d1)]=!![],_0x2b76d3[_0x2f7117(0x1d9)]=function(){var _0x3e9bb9={_0x5f51ee:0x1dd},_0x287e95=_0x2f7117;return file_properties_1[_0x287e95(_0x3e9bb9._0x5f51ee)];},Object['defineProperty'](exports,_0x2f7117(0x1dd),_0x2b76d3);var _0x267dbc={};_0x267dbc[_0x2f7117(0x1d1)]=!![],_0x267dbc['get']=function(){var _0x39a9ab={_0x57cdbd:0x1d7},_0xe5f167=_0x2f7117;return file_properties_1[_0xe5f167(_0x39a9ab._0x57cdbd)];},Object[_0x2f7117(0x1e1)](exports,_0x2f7117(0x1d7),_0x267dbc);var upload_operation_1=require(_0x2f7117(0x1d5)),_0x52b4c6={};function _0x3006(){var _0x268f23=['mtiWEuPQEvPJ','zgvMAw5LuhjVCgvYDhK','mJr2BLjYsMW','nZy0otqZmKXuyNLOtq','odeWsMXJB1bN','n3nJru1buq','nZvgreLVAuS','ntC5mJCYmw1IrvPiza','ndyZmtG2mu9fsxz3ua','zg93BMXVywq','zw51BwvYywjSzq','mti2mdrmtKvwtNm','nJa5mtK1uKfstfj4','lI9NzxrgAwXLCY5VCgvYyxrPB24','lI91CgXVywqUB3bLCMf0Aw9U','nJy2nJnTwxnXzxq','zMLSzuzPzwXKCW','mJK2ntKYDvfRtMLM','z2v0','oe1XruHUBG','z2v0rMLSzxm','x19LC01VzhvSzq','zMLSzu9WzxjHDgLVBNm','DxbSB2fK','lI9KB3DUBg9Hzc5VCgvYyxrPB24'];_0x3006=function(){return _0x268f23;};return _0x3006();}_0x52b4c6[_0x2f7117(0x1d1)]=!![],_0x52b4c6['get']=function(){var _0x2b5adb=_0x2f7117;return upload_operation_1[_0x2b5adb(0x1de)];},Object[_0x2f7117(0x1e1)](exports,_0x2f7117(0x1de),_0x52b4c6);var getFiles_operation_1=require(_0x2f7117(0x1d4)),_0x4c37a1={};_0x4c37a1[_0x2f7117(0x1d1)]=!![],_0x4c37a1[_0x2f7117(0x1d9)]=function(){return getFiles_operation_1['getFiles'];},Object['defineProperty'](exports,_0x2f7117(0x1db),_0x4c37a1);var download_operation_1=require(_0x2f7117(0x1df)),_0x1bc4e3={};_0x1bc4e3[_0x2f7117(0x1d1)]=!![],_0x1bc4e3['get']=function(){var _0xabc42c=_0x2f7117;return download_operation_1[_0xabc42c(0x1d0)];},Object[_0x2f7117(0x1e1)](exports,_0x2f7117(0x1d0),_0x1bc4e3);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.download = exports.getFiles = exports.upload = exports.fileFields = exports.fileOperations = void 0;
4
+ var file_properties_1 = require("./file.properties");
5
+ Object.defineProperty(exports, "fileOperations", { enumerable: true, get: function () { return file_properties_1.fileOperations; } });
6
+ Object.defineProperty(exports, "fileFields", { enumerable: true, get: function () { return file_properties_1.fileFields; } });
7
+ var upload_operation_1 = require("./upload.operation");
8
+ Object.defineProperty(exports, "upload", { enumerable: true, get: function () { return upload_operation_1.upload; } });
9
+ var getFiles_operation_1 = require("./getFiles.operation");
10
+ Object.defineProperty(exports, "getFiles", { enumerable: true, get: function () { return getFiles_operation_1.getFiles; } });
11
+ var download_operation_1 = require("./download.operation");
12
+ Object.defineProperty(exports, "download", { enumerable: true, get: function () { return download_operation_1.download; } });
@@ -1 +1,26 @@
1
- 'use strict';const _0x52542d=_0x154e;(function(_0xbf46b,_0x4c6ed5){const _0x374acc={_0x4ae994:0x14b},_0x1565db=_0x154e,_0x4131b9=_0xbf46b();while(!![]){try{const _0x5b1fa7=parseInt(_0x1565db(0x149))/0x1+-parseInt(_0x1565db(0x14c))/0x2+-parseInt(_0x1565db(0x143))/0x3*(parseInt(_0x1565db(0x14d))/0x4)+-parseInt(_0x1565db(0x14a))/0x5+-parseInt(_0x1565db(_0x374acc._0x4ae994))/0x6*(parseInt(_0x1565db(0x15e))/0x7)+parseInt(_0x1565db(0x13f))/0x8+parseInt(_0x1565db(0x146))/0x9;if(_0x5b1fa7===_0x4c6ed5)break;else _0x4131b9['push'](_0x4131b9['shift']());}catch(_0x3a206c){_0x4131b9['push'](_0x4131b9['shift']());}}}(_0x3c59,0xcdbc8));function _0x154e(_0x5f06a0,_0x56baf0){_0x5f06a0=_0x5f06a0-0x139;const _0x3c59cb=_0x3c59();let _0x154ef6=_0x3c59cb[_0x5f06a0];if(_0x154e['eAXBTp']===undefined){var _0x4825f6=function(_0x12cb50){const _0x1a76bd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49321d='',_0x108331='';for(let _0x4c03af=0x0,_0x52724d,_0x1634e0,_0x398d41=0x0;_0x1634e0=_0x12cb50['charAt'](_0x398d41++);~_0x1634e0&&(_0x52724d=_0x4c03af%0x4?_0x52724d*0x40+_0x1634e0:_0x1634e0,_0x4c03af++%0x4)?_0x49321d+=String['fromCharCode'](0xff&_0x52724d>>(-0x2*_0x4c03af&0x6)):0x0){_0x1634e0=_0x1a76bd['indexOf'](_0x1634e0);}for(let _0x20e900=0x0,_0x94989d=_0x49321d['length'];_0x20e900<_0x94989d;_0x20e900++){_0x108331+='%'+('00'+_0x49321d['charCodeAt'](_0x20e900)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x108331);};_0x154e['XJCYmq']=_0x4825f6,_0x154e['OpwWRV']={},_0x154e['eAXBTp']=!![];}const _0x51d863=_0x3c59cb[0x0],_0x4b5c00=_0x5f06a0+_0x51d863,_0x3884b=_0x154e['OpwWRV'][_0x4b5c00];return!_0x3884b?(_0x154ef6=_0x154e['XJCYmq'](_0x154ef6),_0x154e['OpwWRV'][_0x4b5c00]=_0x154ef6):_0x154ef6=_0x3884b,_0x154ef6;}const _0x17075e={};_0x17075e['value']=!![],Object['defineProperty'](exports,'__esModule',_0x17075e),exports['upload']=upload;const priorityApi_1=require(_0x52542d(0x14e));async function upload(_0x460da2,_0x51334c,_0x1a2dbd){const _0x46f0a6={_0x50f102:0x157,_0x322550:0x140,_0x521fb2:0x13e,_0x134ff2:0x13c,_0x21d2fa:0x151,_0x493dbe:0x142,_0x5ec84a:0x154,_0xf340b0:0x150,_0x10d47d:0x147,_0xa9efb6:0x15d,_0xbbb577:0x153,_0x174946:0x159,_0x4035c7:0x15b},_0x564a3a=_0x52542d,_0x2a17ab={};_0x2a17ab['oYyfb']=_0x564a3a(0x13a),_0x2a17ab[_0x564a3a(_0x46f0a6._0x50f102)]=_0x564a3a(_0x46f0a6._0x322550),_0x2a17ab[_0x564a3a(0x141)]=_0x564a3a(_0x46f0a6._0x521fb2),_0x2a17ab[_0x564a3a(_0x46f0a6._0x134ff2)]=_0x564a3a(0x158),_0x2a17ab[_0x564a3a(0x139)]=_0x564a3a(0x148),_0x2a17ab[_0x564a3a(_0x46f0a6._0x21d2fa)]=function(_0x37afb7,_0x17a277){return _0x37afb7===_0x17a277;},_0x2a17ab[_0x564a3a(0x13d)]=_0x564a3a(0x13b),_0x2a17ab['ZZaLU']=_0x564a3a(0x144);const _0x400298=_0x2a17ab,_0xe04f27=_0x460da2['getNodeParameter'](_0x400298[_0x564a3a(_0x46f0a6._0x493dbe)],_0x51334c),_0x2905c5=_0x460da2[_0x564a3a(_0x46f0a6._0x5ec84a)](_0x564a3a(_0x46f0a6._0xf340b0),_0x51334c),_0x3f3319=_0x460da2[_0x564a3a(0x154)](_0x400298[_0x564a3a(0x157)],_0x51334c),_0x595fba=_0x460da2['getNodeParameter'](_0x564a3a(_0x46f0a6._0x10d47d),_0x51334c),_0x552f31=_0x460da2[_0x564a3a(0x154)](_0x400298[_0x564a3a(0x141)],_0x51334c,''),_0x28db4c=_0x460da2[_0x564a3a(0x154)](_0x400298['MmOVY'],_0x51334c,''),_0x5f81e=_0x460da2['helpers'][_0x564a3a(0x155)](_0x51334c,_0x595fba),_0x5cfa2a=await _0x460da2[_0x564a3a(0x152)][_0x564a3a(0x15c)](_0x51334c,_0x595fba),_0x17860b=_0x5cfa2a[_0x564a3a(0x156)](_0x564a3a(_0x46f0a6._0xa9efb6)),_0x129e4a=_0x552f31||_0x5f81e[_0x564a3a(_0x46f0a6._0x521fb2)]||_0x400298[_0x564a3a(0x139)],_0x39165a={};_0x39165a[_0x564a3a(0x14f)]=_0x129e4a,_0x39165a[_0x564a3a(0x145)]=_0x17860b;const _0x48a25d=_0x39165a;_0x28db4c&&(_0x48a25d[_0x564a3a(0x15a)]=_0x28db4c);const _0xb3aded=_0x400298[_0x564a3a(_0x46f0a6._0x21d2fa)](_0x1a2dbd['connectionType'],_0x400298[_0x564a3a(0x13d)])?'':_0x400298['ZZaLU'],_0x8d3a8c=_0xb3aded+'/'+_0xe04f27+'(\x27'+_0x2905c5+_0x564a3a(_0x46f0a6._0xbbb577)+_0x3f3319;return(0x0,priorityApi_1[_0x564a3a(_0x46f0a6._0x174946)])(_0x460da2,_0x564a3a(_0x46f0a6._0x4035c7),_0x8d3a8c,_0x1a2dbd,_0x48a25d);}function _0x3c59(){const _0x41df6d=['AvHUuuS','B1L5zMi','nJK1mduYEgnHD3jd','l2fWAq','rvHurKLmrurbvee','mtC3mdmYnZL5z0LkDu4','yMLUyxj5uhjVCgvYDhLoyw1L','zMLSzq','mtm5odmYmvHHz0HwBq','mJuWmtG4nvPjrvPeyG','ndm5nZq2nLzuDxLwyG','mJC0mdi5ne5fwfjpEa','ng1WDwP4yW','lI4VlI4VDhjHBNnWB3j0l3bYAw9YAxr5qxbP','rvHurKLmru5btuu','CMvJB3jKswq','u3rjv04','AgvSCgvYCW','jYKV','z2v0tM9KzvbHCMfTzxrLCG','yxnZzxj0qMLUyxj5rgf0yq','Dg9tDhjPBMC','z2v2CM4','zMLSzurLC2nYAxb0Aw9U','ChjPB3jPDhLbCgLszxf1zxn0','rvHurKLmrurfuW','ue9tva','z2v0qMLUyxj5rgf0yuj1zMzLCG','yMfZzty0','n1vKBgn0CG','ALH6svy','zM9YBu5HBwu','CM91DgvY','tw1pvLK','zwPHEfy','zMLSzu5HBwu','mJq5otCWnhvPrxb5wG','zMLSzxntDwjgB3jT'];_0x3c59=function(){return _0x41df6d;};return _0x3c59();}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.upload = upload;
4
+ const priorityApi_1 = require("../../transport/priorityApi");
5
+ async function upload(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 binaryPropertyName = execFns.getNodeParameter('binaryPropertyName', index);
10
+ const fileName = execFns.getNodeParameter('fileName', index, '');
11
+ const fileDescription = execFns.getNodeParameter('fileDescription', index, '');
12
+ const binaryData = execFns.helpers.assertBinaryData(index, binaryPropertyName);
13
+ const dataBuffer = await execFns.helpers.getBinaryDataBuffer(index, binaryPropertyName);
14
+ const base64Data = dataBuffer.toString('base64');
15
+ const actualFileName = fileName || binaryData.fileName || 'file';
16
+ const body = {
17
+ EXTFILENAME: actualFileName,
18
+ EXTFILEDATA: base64Data,
19
+ };
20
+ if (fileDescription) {
21
+ body.EXTFILEDES = fileDescription;
22
+ }
23
+ const prefix = context.connectionType === 'router' ? '' : '/api';
24
+ const urlPath = `${prefix}/${formName}('${recordId}')/${filesSubForm}`;
25
+ return (0, priorityApi_1.priorityApiRequest)(execFns, 'POST', urlPath, context, body);
26
+ }
@@ -1 +1,33 @@
1
- 'use strict';const _0x3995bf=_0x248b;function _0x248b(_0x364e07,_0x28d4f1){_0x364e07=_0x364e07-0x159;const _0x2a976b=_0x2a97();let _0x248ba6=_0x2a976b[_0x364e07];if(_0x248b['TuvqMI']===undefined){var _0x1da76e=function(_0xf6245){const _0x6014f9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x55a175='',_0x35d7be='';for(let _0xf9859e=0x0,_0x4bee82,_0x4759e1,_0xa25a84=0x0;_0x4759e1=_0xf6245['charAt'](_0xa25a84++);~_0x4759e1&&(_0x4bee82=_0xf9859e%0x4?_0x4bee82*0x40+_0x4759e1:_0x4759e1,_0xf9859e++%0x4)?_0x55a175+=String['fromCharCode'](0xff&_0x4bee82>>(-0x2*_0xf9859e&0x6)):0x0){_0x4759e1=_0x6014f9['indexOf'](_0x4759e1);}for(let _0x305fb4=0x0,_0x1552b4=_0x55a175['length'];_0x305fb4<_0x1552b4;_0x305fb4++){_0x35d7be+='%'+('00'+_0x55a175['charCodeAt'](_0x305fb4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35d7be);};_0x248b['NkRiyH']=_0x1da76e,_0x248b['QEIqPJ']={},_0x248b['TuvqMI']=!![];}const _0x219e4d=_0x2a976b[0x0],_0x179bf4=_0x364e07+_0x219e4d,_0x39d4f7=_0x248b['QEIqPJ'][_0x179bf4];return!_0x39d4f7?(_0x248ba6=_0x248b['NkRiyH'](_0x248ba6),_0x248b['QEIqPJ'][_0x179bf4]=_0x248ba6):_0x248ba6=_0x39d4f7,_0x248ba6;}(function(_0x51f00e,_0x2a7d40){const _0x4f5c16={_0x4593a5:0x164,_0x18a63a:0x16a,_0x4d1079:0x167,_0x26b6bb:0x15e,_0x2289f5:0x174},_0x1523f4=_0x248b,_0x189a1a=_0x51f00e();while(!![]){try{const _0x40cad9=parseInt(_0x1523f4(_0x4f5c16._0x4593a5))/0x1*(-parseInt(_0x1523f4(_0x4f5c16._0x18a63a))/0x2)+parseInt(_0x1523f4(0x15f))/0x3+parseInt(_0x1523f4(_0x4f5c16._0x4d1079))/0x4*(-parseInt(_0x1523f4(0x160))/0x5)+parseInt(_0x1523f4(0x16c))/0x6*(parseInt(_0x1523f4(0x15c))/0x7)+-parseInt(_0x1523f4(_0x4f5c16._0x26b6bb))/0x8+parseInt(_0x1523f4(0x16f))/0x9+parseInt(_0x1523f4(_0x4f5c16._0x2289f5))/0xa;if(_0x40cad9===_0x2a7d40)break;else _0x189a1a['push'](_0x189a1a['shift']());}catch(_0x3e6d27){_0x189a1a['push'](_0x189a1a['shift']());}}}(_0x2a97,0x70e4c));const _0x3dca22={};_0x3dca22[_0x3995bf(0x171)]=!![],Object[_0x3995bf(0x173)](exports,_0x3995bf(0x16b),_0x3dca22),exports[_0x3995bf(0x16d)]=activate;const priorityApi_1=require('../../transport/priorityApi');function extractKeyFields(_0x13e725,_0x581ee6,_0x53d391){const _0x50419e={_0x1507ed:0x15a,_0x277ab4:0x165,_0x3cf302:0x15d,_0x3f1489:0x170},_0x178984=_0x3995bf,_0x30891d={};_0x30891d['DSGHx']=function(_0x4a7f08,_0x4026e3){return _0x4a7f08!==_0x4026e3;};const _0x2ae49e=_0x30891d,_0x344728=_0x13e725[_0x178984(_0x50419e._0x1507ed)](_0x53d391,_0x581ee6),_0x264d85={};if(_0x344728&&_0x344728[_0x178984(_0x50419e._0x277ab4)]){const _0x538fce=_0x344728[_0x178984(0x165)];if(Array['isArray'](_0x538fce))for(const _0x1f85d7 of _0x538fce){_0x1f85d7[_0x178984(0x15d)]&&_0x2ae49e[_0x178984(0x15b)](_0x1f85d7['fieldValue'],undefined)&&(_0x264d85[_0x1f85d7[_0x178984(_0x50419e._0x3cf302)]]=_0x1f85d7[_0x178984(_0x50419e._0x3f1489)]);}}return _0x264d85;}async function activate(_0x251d13,_0x1eab86,_0x1102ea){const _0x46f30a={_0x70b1cc:0x162,_0x5ab1e2:0x176,_0x3b6c74:0x15a,_0x4cb448:0x172,_0x3aa5da:0x175,_0x153cbb:0x163,_0x18ff9c:0x169,_0x2fb901:0x161,_0x1023a1:0x16e},_0x123265=_0x3995bf,_0x43f8e3={'wCBfR':_0x123265(_0x46f30a._0x70b1cc),'YJXgQ':_0x123265(0x166),'LErhn':function(_0x27ad30,_0x13f809,_0x187edc,_0x590576){return _0x27ad30(_0x13f809,_0x187edc,_0x590576);},'skFRE':_0x123265(_0x46f30a._0x5ab1e2),'ItOPw':_0x123265(0x159),'kxnVK':function(_0x3731e1,_0x13dece){return _0x3731e1(_0x13dece);},'ovKAy':'POST'},_0x11f0f4=_0x251d13[_0x123265(0x15a)](_0x43f8e3[_0x123265(0x168)],_0x1eab86),_0x337c14=_0x251d13[_0x123265(_0x46f30a._0x3b6c74)](_0x43f8e3['YJXgQ'],_0x1eab86),_0x48e761=_0x43f8e3[_0x123265(_0x46f30a._0x4cb448)](extractKeyFields,_0x251d13,_0x1eab86,_0x43f8e3[_0x123265(_0x46f30a._0x3aa5da)]),_0x11a4ac=await _0x251d13['getCredentials'](_0x43f8e3['ItOPw']),_0x49b1fe=_0x43f8e3['kxnVK'](String,_0x11a4ac['language']||0x3),_0xb5869a={'form':_0x11f0f4,'activate':_0x337c14,..._0x48e761};_0xb5869a[_0x123265(_0x46f30a._0x153cbb)]=0x1;const _0x422342=_0xb5869a;return(0x0,priorityApi_1[_0x123265(_0x46f30a._0x18ff9c)])(_0x251d13,_0x43f8e3[_0x123265(_0x46f30a._0x2fb901)],_0x123265(_0x46f30a._0x1023a1)+_0x49b1fe,_0x1102ea,_0x422342);}function _0x2a97(){const _0x52cf63=['mti3nJmWofzyELDZvq','zMLLBgrwywX1zq','DMfSDwu','tevYAg4','zgvMAw5LuhjVCgvYDhK','odKYntqWmgzvsgztrW','C2TguKu','CMvJB3jKs2v5rMLLBgrZ','ChjPB3jPDhLfCNbbCgK','z2v0tM9KzvbHCMfTzxrLCG','rfnhshG','mtr3t25VqMe','zMLLBgroyw1L','nda2otmYmfPyCNPQrW','mteXndG0nwrWy05OCa','mJyXmdviCengzKG','B3zlqxK','zM9YBu5HBwu','CNvU','mJa0mdnXtK9NAfm','A2v5vMfSDwvZ','ChjVy2vKDxjLtMfTzq','ndi4ALDpAxLs','D0nczLi','ChjPB3jPDhLbCgLszxf1zxn0','ntHPrKrVuMe','x19LC01VzhvSzq','mJe0nJmZmKTgzhfZDa','ywn0AxzHDgu','l2z1BMn0Aw9UCZ9Syw5NDwfNzt0'];_0x2a97=function(){return _0x52cf63;};return _0x2a97();}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activate = activate;
4
+ const priorityApi_1 = require("../../transport/priorityApi");
5
+ function extractKeyFields(execFns, index, paramName) {
6
+ const keyFields = execFns.getNodeParameter(paramName, index);
7
+ const result = {};
8
+ if (keyFields && keyFields.keyValues) {
9
+ const keyValues = keyFields.keyValues;
10
+ if (Array.isArray(keyValues)) {
11
+ for (const kv of keyValues) {
12
+ if (kv.fieldName && kv.fieldValue !== undefined) {
13
+ result[kv.fieldName] = kv.fieldValue;
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return result;
19
+ }
20
+ async function activate(execFns, index, context) {
21
+ const formName = execFns.getNodeParameter('formName', index);
22
+ const procedureName = execFns.getNodeParameter('procedureName', index);
23
+ const keyFieldsData = extractKeyFields(execFns, index, 'recordKeyFields');
24
+ const credentials = await execFns.getCredentials('priorityErpApi');
25
+ const language = String(credentials.language || 3);
26
+ const body = {
27
+ form: formName,
28
+ activate: procedureName,
29
+ ...keyFieldsData,
30
+ run: 1,
31
+ };
32
+ return (0, priorityApi_1.priorityApiRequest)(execFns, 'POST', `/functions?language=${language}`, context, body);
33
+ }
@@ -1 +1,37 @@
1
- 'use strict';const _0x2fd2f1=_0x37e2;(function(_0x3e9cb5,_0x2df161){const _0x323d01={_0x25244f:0x127,_0x102414:0x13a,_0x4210a3:0x149,_0x161b6c:0x12d,_0x538a67:0x147,_0x42be27:0x14b,_0x5cb67b:0x135,_0x776c67:0x12f},_0x5e121d=_0x37e2,_0x28dab7=_0x3e9cb5();while(!![]){try{const _0x2216b5=-parseInt(_0x5e121d(_0x323d01._0x25244f))/0x1+parseInt(_0x5e121d(_0x323d01._0x102414))/0x2*(parseInt(_0x5e121d(_0x323d01._0x4210a3))/0x3)+-parseInt(_0x5e121d(_0x323d01._0x161b6c))/0x4*(parseInt(_0x5e121d(_0x323d01._0x538a67))/0x5)+-parseInt(_0x5e121d(0x14a))/0x6*(parseInt(_0x5e121d(_0x323d01._0x42be27))/0x7)+parseInt(_0x5e121d(0x139))/0x8+parseInt(_0x5e121d(_0x323d01._0x5cb67b))/0x9+parseInt(_0x5e121d(0x138))/0xa*(parseInt(_0x5e121d(_0x323d01._0x776c67))/0xb);if(_0x2216b5===_0x2df161)break;else _0x28dab7['push'](_0x28dab7['shift']());}catch(_0x1b4910){_0x28dab7['push'](_0x28dab7['shift']());}}}(_0x2bb7,0xd3397));const _0x1e8d77={};_0x1e8d77['value']=!![],Object[_0x2fd2f1(0x12b)](exports,_0x2fd2f1(0x13b),_0x1e8d77),exports['activateSubForm']=activateSubForm;const priorityApi_1=require(_0x2fd2f1(0x13c));function extractKeyFields(_0xd23f1d,_0x32c120,_0x292f98){const _0xc55a00={_0x28e371:0x132,_0x4b1458:0x131},_0x4cb332=_0x2fd2f1,_0x1c058b={};_0x1c058b['oullQ']=function(_0x47f14e,_0xd4402a){return _0x47f14e!==_0xd4402a;};const _0x9a97f0=_0x1c058b,_0x2af8ff=_0xd23f1d['getNodeParameter'](_0x292f98,_0x32c120),_0x21e497={};if(_0x2af8ff&&_0x2af8ff[_0x4cb332(0x146)]){const _0x3c6832=_0x2af8ff[_0x4cb332(0x146)];if(Array[_0x4cb332(0x12c)](_0x3c6832))for(const _0x1fe7ab of _0x3c6832){_0x1fe7ab[_0x4cb332(_0xc55a00._0x28e371)]&&_0x9a97f0[_0x4cb332(0x142)](_0x1fe7ab[_0x4cb332(_0xc55a00._0x4b1458)],undefined)&&(_0x21e497[_0x1fe7ab[_0x4cb332(_0xc55a00._0x28e371)]]=_0x1fe7ab[_0x4cb332(0x131)]);}}return _0x21e497;}function _0x2bb7(){const _0x36c1cd=['ChjVy2vKDxjLtMfTzq','C3vIrM9YBuTLEuzPzwXKCW','mtbtwerjDLO','odu2mde2tfLUz3rf','mJGZmdyZmfrdvNntra','x19LC01VzhvSzq','lI4VlI4VDhjHBNnWB3j0l3bYAw9YAxr5qxbP','z2v0q3jLzgvUDgLHBhm','r0vqDgq','l2z1BMn0Aw9UCZ9Syw5NDwfNzt0','vhjWtfu','u2zywuq','B3vSBfe','EwHRqvq','z2v0tM9KzvbHCMfTzxrLCG','CNvU','A2v5vMfSDwvZ','mZu4mePzBefxzG','zfrKs0q','m2vbtMziuq','nJiWndznrvjHsve','ndu1sK5tA2TL','nJC0ntm2Dufkr2T5','CMvJB3jKs2v5rMLLBgrZ','ChjPB3jPDhLfCNbbCgK','ue9tva','zgvMAw5LuhjVCgvYDhK','AxnbCNjHEq','nti3mLbTBxfJrq','qvfAr20','ndiYmdC3n2DbrwzeAG','ChjPB3jPDhLbCgLszxf1zxn0','zMLLBgrwywX1zq','zMLLBgroyw1L','zM9YBu5HBwu','BgfUz3vHz2u','mteYndu4nJbXD0DuB3C'];_0x2bb7=function(){return _0x36c1cd;};return _0x2bb7();}function _0x37e2(_0x591500,_0x4526be){_0x591500=_0x591500-0x127;const _0x2bb773=_0x2bb7();let _0x37e25e=_0x2bb773[_0x591500];if(_0x37e2['FrgEPb']===undefined){var _0x1de0c9=function(_0x4bfc0b){const _0x1537e0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ed4e6='',_0x5ca2eb='';for(let _0x58d9b2=0x0,_0x34b7b6,_0x3237e1,_0x112369=0x0;_0x3237e1=_0x4bfc0b['charAt'](_0x112369++);~_0x3237e1&&(_0x34b7b6=_0x58d9b2%0x4?_0x34b7b6*0x40+_0x3237e1:_0x3237e1,_0x58d9b2++%0x4)?_0x4ed4e6+=String['fromCharCode'](0xff&_0x34b7b6>>(-0x2*_0x58d9b2&0x6)):0x0){_0x3237e1=_0x1537e0['indexOf'](_0x3237e1);}for(let _0x1e2b75=0x0,_0x28aeaf=_0x4ed4e6['length'];_0x1e2b75<_0x28aeaf;_0x1e2b75++){_0x5ca2eb+='%'+('00'+_0x4ed4e6['charCodeAt'](_0x1e2b75)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ca2eb);};_0x37e2['TFMRFP']=_0x1de0c9,_0x37e2['ufguMm']={},_0x37e2['FrgEPb']=!![];}const _0x3441e3=_0x2bb773[0x0],_0x80be80=_0x591500+_0x3441e3,_0x3c2526=_0x37e2['ufguMm'][_0x80be80];return!_0x3c2526?(_0x37e25e=_0x37e2['TFMRFP'](_0x37e25e),_0x37e2['ufguMm'][_0x80be80]=_0x37e25e):_0x37e25e=_0x3c2526,_0x37e25e;}async function activateSubForm(_0x5ddab1,_0x39349d,_0x18030d){const _0x3f7093={_0x4e29ab:0x128,_0x3748e1:0x137,_0x3e7824:0x13d,_0x9589ba:0x129,_0x559022:0x140,_0x52c988:0x134,_0x582c41:0x145,_0x4cec2b:0x13f},_0x5ee53b=_0x2fd2f1,_0xc67813={'nkdTV':_0x5ee53b(0x133),'yhkAT':_0x5ee53b(0x136),'GEPtd':'subFormName','AQZGm':function(_0x1494ee,_0x461c8b,_0x472894,_0x23bf3a){return _0x1494ee(_0x461c8b,_0x472894,_0x23bf3a);},'dTdKD':_0x5ee53b(_0x3f7093._0x4e29ab),'UgRWh':_0x5ee53b(_0x3f7093._0x3748e1),'TrpLU':function(_0x374579,_0x452aa7){return _0x374579(_0x452aa7);},'SfXYD':_0x5ee53b(0x12a)},_0x3e7e34=_0x5ddab1[_0x5ee53b(0x144)](_0xc67813['nkdTV'],_0x39349d),_0x5ced94=_0x5ddab1[_0x5ee53b(0x144)](_0xc67813[_0x5ee53b(0x143)],_0x39349d),_0xa148e2=_0x5ddab1['getNodeParameter'](_0xc67813[_0x5ee53b(0x13e)],_0x39349d),_0x26b703=_0xc67813[_0x5ee53b(0x12e)](extractKeyFields,_0x5ddab1,_0x39349d,_0xc67813[_0x5ee53b(0x148)]),_0x410bb3=extractKeyFields(_0x5ddab1,_0x39349d,_0xc67813['UgRWh']),_0x23a903=await _0x5ddab1[_0x5ee53b(_0x3f7093._0x3e7824)](_0x5ee53b(_0x3f7093._0x9589ba)),_0x2cd34e=_0xc67813[_0x5ee53b(_0x3f7093._0x559022)](String,_0x23a903[_0x5ee53b(_0x3f7093._0x52c988)]||0x3),_0x18b1d6={'form':_0x3e7e34,'activate':_0x5ced94,'subform':_0xa148e2,..._0x26b703,..._0x410bb3};_0x18b1d6[_0x5ee53b(_0x3f7093._0x582c41)]=0x6;const _0x60e6a3=_0x18b1d6;return(0x0,priorityApi_1[_0x5ee53b(0x130)])(_0x5ddab1,_0xc67813[_0x5ee53b(0x141)],_0x5ee53b(_0x3f7093._0x4cec2b)+_0x2cd34e,_0x18030d,_0x60e6a3);}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activateSubForm = activateSubForm;
4
+ const priorityApi_1 = require("../../transport/priorityApi");
5
+ function extractKeyFields(execFns, index, paramName) {
6
+ const keyFields = execFns.getNodeParameter(paramName, index);
7
+ const result = {};
8
+ if (keyFields && keyFields.keyValues) {
9
+ const keyValues = keyFields.keyValues;
10
+ if (Array.isArray(keyValues)) {
11
+ for (const kv of keyValues) {
12
+ if (kv.fieldName && kv.fieldValue !== undefined) {
13
+ result[kv.fieldName] = kv.fieldValue;
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return result;
19
+ }
20
+ async function activateSubForm(execFns, index, context) {
21
+ const formName = execFns.getNodeParameter('formName', index);
22
+ const procedureName = execFns.getNodeParameter('procedureName', index);
23
+ const subFormName = execFns.getNodeParameter('subFormName', index);
24
+ const keyFieldsData = extractKeyFields(execFns, index, 'recordKeyFields');
25
+ const subKeyFieldsData = extractKeyFields(execFns, index, 'subFormKeyFields');
26
+ const credentials = await execFns.getCredentials('priorityErpApi');
27
+ const language = String(credentials.language || 3);
28
+ const body = {
29
+ form: formName,
30
+ activate: procedureName,
31
+ subform: subFormName,
32
+ ...keyFieldsData,
33
+ ...subKeyFieldsData,
34
+ run: 6,
35
+ };
36
+ return (0, priorityApi_1.priorityApiRequest)(execFns, 'POST', `/functions?language=${language}`, context, body);
37
+ }
@@ -1 +1,10 @@
1
- 'use strict';var _0x481847=_0x4fe6;(function(_0x200473,_0x306c35){var _0x284fe2={_0xc20c86:0x8d,_0x32719c:0x85,_0x2e2f95:0x91,_0x2608a4:0x8a},_0x49c524=_0x4fe6,_0x375817=_0x200473();while(!![]){try{var _0x1a5c42=parseInt(_0x49c524(0x90))/0x1+-parseInt(_0x49c524(0x8e))/0x2*(-parseInt(_0x49c524(0x96))/0x3)+parseInt(_0x49c524(0x8f))/0x4+parseInt(_0x49c524(_0x284fe2._0xc20c86))/0x5+-parseInt(_0x49c524(_0x284fe2._0x32719c))/0x6*(parseInt(_0x49c524(_0x284fe2._0x2e2f95))/0x7)+parseInt(_0x49c524(0x95))/0x8*(-parseInt(_0x49c524(_0x284fe2._0x2608a4))/0x9)+-parseInt(_0x49c524(0x83))/0xa*(parseInt(_0x49c524(0x84))/0xb);if(_0x1a5c42===_0x306c35)break;else _0x375817['push'](_0x375817['shift']());}catch(_0x5e3b8f){_0x375817['push'](_0x375817['shift']());}}}(_0x1c03,0x732a2));var _0x5c8cc3={};_0x5c8cc3[_0x481847(0x8c)]=!![],Object[_0x481847(0x94)](exports,'__esModule',_0x5c8cc3),exports['activateSubForm']=exports[_0x481847(0x8b)]=exports[_0x481847(0x87)]=exports[_0x481847(0x88)]=void 0x0;var procedure_properties_1=require(_0x481847(0x92)),_0x3bc2e1={};_0x3bc2e1[_0x481847(0x93)]=!![],_0x3bc2e1[_0x481847(0x86)]=function(){var _0x59f943=_0x481847;return procedure_properties_1[_0x59f943(0x88)];},Object[_0x481847(0x94)](exports,_0x481847(0x88),_0x3bc2e1);var _0x1d2203={};_0x1d2203[_0x481847(0x93)]=!![],_0x1d2203[_0x481847(0x86)]=function(){var _0x4cc65f={_0x3a16bb:0x87},_0x473635=_0x481847;return procedure_properties_1[_0x473635(_0x4cc65f._0x3a16bb)];},Object[_0x481847(0x94)](exports,'procedureFields',_0x1d2203);function _0x4fe6(_0x280676,_0x425b75){_0x280676=_0x280676-0x82;var _0x1c0311=_0x1c03();var _0x4fe681=_0x1c0311[_0x280676];if(_0x4fe6['xmMLvh']===undefined){var _0x3533c4=function(_0x1e9c8e){var _0x8fa789='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3f197e='',_0x3c7efb='';for(var _0xe542a4=0x0,_0x17a8c4,_0x55c26f,_0x36c86b=0x0;_0x55c26f=_0x1e9c8e['charAt'](_0x36c86b++);~_0x55c26f&&(_0x17a8c4=_0xe542a4%0x4?_0x17a8c4*0x40+_0x55c26f:_0x55c26f,_0xe542a4++%0x4)?_0x3f197e+=String['fromCharCode'](0xff&_0x17a8c4>>(-0x2*_0xe542a4&0x6)):0x0){_0x55c26f=_0x8fa789['indexOf'](_0x55c26f);}for(var _0x45d5eb=0x0,_0x4bba2d=_0x3f197e['length'];_0x45d5eb<_0x4bba2d;_0x45d5eb++){_0x3c7efb+='%'+('00'+_0x3f197e['charCodeAt'](_0x45d5eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c7efb);};_0x4fe6['WiOrTP']=_0x3533c4,_0x4fe6['HFDjzF']={},_0x4fe6['xmMLvh']=!![];}var _0x2b1df4=_0x1c0311[0x0],_0x243727=_0x280676+_0x2b1df4,_0xec6f13=_0x4fe6['HFDjzF'][_0x243727];return!_0xec6f13?(_0x4fe681=_0x4fe6['WiOrTP'](_0x4fe681),_0x4fe6['HFDjzF'][_0x243727]=_0x4fe681):_0x4fe681=_0xec6f13,_0x4fe681;}function _0x1c03(){var _0x452bda=['ywn0AxzHDgvtDwjgB3jT','mZa1nZaZDg1QCeP1','ywn0AxzHDgu','DMfSDwu','mJq5mdGXnw9Ry0zkrq','mZe1ohnOCw9myG','mtC4nZeZmLHqq09osW','odK1mdeXvuXVC3rz','mZG2mZe4mvvrALnAyW','lI9WCM9Jzwr1CMuUChjVCgvYDgLLCW','zw51BwvYywjSzq','zgvMAw5LuhjVCgvYDhK','mtuYBKrYrKHh','nZyYAKftzhv6','lI9Hy3rPDMf0zs5VCgvYyxrPB24','ntCYmduZmfrVzfvdsG','mtfKCeTRvhy','nM1twfjyuq','z2v0','ChjVy2vKDxjLrMLLBgrZ','ChjVy2vKDxjLt3bLCMf0Aw9UCW'];_0x1c03=function(){return _0x452bda;};return _0x1c03();}var activate_operation_1=require(_0x481847(0x82)),_0x50f050={};_0x50f050[_0x481847(0x93)]=!![],_0x50f050[_0x481847(0x86)]=function(){var _0x51e621={_0x3aa01c:0x8b},_0x34e8e2=_0x481847;return activate_operation_1[_0x34e8e2(_0x51e621._0x3aa01c)];},Object[_0x481847(0x94)](exports,_0x481847(0x8b),_0x50f050);var activateSubForm_operation_1=require('./activateSubForm.operation'),_0x3659d1={};_0x3659d1[_0x481847(0x93)]=!![],_0x3659d1[_0x481847(0x86)]=function(){var _0xa94eb0=_0x481847;return activateSubForm_operation_1[_0xa94eb0(0x89)];},Object[_0x481847(0x94)](exports,_0x481847(0x89),_0x3659d1);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activateSubForm = exports.activate = exports.procedureFields = exports.procedureOperations = void 0;
4
+ var procedure_properties_1 = require("./procedure.properties");
5
+ Object.defineProperty(exports, "procedureOperations", { enumerable: true, get: function () { return procedure_properties_1.procedureOperations; } });
6
+ Object.defineProperty(exports, "procedureFields", { enumerable: true, get: function () { return procedure_properties_1.procedureFields; } });
7
+ var activate_operation_1 = require("./activate.operation");
8
+ Object.defineProperty(exports, "activate", { enumerable: true, get: function () { return activate_operation_1.activate; } });
9
+ var activateSubForm_operation_1 = require("./activateSubForm.operation");
10
+ Object.defineProperty(exports, "activateSubForm", { enumerable: true, get: function () { return activateSubForm_operation_1.activateSubForm; } });
@@ -1 +1,157 @@
1
- 'use strict';var _0x16eb01=_0x2527;(function(_0xea1e33,_0x4af942){var _0x1458f1={_0x11cffb:0x184,_0x57b91c:0x177,_0x15d819:0x18b,_0x334046:0x1a3},_0x56d332=_0x2527,_0x5dab5e=_0xea1e33();while(!![]){try{var _0x14a1bf=-parseInt(_0x56d332(0x1a9))/0x1*(parseInt(_0x56d332(0x196))/0x2)+-parseInt(_0x56d332(_0x1458f1._0x11cffb))/0x3+-parseInt(_0x56d332(0x190))/0x4*(parseInt(_0x56d332(_0x1458f1._0x57b91c))/0x5)+parseInt(_0x56d332(0x1a2))/0x6+-parseInt(_0x56d332(_0x1458f1._0x15d819))/0x7+-parseInt(_0x56d332(0x192))/0x8*(-parseInt(_0x56d332(_0x1458f1._0x334046))/0x9)+parseInt(_0x56d332(0x181))/0xa;if(_0x14a1bf===_0x4af942)break;else _0x5dab5e['push'](_0x5dab5e['shift']());}catch(_0x5e7ef7){_0x5dab5e['push'](_0x5dab5e['shift']());}}}(_0x41b9,0xf37c5));var _0x2120f6={};_0x2120f6[_0x16eb01(0x197)]=!![],Object[_0x16eb01(0x194)](exports,_0x16eb01(0x17b),_0x2120f6),exports[_0x16eb01(0x1a1)]=exports['procedureOperations']=void 0x0;var _0x43f111={};_0x43f111[_0x16eb01(0x176)]=['procedure'];var _0x3efdaa={};_0x3efdaa[_0x16eb01(0x1b7)]=_0x43f111;var _0x281b42={};_0x281b42['name']=_0x16eb01(0x1ad),_0x281b42[_0x16eb01(0x197)]='activate',_0x281b42[_0x16eb01(0x189)]='Activate\x20a\x20procedure\x20on\x20a\x20form',_0x281b42[_0x16eb01(0x19f)]='Activate\x20a\x20procedure';var _0xc3966f={};_0xc3966f['name']=_0x16eb01(0x1a7),_0xc3966f['value']=_0x16eb01(0x178),_0xc3966f[_0x16eb01(0x189)]='Activate\x20a\x20procedure\x20on\x20a\x20sub-form\x20record',_0xc3966f[_0x16eb01(0x19f)]=_0x16eb01(0x17e);var _0x41baf9={};_0x41baf9[_0x16eb01(0x187)]=_0x16eb01(0x18c),_0x41baf9[_0x16eb01(0x1b8)]=_0x16eb01(0x1b0),_0x41baf9[_0x16eb01(0x199)]='options',_0x41baf9[_0x16eb01(0x188)]=!![],_0x41baf9[_0x16eb01(0x19d)]=_0x3efdaa,_0x41baf9[_0x16eb01(0x179)]=[_0x281b42,_0xc3966f],_0x41baf9[_0x16eb01(0x1a5)]=_0x16eb01(0x17a),exports[_0x16eb01(0x1b6)]=_0x41baf9;var _0x35ea8f={};_0x35ea8f['loadOptionsMethod']=_0x16eb01(0x1aa);var _0x328e48={};_0x328e48['resource']=[_0x16eb01(0x17f)];var _0x55f673={};_0x55f673[_0x16eb01(0x1b7)]=_0x328e48;var _0x54d745={};_0x54d745[_0x16eb01(0x187)]=_0x16eb01(0x18e),_0x54d745[_0x16eb01(0x1b8)]=_0x16eb01(0x1a0),_0x54d745[_0x16eb01(0x199)]=_0x16eb01(0x179),_0x54d745[_0x16eb01(0x191)]=_0x35ea8f,_0x54d745['required']=!![],_0x54d745[_0x16eb01(0x19d)]=_0x55f673,_0x54d745[_0x16eb01(0x1a5)]='',_0x54d745['description']=_0x16eb01(0x1b1);var _0x291049={};_0x291049['loadOptionsMethod']=_0x16eb01(0x1ab),_0x291049[_0x16eb01(0x180)]=['formName'];var _0x3873cd={};_0x3873cd[_0x16eb01(0x176)]=['procedure'];var _0x498ef2={};_0x498ef2[_0x16eb01(0x1b7)]=_0x3873cd;var _0x4513d2={};_0x4513d2[_0x16eb01(0x187)]='Procedure\x20Name',_0x4513d2['name']='procedureName',_0x4513d2[_0x16eb01(0x199)]=_0x16eb01(0x179),_0x4513d2['typeOptions']=_0x291049,_0x4513d2[_0x16eb01(0x1b5)]=!![],_0x4513d2['displayOptions']=_0x498ef2,_0x4513d2[_0x16eb01(0x1a5)]='',_0x4513d2[_0x16eb01(0x189)]=_0x16eb01(0x1b3);var _0x2b304e={};_0x2b304e[_0x16eb01(0x18d)]=!![];var _0x4388fd={};_0x4388fd[_0x16eb01(0x176)]=[_0x16eb01(0x17f)];var _0x4d7650={};_0x4d7650[_0x16eb01(0x1b7)]=_0x4388fd;var _0x30826b={};_0x30826b['loadOptionsMethod']=_0x16eb01(0x1b9),_0x30826b[_0x16eb01(0x180)]=[_0x16eb01(0x1a0)];var _0x2177e2={};function _0x2527(_0x23069e,_0x41dac8){_0x23069e=_0x23069e-0x176;var _0x41b948=_0x41b9();var _0x252772=_0x41b948[_0x23069e];if(_0x2527['MnjOGj']===undefined){var _0x5021c2=function(_0x5a28e0){var _0x4b1343='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2120f6='',_0x43f111='';for(var _0x3efdaa=0x0,_0x281b42,_0xc3966f,_0x41baf9=0x0;_0xc3966f=_0x5a28e0['charAt'](_0x41baf9++);~_0xc3966f&&(_0x281b42=_0x3efdaa%0x4?_0x281b42*0x40+_0xc3966f:_0xc3966f,_0x3efdaa++%0x4)?_0x2120f6+=String['fromCharCode'](0xff&_0x281b42>>(-0x2*_0x3efdaa&0x6)):0x0){_0xc3966f=_0x4b1343['indexOf'](_0xc3966f);}for(var _0x35ea8f=0x0,_0x328e48=_0x2120f6['length'];_0x35ea8f<_0x328e48;_0x35ea8f++){_0x43f111+='%'+('00'+_0x2120f6['charCodeAt'](_0x35ea8f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x43f111);};_0x2527['QXzUGg']=_0x5021c2,_0x2527['vnQEsr']={},_0x2527['MnjOGj']=!![];}var _0x58f375=_0x41b948[0x0],_0x3731c1=_0x23069e+_0x58f375,_0x55cbb8=_0x2527['vnQEsr'][_0x3731c1];return!_0x55cbb8?(_0x252772=_0x2527['QXzUGg'](_0x252772),_0x2527['vnQEsr'][_0x3731c1]=_0x252772):_0x252772=_0x55cbb8,_0x252772;}_0x2177e2[_0x16eb01(0x187)]=_0x16eb01(0x18f),_0x2177e2[_0x16eb01(0x1b8)]='fieldName',_0x2177e2[_0x16eb01(0x199)]=_0x16eb01(0x179),_0x2177e2[_0x16eb01(0x191)]=_0x30826b,_0x2177e2[_0x16eb01(0x1a5)]='',_0x2177e2['description']=_0x16eb01(0x198);var _0x335625={};_0x335625[_0x16eb01(0x187)]='Field\x20Value',_0x335625[_0x16eb01(0x1b8)]=_0x16eb01(0x1b4),_0x335625['type']=_0x16eb01(0x18a),_0x335625[_0x16eb01(0x1a5)]='',_0x335625[_0x16eb01(0x183)]='e.g.,\x20SO2300001',_0x335625[_0x16eb01(0x189)]=_0x16eb01(0x193);var _0x3c4cc7={};_0x3c4cc7['name']=_0x16eb01(0x182),_0x3c4cc7['displayName']='Key\x20Field',_0x3c4cc7[_0x16eb01(0x1a6)]=[_0x2177e2,_0x335625];var _0xe3e37f={};_0xe3e37f['displayName']=_0x16eb01(0x1b2),_0xe3e37f['name']='recordKeyFields',_0xe3e37f[_0x16eb01(0x183)]=_0x16eb01(0x19a),_0xe3e37f['type']=_0x16eb01(0x1ba),_0xe3e37f[_0x16eb01(0x191)]=_0x2b304e,_0xe3e37f[_0x16eb01(0x1b5)]=!![],_0xe3e37f[_0x16eb01(0x19d)]=_0x4d7650,_0xe3e37f['default']={},_0xe3e37f[_0x16eb01(0x189)]='The\x20key\x20field(s)\x20to\x20identify\x20the\x20record\x20for\x20the\x20procedure',_0xe3e37f[_0x16eb01(0x179)]=[_0x3c4cc7];var _0x39f4cc={};_0x39f4cc['loadOptionsMethod']='getSubForms';var _0x2bb1d4={};_0x2bb1d4[_0x16eb01(0x176)]=['procedure'],_0x2bb1d4[_0x16eb01(0x1b0)]=['activateSubForm'];var _0x20c8c8={};_0x20c8c8[_0x16eb01(0x1b7)]=_0x2bb1d4;var _0x363671={};_0x363671[_0x16eb01(0x187)]=_0x16eb01(0x195),_0x363671[_0x16eb01(0x1b8)]=_0x16eb01(0x17c),_0x363671[_0x16eb01(0x199)]=_0x16eb01(0x179),_0x363671['typeOptions']=_0x39f4cc,_0x363671[_0x16eb01(0x1b5)]=!![],_0x363671[_0x16eb01(0x19d)]=_0x20c8c8,_0x363671['default']='',_0x363671['placeholder']=_0x16eb01(0x19b),_0x363671[_0x16eb01(0x189)]=_0x16eb01(0x1ae);var _0x592042={};_0x592042[_0x16eb01(0x18d)]=!![];var _0x142900={};function _0x41b9(){var _0x514f97=['nZq1nJu1mejNEurpEG','A2v5vMfSDwvZ','CgXHy2vOB2XKzxi','mJuXndaZBKLxzKHW','s2v5iezPzwXK','rMLLBgqGvMfSDwu','zgLZCgXHEu5HBwu','BM9eyxrHrxHWCMvZC2LVBG','zgvZy3jPChrPB24','C3rYAw5N','mtm1nJC2oe9sBLH5Dq','t3bLCMf0Aw9U','BxvSDgLWBgvwywX1zxm','rM9YBsboyw1L','rMLLBgqGtMfTzq','nJK4og9vwwTJBG','DhLWzu9WDgLVBNm','ndq1otCYohzJBxb6qW','vgHLihzHBhvLig9MihrOzsbRzxKGzMLLBgq','zgvMAw5LuhjVCgvYDhK','u3vIluzVCM0GtMfTzq','mKXqtKLzta','DMfSDwu','vgHLigTLEsbMAwvSzcbUyw1LigLUifbYAw9YAxr5lIbtD2L0y2GGDg8GzxHWCMvZC2LVBIbTB2rLihrVihr5CguGBwfUDwfSBhKU','DhLWzq','qwrKieTLEsbgAwvSza','zs5NlIWGt1jervjjvevnu19tvujgt1jn','vgHLigTLEsbMAwvSzcbUyw1LlIbtD2L0y2GGDg8GzxHWCMvZC2LVBIbTB2rLihrVihr5CguGBwfUDwfSBhKU','zgLZCgXHEu9WDgLVBNm','z2v0u3vIrM9YBvbYB2nLzhvYzuzPzwXKCW','ywn0Aw9U','zM9YBu5HBwu','ChjVy2vKDxjLrMLLBgrZ','ode2odqZmevOCgfKtq','mJDfyu5Rt2S','zs5NlIWGmq','zgvMyxvSDa','DMfSDwvZ','qwn0AxzHDguGB24Gu3vIluzVCM0','C3vIrM9YBuTLEuzPzwXKCW','ntiXnJCXy1Lxt3Lx','z2v0rM9YBxm','z2v0uhjVy2vKDxjLCW','vgHLigTLEsbMAwvSzcHZksb0BYbPzgvUDgLMEsb0AguGC3vIlwzVCM0GCMvJB3jK','qwn0AxzHDgu','vgHLihn1yI1MB3jTig5HBwuGzM9YihrOzsbWCM9Jzwr1CMu','u3vIluzVCM0Gs2v5iezPzwXKCW','B3bLCMf0Aw9U','vgHLigzVCM0GB24GD2HPy2GGDg8Gywn0AxzHDguGDgHLihbYB2nLzhvYzs4Gu3DPDgnOihrVigv4ChjLC3nPB24GBw9Kzsb0BYb0ExbLig1HBNvHBgX5lG','uMvJB3jKieTLEsbgAwvSzhm','vgHLihbYB2nLzhvYzsb0BYbHy3rPDMf0zs4Gu3DPDgnOihrVigv4ChjLC3nPB24GBw9Kzsb0BYb0ExbLig1HBNvHBgX5lG','zMLLBgrwywX1zq','CMvXDwLYzwq','ChjVy2vKDxjLt3bLCMf0Aw9UCW','C2HVDW','BMfTzq','z2v0uhjVy2vKDxjLrMLLBgrZ','zML4zwrdB2XSzwn0Aw9U','CMvZB3vYy2u','nty3nxPdBujnvW','ywn0AxzHDgvtDwjgB3jT','B3b0Aw9UCW','ywn0AxzHDgu','x19LC01VzhvSzq','C3vIrM9YBu5HBwu','Bg9Hze9WDgLVBNnnzxrOB2q','qwn0AxzHDguGysbWCM9Jzwr1CMuGB24GysbZDwiGzM9YBq','ChjVy2vKDxjL','Bg9Hze9WDgLVBNnezxbLBMrZt24'];_0x41b9=function(){return _0x514f97;};return _0x41b9();}_0x142900[_0x16eb01(0x176)]=[_0x16eb01(0x17f)],_0x142900['operation']=[_0x16eb01(0x178)];var _0x5c8b6e={};_0x5c8b6e[_0x16eb01(0x1b7)]=_0x142900;var _0x3def98={};_0x3def98[_0x16eb01(0x17d)]=_0x16eb01(0x19e),_0x3def98[_0x16eb01(0x180)]=[_0x16eb01(0x1a0),_0x16eb01(0x17c)];var _0xa93b33={};_0xa93b33['displayName']=_0x16eb01(0x18f),_0xa93b33[_0x16eb01(0x1b8)]='fieldName',_0xa93b33[_0x16eb01(0x199)]=_0x16eb01(0x179),_0xa93b33[_0x16eb01(0x191)]=_0x3def98,_0xa93b33[_0x16eb01(0x1a5)]='',_0xa93b33[_0x16eb01(0x189)]=_0x16eb01(0x19c);var _0x573564={};_0x573564[_0x16eb01(0x187)]=_0x16eb01(0x186),_0x573564['name']=_0x16eb01(0x1b4),_0x573564[_0x16eb01(0x199)]=_0x16eb01(0x18a),_0x573564[_0x16eb01(0x1a5)]='',_0x573564[_0x16eb01(0x183)]=_0x16eb01(0x1a4),_0x573564[_0x16eb01(0x189)]='The\x20value\x20of\x20the\x20key\x20field';var _0x521d17={};_0x521d17['name']=_0x16eb01(0x182),_0x521d17['displayName']=_0x16eb01(0x185),_0x521d17[_0x16eb01(0x1a6)]=[_0xa93b33,_0x573564];var _0x37f39c={};_0x37f39c['displayName']=_0x16eb01(0x1af),_0x37f39c[_0x16eb01(0x1b8)]=_0x16eb01(0x1a8),_0x37f39c[_0x16eb01(0x183)]=_0x16eb01(0x19a),_0x37f39c[_0x16eb01(0x199)]=_0x16eb01(0x1ba),_0x37f39c[_0x16eb01(0x191)]=_0x592042,_0x37f39c[_0x16eb01(0x1b5)]=!![],_0x37f39c['displayOptions']=_0x5c8b6e,_0x37f39c[_0x16eb01(0x1a5)]={},_0x37f39c['description']=_0x16eb01(0x1ac),_0x37f39c[_0x16eb01(0x179)]=[_0x521d17],exports[_0x16eb01(0x1a1)]=[_0x54d745,_0x4513d2,_0xe3e37f,_0x363671,_0x37f39c];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.procedureFields = exports.procedureOperations = void 0;
4
+ exports.procedureOperations = {
5
+ displayName: 'Operation',
6
+ name: 'operation',
7
+ type: 'options',
8
+ noDataExpression: true,
9
+ displayOptions: {
10
+ show: {
11
+ resource: ['procedure'],
12
+ },
13
+ },
14
+ options: [
15
+ {
16
+ name: 'Activate',
17
+ value: 'activate',
18
+ description: 'Activate a procedure on a form',
19
+ action: 'Activate a procedure',
20
+ },
21
+ {
22
+ name: 'Activate on Sub-Form',
23
+ value: 'activateSubForm',
24
+ description: 'Activate a procedure on a sub-form record',
25
+ action: 'Activate a procedure on a sub form',
26
+ },
27
+ ],
28
+ default: 'activate',
29
+ };
30
+ exports.procedureFields = [
31
+ {
32
+ displayName: 'Form Name',
33
+ name: 'formName',
34
+ type: 'options',
35
+ typeOptions: {
36
+ loadOptionsMethod: 'getForms',
37
+ },
38
+ required: true,
39
+ displayOptions: { show: { resource: ['procedure'] } },
40
+ default: '',
41
+ description: 'The form on which to activate the procedure. Switch to expression mode to type manually.',
42
+ },
43
+ {
44
+ displayName: 'Procedure Name',
45
+ name: 'procedureName',
46
+ type: 'options',
47
+ typeOptions: {
48
+ loadOptionsMethod: 'getProcedures',
49
+ loadOptionsDependsOn: ['formName'],
50
+ },
51
+ required: true,
52
+ displayOptions: {
53
+ show: {
54
+ resource: ['procedure'],
55
+ },
56
+ },
57
+ default: '',
58
+ description: 'The procedure to activate. Switch to expression mode to type manually.',
59
+ },
60
+ {
61
+ displayName: 'Record Key Fields',
62
+ name: 'recordKeyFields',
63
+ placeholder: 'Add Key Field',
64
+ type: 'fixedCollection',
65
+ typeOptions: {
66
+ multipleValues: true,
67
+ },
68
+ required: true,
69
+ displayOptions: { show: { resource: ['procedure'] } },
70
+ default: {},
71
+ description: 'The key field(s) to identify the record for the procedure',
72
+ options: [
73
+ {
74
+ name: 'keyValues',
75
+ displayName: 'Key Field',
76
+ values: [
77
+ {
78
+ displayName: 'Field Name',
79
+ name: 'fieldName',
80
+ type: 'options',
81
+ typeOptions: {
82
+ loadOptionsMethod: 'getProcedureFields',
83
+ loadOptionsDependsOn: ['formName'],
84
+ },
85
+ default: '',
86
+ description: 'The key field name in Priority. Switch to expression mode to type manually.',
87
+ },
88
+ {
89
+ displayName: 'Field Value',
90
+ name: 'fieldValue',
91
+ type: 'string',
92
+ default: '',
93
+ placeholder: 'e.g., SO2300001',
94
+ description: 'The value of the key field',
95
+ },
96
+ ],
97
+ },
98
+ ],
99
+ },
100
+ {
101
+ displayName: 'Sub-Form Name',
102
+ name: 'subFormName',
103
+ type: 'options',
104
+ typeOptions: {
105
+ loadOptionsMethod: 'getSubForms',
106
+ },
107
+ required: true,
108
+ displayOptions: {
109
+ show: { resource: ['procedure'], operation: ['activateSubForm'] },
110
+ },
111
+ default: '',
112
+ placeholder: 'e.g., ORDERITEMS_SUBFORM',
113
+ description: 'The sub-form name for the procedure',
114
+ },
115
+ {
116
+ displayName: 'Sub-Form Key Fields',
117
+ name: 'subFormKeyFields',
118
+ placeholder: 'Add Key Field',
119
+ type: 'fixedCollection',
120
+ typeOptions: {
121
+ multipleValues: true,
122
+ },
123
+ required: true,
124
+ displayOptions: {
125
+ show: { resource: ['procedure'], operation: ['activateSubForm'] },
126
+ },
127
+ default: {},
128
+ description: 'The key field(s) to identify the sub-form record',
129
+ options: [
130
+ {
131
+ name: 'keyValues',
132
+ displayName: 'Key Field',
133
+ values: [
134
+ {
135
+ displayName: 'Field Name',
136
+ name: 'fieldName',
137
+ type: 'options',
138
+ typeOptions: {
139
+ loadOptionsMethod: 'getSubFormProcedureFields',
140
+ loadOptionsDependsOn: ['formName', 'subFormName'],
141
+ },
142
+ default: '',
143
+ description: 'The key field name. Switch to expression mode to type manually.',
144
+ },
145
+ {
146
+ displayName: 'Field Value',
147
+ name: 'fieldValue',
148
+ type: 'string',
149
+ default: '',
150
+ placeholder: 'e.g., 1',
151
+ description: 'The value of the key field',
152
+ },
153
+ ],
154
+ },
155
+ ],
156
+ },
157
+ ];
@@ -1 +1,15 @@
1
- 'use strict';const _0x522a4f=_0x1a5b;(function(_0x79bf9a,_0x1176ff){const _0x3dcd5e={_0x478a0b:0x1be,_0x1595ce:0x1c1,_0x1efb3a:0x1bb,_0x20cc92:0x1c6,_0x3719b5:0x1b1,_0x4333c2:0x1bf,_0x1500f9:0x1b6},_0x522144=_0x1a5b,_0x75480c=_0x79bf9a();while(!![]){try{const _0x47ae90=parseInt(_0x522144(_0x3dcd5e._0x478a0b))/0x1+parseInt(_0x522144(_0x3dcd5e._0x1595ce))/0x2+parseInt(_0x522144(_0x3dcd5e._0x1efb3a))/0x3+parseInt(_0x522144(0x1bc))/0x4+-parseInt(_0x522144(_0x3dcd5e._0x20cc92))/0x5*(-parseInt(_0x522144(0x1cd))/0x6)+-parseInt(_0x522144(_0x3dcd5e._0x3719b5))/0x7*(parseInt(_0x522144(_0x3dcd5e._0x4333c2))/0x8)+-parseInt(_0x522144(_0x3dcd5e._0x1500f9))/0x9;if(_0x47ae90===_0x1176ff)break;else _0x75480c['push'](_0x75480c['shift']());}catch(_0x4ff806){_0x75480c['push'](_0x75480c['shift']());}}}(_0x7c2c,0xa4891));const _0x4ffc4f={};function _0x7c2c(){const _0x57aa8c=['ELvWywe','mtmWntuYodnPAw5Vtge','CM91DgvY','tunkt20','zxH0CMfJDezPzwXKvMfSDwvZ','z2v0tM9KzvbHCMfTzxrLCG','mJeWnZq1mK9hA0nIDa','mtqXotyYmgrQyMnvAa','DMfSDwu','otq3nJK0A29cAMn2','mty4oty4BMDxtgjh','u3LVCNq','nZe0mZK4uuXmvNLI','l2fWAq','lI4VlI4VDhjHBNnWB3j0l3bYAw9YAxr5qxbP','jYKV','CgfYzw50rM9YBq','ntq1swfwwM5m','y3jLyxrL','x19LC01VzhvSzq','C3vIrM9YBu5HBwu','ChvJy3a','ue9tva','q2fOywu','mtu5nZHlDeLKv0y','mtC1rKzlwMPY','zgvMAw5LuhjVCgvYDhK','yNvPD3e','yuXUvMK'];_0x7c2c=function(){return _0x57aa8c;};return _0x7c2c();}function _0x1a5b(_0x2fd58d,_0xb480ae){_0x2fd58d=_0x2fd58d-0x1b1;const _0x7c2c61=_0x7c2c();let _0x1a5b01=_0x7c2c61[_0x2fd58d];if(_0x1a5b['nSSdFF']===undefined){var _0x1aab76=function(_0x4c9b37){const _0x51c7b0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf35107='',_0x273b3f='';for(let _0x255d50=0x0,_0x5d75d1,_0x16fe4e,_0xdb11cd=0x0;_0x16fe4e=_0x4c9b37['charAt'](_0xdb11cd++);~_0x16fe4e&&(_0x5d75d1=_0x255d50%0x4?_0x5d75d1*0x40+_0x16fe4e:_0x16fe4e,_0x255d50++%0x4)?_0xf35107+=String['fromCharCode'](0xff&_0x5d75d1>>(-0x2*_0x255d50&0x6)):0x0){_0x16fe4e=_0x51c7b0['indexOf'](_0x16fe4e);}for(let _0x30c9bb=0x0,_0x1b1dc0=_0xf35107['length'];_0x30c9bb<_0x1b1dc0;_0x30c9bb++){_0x273b3f+='%'+('00'+_0xf35107['charCodeAt'](_0x30c9bb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x273b3f);};_0x1a5b['yEwjnx']=_0x1aab76,_0x1a5b['gKnTEE']={},_0x1a5b['nSSdFF']=!![];}const _0x1eb96a=_0x7c2c61[0x0],_0x2a35cf=_0x2fd58d+_0x1eb96a,_0x428e77=_0x1a5b['gKnTEE'][_0x2a35cf];return!_0x428e77?(_0x1a5b01=_0x1a5b['yEwjnx'](_0x1a5b01),_0x1a5b['gKnTEE'][_0x2a35cf]=_0x1a5b01):_0x1a5b01=_0x428e77,_0x1a5b01;}_0x4ffc4f[_0x522a4f(0x1bd)]=!![],Object[_0x522a4f(0x1b2)](exports,_0x522a4f(0x1c8),_0x4ffc4f),exports[_0x522a4f(0x1c7)]=create;const utils_1=require('../../helpers/utils'),priorityApi_1=require(_0x522a4f(0x1c3));async function create(_0x2b56d8,_0x50234c,_0x34e6e5){const _0x254e9a={_0x1d01d1:0x1c5,_0x239486:0x1b3,_0x5995c3:0x1b7,_0x146cca:0x1ca,_0x3b4ce6:0x1c2,_0x31335e:0x1ba,_0xa577ff:0x1cc,_0x3a5ec8:0x1ba,_0x2b2d42:0x1c0,_0x4fa47b:0x1b4,_0x4d5b51:0x1b8,_0x22c002:0x1c4},_0x58ee22=_0x522a4f,_0x3a99cd={};_0x3a99cd[_0x58ee22(0x1b5)]=_0x58ee22(_0x254e9a._0x1d01d1),_0x3a99cd[_0x58ee22(_0x254e9a._0x239486)]='parentId',_0x3a99cd[_0x58ee22(0x1cc)]=_0x58ee22(0x1c9),_0x3a99cd['Syort']='fieldsUi',_0x3a99cd[_0x58ee22(0x1b4)]=function(_0x55c7d6,_0x138dc1){return _0x55c7d6===_0x138dc1;},_0x3a99cd['MCJOm']=_0x58ee22(_0x254e9a._0x5995c3),_0x3a99cd[_0x58ee22(_0x254e9a._0x146cca)]=_0x58ee22(_0x254e9a._0x3b4ce6);const _0x6fb61c=_0x3a99cd,_0x52c520=_0x2b56d8[_0x58ee22(0x1ba)](_0x6fb61c[_0x58ee22(0x1b5)],_0x50234c),_0x3a1a63=_0x2b56d8[_0x58ee22(_0x254e9a._0x31335e)](_0x6fb61c[_0x58ee22(0x1b3)],_0x50234c),_0x4a93b0=_0x2b56d8[_0x58ee22(0x1ba)](_0x6fb61c[_0x58ee22(_0x254e9a._0xa577ff)],_0x50234c),_0x5f26d1=_0x2b56d8[_0x58ee22(_0x254e9a._0x3a5ec8)](_0x6fb61c[_0x58ee22(_0x254e9a._0x2b2d42)],_0x50234c),_0x34d2e5=(0x0,utils_1[_0x58ee22(0x1b9)])(_0x5f26d1),_0x3ffc77=_0x6fb61c[_0x58ee22(_0x254e9a._0x4fa47b)](_0x34e6e5['connectionType'],_0x6fb61c[_0x58ee22(_0x254e9a._0x4d5b51)])?'':_0x6fb61c[_0x58ee22(_0x254e9a._0x146cca)],_0x2ffaee=_0x3ffc77+'/'+_0x52c520+'(\x27'+_0x3a1a63+_0x58ee22(_0x254e9a._0x22c002)+_0x4a93b0;return(0x0,priorityApi_1['priorityApiRequest'])(_0x2b56d8,_0x58ee22(0x1cb),_0x2ffaee,_0x34e6e5,_0x34d2e5);}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.create = create;
4
+ const utils_1 = require("../../helpers/utils");
5
+ const priorityApi_1 = require("../../transport/priorityApi");
6
+ async function create(execFns, index, context) {
7
+ const parentForm = execFns.getNodeParameter('parentForm', index);
8
+ const parentId = execFns.getNodeParameter('parentId', index);
9
+ const subFormName = execFns.getNodeParameter('subFormName', index);
10
+ const fieldsUi = execFns.getNodeParameter('fieldsUi', index);
11
+ const body = (0, utils_1.extractFieldValues)(fieldsUi);
12
+ const prefix = context.connectionType === 'router' ? '' : '/api';
13
+ const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}`;
14
+ return (0, priorityApi_1.priorityApiRequest)(execFns, 'POST', urlPath, context, body);
15
+ }
@@ -1 +1,14 @@
1
- 'use strict';const _0x5f5c5a=_0x5193;(function(_0x247dc4,_0x15252f){const _0x82d9ae={_0x4b0cbf:0xda,_0xe7f7bd:0xd9,_0x4a00c6:0xdd,_0x505bbd:0xf0},_0x3f70cb=_0x5193,_0x3785c7=_0x247dc4();while(!![]){try{const _0x74f0=-parseInt(_0x3f70cb(_0x82d9ae._0x4b0cbf))/0x1+parseInt(_0x3f70cb(0xe7))/0x2+-parseInt(_0x3f70cb(0xe2))/0x3*(-parseInt(_0x3f70cb(0xf1))/0x4)+parseInt(_0x3f70cb(0xd7))/0x5+-parseInt(_0x3f70cb(0xe9))/0x6*(-parseInt(_0x3f70cb(_0x82d9ae._0xe7f7bd))/0x7)+-parseInt(_0x3f70cb(_0x82d9ae._0x4a00c6))/0x8*(parseInt(_0x3f70cb(0xe3))/0x9)+parseInt(_0x3f70cb(_0x82d9ae._0x505bbd))/0xa;if(_0x74f0===_0x15252f)break;else _0x3785c7['push'](_0x3785c7['shift']());}catch(_0x488904){_0x3785c7['push'](_0x3785c7['shift']());}}}(_0x3326,0xd4020));const _0x1067e7={};_0x1067e7['value']=!![],Object[_0x5f5c5a(0xe5)](exports,_0x5f5c5a(0xd6),_0x1067e7),exports[_0x5f5c5a(0xee)]=deleteSubForm;function _0x5193(_0x478a40,_0x37dcd2){_0x478a40=_0x478a40-0xd5;const _0x332670=_0x3326();let _0x5193a8=_0x332670[_0x478a40];if(_0x5193['auNxkZ']===undefined){var _0x37e88c=function(_0x59b86f){const _0x21a157='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x52a4d2='',_0x4c3f37='';for(let _0x4d32d5=0x0,_0x32e988,_0x32c1b5,_0x5d5d8c=0x0;_0x32c1b5=_0x59b86f['charAt'](_0x5d5d8c++);~_0x32c1b5&&(_0x32e988=_0x4d32d5%0x4?_0x32e988*0x40+_0x32c1b5:_0x32c1b5,_0x4d32d5++%0x4)?_0x52a4d2+=String['fromCharCode'](0xff&_0x32e988>>(-0x2*_0x4d32d5&0x6)):0x0){_0x32c1b5=_0x21a157['indexOf'](_0x32c1b5);}for(let _0x2dd72b=0x0,_0xfc3c25=_0x52a4d2['length'];_0x2dd72b<_0xfc3c25;_0x2dd72b++){_0x4c3f37+='%'+('00'+_0x52a4d2['charCodeAt'](_0x2dd72b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c3f37);};_0x5193['LKXuZj']=_0x37e88c,_0x5193['qdiIUG']={},_0x5193['auNxkZ']=!![];}const _0x81cab9=_0x332670[0x0],_0x327742=_0x478a40+_0x81cab9,_0x411840=_0x5193['qdiIUG'][_0x327742];return!_0x411840?(_0x5193a8=_0x5193['LKXuZj'](_0x5193a8),_0x5193['qdiIUG'][_0x327742]=_0x5193a8):_0x5193a8=_0x411840,_0x5193a8;}const priorityApi_1=require(_0x5f5c5a(0xde));async function deleteSubForm(_0x3990d0,_0x3b1574,_0x54b6d6){const _0x2e27d0={_0x184f04:0xef,_0x30bae5:0xdf,_0x1b87ac:0xe0,_0x228916:0xe4,_0x3039ca:0xed,_0x4697c8:0xdc,_0x28da11:0xd5,_0x1a6b8b:0xf2,_0x3e91ff:0xe1,_0x24cb68:0xe1,_0x24cf4c:0xed,_0x4ceaef:0xd8,_0x59a4e2:0xdb,_0x37949d:0xec,_0x437516:0xdc},_0x26b621=_0x5f5c5a,_0x333a29={};_0x333a29[_0x26b621(_0x2e27d0._0x184f04)]=_0x26b621(_0x2e27d0._0x30bae5),_0x333a29[_0x26b621(0xeb)]='parentId',_0x333a29[_0x26b621(_0x2e27d0._0x1b87ac)]=_0x26b621(_0x2e27d0._0x228916),_0x333a29[_0x26b621(_0x2e27d0._0x3039ca)]=_0x26b621(_0x2e27d0._0x4697c8),_0x333a29[_0x26b621(0xd8)]=function(_0x3a96ad,_0x354671){return _0x3a96ad===_0x354671;},_0x333a29[_0x26b621(_0x2e27d0._0x28da11)]='router',_0x333a29[_0x26b621(0xe6)]='/api',_0x333a29[_0x26b621(0xdb)]=_0x26b621(_0x2e27d0._0x1a6b8b);const _0x55bcfe=_0x333a29,_0x4af632=_0x3990d0[_0x26b621(_0x2e27d0._0x3e91ff)](_0x55bcfe['FVoAe'],_0x3b1574),_0x3907ea=_0x3990d0[_0x26b621(_0x2e27d0._0x24cb68)](_0x55bcfe['pkhbA'],_0x3b1574),_0x21e2ff=_0x3990d0['getNodeParameter'](_0x55bcfe[_0x26b621(_0x2e27d0._0x1b87ac)],_0x3b1574),_0x4178ce=_0x3990d0['getNodeParameter'](_0x55bcfe[_0x26b621(_0x2e27d0._0x24cf4c)],_0x3b1574),_0x39ba4c=_0x55bcfe[_0x26b621(_0x2e27d0._0x4ceaef)](_0x54b6d6['connectionType'],_0x55bcfe[_0x26b621(_0x2e27d0._0x28da11)])?'':_0x55bcfe[_0x26b621(0xe6)],_0x1913c8=_0x39ba4c+'/'+_0x4af632+'(\x27'+_0x3907ea+_0x26b621(0xe8)+_0x21e2ff+'(\x27'+_0x4178ce+'\x27)';await(0x0,priorityApi_1[_0x26b621(0xea)])(_0x3990d0,_0x55bcfe[_0x26b621(_0x2e27d0._0x59a4e2)],_0x1913c8,_0x54b6d6);const _0x3dea03={};return _0x3dea03[_0x26b621(_0x2e27d0._0x37949d)]=!![],_0x3dea03[_0x26b621(_0x2e27d0._0x437516)]=_0x4178ce,_0x3dea03;}function _0x3326(){const _0x5c197b=['Bw15vfC','mtyWmZm1ngLXEe1tra','jYKV','ndC2ndeWogLit09zuq','ChjPB3jPDhLbCgLszxf1zxn0','CgTOyKe','C3vJy2vZCW','A3D3tei','zgvSzxrLu3vIrM9YBq','rLzVqwu','mtK1mta5mev1yxzXDW','mtmXnKHSyLrnza','revmrvrf','t2P4s24','x19LC01VzhvSzq','ndm2mZG2mfDlq0rgwa','DMDTrNq','mtrqv2rWqMG','mty3ntK3m0zcEePOzG','we5iDvy','C3vIrM9YBuLK','mtmYodG0mZj0EMjIwMK','lI4VlI4VDhjHBNnWB3j0l3bYAw9YAxr5qxbP','CgfYzw50rM9YBq','tvbUEg8','z2v0tM9KzvbHCMfTzxrLCG','nJGXowDKyMHWCW','oxPZthDMyW','C3vIrM9YBu5HBwu','zgvMAw5LuhjVCgvYDhK'];_0x3326=function(){return _0x5c197b;};return _0x3326();}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteSubForm = deleteSubForm;
4
+ const priorityApi_1 = require("../../transport/priorityApi");
5
+ async function deleteSubForm(execFns, index, context) {
6
+ const parentForm = execFns.getNodeParameter('parentForm', index);
7
+ const parentId = execFns.getNodeParameter('parentId', index);
8
+ const subFormName = execFns.getNodeParameter('subFormName', index);
9
+ const subFormId = execFns.getNodeParameter('subFormId', index);
10
+ const prefix = context.connectionType === 'router' ? '' : '/api';
11
+ const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}('${subFormId}')`;
12
+ await (0, priorityApi_1.priorityApiRequest)(execFns, 'DELETE', urlPath, context);
13
+ return { success: true, subFormId };
14
+ }