@hotmeshio/hotmesh 0.3.15 → 0.3.17

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 (91) hide show
  1. package/README.md +69 -52
  2. package/build/modules/key.js +1 -1
  3. package/build/modules/utils.js +1 -1
  4. package/build/package.json +24 -22
  5. package/build/services/activities/activity.js +1 -1
  6. package/build/services/activities/await.js +1 -1
  7. package/build/services/activities/cycle.js +1 -1
  8. package/build/services/activities/hook.js +1 -1
  9. package/build/services/activities/index.js +1 -1
  10. package/build/services/activities/interrupt.js +1 -1
  11. package/build/services/activities/signal.js +1 -1
  12. package/build/services/activities/trigger.js +1 -1
  13. package/build/services/activities/worker.js +1 -1
  14. package/build/services/collator/index.js +1 -1
  15. package/build/services/compiler/deployer.js +1 -1
  16. package/build/services/compiler/index.js +1 -1
  17. package/build/services/compiler/validator.js +1 -1
  18. package/build/services/connector/factory.js +2 -2
  19. package/build/services/connector/providers/nats.js +3 -1
  20. package/build/services/engine/index.js +1 -1
  21. package/build/services/exporter/index.js +1 -1
  22. package/build/services/hotmesh/index.js +2 -0
  23. package/build/services/mapper/index.js +1 -1
  24. package/build/services/meshcall/index.d.ts +5 -4
  25. package/build/services/meshcall/index.js +23 -9
  26. package/build/services/meshdata/index.js +3 -2
  27. package/build/services/meshflow/client.js +1 -1
  28. package/build/services/meshflow/connection.js +6 -4
  29. package/build/services/meshflow/exporter.js +1 -1
  30. package/build/services/meshflow/worker.js +1 -1
  31. package/build/services/pipe/functions/array.js +1 -1
  32. package/build/services/pipe/functions/bitwise.js +1 -1
  33. package/build/services/pipe/functions/conditional.js +1 -1
  34. package/build/services/pipe/functions/cron.js +1 -1
  35. package/build/services/pipe/functions/date.js +1 -1
  36. package/build/services/pipe/functions/index.js +1 -1
  37. package/build/services/pipe/functions/json.js +1 -1
  38. package/build/services/pipe/functions/logical.js +1 -1
  39. package/build/services/pipe/functions/math.js +1 -1
  40. package/build/services/pipe/functions/number.js +1 -1
  41. package/build/services/pipe/functions/object.js +1 -1
  42. package/build/services/pipe/functions/string.js +1 -1
  43. package/build/services/pipe/functions/symbol.js +1 -1
  44. package/build/services/pipe/functions/unary.js +1 -1
  45. package/build/services/pipe/index.js +1 -1
  46. package/build/services/quorum/index.js +1 -1
  47. package/build/services/reporter/index.js +1 -1
  48. package/build/services/router/index.js +1 -1
  49. package/build/services/search/factory.d.ts +1 -1
  50. package/build/services/search/providers/postgres/postgres.d.ts +1 -1
  51. package/build/services/search/providers/postgres/postgres.js +1 -1
  52. package/build/services/search/providers/redis/ioredis.js +1 -1
  53. package/build/services/search/providers/redis/redis.js +1 -1
  54. package/build/services/serializer/index.js +1 -1
  55. package/build/services/store/providers/postgres/kvsql.d.ts +68 -63
  56. package/build/services/store/providers/postgres/kvsql.js +1 -1
  57. package/build/services/store/providers/postgres/kvtables.d.ts +15 -0
  58. package/build/services/store/providers/postgres/kvtables.js +1 -0
  59. package/build/services/store/providers/postgres/kvtransaction.d.ts +36 -0
  60. package/build/services/store/providers/postgres/kvtransaction.js +1 -0
  61. package/build/services/store/providers/postgres/kvtypes/hash.d.ts +55 -0
  62. package/build/services/store/providers/postgres/kvtypes/hash.js +1 -0
  63. package/build/services/store/providers/postgres/kvtypes/list.d.ts +33 -0
  64. package/build/services/store/providers/postgres/kvtypes/list.js +1 -0
  65. package/build/services/store/providers/postgres/kvtypes/string.d.ts +20 -0
  66. package/build/services/store/providers/postgres/kvtypes/string.js +1 -0
  67. package/build/services/store/providers/postgres/kvtypes/zset.d.ts +41 -0
  68. package/build/services/store/providers/postgres/kvtypes/zset.js +1 -0
  69. package/build/services/store/providers/postgres/postgres.d.ts +3 -12
  70. package/build/services/store/providers/postgres/postgres.js +1 -1
  71. package/build/services/store/providers/redis/_base.js +1 -1
  72. package/build/services/store/providers/redis/ioredis.js +1 -1
  73. package/build/services/store/providers/redis/redis.js +1 -1
  74. package/build/services/store/providers/store-initializable.js +1 -1
  75. package/build/services/stream/providers/nats/nats.js +1 -1
  76. package/build/services/stream/providers/postgres/postgres.js +1 -1
  77. package/build/services/stream/providers/redis/ioredis.js +1 -1
  78. package/build/services/stream/providers/redis/redis.js +1 -1
  79. package/build/services/stream/providers/stream-initializable.js +1 -1
  80. package/build/services/sub/providers/redis/ioredis.js +1 -1
  81. package/build/services/sub/providers/redis/redis.js +1 -1
  82. package/build/services/task/index.js +1 -1
  83. package/build/services/telemetry/index.js +1 -1
  84. package/build/services/worker/index.js +1 -1
  85. package/build/types/meshcall.d.ts +6 -6
  86. package/package.json +24 -22
  87. package/types/index.ts +3 -3
  88. package/types/manifest.ts +1 -1
  89. package/types/meshcall.ts +6 -6
  90. package/types/postgres.ts +8 -1
  91. package/types/provider.ts +7 -11
@@ -1 +1 @@
1
- 'use strict';function _0xa532(){const _0xeff5f1=['40aIEmVT','18671888aGmXdP','3592010XOqbOz','2512126rCXgVp','191814RRVqcY','1307130VfFvWb','8249694zXSxDv','12292469JimGoN'];_0xa532=function(){return _0xeff5f1;};return _0xa532();}function _0x34a6(_0x3b4e58,_0x491c2b){const _0xa532c3=_0xa532();return _0x34a6=function(_0x34a677,_0x12b992){_0x34a677=_0x34a677-0x18b;let _0x1fcee8=_0xa532c3[_0x34a677];return _0x1fcee8;},_0x34a6(_0x3b4e58,_0x491c2b);}(function(_0x5d95ef,_0x55dcff){const _0x1c51d3=_0x34a6,_0x1202b6=_0x5d95ef();while(!![]){try{const _0x44e108=parseInt(_0x1c51d3(0x192))/0x1+-parseInt(_0x1c51d3(0x190))/0x2+parseInt(_0x1c51d3(0x191))/0x3*(-parseInt(_0x1c51d3(0x18d))/0x4)+parseInt(_0x1c51d3(0x18f))/0x5+parseInt(_0x1c51d3(0x18b))/0x6+parseInt(_0x1c51d3(0x18c))/0x7+-parseInt(_0x1c51d3(0x18e))/0x8;if(_0x44e108===_0x55dcff)break;else _0x1202b6['push'](_0x1202b6['shift']());}catch(_0x5e265f){_0x1202b6['push'](_0x1202b6['shift']());}}}(_0xa532,0xe258f));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Activity']=void 0x0;const enums_1=require('../../modules/enums'),errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),mapper_1=require('../mapper'),pipe_1=require('../pipe'),serializer_1=require('../serializer'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream');class Activity{constructor(_0x481a42,_0x24793b,_0x3fc02e,_0x14b64f,_0x299fb4,_0x5d3c98){this['status']=stream_1['StreamStatus']['SUCCESS'],this['code']=0xc8,this['adjacentIndex']=0x0,this['config']=_0x481a42,this['data']=_0x24793b,this['metadata']=_0x3fc02e,this['hook']=_0x14b64f,this['engine']=_0x299fb4,this['context']=_0x5d3c98||{'data':{},'metadata':{}},this['logger']=_0x299fb4['logger'],this['store']=_0x299fb4['store'];}['setLeg'](_0x386978){this['leg']=_0x386978;}['mapStatusThreshold'](){if(this['config']['statusThreshold']!==undefined){const _0x1e5d30=pipe_1['Pipe']['resolve'](this['config']['statusThreshold'],this['context']);if(_0x1e5d30!==undefined&&!isNaN(Number(_0x1e5d30)))return _0x1e5d30;}return 0x0;}async['verifyEntry'](){this['setLeg'](0x1),await this['getState']();const _0x5a6d3b=this['mapStatusThreshold']();try{collator_1['CollatorService']['assertJobActive'](this['context']['metadata']['js'],this['context']['metadata']['jid'],this['metadata']['aid'],_0x5a6d3b);}catch(_0x369f99){await collator_1['CollatorService']['notarizeEntry'](this);if(_0x5a6d3b>0x0){if(this['context']['metadata']['js']===_0x5a6d3b){const _0x8084d2=await this['setStatus'](-_0x5a6d3b);Number(_0x8084d2)===0x0&&await this['engine']['runJobCompletionTasks'](this['context']);}}else throw _0x369f99;return;}await collator_1['CollatorService']['notarizeEntry'](this);}async['verifyReentry'](){const _0x1af5e7=this['context']['metadata']['guid'];return this['setLeg'](0x2),await this['getState'](),collator_1['CollatorService']['assertJobActive'](this['context']['metadata']['js'],this['context']['metadata']['jid'],this['metadata']['aid']),await collator_1['CollatorService']['notarizeReentry'](this,_0x1af5e7);}async['processEvent'](_0x3261d6=stream_1['StreamStatus']['SUCCESS'],_0x1f66c2=0xc8,_0x194274='output'){this['setLeg'](0x2);const _0x35c3e4=this['context']['metadata']['jid'];if(!_0x35c3e4){this['logger']['error']('activity-process-event-error',{'message':'job\x20id\x20is\x20undefined'});return;}const _0x22641c=this['metadata']['aid'];this['status']=_0x3261d6,this['code']=_0x1f66c2,this['logger']['debug']('activity-process-event',{'topic':this['config']['subtype'],'jid':_0x35c3e4,'aid':_0x22641c,'status':_0x3261d6,'code':_0x1f66c2});let _0x5e7d78;try{const _0x27a3b1=await this['verifyReentry']();this['adjacentIndex']=collator_1['CollatorService']['getDimensionalIndex'](_0x27a3b1),_0x5e7d78=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x5e7d78['startActivitySpan'](this['leg']);let _0x5acf89;if(_0x3261d6===stream_1['StreamStatus']['PENDING'])_0x5acf89=await this['processPending'](_0x194274);else _0x3261d6===stream_1['StreamStatus']['SUCCESS']?_0x5acf89=await this['processSuccess'](_0x194274):_0x5acf89=await this['processError']();this['transitionAdjacent'](_0x5acf89,_0x5e7d78);}catch(_0x4bdbed){if(_0x4bdbed instanceof errors_1['CollationError']){this['logger']['info']('process-event-'+_0x4bdbed['fault']+'-error',{..._0x4bdbed});return;}else{if(_0x4bdbed instanceof errors_1['InactiveJobError']){this['logger']['info']('process-event-inactive-job-error',{..._0x4bdbed});return;}else{if(_0x4bdbed instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x4bdbed});return;}else{if(_0x4bdbed instanceof errors_1['GetStateError']){this['logger']['info']('process-event-get-job-error',{..._0x4bdbed});return;}}}}this['logger']['error']('activity-process-event-error',{..._0x4bdbed,'message':_0x4bdbed['message'],'stack':_0x4bdbed['stack'],'name':_0x4bdbed['name']}),_0x5e7d78?.['setActivityError'](_0x4bdbed['message']);throw _0x4bdbed;}finally{_0x5e7d78?.['endActivitySpan'](),this['logger']['debug']('activity-process-event-end',{'jid':_0x35c3e4,'aid':_0x22641c});}}async['processPending'](_0x36add9){this['bindActivityData'](_0x36add9),this['adjacencyList']=await this['filterAdjacent'](),this['mapJobData']();const _0x13ddb3=this['store']['transact']();return await this['setState'](_0x13ddb3),await collator_1['CollatorService']['notarizeContinuation'](this,_0x13ddb3),await this['setStatus'](this['adjacencyList']['length'],_0x13ddb3),await _0x13ddb3['exec']();}async['processSuccess'](_0x10d7a9){this['bindActivityData'](_0x10d7a9),this['adjacencyList']=await this['filterAdjacent'](),this['mapJobData']();const _0x5ab04e=this['store']['transact']();return await this['setState'](_0x5ab04e),await collator_1['CollatorService']['notarizeCompletion'](this,_0x5ab04e),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x5ab04e),await _0x5ab04e['exec']();}async['processError'](){this['bindActivityError'](this['data']),this['adjacencyList']=await this['filterAdjacent']();!this['adjacencyList']['length']&&this['bindJobError'](this['data']);this['mapJobData']();const _0x354290=this['store']['transact']();return await this['setState'](_0x354290),await collator_1['CollatorService']['notarizeCompletion'](this,_0x354290),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x354290),await _0x354290['exec']();}async['transitionAdjacent'](_0x28e609,_0x4c58b6){_0x4c58b6['mapActivityAttributes']();const _0x59af10=this['resolveStatus'](_0x28e609),_0x323e23={'app.job.jss':_0x59af10},_0x5db331=await this['transition'](this['adjacencyList'],_0x59af10);_0x5db331?.['length']&&(_0x323e23['app.activity.mids']=_0x5db331['join'](',')),_0x4c58b6['setActivityAttributes'](_0x323e23);}['resolveStatus'](_0x4d54a3){const _0xb5d877=_0x4d54a3[_0x4d54a3['length']-0x1];return Array['isArray'](_0xb5d877)?Number(_0xb5d877[0x1]):Number(_0xb5d877);}['mapJobData'](){if(this['config']['job']?.['maps']){const _0x3ef1d5=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['job']['maps']),this['context']),_0x5065de=_0x3ef1d5['mapRules']();if(_0x5065de)for(const _0x4b712a in _0x5065de){const _0x1d50d4=_0x4b712a['indexOf']('[');if(_0x1d50d4>-0x1){const _0x4c66a9=_0x4b712a['substring'](_0x1d50d4+0x1)['split'](']')[0x0];if(!isNaN(Number(_0x4c66a9))){const _0x4e7525=_0x4b712a['substring'](0x0,_0x1d50d4);_0x5065de[_0x4e7525]=_0x5065de[_0x4b712a],delete _0x5065de[_0x4b712a];}else{if(_0x4c66a9==='-'||_0x4c66a9==='_'){const _0x9b83=_0x5065de[_0x4b712a];Object['keys'](_0x9b83)['forEach'](_0x586f3b=>{_0x5065de[_0x586f3b]=_0x9b83[_0x586f3b];});}}}}this['context']['data']=_0x5065de;}}['mapInputData'](){if(this['config']['input']?.['maps']){const _0x1c27ee=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['input']['maps']),this['context']);this['context']['data']=_0x1c27ee['mapRules']();}}['mapOutputData'](){if(this['config']['output']?.['maps']){const _0x1ef0ca=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['output']['maps']),this['context']),_0x43429c=_0x1ef0ca['mapRules'](),_0xdf01f1=this['metadata']['aid'],_0x41d516={...this['context'][_0xdf01f1]['output'],..._0x43429c};this['context'][_0xdf01f1]['output']['data']=_0x41d516;}}async['registerTimeout'](){}['bindActivityError'](_0x396245){const _0x3e0512=this['context'][this['metadata']['aid']]['output']['metadata'];_0x3e0512['err']=JSON['stringify'](this['data']),_0x3e0512['$error']={..._0x396245,'is_stream_error':!![]};}['bindJobError'](_0x2165b5){this['context']['metadata']['err']=JSON['stringify']({..._0x2165b5,'is_stream_error':!![]});}async['getTriggerConfig'](){return await this['store']['getSchema'](this['config']['trigger'],await this['engine']['getVID']());}['getJobStatus'](){return null;}async['setStatus'](_0x539918,_0x1ab6ae){const {id:_0x324170}=await this['engine']['getVID']();return await this['store']['setStatus'](_0x539918,this['context']['metadata']['jid'],_0x324170,_0x1ab6ae);}['authorizeEntry'](_0x469543){return this['adjacencyList']?.['map'](_0x4358c1=>{const {metadata:{aid:_0x286e53}}=_0x4358c1;return _0x469543[_0x286e53+'/output/metadata/as']=collator_1['CollatorService']['getSeed'](),_0x286e53;})??[];}['bindDimensionalAddress'](_0x67ff12){const _0x44ddbe=this['resolveDad']();_0x67ff12[this['metadata']['aid']+'/output/metadata/dad']=_0x44ddbe;}async['setState'](_0x37689c){const _0x527826=this['context']['metadata']['jid'];this['bindJobMetadata'](),this['bindActivityMetadata']();const _0x296c98={};await this['bindJobState'](_0x296c98);const _0x3f42ef=this['authorizeEntry'](_0x296c98);this['bindDimensionalAddress'](_0x296c98),this['bindActivityState'](_0x296c98);const _0x4d1fd9=['$'+this['config']['subscribes'],this['metadata']['aid'],..._0x3f42ef],_0x26af5d=collator_1['CollatorService']['getDimensionsById']([...this['config']['ancestors'],this['metadata']['aid']],this['resolveDad']());return await this['store']['setState'](_0x296c98,this['getJobStatus'](),_0x527826,_0x4d1fd9,_0x26af5d,_0x37689c);}['bindJobMetadata'](){this['context']['metadata']['ju']=(0x0,utils_1['formatISODate'])(new Date());}['bindActivityMetadata'](){const _0x50fd63=this['context']['$self'];!_0x50fd63['output']['metadata']&&(_0x50fd63['output']['metadata']={});this['status']===stream_1['StreamStatus']['ERROR']&&(_0x50fd63['output']['metadata']['err']=JSON['stringify'](this['data']));const _0x26b1a6=(0x0,utils_1['formatISODate'])(new Date());_0x50fd63['output']['metadata']['ac']=_0x26b1a6,_0x50fd63['output']['metadata']['au']=_0x26b1a6,_0x50fd63['output']['metadata']['atp']=this['config']['type'],this['config']['subtype']&&(_0x50fd63['output']['metadata']['stp']=this['config']['subtype']),_0x50fd63['output']['metadata']['aid']=this['metadata']['aid'];}async['bindJobState'](_0x1b2f21){const _0x487828=await this['getTriggerConfig'](),_0xcfcafc=[..._0x487828['PRODUCES']||[],...this['bindJobMetadataPaths']()];for(const _0x528338 of _0xcfcafc){const _0x2a279e=(0x0,utils_1['getValueByPath'])(this['context'],_0x528338);_0x2a279e!==undefined&&(_0x1b2f21[_0x528338]=_0x2a279e);}for(const _0xd1ed4b in this['context']?.['data']??{}){(_0xd1ed4b['startsWith']('-')||_0xd1ed4b['startsWith']('_'))&&(_0x1b2f21[_0xd1ed4b]=this['context']['data'][_0xd1ed4b]);}telemetry_1['TelemetryService']['bindJobTelemetryToState'](_0x1b2f21,this['config'],this['context']);}['bindActivityState'](_0x3b5947){const _0x28e50a=[...this['config']['produces'],...this['bindActivityMetadataPaths']()];for(const _0xf3c4bd of _0x28e50a){const _0x481703=this['metadata']['aid']+'/'+_0xf3c4bd,_0x51f9d3=(0x0,utils_1['getValueByPath'])(this['context'],_0x481703);_0x51f9d3!==undefined&&(_0x3b5947[_0x481703]=_0x51f9d3);}telemetry_1['TelemetryService']['bindActivityTelemetryToState'](_0x3b5947,this['config'],this['metadata'],this['context'],this['leg']);}['bindJobMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['JOB_UPDATE']['KEYS']['map'](_0x3f16e8=>'metadata/'+_0x3f16e8);}['bindActivityMetadataPaths'](){const _0x20aa14=this['leg']===0x1?'ACTIVITY':'ACTIVITY_UPDATE';return serializer_1['MDATA_SYMBOLS'][_0x20aa14]['KEYS']['map'](_0x3a23d6=>'output/metadata/'+_0x3a23d6);}async['getState'](){const _0x2ce075=this['context']['metadata']['gid'],_0x487eb5='$'+this['config']['subscribes'],_0x1d5ee3={[_0x487eb5]:serializer_1['MDATA_SYMBOLS']['JOB']['KEYS']['map'](_0x31c72d=>'metadata/'+_0x31c72d)};for(let [_0x5c36ba,_0x2fcfe2]of Object['entries'](this['config']['consumes'])){if(_0x5c36ba==='$job')for(const _0x4bac1c of _0x2fcfe2){_0x1d5ee3[_0x487eb5]['push'](_0x4bac1c);}else{_0x5c36ba==='$self'&&(_0x5c36ba=this['metadata']['aid']);!_0x1d5ee3[_0x5c36ba]&&(_0x1d5ee3[_0x5c36ba]=[]);for(const _0x592183 of _0x2fcfe2){_0x1d5ee3[_0x5c36ba]['push'](_0x5c36ba+'/'+_0x592183);}}}telemetry_1['TelemetryService']['addTargetTelemetryPaths'](_0x1d5ee3,this['config'],this['metadata'],this['leg']);const {dad:_0x25ea51,jid:_0x342823}=this['context']['metadata'],_0x209a45=collator_1['CollatorService']['getDimensionsById']([...this['config']['ancestors'],this['metadata']['aid']],_0x25ea51||''),[_0x3141a4,_0x38b939]=await this['store']['getState'](_0x342823,_0x1d5ee3,_0x209a45);this['context']=(0x0,utils_1['restoreHierarchy'])(_0x3141a4),this['assertGenerationalId'](this['context']?.['metadata']?.['gid'],_0x2ce075),this['initDimensionalAddress'](_0x25ea51),this['initSelf'](this['context']),this['initPolicies'](this['context']);}['assertGenerationalId'](_0x5d51a3,_0x153a49){if(_0x153a49!==_0x5d51a3)throw new errors_1['GenerationalError'](_0x5d51a3,_0x153a49,this['context']?.['metadata']?.['jid']??'',this['context']?.['metadata']?.['aid']??'',this['context']?.['metadata']?.['dad']??'');}['initDimensionalAddress'](_0x5073fb){this['metadata']['dad']=_0x5073fb;}['initSelf'](_0x3818a4){const _0x5065bc=this['metadata']['aid'];!_0x3818a4[_0x5065bc]&&(_0x3818a4[_0x5065bc]={});const _0x5bc2ec=_0x3818a4[_0x5065bc];return!_0x5bc2ec['output']&&(_0x5bc2ec['output']={}),!_0x5bc2ec['input']&&(_0x5bc2ec['input']={}),!_0x5bc2ec['hook']&&(_0x5bc2ec['hook']={}),!_0x5bc2ec['output']['metadata']&&(_0x5bc2ec['output']['metadata']={}),_0x5bc2ec['output']['metadata']['au']=(0x0,utils_1['formatISODate'])(new Date()),_0x3818a4['$self']=_0x5bc2ec,_0x3818a4['$job']=_0x3818a4,_0x3818a4;}['initPolicies'](_0xe7626a){const _0x82ccf2=pipe_1['Pipe']['resolve'](this['config']['expire']??enums_1['HMSH_EXPIRE_DURATION'],_0xe7626a);_0xe7626a['metadata']['expire']=_0x82ccf2;if(this['config']['persistent']!=undefined){const _0x30ddfa=pipe_1['Pipe']['resolve'](this['config']['persistent']??![],_0xe7626a);_0xe7626a['metadata']['persistent']=_0x30ddfa;}}['bindActivityData'](_0x369e63){this['context'][this['metadata']['aid']][_0x369e63]['data']=this['data'];}['resolveDad'](){let _0x112f4e=this['metadata']['dad'];return this['adjacentIndex']>0x0&&(_0x112f4e=_0x112f4e['substring'](0x0,_0x112f4e['lastIndexOf'](','))+','+this['adjacentIndex']),_0x112f4e;}['resolveAdjacentDad'](){return''+this['resolveDad']()+collator_1['CollatorService']['getDimensionalSeed'](0x0);}async['filterAdjacent'](){const _0x3793cb=[],_0x5d49f5=await this['store']['getTransitions'](await this['engine']['getVID']()),_0x26157d=_0x5d49f5['.'+this['metadata']['aid']],_0x2522c0=this['resolveAdjacentDad']();if(_0x26157d)for(const _0x4e2e82 in _0x26157d){const _0x3756d0=_0x26157d[_0x4e2e82];mapper_1['MapperService']['evaluate'](_0x3756d0,this['context'],this['code'])&&_0x3793cb['push']({'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':_0x2522c0,'aid':_0x4e2e82,'spn':this['context']['$self']['output']['metadata']?.['l2s'],'trc':this['context']['metadata']['trc']},'type':stream_1['StreamDataType']['TRANSITION'],'data':{}});}return _0x3793cb;}['isJobComplete'](_0x58b46a){return _0x58b46a<=0x0;}['shouldEmit'](){if(this['config']['emit'])return pipe_1['Pipe']['resolve'](this['config']['emit'],this['context'])===!![];return![];}['shouldPersistJob'](){if(this['config']['persist']!==undefined)return pipe_1['Pipe']['resolve'](this['config']['persist'],this['context'])===!![];return![];}async['transition'](_0x1b9a78,_0x335c8a){if(this['jobWasInterrupted'](_0x335c8a))return;let _0x469612=[];(this['shouldEmit']()||this['isJobComplete'](_0x335c8a)||this['shouldPersistJob']())&&await this['engine']['runJobCompletionTasks'](this['context'],{'emit':!this['isJobComplete'](_0x335c8a)&&!this['shouldPersistJob']()});if(_0x1b9a78['length']&&!this['isJobComplete'](_0x335c8a)){const _0x4ed58f=this['store']['transact']();for(const _0x538b8f of _0x1b9a78){await this['engine']['router']?.['publishMessage'](null,_0x538b8f,_0x4ed58f);}_0x469612=await _0x4ed58f['exec']();}return _0x469612;}['jobWasInterrupted'](_0x52ebb0){return _0x52ebb0<-0x5f5e100;}}exports['Activity']=Activity;
1
+ 'use strict';(function(_0x4a8740,_0x53d060){const _0x56b671=_0xed11,_0x5aacf0=_0x4a8740();while(!![]){try{const _0x2610cc=parseInt(_0x56b671(0xf6))/0x1*(-parseInt(_0x56b671(0xf0))/0x2)+-parseInt(_0x56b671(0xf3))/0x3*(-parseInt(_0x56b671(0xf8))/0x4)+parseInt(_0x56b671(0xfa))/0x5+-parseInt(_0x56b671(0xf7))/0x6*(-parseInt(_0x56b671(0xf9))/0x7)+parseInt(_0x56b671(0xf2))/0x8+-parseInt(_0x56b671(0xf5))/0x9*(parseInt(_0x56b671(0xf4))/0xa)+-parseInt(_0x56b671(0xf1))/0xb;if(_0x2610cc===_0x53d060)break;else _0x5aacf0['push'](_0x5aacf0['shift']());}catch(_0x304e82){_0x5aacf0['push'](_0x5aacf0['shift']());}}}(_0x5a84,0xcecda));function _0x5a84(){const _0x41a1f3=['3Byowsx','14560oGGzAe','8118BlsJmg','1648raEikR','18izGeYu','1956804xNKnjN','1093463kDwjLU','4071475GHZlWn','116eeNnQf','11461956lcrzPq','12206680jhjxgJ'];_0x5a84=function(){return _0x41a1f3;};return _0x5a84();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Activity']=void 0x0;const enums_1=require('../../modules/enums'),errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),mapper_1=require('../mapper'),pipe_1=require('../pipe'),serializer_1=require('../serializer'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream');class Activity{constructor(_0x22c8f9,_0x49f4ba,_0x8ee045,_0x23968d,_0x5a9cc8,_0x1ede0a){this['status']=stream_1['StreamStatus']['SUCCESS'],this['code']=0xc8,this['adjacentIndex']=0x0,this['config']=_0x22c8f9,this['data']=_0x49f4ba,this['metadata']=_0x8ee045,this['hook']=_0x23968d,this['engine']=_0x5a9cc8,this['context']=_0x1ede0a||{'data':{},'metadata':{}},this['logger']=_0x5a9cc8['logger'],this['store']=_0x5a9cc8['store'];}['setLeg'](_0x46d9f9){this['leg']=_0x46d9f9;}['mapStatusThreshold'](){if(this['config']['statusThreshold']!==undefined){const _0x10c9c5=pipe_1['Pipe']['resolve'](this['config']['statusThreshold'],this['context']);if(_0x10c9c5!==undefined&&!isNaN(Number(_0x10c9c5)))return _0x10c9c5;}return 0x0;}async['verifyEntry'](){this['setLeg'](0x1),await this['getState']();const _0x318d8d=this['mapStatusThreshold']();try{collator_1['CollatorService']['assertJobActive'](this['context']['metadata']['js'],this['context']['metadata']['jid'],this['metadata']['aid'],_0x318d8d);}catch(_0x2b7cee){await collator_1['CollatorService']['notarizeEntry'](this);if(_0x318d8d>0x0){if(this['context']['metadata']['js']===_0x318d8d){const _0x556f4b=await this['setStatus'](-_0x318d8d);Number(_0x556f4b)===0x0&&await this['engine']['runJobCompletionTasks'](this['context']);}}else throw _0x2b7cee;return;}await collator_1['CollatorService']['notarizeEntry'](this);}async['verifyReentry'](){const _0x6032d0=this['context']['metadata']['guid'];return this['setLeg'](0x2),await this['getState'](),collator_1['CollatorService']['assertJobActive'](this['context']['metadata']['js'],this['context']['metadata']['jid'],this['metadata']['aid']),await collator_1['CollatorService']['notarizeReentry'](this,_0x6032d0);}async['processEvent'](_0x584450=stream_1['StreamStatus']['SUCCESS'],_0x40e575=0xc8,_0x522429='output'){this['setLeg'](0x2);const _0x180f52=this['context']['metadata']['jid'];if(!_0x180f52){this['logger']['error']('activity-process-event-error',{'message':'job\x20id\x20is\x20undefined'});return;}const _0x2b59ae=this['metadata']['aid'];this['status']=_0x584450,this['code']=_0x40e575,this['logger']['debug']('activity-process-event',{'topic':this['config']['subtype'],'jid':_0x180f52,'aid':_0x2b59ae,'status':_0x584450,'code':_0x40e575});let _0x3e9119;try{const _0x285c6e=await this['verifyReentry']();this['adjacentIndex']=collator_1['CollatorService']['getDimensionalIndex'](_0x285c6e),_0x3e9119=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x3e9119['startActivitySpan'](this['leg']);let _0x23ad8b;if(_0x584450===stream_1['StreamStatus']['PENDING'])_0x23ad8b=await this['processPending'](_0x522429);else _0x584450===stream_1['StreamStatus']['SUCCESS']?_0x23ad8b=await this['processSuccess'](_0x522429):_0x23ad8b=await this['processError']();this['transitionAdjacent'](_0x23ad8b,_0x3e9119);}catch(_0x10f7d6){if(_0x10f7d6 instanceof errors_1['CollationError']){this['logger']['info']('process-event-'+_0x10f7d6['fault']+'-error',{..._0x10f7d6});return;}else{if(_0x10f7d6 instanceof errors_1['InactiveJobError']){this['logger']['info']('process-event-inactive-job-error',{..._0x10f7d6});return;}else{if(_0x10f7d6 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x10f7d6});return;}else{if(_0x10f7d6 instanceof errors_1['GetStateError']){this['logger']['info']('process-event-get-job-error',{..._0x10f7d6});return;}}}}this['logger']['error']('activity-process-event-error',{..._0x10f7d6,'message':_0x10f7d6['message'],'stack':_0x10f7d6['stack'],'name':_0x10f7d6['name']}),_0x3e9119?.['setActivityError'](_0x10f7d6['message']);throw _0x10f7d6;}finally{_0x3e9119?.['endActivitySpan'](),this['logger']['debug']('activity-process-event-end',{'jid':_0x180f52,'aid':_0x2b59ae});}}async['processPending'](_0x4e046a){this['bindActivityData'](_0x4e046a),this['adjacencyList']=await this['filterAdjacent'](),this['mapJobData']();const _0x2eec00=this['store']['transact']();return await this['setState'](_0x2eec00),await collator_1['CollatorService']['notarizeContinuation'](this,_0x2eec00),await this['setStatus'](this['adjacencyList']['length'],_0x2eec00),await _0x2eec00['exec']();}async['processSuccess'](_0x388f52){this['bindActivityData'](_0x388f52),this['adjacencyList']=await this['filterAdjacent'](),this['mapJobData']();const _0x1b239e=this['store']['transact']();return await this['setState'](_0x1b239e),await collator_1['CollatorService']['notarizeCompletion'](this,_0x1b239e),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x1b239e),await _0x1b239e['exec']();}async['processError'](){this['bindActivityError'](this['data']),this['adjacencyList']=await this['filterAdjacent']();!this['adjacencyList']['length']&&this['bindJobError'](this['data']);this['mapJobData']();const _0xeb0c7c=this['store']['transact']();return await this['setState'](_0xeb0c7c),await collator_1['CollatorService']['notarizeCompletion'](this,_0xeb0c7c),await this['setStatus'](this['adjacencyList']['length']-0x1,_0xeb0c7c),await _0xeb0c7c['exec']();}async['transitionAdjacent'](_0x60584,_0x279dd2){_0x279dd2['mapActivityAttributes']();const _0x59599c=this['resolveStatus'](_0x60584),_0x22e43a={'app.job.jss':_0x59599c},_0x137118=await this['transition'](this['adjacencyList'],_0x59599c);_0x137118?.['length']&&(_0x22e43a['app.activity.mids']=_0x137118['join'](',')),_0x279dd2['setActivityAttributes'](_0x22e43a);}['resolveStatus'](_0x47344d){const _0x2b63ab=_0x47344d[_0x47344d['length']-0x1];return Array['isArray'](_0x2b63ab)?Number(_0x2b63ab[0x1]):Number(_0x2b63ab);}['mapJobData'](){if(this['config']['job']?.['maps']){const _0x272873=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['job']['maps']),this['context']),_0xde23a4=_0x272873['mapRules']();if(_0xde23a4)for(const _0x1c66f1 in _0xde23a4){const _0x7835ea=_0x1c66f1['indexOf']('[');if(_0x7835ea>-0x1){const _0x14aa92=_0x1c66f1['substring'](_0x7835ea+0x1)['split'](']')[0x0];if(!isNaN(Number(_0x14aa92))){const _0x4dfa1e=_0x1c66f1['substring'](0x0,_0x7835ea);_0xde23a4[_0x4dfa1e]=_0xde23a4[_0x1c66f1],delete _0xde23a4[_0x1c66f1];}else{if(_0x14aa92==='-'||_0x14aa92==='_'){const _0x30c202=_0xde23a4[_0x1c66f1];Object['keys'](_0x30c202)['forEach'](_0x5de786=>{_0xde23a4[_0x5de786]=_0x30c202[_0x5de786];});}}}}this['context']['data']=_0xde23a4;}}['mapInputData'](){if(this['config']['input']?.['maps']){const _0xa74a43=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['input']['maps']),this['context']);this['context']['data']=_0xa74a43['mapRules']();}}['mapOutputData'](){if(this['config']['output']?.['maps']){const _0x2f1a11=new mapper_1['MapperService']((0x0,utils_1['deepCopy'])(this['config']['output']['maps']),this['context']),_0x5e8645=_0x2f1a11['mapRules'](),_0x1201bd=this['metadata']['aid'],_0x2dacf2={...this['context'][_0x1201bd]['output'],..._0x5e8645};this['context'][_0x1201bd]['output']['data']=_0x2dacf2;}}async['registerTimeout'](){}['bindActivityError'](_0xd9bf87){const _0xe605e9=this['context'][this['metadata']['aid']]['output']['metadata'];_0xe605e9['err']=JSON['stringify'](this['data']),_0xe605e9['$error']={..._0xd9bf87,'is_stream_error':!![]};}['bindJobError'](_0x5f557e){this['context']['metadata']['err']=JSON['stringify']({..._0x5f557e,'is_stream_error':!![]});}async['getTriggerConfig'](){return await this['store']['getSchema'](this['config']['trigger'],await this['engine']['getVID']());}['getJobStatus'](){return null;}async['setStatus'](_0x252824,_0x3b0842){const {id:_0x325f3e}=await this['engine']['getVID']();return await this['store']['setStatus'](_0x252824,this['context']['metadata']['jid'],_0x325f3e,_0x3b0842);}['authorizeEntry'](_0x20cf05){return this['adjacencyList']?.['map'](_0x1578fa=>{const {metadata:{aid:_0x4172bb}}=_0x1578fa;return _0x20cf05[_0x4172bb+'/output/metadata/as']=collator_1['CollatorService']['getSeed'](),_0x4172bb;})??[];}['bindDimensionalAddress'](_0x303467){const _0x1a5f2a=this['resolveDad']();_0x303467[this['metadata']['aid']+'/output/metadata/dad']=_0x1a5f2a;}async['setState'](_0x37be12){const _0x28a83c=this['context']['metadata']['jid'];this['bindJobMetadata'](),this['bindActivityMetadata']();const _0x33b7cf={};await this['bindJobState'](_0x33b7cf);const _0x4ae7c1=this['authorizeEntry'](_0x33b7cf);this['bindDimensionalAddress'](_0x33b7cf),this['bindActivityState'](_0x33b7cf);const _0x3010f7=['$'+this['config']['subscribes'],this['metadata']['aid'],..._0x4ae7c1],_0x2ee352=collator_1['CollatorService']['getDimensionsById']([...this['config']['ancestors'],this['metadata']['aid']],this['resolveDad']());return await this['store']['setState'](_0x33b7cf,this['getJobStatus'](),_0x28a83c,_0x3010f7,_0x2ee352,_0x37be12);}['bindJobMetadata'](){this['context']['metadata']['ju']=(0x0,utils_1['formatISODate'])(new Date());}['bindActivityMetadata'](){const _0x2ed623=this['context']['$self'];!_0x2ed623['output']['metadata']&&(_0x2ed623['output']['metadata']={});this['status']===stream_1['StreamStatus']['ERROR']&&(_0x2ed623['output']['metadata']['err']=JSON['stringify'](this['data']));const _0x17ed45=(0x0,utils_1['formatISODate'])(new Date());_0x2ed623['output']['metadata']['ac']=_0x17ed45,_0x2ed623['output']['metadata']['au']=_0x17ed45,_0x2ed623['output']['metadata']['atp']=this['config']['type'],this['config']['subtype']&&(_0x2ed623['output']['metadata']['stp']=this['config']['subtype']),_0x2ed623['output']['metadata']['aid']=this['metadata']['aid'];}async['bindJobState'](_0x2dc59d){const _0x1eafed=await this['getTriggerConfig'](),_0x3bbc63=[..._0x1eafed['PRODUCES']||[],...this['bindJobMetadataPaths']()];for(const _0x503582 of _0x3bbc63){const _0x34a38b=(0x0,utils_1['getValueByPath'])(this['context'],_0x503582);_0x34a38b!==undefined&&(_0x2dc59d[_0x503582]=_0x34a38b);}for(const _0x367715 in this['context']?.['data']??{}){(_0x367715['startsWith']('-')||_0x367715['startsWith']('_'))&&(_0x2dc59d[_0x367715]=this['context']['data'][_0x367715]);}telemetry_1['TelemetryService']['bindJobTelemetryToState'](_0x2dc59d,this['config'],this['context']);}['bindActivityState'](_0x4e0b32){const _0x1dfd39=[...this['config']['produces'],...this['bindActivityMetadataPaths']()];for(const _0x16e23c of _0x1dfd39){const _0x1e2e91=this['metadata']['aid']+'/'+_0x16e23c,_0x120094=(0x0,utils_1['getValueByPath'])(this['context'],_0x1e2e91);_0x120094!==undefined&&(_0x4e0b32[_0x1e2e91]=_0x120094);}telemetry_1['TelemetryService']['bindActivityTelemetryToState'](_0x4e0b32,this['config'],this['metadata'],this['context'],this['leg']);}['bindJobMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['JOB_UPDATE']['KEYS']['map'](_0x50fa04=>'metadata/'+_0x50fa04);}['bindActivityMetadataPaths'](){const _0x3fe981=this['leg']===0x1?'ACTIVITY':'ACTIVITY_UPDATE';return serializer_1['MDATA_SYMBOLS'][_0x3fe981]['KEYS']['map'](_0x294ac0=>'output/metadata/'+_0x294ac0);}async['getState'](){const _0x4f7f59=this['context']['metadata']['gid'],_0x191997='$'+this['config']['subscribes'],_0x5bcf26={[_0x191997]:serializer_1['MDATA_SYMBOLS']['JOB']['KEYS']['map'](_0x3b8fab=>'metadata/'+_0x3b8fab)};for(let [_0x28351e,_0x14ee4e]of Object['entries'](this['config']['consumes'])){if(_0x28351e==='$job')for(const _0x14e844 of _0x14ee4e){_0x5bcf26[_0x191997]['push'](_0x14e844);}else{_0x28351e==='$self'&&(_0x28351e=this['metadata']['aid']);!_0x5bcf26[_0x28351e]&&(_0x5bcf26[_0x28351e]=[]);for(const _0x5c2250 of _0x14ee4e){_0x5bcf26[_0x28351e]['push'](_0x28351e+'/'+_0x5c2250);}}}telemetry_1['TelemetryService']['addTargetTelemetryPaths'](_0x5bcf26,this['config'],this['metadata'],this['leg']);const {dad:_0x1852b1,jid:_0x1eb003}=this['context']['metadata'],_0x547e9b=collator_1['CollatorService']['getDimensionsById']([...this['config']['ancestors'],this['metadata']['aid']],_0x1852b1||''),[_0x207d42,_0x391ea9]=await this['store']['getState'](_0x1eb003,_0x5bcf26,_0x547e9b);this['context']=(0x0,utils_1['restoreHierarchy'])(_0x207d42),this['assertGenerationalId'](this['context']?.['metadata']?.['gid'],_0x4f7f59),this['initDimensionalAddress'](_0x1852b1),this['initSelf'](this['context']),this['initPolicies'](this['context']);}['assertGenerationalId'](_0x2257d8,_0x3ecde3){if(_0x3ecde3!==_0x2257d8)throw new errors_1['GenerationalError'](_0x2257d8,_0x3ecde3,this['context']?.['metadata']?.['jid']??'',this['context']?.['metadata']?.['aid']??'',this['context']?.['metadata']?.['dad']??'');}['initDimensionalAddress'](_0x5eb483){this['metadata']['dad']=_0x5eb483;}['initSelf'](_0x21aa87){const _0x50e7a5=this['metadata']['aid'];!_0x21aa87[_0x50e7a5]&&(_0x21aa87[_0x50e7a5]={});const _0x512cb0=_0x21aa87[_0x50e7a5];return!_0x512cb0['output']&&(_0x512cb0['output']={}),!_0x512cb0['input']&&(_0x512cb0['input']={}),!_0x512cb0['hook']&&(_0x512cb0['hook']={}),!_0x512cb0['output']['metadata']&&(_0x512cb0['output']['metadata']={}),_0x512cb0['output']['metadata']['au']=(0x0,utils_1['formatISODate'])(new Date()),_0x21aa87['$self']=_0x512cb0,_0x21aa87['$job']=_0x21aa87,_0x21aa87;}['initPolicies'](_0x177817){const _0x34612b=pipe_1['Pipe']['resolve'](this['config']['expire']??enums_1['HMSH_EXPIRE_DURATION'],_0x177817);_0x177817['metadata']['expire']=_0x34612b;if(this['config']['persistent']!=undefined){const _0x37eb0f=pipe_1['Pipe']['resolve'](this['config']['persistent']??![],_0x177817);_0x177817['metadata']['persistent']=_0x37eb0f;}}['bindActivityData'](_0x281983){this['context'][this['metadata']['aid']][_0x281983]['data']=this['data'];}['resolveDad'](){let _0x5b42cb=this['metadata']['dad'];return this['adjacentIndex']>0x0&&(_0x5b42cb=_0x5b42cb['substring'](0x0,_0x5b42cb['lastIndexOf'](','))+','+this['adjacentIndex']),_0x5b42cb;}['resolveAdjacentDad'](){return''+this['resolveDad']()+collator_1['CollatorService']['getDimensionalSeed'](0x0);}async['filterAdjacent'](){const _0x1e904a=[],_0x47f7d1=await this['store']['getTransitions'](await this['engine']['getVID']()),_0x1e6ade=_0x47f7d1['.'+this['metadata']['aid']],_0x3a1006=this['resolveAdjacentDad']();if(_0x1e6ade)for(const _0x4204d5 in _0x1e6ade){const _0x15a2e4=_0x1e6ade[_0x4204d5];mapper_1['MapperService']['evaluate'](_0x15a2e4,this['context'],this['code'])&&_0x1e904a['push']({'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':_0x3a1006,'aid':_0x4204d5,'spn':this['context']['$self']['output']['metadata']?.['l2s'],'trc':this['context']['metadata']['trc']},'type':stream_1['StreamDataType']['TRANSITION'],'data':{}});}return _0x1e904a;}['isJobComplete'](_0x4e222f){return _0x4e222f<=0x0;}['shouldEmit'](){if(this['config']['emit'])return pipe_1['Pipe']['resolve'](this['config']['emit'],this['context'])===!![];return![];}['shouldPersistJob'](){if(this['config']['persist']!==undefined)return pipe_1['Pipe']['resolve'](this['config']['persist'],this['context'])===!![];return![];}async['transition'](_0x359c27,_0x957059){if(this['jobWasInterrupted'](_0x957059))return;let _0x12a52b=[];(this['shouldEmit']()||this['isJobComplete'](_0x957059)||this['shouldPersistJob']())&&await this['engine']['runJobCompletionTasks'](this['context'],{'emit':!this['isJobComplete'](_0x957059)&&!this['shouldPersistJob']()});if(_0x359c27['length']&&!this['isJobComplete'](_0x957059)){const _0x2c3760=this['store']['transact']();for(const _0x3f9071 of _0x359c27){await this['engine']['router']?.['publishMessage'](null,_0x3f9071,_0x2c3760);}_0x12a52b=await _0x2c3760['exec']();}return _0x12a52b;}['jobWasInterrupted'](_0x1b002a){return _0x1b002a<-0x5f5e100;}}function _0xed11(_0x473d63,_0xbe1ae4){const _0x5a848c=_0x5a84();return _0xed11=function(_0xed11f5,_0x4ca54c){_0xed11f5=_0xed11f5-0xf0;let _0x38be15=_0x5a848c[_0xed11f5];return _0x38be15;},_0xed11(_0x473d63,_0xbe1ae4);}exports['Activity']=Activity;
@@ -1 +1 @@
1
- 'use strict';(function(_0x2d57d3,_0x128dce){const _0x1a68e6=_0x37f7,_0x38768d=_0x2d57d3();while(!![]){try{const _0x1b09b6=parseInt(_0x1a68e6(0x172))/0x1+parseInt(_0x1a68e6(0x167))/0x2*(-parseInt(_0x1a68e6(0x16f))/0x3)+parseInt(_0x1a68e6(0x16c))/0x4*(parseInt(_0x1a68e6(0x168))/0x5)+-parseInt(_0x1a68e6(0x171))/0x6*(parseInt(_0x1a68e6(0x16e))/0x7)+parseInt(_0x1a68e6(0x169))/0x8*(parseInt(_0x1a68e6(0x16a))/0x9)+parseInt(_0x1a68e6(0x16d))/0xa*(parseInt(_0x1a68e6(0x173))/0xb)+-parseInt(_0x1a68e6(0x16b))/0xc*(parseInt(_0x1a68e6(0x170))/0xd);if(_0x1b09b6===_0x128dce)break;else _0x38768d['push'](_0x38768d['shift']());}catch(_0x2b65ac){_0x38768d['push'](_0x38768d['shift']());}}}(_0x5c0b,0xeb047));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Await']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream'),activity_1=require('./activity');class Await extends activity_1['Activity']{constructor(_0x3cea86,_0x287d20,_0x1cc3fb,_0x3aa94f,_0x52b739,_0x580038){super(_0x3cea86,_0x287d20,_0x1cc3fb,_0x3aa94f,_0x52b739,_0x580038);}async['process'](){this['logger']['debug']('await-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x3c7871;try{await this['verifyEntry'](),_0x3c7871=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x3c7871['startActivitySpan'](this['leg']),this['mapInputData']();const _0xaff27c=this['store']['transact'](),_0x2b5861=await this['execActivity'](_0xaff27c);await collator_1['CollatorService']['authorizeReentry'](this,_0xaff27c),await this['setState'](_0xaff27c),await this['setStatus'](0x0,_0xaff27c);const _0x58f5f9=await _0xaff27c['exec']();_0x3c7871['mapActivityAttributes']();const _0x12aaa5=this['resolveStatus'](_0x58f5f9);return _0x3c7871['setActivityAttributes']({'app.activity.mid':_0x2b5861,'app.job.jss':_0x12aaa5}),this['context']['metadata']['aid'];}catch(_0x3210ed){if(_0x3210ed instanceof errors_1['InactiveJobError']){this['logger']['error']('await-inactive-job-error',{..._0x3210ed});return;}else{if(_0x3210ed instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x3210ed});return;}else{if(_0x3210ed instanceof errors_1['GetStateError']){this['logger']['error']('await-get-state-error',{..._0x3210ed});return;}else{if(_0x3210ed instanceof errors_1['CollationError']){if(_0x3210ed['fault']==='duplicate'){this['logger']['info']('await-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('await-collation-error',{..._0x3210ed});}else this['logger']['error']('await-process-error',{..._0x3210ed});}}}_0x3c7871?.['setActivityError'](_0x3210ed['message']);throw _0x3210ed;}finally{_0x3c7871?.['endActivitySpan'](),this['logger']['debug']('await-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](_0x4ff947){const _0x29a910=pipe_1['Pipe']['resolve'](this['config']['subtype'],this['context']),_0x36e818={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':this['metadata']['dad'],'aid':this['metadata']['aid'],'topic':_0x29a910,'spn':this['context']['$self']['output']['metadata']?.['l1s'],'trc':this['context']['metadata']['trc']},'type':stream_1['StreamDataType']['AWAIT'],'data':this['context']['data']};if(this['config']['await']!==!![]){const _0x296a14=pipe_1['Pipe']['resolve'](this['config']['await'],this['context']);_0x296a14===![]&&(_0x36e818['metadata']['await']=![]);}return this['config']['retry']&&(_0x36e818['policies']={'retry':this['config']['retry']}),await this['engine']['router']?.['publishMessage'](null,_0x36e818,_0x4ff947);}}function _0x37f7(_0x1276bd,_0x14e2ae){const _0x5c0b4e=_0x5c0b();return _0x37f7=function(_0x37f70e,_0x187895){_0x37f70e=_0x37f70e-0x167;let _0x241655=_0x5c0b4e[_0x37f70e];return _0x241655;},_0x37f7(_0x1276bd,_0x14e2ae);}function _0x5c0b(){const _0x240ffa=['8SKrwPc','5322519ToHVXD','2373528febzoa','522124ppaetc','7681010VGZScd','5334413cCdeqs','17178PkpqiD','78uHUiQv','6TuKFRY','1530684MSGUzM','22inJEdv','580nGzJbl','35fwcVgQ'];_0x5c0b=function(){return _0x240ffa;};return _0x5c0b();}exports['Await']=Await;
1
+ 'use strict';(function(_0x3fd9fb,_0x1c77b2){const _0x5b5341=_0xfa2a,_0x8f34b2=_0x3fd9fb();while(!![]){try{const _0x13c6e7=parseInt(_0x5b5341(0x108))/0x1+parseInt(_0x5b5341(0x107))/0x2*(-parseInt(_0x5b5341(0x10a))/0x3)+-parseInt(_0x5b5341(0x10e))/0x4*(parseInt(_0x5b5341(0x10b))/0x5)+parseInt(_0x5b5341(0x105))/0x6+-parseInt(_0x5b5341(0x10d))/0x7*(parseInt(_0x5b5341(0x10c))/0x8)+-parseInt(_0x5b5341(0x104))/0x9*(-parseInt(_0x5b5341(0x109))/0xa)+-parseInt(_0x5b5341(0x10f))/0xb*(-parseInt(_0x5b5341(0x106))/0xc);if(_0x13c6e7===_0x1c77b2)break;else _0x8f34b2['push'](_0x8f34b2['shift']());}catch(_0x1a29ef){_0x8f34b2['push'](_0x8f34b2['shift']());}}}(_0x2a24,0x6c386));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Await']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream'),activity_1=require('./activity');class Await extends activity_1['Activity']{constructor(_0x2eccbc,_0x10c897,_0x13200c,_0x45d3fe,_0x54f338,_0x499035){super(_0x2eccbc,_0x10c897,_0x13200c,_0x45d3fe,_0x54f338,_0x499035);}async['process'](){this['logger']['debug']('await-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x1c3c86;try{await this['verifyEntry'](),_0x1c3c86=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x1c3c86['startActivitySpan'](this['leg']),this['mapInputData']();const _0x58f816=this['store']['transact'](),_0x8a6e93=await this['execActivity'](_0x58f816);await collator_1['CollatorService']['authorizeReentry'](this,_0x58f816),await this['setState'](_0x58f816),await this['setStatus'](0x0,_0x58f816);const _0x17ea22=await _0x58f816['exec']();_0x1c3c86['mapActivityAttributes']();const _0x12b041=this['resolveStatus'](_0x17ea22);return _0x1c3c86['setActivityAttributes']({'app.activity.mid':_0x8a6e93,'app.job.jss':_0x12b041}),this['context']['metadata']['aid'];}catch(_0x3431d5){if(_0x3431d5 instanceof errors_1['InactiveJobError']){this['logger']['error']('await-inactive-job-error',{..._0x3431d5});return;}else{if(_0x3431d5 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x3431d5});return;}else{if(_0x3431d5 instanceof errors_1['GetStateError']){this['logger']['error']('await-get-state-error',{..._0x3431d5});return;}else{if(_0x3431d5 instanceof errors_1['CollationError']){if(_0x3431d5['fault']==='duplicate'){this['logger']['info']('await-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('await-collation-error',{..._0x3431d5});}else this['logger']['error']('await-process-error',{..._0x3431d5});}}}_0x1c3c86?.['setActivityError'](_0x3431d5['message']);throw _0x3431d5;}finally{_0x1c3c86?.['endActivitySpan'](),this['logger']['debug']('await-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](_0x29b243){const _0x922cc0=pipe_1['Pipe']['resolve'](this['config']['subtype'],this['context']),_0x429ca5={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':this['metadata']['dad'],'aid':this['metadata']['aid'],'topic':_0x922cc0,'spn':this['context']['$self']['output']['metadata']?.['l1s'],'trc':this['context']['metadata']['trc']},'type':stream_1['StreamDataType']['AWAIT'],'data':this['context']['data']};if(this['config']['await']!==!![]){const _0x148f2c=pipe_1['Pipe']['resolve'](this['config']['await'],this['context']);_0x148f2c===![]&&(_0x429ca5['metadata']['await']=![]);}return this['config']['retry']&&(_0x429ca5['policies']={'retry':this['config']['retry']}),await this['engine']['router']?.['publishMessage'](null,_0x429ca5,_0x29b243);}}function _0xfa2a(_0x230548,_0x169f44){const _0x2a24d5=_0x2a24();return _0xfa2a=function(_0xfa2a0,_0x41a3b1){_0xfa2a0=_0xfa2a0-0x104;let _0x274940=_0x2a24d5[_0xfa2a0];return _0x274940;},_0xfa2a(_0x230548,_0x169f44);}function _0x2a24(){const _0x4aa770=['309352ILJxPL','119394eVmutd','3410rolSOL','9IIRtTk','1780845ZltklP','16HapDMa','147007EbxkWb','8ZPhxpc','77jwibtm','15354ljbjrM','1802010jpSPtZ','1131708DjsDWp'];_0x2a24=function(){return _0x4aa770;};return _0x2a24();}exports['Await']=Await;
@@ -1 +1 @@
1
- 'use strict';(function(_0x254af1,_0x4663b0){const _0x55fbea=_0x4393,_0x1c3044=_0x254af1();while(!![]){try{const _0x52c8d9=-parseInt(_0x55fbea(0xd7))/0x1+parseInt(_0x55fbea(0xd6))/0x2+parseInt(_0x55fbea(0xd8))/0x3+-parseInt(_0x55fbea(0xd4))/0x4*(-parseInt(_0x55fbea(0xd1))/0x5)+parseInt(_0x55fbea(0xd5))/0x6*(parseInt(_0x55fbea(0xd3))/0x7)+-parseInt(_0x55fbea(0xcf))/0x8+parseInt(_0x55fbea(0xd2))/0x9*(parseInt(_0x55fbea(0xd0))/0xa);if(_0x52c8d9===_0x4663b0)break;else _0x1c3044['push'](_0x1c3044['shift']());}catch(_0x35b29f){_0x1c3044['push'](_0x1c3044['shift']());}}}(_0x3f38,0x23212));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Cycle']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),telemetry_1=require('../telemetry'),activity_1=require('./activity');function _0x3f38(){const _0x56158d=['23034kHAITz','266112epzPrU','2030040cCuKCq','127070PiZhPy','79935ZcYTQk','9wSRsrn','1470805tTOyGS','8nTuoMY','6vZUXVM','154358mxocBh'];_0x3f38=function(){return _0x56158d;};return _0x3f38();}function _0x4393(_0x4ce7a8,_0x452114){const _0x3f387b=_0x3f38();return _0x4393=function(_0x4393d8,_0xd0f540){_0x4393d8=_0x4393d8-0xcf;let _0x1b0f9b=_0x3f387b[_0x4393d8];return _0x1b0f9b;},_0x4393(_0x4ce7a8,_0x452114);}class Cycle extends activity_1['Activity']{constructor(_0x4c3e9f,_0x50c0ab,_0x1a45f3,_0xba0ce3,_0x57e5d0,_0x4dee5d){super(_0x4c3e9f,_0x50c0ab,_0x1a45f3,_0xba0ce3,_0x57e5d0,_0x4dee5d);}async['process'](){this['logger']['debug']('cycle-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x4c2504;try{await this['verifyEntry'](),_0x4c2504=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x4c2504['startActivitySpan'](this['leg']),this['mapInputData']();let _0x2833bf=this['store']['transact']();await this['setState'](_0x2833bf),await this['setStatus'](0x0,_0x2833bf);const _0xaec630=await _0x2833bf['exec']();_0x4c2504['mapActivityAttributes']();const _0x8de05b=this['resolveStatus'](_0xaec630);_0x2833bf=this['store']['transact']();const _0x2ad034=await this['cycleAncestorActivity'](_0x2833bf);return _0x4c2504['setActivityAttributes']({'app.activity.mid':_0x2ad034,'app.job.jss':_0x8de05b}),await collator_1['CollatorService']['notarizeEarlyExit'](this,_0x2833bf),await _0x2833bf['exec'](),this['context']['metadata']['aid'];}catch(_0x2064bd){if(_0x2064bd instanceof errors_1['InactiveJobError']){this['logger']['error']('cycle-inactive-job-error',{..._0x2064bd});return;}else{if(_0x2064bd instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x2064bd});return;}else{if(_0x2064bd instanceof errors_1['GetStateError']){this['logger']['error']('cycle-get-state-error',{..._0x2064bd});return;}else{if(_0x2064bd instanceof errors_1['CollationError']){if(_0x2064bd['fault']==='duplicate'){this['logger']['info']('cycle-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('cycle-collation-error',{..._0x2064bd});}else this['logger']['error']('cycle-process-error',{..._0x2064bd});}}}_0x4c2504?.['setActivityError'](_0x2064bd['message']);throw _0x2064bd;}finally{_0x4c2504?.['endActivitySpan'](),this['logger']['debug']('cycle-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['cycleAncestorActivity'](_0x21e115){this['mapInputData']();const _0x116a9a={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':collator_1['CollatorService']['resolveReentryDimension'](this),'aid':this['config']['ancestor'],'spn':this['context']['$self']['output']['metadata']?.['l1s'],'trc':this['context']['metadata']['trc']},'data':this['context']['data']};return await this['engine']['router']?.['publishMessage'](null,_0x116a9a,_0x21e115);}}exports['Cycle']=Cycle;
1
+ 'use strict';function _0x3d7f(){const _0x16e371=['62645qEwIzS','15508884sQqAxA','7872392NMclmA','11dnhDdx','42TahusQ','626659dHmEyL','15umWIBg','50whjlWT','84EMHcyY','468278bwfrDc','356787MkRFAR','1268463LfIKYs'];_0x3d7f=function(){return _0x16e371;};return _0x3d7f();}(function(_0x30049b,_0x87dd0c){const _0x131ceb=_0x4543,_0x4fb14d=_0x30049b();while(!![]){try{const _0x3eb482=parseInt(_0x131ceb(0xd0))/0x1+parseInt(_0x131ceb(0xd4))/0x2*(-parseInt(_0x131ceb(0xd1))/0x3)+parseInt(_0x131ceb(0xd3))/0x4*(parseInt(_0x131ceb(0xd7))/0x5)+parseInt(_0x131ceb(0xcf))/0x6*(-parseInt(_0x131ceb(0xd6))/0x7)+parseInt(_0x131ceb(0xd9))/0x8+-parseInt(_0x131ceb(0xd5))/0x9*(-parseInt(_0x131ceb(0xd2))/0xa)+-parseInt(_0x131ceb(0xda))/0xb*(-parseInt(_0x131ceb(0xd8))/0xc);if(_0x3eb482===_0x87dd0c)break;else _0x4fb14d['push'](_0x4fb14d['shift']());}catch(_0x19d8a1){_0x4fb14d['push'](_0x4fb14d['shift']());}}}(_0x3d7f,0xe1e61));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Cycle']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),telemetry_1=require('../telemetry'),activity_1=require('./activity');function _0x4543(_0x464796,_0x6fbf7d){const _0x3d7f20=_0x3d7f();return _0x4543=function(_0x45431d,_0x394ad5){_0x45431d=_0x45431d-0xcf;let _0x2f041d=_0x3d7f20[_0x45431d];return _0x2f041d;},_0x4543(_0x464796,_0x6fbf7d);}class Cycle extends activity_1['Activity']{constructor(_0x439f0c,_0x9f2593,_0x4daaa6,_0x28f920,_0x1d260d,_0x51e636){super(_0x439f0c,_0x9f2593,_0x4daaa6,_0x28f920,_0x1d260d,_0x51e636);}async['process'](){this['logger']['debug']('cycle-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x292fc7;try{await this['verifyEntry'](),_0x292fc7=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x292fc7['startActivitySpan'](this['leg']),this['mapInputData']();let _0x1811ec=this['store']['transact']();await this['setState'](_0x1811ec),await this['setStatus'](0x0,_0x1811ec);const _0x4eb5fb=await _0x1811ec['exec']();_0x292fc7['mapActivityAttributes']();const _0xea5ab4=this['resolveStatus'](_0x4eb5fb);_0x1811ec=this['store']['transact']();const _0x651673=await this['cycleAncestorActivity'](_0x1811ec);return _0x292fc7['setActivityAttributes']({'app.activity.mid':_0x651673,'app.job.jss':_0xea5ab4}),await collator_1['CollatorService']['notarizeEarlyExit'](this,_0x1811ec),await _0x1811ec['exec'](),this['context']['metadata']['aid'];}catch(_0x5d284d){if(_0x5d284d instanceof errors_1['InactiveJobError']){this['logger']['error']('cycle-inactive-job-error',{..._0x5d284d});return;}else{if(_0x5d284d instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x5d284d});return;}else{if(_0x5d284d instanceof errors_1['GetStateError']){this['logger']['error']('cycle-get-state-error',{..._0x5d284d});return;}else{if(_0x5d284d instanceof errors_1['CollationError']){if(_0x5d284d['fault']==='duplicate'){this['logger']['info']('cycle-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('cycle-collation-error',{..._0x5d284d});}else this['logger']['error']('cycle-process-error',{..._0x5d284d});}}}_0x292fc7?.['setActivityError'](_0x5d284d['message']);throw _0x5d284d;}finally{_0x292fc7?.['endActivitySpan'](),this['logger']['debug']('cycle-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['cycleAncestorActivity'](_0x3514d4){this['mapInputData']();const _0x3f2e41={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':collator_1['CollatorService']['resolveReentryDimension'](this),'aid':this['config']['ancestor'],'spn':this['context']['$self']['output']['metadata']?.['l1s'],'trc':this['context']['metadata']['trc']},'data':this['context']['data']};return await this['engine']['router']?.['publishMessage'](null,_0x3f2e41,_0x3514d4);}}exports['Cycle']=Cycle;
@@ -1 +1 @@
1
- 'use strict';(function(_0xa4f8cf,_0xb2c139){const _0x433314=_0x3ae1,_0x2325e8=_0xa4f8cf();while(!![]){try{const _0x45f652=parseInt(_0x433314(0x1e1))/0x1+parseInt(_0x433314(0x1e0))/0x2*(parseInt(_0x433314(0x1dc))/0x3)+-parseInt(_0x433314(0x1e2))/0x4*(-parseInt(_0x433314(0x1df))/0x5)+-parseInt(_0x433314(0x1de))/0x6+parseInt(_0x433314(0x1dd))/0x7+parseInt(_0x433314(0x1e3))/0x8+-parseInt(_0x433314(0x1e4))/0x9;if(_0x45f652===_0xb2c139)break;else _0x2325e8['push'](_0x2325e8['shift']());}catch(_0x223813){_0x2325e8['push'](_0x2325e8['shift']());}}}(_0x2613,0x8b41e));function _0x3ae1(_0x383a92,_0x211b05){const _0x26135b=_0x2613();return _0x3ae1=function(_0x3ae16a,_0x3efed3){_0x3ae16a=_0x3ae16a-0x1dc;let _0x16a48b=_0x26135b[_0x3ae16a];return _0x16a48b;},_0x3ae1(_0x383a92,_0x211b05);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Hook']=void 0x0;const enums_1=require('../../modules/enums'),errors_1=require('../../modules/errors'),collator_1=require('../collator'),pipe_1=require('../pipe'),task_1=require('../task'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream'),activity_1=require('./activity');class Hook extends activity_1['Activity']{constructor(_0x2e9e49,_0xd7fe31,_0x7af7b6,_0x5eb0d8,_0x1aa34a,_0x5ef571){super(_0x2e9e49,_0xd7fe31,_0x7af7b6,_0x5eb0d8,_0x1aa34a,_0x5ef571);}async['process'](){this['logger']['debug']('hook-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x502fc3;try{return await this['verifyEntry'](),_0x502fc3=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x502fc3['startActivitySpan'](this['leg']),this['doesHook']()?await this['doHook'](_0x502fc3):await this['doPassThrough'](_0x502fc3),this['context']['metadata']['aid'];}catch(_0x491aa4){if(_0x491aa4 instanceof errors_1['InactiveJobError']){this['logger']['error']('hook-inactive-job-error',{..._0x491aa4});return;}else{if(_0x491aa4 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x491aa4});return;}else{if(_0x491aa4 instanceof errors_1['GetStateError']){this['logger']['error']('hook-get-state-error',{..._0x491aa4});return;}else{if(_0x491aa4 instanceof errors_1['CollationError']){if(_0x491aa4['fault']==='duplicate'){this['logger']['info']('hook-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('hook-collation-error',{..._0x491aa4});}else this['logger']['error']('hook-process-error',{..._0x491aa4});}}}_0x502fc3?.['setActivityError'](_0x491aa4['message']);throw _0x491aa4;}finally{_0x502fc3?.['endActivitySpan'](),this['logger']['debug']('hook-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}['doesHook'](){if(this['config']['sleep']){const _0x16de4a=pipe_1['Pipe']['resolve'](this['config']['sleep'],this['context']);return!isNaN(_0x16de4a)&&Number(_0x16de4a)>0x0;}return!!this['config']['hook']?.['topic'];}async['doHook'](_0x27ba6a){const _0x332768=this['store']['transact']();await this['registerHook'](enums_1['HMSH_IS_CLUSTER']?undefined:_0x332768),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x332768),await collator_1['CollatorService']['authorizeReentry'](this,_0x332768),await this['setStatus'](0x0,_0x332768),await _0x332768['exec'](),_0x27ba6a['mapActivityAttributes']();}async['doPassThrough'](_0x141281){const _0x3ca3ec=this['store']['transact']();let _0x2090b6;this['adjacencyList']=await this['filterAdjacent'](),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x3ca3ec),await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x3ca3ec),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x3ca3ec),_0x2090b6=await _0x3ca3ec['exec'](),_0x141281['mapActivityAttributes']();const _0x555a2d=this['resolveStatus'](_0x2090b6),_0xab808c={'app.job.jss':_0x555a2d},_0x389ac4=await this['transition'](this['adjacencyList'],_0x555a2d);_0x389ac4['length']&&(_0xab808c['app.activity.mids']=_0x389ac4['join'](',')),_0x141281['setActivityAttributes'](_0xab808c);}async['getHookRule'](_0x4066bb){const _0x18f92f=await this['store']['getHookRules']();return _0x18f92f?.[_0x4066bb]?.[0x0];}async['registerHook'](_0x4f699a){if(this['config']['hook']?.['topic'])return await this['engine']['taskService']['registerWebHook'](this['config']['hook']['topic'],this['context'],this['resolveDad'](),this['context']['metadata']['expire'],_0x4f699a);else{if(this['config']['sleep']){const _0xae92bc=pipe_1['Pipe']['resolve'](this['config']['sleep'],this['context']);return await this['engine']['taskService']['registerTimeHook'](this['context']['metadata']['jid'],this['context']['metadata']['gid'],''+this['metadata']['aid']+(this['metadata']['dad']||''),'sleep',_0xae92bc,this['metadata']['dad']||''),this['context']['metadata']['jid'];}}}async['processWebHookEvent'](_0x2ca801=stream_1['StreamStatus']['SUCCESS'],_0x8f22fb=0xc8){this['logger']['debug']('hook-process-web-hook-event',{'topic':this['config']['hook']['topic'],'aid':this['metadata']['aid'],'status':_0x2ca801,'code':_0x8f22fb});const _0x43020b=new task_1['TaskService'](this['store'],this['logger']),_0x24fa4d={...this['data']},_0x3c9cef=await _0x43020b['processWebHookSignal'](this['config']['hook']['topic'],_0x24fa4d);if(_0x3c9cef){const [_0x1ce293,_0x4fbefc,_0x4514c7,_0x49892c]=_0x3c9cef;this['context']['metadata']['jid']=_0x1ce293,this['context']['metadata']['gid']=_0x49892c,this['context']['metadata']['dad']=_0x4514c7,await this['processEvent'](_0x2ca801,_0x8f22fb,'hook'),_0x8f22fb===0xc8&&await _0x43020b['deleteWebHookSignal'](this['config']['hook']['topic'],_0x24fa4d);}}async['processTimeHookEvent'](_0x21edc6){this['logger']['debug']('hook-process-time-hook-event',{'jid':_0x21edc6,'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']}),await this['processEvent'](stream_1['StreamStatus']['SUCCESS'],0xc8,'hook');}}exports['Hook']=Hook;function _0x2613(){const _0x48e293=['3145dEqlMd','114754jktZWk','566722ajdMDE','596oyHEDI','2471800crDEzc','5791977kxZYRZ','15zKUsnl','5186503PmeIen','4699686CqMPsL'];_0x2613=function(){return _0x48e293;};return _0x2613();}
1
+ 'use strict';(function(_0x3b2baa,_0x1ed538){const _0x3b016e=_0x3311,_0xee70c8=_0x3b2baa();while(!![]){try{const _0x2d1204=-parseInt(_0x3b016e(0x1ea))/0x1+-parseInt(_0x3b016e(0x1e5))/0x2+-parseInt(_0x3b016e(0x1e7))/0x3+-parseInt(_0x3b016e(0x1e8))/0x4+-parseInt(_0x3b016e(0x1e6))/0x5+parseInt(_0x3b016e(0x1e4))/0x6+parseInt(_0x3b016e(0x1e9))/0x7;if(_0x2d1204===_0x1ed538)break;else _0xee70c8['push'](_0xee70c8['shift']());}catch(_0x37cc27){_0xee70c8['push'](_0xee70c8['shift']());}}}(_0x246d,0x7c6fd));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Hook']=void 0x0;function _0x246d(){const _0xaed347=['3735895UnrWwP','1829076FyRLQK','3429132loLLEq','23463888NiJtAE','203233EYeuYD','3311268SowzvK','1953564xRQpdO'];_0x246d=function(){return _0xaed347;};return _0x246d();}const enums_1=require('../../modules/enums'),errors_1=require('../../modules/errors'),collator_1=require('../collator'),pipe_1=require('../pipe'),task_1=require('../task'),telemetry_1=require('../telemetry'),stream_1=require('../../types/stream'),activity_1=require('./activity');function _0x3311(_0x72530a,_0x665113){const _0x246dd1=_0x246d();return _0x3311=function(_0x331115,_0x5c1ef6){_0x331115=_0x331115-0x1e4;let _0xa99484=_0x246dd1[_0x331115];return _0xa99484;},_0x3311(_0x72530a,_0x665113);}class Hook extends activity_1['Activity']{constructor(_0x14bc80,_0x394a83,_0x497e9d,_0x57814d,_0x5cc27b,_0x4ea378){super(_0x14bc80,_0x394a83,_0x497e9d,_0x57814d,_0x5cc27b,_0x4ea378);}async['process'](){this['logger']['debug']('hook-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x9cc7d0;try{return await this['verifyEntry'](),_0x9cc7d0=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x9cc7d0['startActivitySpan'](this['leg']),this['doesHook']()?await this['doHook'](_0x9cc7d0):await this['doPassThrough'](_0x9cc7d0),this['context']['metadata']['aid'];}catch(_0x41ead0){if(_0x41ead0 instanceof errors_1['InactiveJobError']){this['logger']['error']('hook-inactive-job-error',{..._0x41ead0});return;}else{if(_0x41ead0 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x41ead0});return;}else{if(_0x41ead0 instanceof errors_1['GetStateError']){this['logger']['error']('hook-get-state-error',{..._0x41ead0});return;}else{if(_0x41ead0 instanceof errors_1['CollationError']){if(_0x41ead0['fault']==='duplicate'){this['logger']['info']('hook-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('hook-collation-error',{..._0x41ead0});}else this['logger']['error']('hook-process-error',{..._0x41ead0});}}}_0x9cc7d0?.['setActivityError'](_0x41ead0['message']);throw _0x41ead0;}finally{_0x9cc7d0?.['endActivitySpan'](),this['logger']['debug']('hook-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}['doesHook'](){if(this['config']['sleep']){const _0x2af30c=pipe_1['Pipe']['resolve'](this['config']['sleep'],this['context']);return!isNaN(_0x2af30c)&&Number(_0x2af30c)>0x0;}return!!this['config']['hook']?.['topic'];}async['doHook'](_0x32f0de){const _0xb82427=this['store']['transact']();await this['registerHook'](enums_1['HMSH_IS_CLUSTER']?undefined:_0xb82427),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0xb82427),await collator_1['CollatorService']['authorizeReentry'](this,_0xb82427),await this['setStatus'](0x0,_0xb82427),await _0xb82427['exec'](),_0x32f0de['mapActivityAttributes']();}async['doPassThrough'](_0x54f0ee){const _0xffb1f3=this['store']['transact']();let _0x4ab761;this['adjacencyList']=await this['filterAdjacent'](),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0xffb1f3),await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0xffb1f3),await this['setStatus'](this['adjacencyList']['length']-0x1,_0xffb1f3),_0x4ab761=await _0xffb1f3['exec'](),_0x54f0ee['mapActivityAttributes']();const _0x18946e=this['resolveStatus'](_0x4ab761),_0x10cc70={'app.job.jss':_0x18946e},_0x1396f4=await this['transition'](this['adjacencyList'],_0x18946e);_0x1396f4['length']&&(_0x10cc70['app.activity.mids']=_0x1396f4['join'](',')),_0x54f0ee['setActivityAttributes'](_0x10cc70);}async['getHookRule'](_0x596077){const _0x2d76c7=await this['store']['getHookRules']();return _0x2d76c7?.[_0x596077]?.[0x0];}async['registerHook'](_0x56bb46){if(this['config']['hook']?.['topic'])return await this['engine']['taskService']['registerWebHook'](this['config']['hook']['topic'],this['context'],this['resolveDad'](),this['context']['metadata']['expire'],_0x56bb46);else{if(this['config']['sleep']){const _0x59eecf=pipe_1['Pipe']['resolve'](this['config']['sleep'],this['context']);return await this['engine']['taskService']['registerTimeHook'](this['context']['metadata']['jid'],this['context']['metadata']['gid'],''+this['metadata']['aid']+(this['metadata']['dad']||''),'sleep',_0x59eecf,this['metadata']['dad']||''),this['context']['metadata']['jid'];}}}async['processWebHookEvent'](_0x57a3e0=stream_1['StreamStatus']['SUCCESS'],_0x53bd03=0xc8){this['logger']['debug']('hook-process-web-hook-event',{'topic':this['config']['hook']['topic'],'aid':this['metadata']['aid'],'status':_0x57a3e0,'code':_0x53bd03});const _0x4b88b6=new task_1['TaskService'](this['store'],this['logger']),_0x1258d9={...this['data']},_0x3ea3b1=await _0x4b88b6['processWebHookSignal'](this['config']['hook']['topic'],_0x1258d9);if(_0x3ea3b1){const [_0x3e314a,_0x19a6e4,_0x2b33f2,_0x3d542d]=_0x3ea3b1;this['context']['metadata']['jid']=_0x3e314a,this['context']['metadata']['gid']=_0x3d542d,this['context']['metadata']['dad']=_0x2b33f2,await this['processEvent'](_0x57a3e0,_0x53bd03,'hook'),_0x53bd03===0xc8&&await _0x4b88b6['deleteWebHookSignal'](this['config']['hook']['topic'],_0x1258d9);}}async['processTimeHookEvent'](_0x311e97){this['logger']['debug']('hook-process-time-hook-event',{'jid':_0x311e97,'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']}),await this['processEvent'](stream_1['StreamStatus']['SUCCESS'],0xc8,'hook');}}exports['Hook']=Hook;
@@ -1 +1 @@
1
- 'use strict';(function(_0x45a7e1,_0x21976f){const _0x158a3a=_0x526b,_0x5bb6b1=_0x45a7e1();while(!![]){try{const _0x56e3b4=-parseInt(_0x158a3a(0x71))/0x1+parseInt(_0x158a3a(0x73))/0x2+-parseInt(_0x158a3a(0x70))/0x3*(parseInt(_0x158a3a(0x6f))/0x4)+-parseInt(_0x158a3a(0x6d))/0x5+parseInt(_0x158a3a(0x75))/0x6+-parseInt(_0x158a3a(0x74))/0x7*(-parseInt(_0x158a3a(0x6c))/0x8)+-parseInt(_0x158a3a(0x72))/0x9*(-parseInt(_0x158a3a(0x6e))/0xa);if(_0x56e3b4===_0x21976f)break;else _0x5bb6b1['push'](_0x5bb6b1['shift']());}catch(_0x56a34b){_0x5bb6b1['push'](_0x5bb6b1['shift']());}}}(_0x1a3d,0x2b074));Object['defineProperty'](exports,'__esModule',{'value':!![]});const activity_1=require('./activity'),await_1=require('./await'),cycle_1=require('./cycle'),hook_1=require('./hook'),interrupt_1=require('./interrupt'),signal_1=require('./signal'),trigger_1=require('./trigger'),worker_1=require('./worker');function _0x526b(_0x39944a,_0x197159){const _0x1a3d48=_0x1a3d();return _0x526b=function(_0x526b60,_0x3e3ebf){_0x526b60=_0x526b60-0x6c;let _0x216a4e=_0x1a3d48[_0x526b60];return _0x216a4e;},_0x526b(_0x39944a,_0x197159);}function _0x1a3d(){const _0x563e10=['4705630MxLAbK','15748PdCfHr','156fByvoF','116533xjUJGK','9CXhqHJ','305992MOlHes','318339KiRKnE','508698gpbkOB','16VXjejT','1508975SqgrqT'];_0x1a3d=function(){return _0x563e10;};return _0x1a3d();}exports['default']={'activity':activity_1['Activity'],'await':await_1['Await'],'cycle':cycle_1['Cycle'],'hook':hook_1['Hook'],'interrupt':interrupt_1['Interrupt'],'signal':signal_1['Signal'],'trigger':trigger_1['Trigger'],'worker':worker_1['Worker']};
1
+ 'use strict';(function(_0xe4ac58,_0x4271c5){const _0x9f75b9=_0x5ec3,_0xa6efd9=_0xe4ac58();while(!![]){try{const _0x9d04b2=-parseInt(_0x9f75b9(0x1dd))/0x1+parseInt(_0x9f75b9(0x1e4))/0x2*(parseInt(_0x9f75b9(0x1dc))/0x3)+-parseInt(_0x9f75b9(0x1e2))/0x4+parseInt(_0x9f75b9(0x1db))/0x5+parseInt(_0x9f75b9(0x1df))/0x6*(parseInt(_0x9f75b9(0x1e3))/0x7)+-parseInt(_0x9f75b9(0x1e1))/0x8*(parseInt(_0x9f75b9(0x1de))/0x9)+parseInt(_0x9f75b9(0x1e5))/0xa*(parseInt(_0x9f75b9(0x1e0))/0xb);if(_0x9d04b2===_0x4271c5)break;else _0xa6efd9['push'](_0xa6efd9['shift']());}catch(_0x4b4300){_0xa6efd9['push'](_0xa6efd9['shift']());}}}(_0x49cb,0xb6914));function _0x49cb(){const _0x1316da=['20232BYvovn','12UsuAnX','5681698YAykRO','1752WHmIkP','3384776QLnrPf','5000387MriMbl','690266bsJnIg','30UkzRRy','314410fmkHND','3PUFzNs','1299949LpFDDA'];_0x49cb=function(){return _0x1316da;};return _0x49cb();}Object['defineProperty'](exports,'__esModule',{'value':!![]});const activity_1=require('./activity'),await_1=require('./await'),cycle_1=require('./cycle'),hook_1=require('./hook'),interrupt_1=require('./interrupt'),signal_1=require('./signal'),trigger_1=require('./trigger'),worker_1=require('./worker');function _0x5ec3(_0x1d4365,_0x6d6c5c){const _0x49cbd4=_0x49cb();return _0x5ec3=function(_0x5ec357,_0x1370e8){_0x5ec357=_0x5ec357-0x1db;let _0x33703a=_0x49cbd4[_0x5ec357];return _0x33703a;},_0x5ec3(_0x1d4365,_0x6d6c5c);}exports['default']={'activity':activity_1['Activity'],'await':await_1['Await'],'cycle':cycle_1['Cycle'],'hook':hook_1['Hook'],'interrupt':interrupt_1['Interrupt'],'signal':signal_1['Signal'],'trigger':trigger_1['Trigger'],'worker':worker_1['Worker']};
@@ -1 +1 @@
1
- 'use strict';(function(_0x43efd4,_0x2d60ec){const _0x5c0bf1=_0x22e2,_0x46cfc0=_0x43efd4();while(!![]){try{const _0x479462=-parseInt(_0x5c0bf1(0x1f2))/0x1*(-parseInt(_0x5c0bf1(0x1f5))/0x2)+-parseInt(_0x5c0bf1(0x1f4))/0x3+-parseInt(_0x5c0bf1(0x1f1))/0x4*(-parseInt(_0x5c0bf1(0x1f6))/0x5)+-parseInt(_0x5c0bf1(0x1f3))/0x6+parseInt(_0x5c0bf1(0x1f9))/0x7+parseInt(_0x5c0bf1(0x1f0))/0x8*(parseInt(_0x5c0bf1(0x1f7))/0x9)+-parseInt(_0x5c0bf1(0x1f8))/0xa;if(_0x479462===_0x2d60ec)break;else _0x46cfc0['push'](_0x46cfc0['shift']());}catch(_0x18fb7d){_0x46cfc0['push'](_0x46cfc0['shift']());}}}(_0x664a,0x87b37));function _0x664a(){const _0x45e568=['500JraupG','2cSdSdD','1986084QAElvx','170928EWskEK','929554CkicuJ','24095ZvEezJ','9qUSIqk','18182730aqanWs','5834164jmZUOs','3173704UBMWxX'];_0x664a=function(){return _0x45e568;};return _0x664a();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Interrupt']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');function _0x22e2(_0x3a04d8,_0x2847ea){const _0x664ae8=_0x664a();return _0x22e2=function(_0x22e2ad,_0x3e8c24){_0x22e2ad=_0x22e2ad-0x1f0;let _0x377733=_0x664ae8[_0x22e2ad];return _0x377733;},_0x22e2(_0x3a04d8,_0x2847ea);}class Interrupt extends activity_1['Activity']{constructor(_0x54e41f,_0x459304,_0x2cb349,_0x122602,_0x2f7c64,_0x58fa3e){super(_0x54e41f,_0x459304,_0x2cb349,_0x122602,_0x2f7c64,_0x58fa3e);}async['process'](){this['logger']['debug']('interrupt-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x5f05c7;try{await this['verifyEntry'](),_0x5f05c7=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x5f05c7['startActivitySpan'](this['leg']),this['isInterruptingSelf']()?await this['interruptSelf'](_0x5f05c7):await this['interruptAnother'](_0x5f05c7);}catch(_0x439e0d){if(_0x439e0d instanceof errors_1['InactiveJobError']){this['logger']['error']('interrupt-inactive-job-error',{..._0x439e0d});return;}else{if(_0x439e0d instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x439e0d});return;}else{if(_0x439e0d instanceof errors_1['GetStateError']){this['logger']['error']('interrupt-get-state-error',{..._0x439e0d});return;}else{if(_0x439e0d instanceof errors_1['CollationError']){if(_0x439e0d['fault']==='duplicate'){this['logger']['info']('interrupt-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('interrupt-collation-error',{..._0x439e0d});}else this['logger']['error']('interrupt-process-error',{..._0x439e0d});}}}_0x5f05c7?.['setActivityError'](_0x439e0d['message']);throw _0x439e0d;}finally{_0x5f05c7?.['endActivitySpan'](),this['logger']['debug']('interrupt-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['interruptSelf'](_0x2fd29b){this['config']['job']?.['maps']&&(this['mapJobData'](),await this['setState']());const _0x4d0379=await this['interrupt']();_0x2fd29b['mapActivityAttributes']();const _0x252d5e=this['store']['transact']();await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x252d5e),await this['setStatus'](-0x1,_0x252d5e);const _0xdad8e0=await _0x252d5e['exec'](),_0x134dfd=this['resolveStatus'](_0xdad8e0);return _0x2fd29b['setActivityAttributes']({'app.activity.mid':_0x4d0379,'app.job.jss':_0x134dfd}),this['context']['metadata']['aid'];}async['interruptAnother'](_0x36d9a2){const _0x4b8f98=await this['interrupt'](),_0x563090={'app.activity.mid':_0x4b8f98};_0x36d9a2['mapActivityAttributes'](),this['adjacencyList']=await this['filterAdjacent']();if(this['config']['job']?.['maps']||this['config']['output']?.['maps']){this['mapOutputData'](),this['mapJobData']();const _0x20b50f=this['store']['transact']();await this['setState'](_0x20b50f);}const _0x17f23d=this['store']['transact']();await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x17f23d),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x17f23d);const _0x1c823f=await _0x17f23d['exec'](),_0x12dcc0=this['resolveStatus'](_0x1c823f);_0x563090['app.job.jss']=_0x12dcc0;const _0x1e1edc=await this['transition'](this['adjacencyList'],_0x12dcc0);return _0x1e1edc['length']&&(_0x563090['app.activity.mids']=_0x1e1edc['join'](',')),_0x36d9a2['setActivityAttributes'](_0x563090),this['context']['metadata']['aid'];}['isInterruptingSelf'](){if(!this['config']['target'])return!![];const _0x1f8186=pipe_1['Pipe']['resolve'](this['config']['target'],this['context']);return _0x1f8186==this['context']['metadata']['jid'];}['resolveInterruptOptions'](){return{'reason':this['config']['reason']!==undefined?pipe_1['Pipe']['resolve'](this['config']['reason'],this['context']):undefined,'throw':this['config']['throw']!==undefined?pipe_1['Pipe']['resolve'](this['config']['throw'],this['context']):undefined,'descend':this['config']['descend']!==undefined?pipe_1['Pipe']['resolve'](this['config']['descend'],this['context']):undefined,'code':this['config']['code']!==undefined?pipe_1['Pipe']['resolve'](this['config']['code'],this['context']):undefined,'expire':this['config']['expire']!==undefined?pipe_1['Pipe']['resolve'](this['config']['expire'],this['context']):undefined,'stack':this['config']['stack']!==undefined?pipe_1['Pipe']['resolve'](this['config']['stack'],this['context']):undefined};}async['interrupt'](){const _0x4fb216=this['resolveInterruptOptions']();return await this['engine']['interrupt'](this['config']['topic']!==undefined?pipe_1['Pipe']['resolve'](this['config']['topic'],this['context']):this['context']['metadata']['tpc'],this['config']['target']!==undefined?pipe_1['Pipe']['resolve'](this['config']['target'],this['context']):this['context']['metadata']['jid'],_0x4fb216);}}exports['Interrupt']=Interrupt;
1
+ 'use strict';(function(_0x56888a,_0x19af6b){const _0x2297b0=_0x52eb,_0x23d4d0=_0x56888a();while(!![]){try{const _0x35590e=parseInt(_0x2297b0(0x1c7))/0x1*(-parseInt(_0x2297b0(0x1c4))/0x2)+parseInt(_0x2297b0(0x1c1))/0x3+parseInt(_0x2297b0(0x1c3))/0x4*(parseInt(_0x2297b0(0x1c6))/0x5)+-parseInt(_0x2297b0(0x1c5))/0x6+parseInt(_0x2297b0(0x1c2))/0x7+-parseInt(_0x2297b0(0x1c9))/0x8*(parseInt(_0x2297b0(0x1c0))/0x9)+parseInt(_0x2297b0(0x1ca))/0xa*(parseInt(_0x2297b0(0x1c8))/0xb);if(_0x35590e===_0x19af6b)break;else _0x23d4d0['push'](_0x23d4d0['shift']());}catch(_0x39dc17){_0x23d4d0['push'](_0x23d4d0['shift']());}}}(_0x5309,0x3152e));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Interrupt']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');function _0x52eb(_0x3e28e9,_0x1c2c22){const _0x53095c=_0x5309();return _0x52eb=function(_0x52eb95,_0x5e46a8){_0x52eb95=_0x52eb95-0x1c0;let _0x1bac49=_0x53095c[_0x52eb95];return _0x1bac49;},_0x52eb(_0x3e28e9,_0x1c2c22);}class Interrupt extends activity_1['Activity']{constructor(_0x20ec7e,_0x812b98,_0x2453d7,_0x15359e,_0x150b2b,_0x527c9b){super(_0x20ec7e,_0x812b98,_0x2453d7,_0x15359e,_0x150b2b,_0x527c9b);}async['process'](){this['logger']['debug']('interrupt-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x55e5c6;try{await this['verifyEntry'](),_0x55e5c6=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x55e5c6['startActivitySpan'](this['leg']),this['isInterruptingSelf']()?await this['interruptSelf'](_0x55e5c6):await this['interruptAnother'](_0x55e5c6);}catch(_0x2117c1){if(_0x2117c1 instanceof errors_1['InactiveJobError']){this['logger']['error']('interrupt-inactive-job-error',{..._0x2117c1});return;}else{if(_0x2117c1 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x2117c1});return;}else{if(_0x2117c1 instanceof errors_1['GetStateError']){this['logger']['error']('interrupt-get-state-error',{..._0x2117c1});return;}else{if(_0x2117c1 instanceof errors_1['CollationError']){if(_0x2117c1['fault']==='duplicate'){this['logger']['info']('interrupt-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('interrupt-collation-error',{..._0x2117c1});}else this['logger']['error']('interrupt-process-error',{..._0x2117c1});}}}_0x55e5c6?.['setActivityError'](_0x2117c1['message']);throw _0x2117c1;}finally{_0x55e5c6?.['endActivitySpan'](),this['logger']['debug']('interrupt-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['interruptSelf'](_0x14b8b6){this['config']['job']?.['maps']&&(this['mapJobData'](),await this['setState']());const _0x304005=await this['interrupt']();_0x14b8b6['mapActivityAttributes']();const _0x11474a=this['store']['transact']();await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x11474a),await this['setStatus'](-0x1,_0x11474a);const _0x5de2be=await _0x11474a['exec'](),_0x502abd=this['resolveStatus'](_0x5de2be);return _0x14b8b6['setActivityAttributes']({'app.activity.mid':_0x304005,'app.job.jss':_0x502abd}),this['context']['metadata']['aid'];}async['interruptAnother'](_0x24f962){const _0x1e2084=await this['interrupt'](),_0x4dfd9b={'app.activity.mid':_0x1e2084};_0x24f962['mapActivityAttributes'](),this['adjacencyList']=await this['filterAdjacent']();if(this['config']['job']?.['maps']||this['config']['output']?.['maps']){this['mapOutputData'](),this['mapJobData']();const _0x2ff635=this['store']['transact']();await this['setState'](_0x2ff635);}const _0x426ec6=this['store']['transact']();await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x426ec6),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x426ec6);const _0x519195=await _0x426ec6['exec'](),_0x41fd57=this['resolveStatus'](_0x519195);_0x4dfd9b['app.job.jss']=_0x41fd57;const _0x48a0ca=await this['transition'](this['adjacencyList'],_0x41fd57);return _0x48a0ca['length']&&(_0x4dfd9b['app.activity.mids']=_0x48a0ca['join'](',')),_0x24f962['setActivityAttributes'](_0x4dfd9b),this['context']['metadata']['aid'];}['isInterruptingSelf'](){if(!this['config']['target'])return!![];const _0x41fef9=pipe_1['Pipe']['resolve'](this['config']['target'],this['context']);return _0x41fef9==this['context']['metadata']['jid'];}['resolveInterruptOptions'](){return{'reason':this['config']['reason']!==undefined?pipe_1['Pipe']['resolve'](this['config']['reason'],this['context']):undefined,'throw':this['config']['throw']!==undefined?pipe_1['Pipe']['resolve'](this['config']['throw'],this['context']):undefined,'descend':this['config']['descend']!==undefined?pipe_1['Pipe']['resolve'](this['config']['descend'],this['context']):undefined,'code':this['config']['code']!==undefined?pipe_1['Pipe']['resolve'](this['config']['code'],this['context']):undefined,'expire':this['config']['expire']!==undefined?pipe_1['Pipe']['resolve'](this['config']['expire'],this['context']):undefined,'stack':this['config']['stack']!==undefined?pipe_1['Pipe']['resolve'](this['config']['stack'],this['context']):undefined};}async['interrupt'](){const _0x483ab9=this['resolveInterruptOptions']();return await this['engine']['interrupt'](this['config']['topic']!==undefined?pipe_1['Pipe']['resolve'](this['config']['topic'],this['context']):this['context']['metadata']['tpc'],this['config']['target']!==undefined?pipe_1['Pipe']['resolve'](this['config']['target'],this['context']):this['context']['metadata']['jid'],_0x483ab9);}}exports['Interrupt']=Interrupt;function _0x5309(){const _0x6e15ce=['8IkjkoB','2OzHoWc','516672iWNrXg','593280MVHWAD','342017gtJRFM','77OYGDCr','120lbgFsJ','146120uYRmSw','6021ujBVqa','855960ImwXAC','106946FtSOAj'];_0x5309=function(){return _0x6e15ce;};return _0x5309();}
@@ -1 +1 @@
1
- 'use strict';(function(_0x5af672,_0x38394b){const _0x10d23c=_0xadb3,_0x2026d4=_0x5af672();while(!![]){try{const _0x2053c7=-parseInt(_0x10d23c(0x185))/0x1+-parseInt(_0x10d23c(0x184))/0x2+parseInt(_0x10d23c(0x186))/0x3+parseInt(_0x10d23c(0x182))/0x4+parseInt(_0x10d23c(0x183))/0x5+-parseInt(_0x10d23c(0x187))/0x6*(-parseInt(_0x10d23c(0x181))/0x7)+parseInt(_0x10d23c(0x188))/0x8;if(_0x2053c7===_0x38394b)break;else _0x2026d4['push'](_0x2026d4['shift']());}catch(_0x16a7e8){_0x2026d4['push'](_0x2026d4['shift']());}}}(_0x49d4,0xbe1a7));function _0x49d4(){const _0x249537=['1465857iyKdKA','2014485PEjXhz','6HaevCU','1388928PQEsYa','3198881PLdDek','5046448UirQJc','3555135LlPzPN','2060426IGcwzs'];_0x49d4=function(){return _0x249537;};return _0x49d4();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Signal']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../collator'),mapper_1=require('../mapper'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Signal extends activity_1['Activity']{constructor(_0x514b0f,_0x2a57ce,_0x1b637a,_0x2e0063,_0x4bf2cf,_0x4363f8){super(_0x514b0f,_0x2a57ce,_0x1b637a,_0x2e0063,_0x4bf2cf,_0x4363f8);}async['process'](){this['logger']['debug']('signal-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x1ee04b;try{await this['verifyEntry'](),_0x1ee04b=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x1ee04b['startActivitySpan'](this['leg']);const _0x14410e=this['store']['transact']();this['adjacencyList']=await this['filterAdjacent'](),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x14410e),await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x14410e),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x14410e);const _0x384ca9=await _0x14410e['exec']();this['config']['subtype']==='all'?await this['hookAll']():await this['hookOne']();const _0x93ba68=this['resolveStatus'](_0x384ca9),_0x4c0255={'app.job.jss':_0x93ba68},_0x4b6d85=await this['transition'](this['adjacencyList'],_0x93ba68);return _0x4b6d85['length']&&(_0x4c0255['app.activity.mids']=_0x4b6d85['join'](',')),_0x1ee04b['mapActivityAttributes'](),_0x1ee04b['setActivityAttributes'](_0x4c0255),this['context']['metadata']['aid'];}catch(_0x1684e3){if(_0x1684e3 instanceof errors_1['InactiveJobError']){this['logger']['error']('signal-inactive-job-error',{..._0x1684e3});return;}else{if(_0x1684e3 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x1684e3});return;}else{if(_0x1684e3 instanceof errors_1['GetStateError']){this['logger']['error']('signal-get-state-error',{..._0x1684e3});return;}else{if(_0x1684e3 instanceof errors_1['CollationError']){if(_0x1684e3['fault']==='duplicate'){this['logger']['info']('signal-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('signal-collation-error',{..._0x1684e3});}else this['logger']['error']('signal-process-error',{..._0x1684e3});}}}_0x1ee04b?.['setActivityError'](_0x1684e3['message']);throw _0x1684e3;}finally{_0x1ee04b?.['endActivitySpan'](),this['logger']['debug']('signal-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}['mapSignalData'](){if(this['config']['signal']?.['maps']){const _0x24e8d0=new mapper_1['MapperService'](this['config']['signal']['maps'],this['context']);return _0x24e8d0['mapRules']();}}['mapResolverData'](){if(this['config']['resolver']?.['maps']){const _0x5c5f8e=new mapper_1['MapperService'](this['config']['resolver']['maps'],this['context']);return _0x5c5f8e['mapRules']();}}async['hookOne'](){const _0x58b2aa=pipe_1['Pipe']['resolve'](this['config']['topic'],this['context']),_0x2fc55d=this['mapSignalData'](),_0x4e4091=pipe_1['Pipe']['resolve'](this['config']['status'],this['context']),_0x22a7d1=pipe_1['Pipe']['resolve'](this['config']['code'],this['context']);return await this['engine']['hook'](_0x58b2aa,_0x2fc55d,_0x4e4091,_0x22a7d1);}async['hookAll'](){const _0x528091=this['mapSignalData'](),_0x519dd1=this['mapResolverData']();this['config']['scrub']&&(_0x519dd1['scrub']=!![]);const _0x373eff=pipe_1['Pipe']['resolve'](this['config']['key_name'],this['context']),_0x211840=pipe_1['Pipe']['resolve'](this['config']['key_value'],this['context']),_0x4760b5=[_0x373eff+':'+_0x211840];return await this['engine']['hookAll'](this['config']['topic'],_0x528091,_0x519dd1,_0x4760b5);}}function _0xadb3(_0x13ad40,_0x224e87){const _0x49d408=_0x49d4();return _0xadb3=function(_0xadb33c,_0x4d82dd){_0xadb33c=_0xadb33c-0x181;let _0x2f1883=_0x49d408[_0xadb33c];return _0x2f1883;},_0xadb3(_0x13ad40,_0x224e87);}exports['Signal']=Signal;
1
+ 'use strict';(function(_0x44bd0b,_0x108941){const _0x4c5245=_0x4be8,_0x5cfe76=_0x44bd0b();while(!![]){try{const _0x508c26=-parseInt(_0x4c5245(0xc8))/0x1+-parseInt(_0x4c5245(0xcb))/0x2+parseInt(_0x4c5245(0xc5))/0x3+-parseInt(_0x4c5245(0xc7))/0x4*(parseInt(_0x4c5245(0xca))/0x5)+parseInt(_0x4c5245(0xce))/0x6*(parseInt(_0x4c5245(0xcc))/0x7)+-parseInt(_0x4c5245(0xcd))/0x8*(-parseInt(_0x4c5245(0xc9))/0x9)+parseInt(_0x4c5245(0xc6))/0xa;if(_0x508c26===_0x108941)break;else _0x5cfe76['push'](_0x5cfe76['shift']());}catch(_0x561c43){_0x5cfe76['push'](_0x5cfe76['shift']());}}}(_0x24c6,0xd1c08));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Signal']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../collator'),mapper_1=require('../mapper'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Signal extends activity_1['Activity']{constructor(_0x5967ce,_0x12e6c5,_0x56fd50,_0x1f9944,_0x15d78a,_0x473698){super(_0x5967ce,_0x12e6c5,_0x56fd50,_0x1f9944,_0x15d78a,_0x473698);}async['process'](){this['logger']['debug']('signal-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x4f5fc4;try{await this['verifyEntry'](),_0x4f5fc4=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x4f5fc4['startActivitySpan'](this['leg']);const _0x537893=this['store']['transact']();this['adjacencyList']=await this['filterAdjacent'](),this['mapOutputData'](),this['mapJobData'](),await this['setState'](_0x537893),await collator_1['CollatorService']['notarizeEarlyCompletion'](this,_0x537893),await this['setStatus'](this['adjacencyList']['length']-0x1,_0x537893);const _0x2b20d8=await _0x537893['exec']();this['config']['subtype']==='all'?await this['hookAll']():await this['hookOne']();const _0x536783=this['resolveStatus'](_0x2b20d8),_0x56c36b={'app.job.jss':_0x536783},_0x2f5957=await this['transition'](this['adjacencyList'],_0x536783);return _0x2f5957['length']&&(_0x56c36b['app.activity.mids']=_0x2f5957['join'](',')),_0x4f5fc4['mapActivityAttributes'](),_0x4f5fc4['setActivityAttributes'](_0x56c36b),this['context']['metadata']['aid'];}catch(_0x728769){if(_0x728769 instanceof errors_1['InactiveJobError']){this['logger']['error']('signal-inactive-job-error',{..._0x728769});return;}else{if(_0x728769 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x728769});return;}else{if(_0x728769 instanceof errors_1['GetStateError']){this['logger']['error']('signal-get-state-error',{..._0x728769});return;}else{if(_0x728769 instanceof errors_1['CollationError']){if(_0x728769['fault']==='duplicate'){this['logger']['info']('signal-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('signal-collation-error',{..._0x728769});}else this['logger']['error']('signal-process-error',{..._0x728769});}}}_0x4f5fc4?.['setActivityError'](_0x728769['message']);throw _0x728769;}finally{_0x4f5fc4?.['endActivitySpan'](),this['logger']['debug']('signal-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}['mapSignalData'](){if(this['config']['signal']?.['maps']){const _0x8c7ad3=new mapper_1['MapperService'](this['config']['signal']['maps'],this['context']);return _0x8c7ad3['mapRules']();}}['mapResolverData'](){if(this['config']['resolver']?.['maps']){const _0x4747f5=new mapper_1['MapperService'](this['config']['resolver']['maps'],this['context']);return _0x4747f5['mapRules']();}}async['hookOne'](){const _0x5aa6df=pipe_1['Pipe']['resolve'](this['config']['topic'],this['context']),_0x553792=this['mapSignalData'](),_0x3755eb=pipe_1['Pipe']['resolve'](this['config']['status'],this['context']),_0x30714d=pipe_1['Pipe']['resolve'](this['config']['code'],this['context']);return await this['engine']['hook'](_0x5aa6df,_0x553792,_0x3755eb,_0x30714d);}async['hookAll'](){const _0x12654c=this['mapSignalData'](),_0x4dc166=this['mapResolverData']();this['config']['scrub']&&(_0x4dc166['scrub']=!![]);const _0x9e363=pipe_1['Pipe']['resolve'](this['config']['key_name'],this['context']),_0x32ea80=pipe_1['Pipe']['resolve'](this['config']['key_value'],this['context']),_0x290cd8=[_0x9e363+':'+_0x32ea80];return await this['engine']['hookAll'](this['config']['topic'],_0x12654c,_0x4dc166,_0x290cd8);}}function _0x4be8(_0x497160,_0x5bf526){const _0x24c6f8=_0x24c6();return _0x4be8=function(_0x4be85c,_0x1fc2d1){_0x4be85c=_0x4be85c-0xc5;let _0x516428=_0x24c6f8[_0x4be85c];return _0x516428;},_0x4be8(_0x497160,_0x5bf526);}function _0x24c6(){const _0x22a8bf=['422296CziivI','8vribrt','42pNuHDn','2904462ErCxkl','14678460IPnNfM','470776DKYvzG','1446816AeSaOU','10187307LurWaF','10QLWvmB','2897742YfCLea'];_0x24c6=function(){return _0x22a8bf;};return _0x24c6();}exports['Signal']=Signal;
@@ -1 +1 @@
1
- 'use strict';function _0x1c39(_0x2dde54,_0x44af8c){const _0x39c71f=_0x39c7();return _0x1c39=function(_0x1c3908,_0x28ac24){_0x1c3908=_0x1c3908-0x14e;let _0x154643=_0x39c71f[_0x1c3908];return _0x154643;},_0x1c39(_0x2dde54,_0x44af8c);}(function(_0x1dd5ac,_0xe1bfd9){const _0x5df4df=_0x1c39,_0x5c2a8c=_0x1dd5ac();while(!![]){try{const _0x4e113a=parseInt(_0x5df4df(0x150))/0x1+-parseInt(_0x5df4df(0x14f))/0x2*(parseInt(_0x5df4df(0x151))/0x3)+parseInt(_0x5df4df(0x154))/0x4+parseInt(_0x5df4df(0x155))/0x5*(parseInt(_0x5df4df(0x153))/0x6)+-parseInt(_0x5df4df(0x156))/0x7*(parseInt(_0x5df4df(0x157))/0x8)+-parseInt(_0x5df4df(0x14e))/0x9+parseInt(_0x5df4df(0x152))/0xa;if(_0x4e113a===_0xe1bfd9)break;else _0x5c2a8c['push'](_0x5c2a8c['shift']());}catch(_0x53aa08){_0x5c2a8c['push'](_0x5c2a8c['shift']());}}}(_0x39c7,0xc1167));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Trigger']=void 0x0;function _0x39c7(){const _0x36527d=['37878pqYFYh','545124VHvXhz','1225aRIVHD','148547pXMYgo','448ouqqHc','3550815bdQYZc','70892XhEOzt','54946JgaIKr','78xLbxgw','15574820uvwlAm'];_0x39c7=function(){return _0x36527d;};return _0x39c7();}const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),reporter_1=require('../reporter'),serializer_1=require('../serializer'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Trigger extends activity_1['Activity']{constructor(_0x9c9e40,_0x1146e7,_0x2927c1,_0x274920,_0x5dc81e,_0x3342e7){super(_0x9c9e40,_0x1146e7,_0x2927c1,_0x274920,_0x5dc81e,_0x3342e7);}async['process'](_0x16204e){this['logger']['debug']('trigger-process',{'subscribes':this['config']['subscribes']});let _0x3d38d2;try{this['setLeg'](0x2),await this['getState'](),_0x3d38d2=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x3d38d2['startJobSpan'](),_0x3d38d2['startActivitySpan'](this['leg']),this['mapJobData'](),this['adjacencyList']=await this['filterAdjacent']();const _0x429ed2=this['initStatus'](_0x16204e,this['adjacencyList']['length']);await this['setStateNX'](_0x429ed2),await this['setStatus'](_0x429ed2),this['bindSearchData'](_0x16204e),this['bindMarkerData'](_0x16204e);const _0x395fc5=this['store']['transact']();await this['setState'](_0x395fc5),await this['setStats'](_0x395fc5);_0x16204e?.['pending']&&await this['setExpired'](_0x16204e?.['pending'],_0x395fc5);await collator_1['CollatorService']['notarizeInception'](this,this['context']['metadata']['guid'],_0x395fc5),await _0x395fc5['exec'](),this['execAdjacentParent'](),_0x3d38d2['mapActivityAttributes']();const _0x39e042=Number(this['context']['metadata']['js']);_0x3d38d2['setJobAttributes']({'app.job.jss':_0x39e042});const _0x2b780b={'app.job.jss':_0x39e042};return await this['transitionAndLogAdjacent'](_0x16204e,_0x39e042,_0x2b780b),_0x3d38d2['setActivityAttributes'](_0x2b780b),this['context']['metadata']['jid'];}catch(_0x3bd9cb){_0x3d38d2?.['setActivityError'](_0x3bd9cb['message']);if(_0x3bd9cb instanceof errors_1['DuplicateJobError']){await(0x0,utils_1['sleepFor'])(0x3e8);const _0x5ee2c6=await collator_1['CollatorService']['isInceptionOverage'](this,this['context']['metadata']['guid']);if(_0x5ee2c6){this['logger']['info']('trigger-collation-overage',{'job_id':_0x3bd9cb['jobId'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('duplicate-job-error',{'job_id':_0x3bd9cb['jobId'],'guid':this['context']['metadata']['guid']});}else this['logger']['error']('trigger-process-error',{..._0x3bd9cb});throw _0x3bd9cb;}finally{_0x3d38d2?.['endJobSpan'](),_0x3d38d2?.['endActivitySpan'](),this['logger']['debug']('trigger-process-end',{'subscribes':this['config']['subscribes'],'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid']});}}async['transitionAndLogAdjacent'](_0x48516e={},_0x4feeaf,_0x305e1d){if(isNaN(_0x48516e['pending'])){const _0x569269=await this['transition'](this['adjacencyList'],_0x4feeaf);_0x569269['length']&&(_0x305e1d['app.activity.mids']=_0x569269['join'](','));}}['initStatus'](_0x3a867f={},_0x3a0a5c){if(_0x3a867f['pending'])return-0x1;return _0x3a0a5c;}async['setExpired'](_0x1f3a46,_0x5803d1){await this['store']['expireJob'](this['context']['metadata']['jid'],_0x1f3a46,_0x5803d1);}['safeKey'](_0x1cd4bf){return'_'+_0x1cd4bf;}['bindSearchData'](_0x4b5e14){_0x4b5e14?.['search']&&Object['keys'](_0x4b5e14['search'])['forEach'](_0x31a9ea=>{this['context']['data'][this['safeKey'](_0x31a9ea)]=_0x4b5e14['search'][_0x31a9ea]['toString']();});}['bindMarkerData'](_0x142463){_0x142463?.['marker']&&Object['keys'](_0x142463['marker'])['forEach'](_0x132893=>{_0x132893['startsWith']('-')&&(this['context']['data'][_0x132893]=_0x142463['marker'][_0x132893]['toString']());});}async['setStatus'](_0x11958e){this['context']['metadata']['js']=_0x11958e;}async['execAdjacentParent'](){if(this['context']['metadata']['px']){const _0x267937=(0x0,utils_1['formatISODate'])(new Date()),_0x583ce3={'metadata':this['context']['metadata'],'data':{'job_id':this['context']['metadata']['jid'],'jc':_0x267937,'ju':_0x267937}};await this['engine']['execAdjacentParent'](this['context'],_0x583ce3);}}['createInputContext'](){const _0x16a3dc={[this['metadata']['aid']]:{'input':{'data':this['data']}},'$self':{'input':{'data':this['data']},'output':{'data':this['data']}}};return _0x16a3dc;}async['getState'](){const _0x48aa18=this['createInputContext'](),_0xcb06a7=this['resolveJobId'](_0x48aa18),_0x45e8d8=this['resolveJobKey'](_0x48aa18),_0x3c0373=(0x0,utils_1['formatISODate'])(new Date()),{id:_0x4f27a6,version:_0x268bad}=await this['engine']['getVID']();this['initDimensionalAddress'](collator_1['CollatorService']['getDimensionalSeed']());const _0x3c1f43={...this['metadata'],'jid':_0xcb06a7,'key':_0x45e8d8,'as':collator_1['CollatorService']['getTriggerSeed']()};this['context']={'metadata':{...this['metadata'],'gid':(0x0,utils_1['guid'])(),'ngn':this['context']['metadata']['ngn'],'pj':this['context']['metadata']['pj'],'pg':this['context']['metadata']['pg'],'pd':this['context']['metadata']['pd'],'pa':this['context']['metadata']['pa'],'px':this['context']['metadata']['px'],'app':_0x4f27a6,'vrs':_0x268bad,'tpc':this['config']['subscribes'],'trc':this['context']['metadata']['trc'],'spn':this['context']['metadata']['spn'],'guid':this['context']['metadata']['guid'],'jid':_0xcb06a7,'dad':collator_1['CollatorService']['getDimensionalSeed'](),'key':_0x45e8d8,'jc':_0x3c0373,'ju':_0x3c0373,'ts':(0x0,utils_1['getTimeSeries'])(this['resolveGranularity']()),'js':0x0},'data':{},[this['metadata']['aid']]:{'input':{'data':this['data'],'metadata':_0x3c1f43},'output':{'data':this['data'],'metadata':_0x3c1f43},'settings':{'data':{}},'errors':{'data':{}}}},this['context']['$self']=this['context'][this['metadata']['aid']],this['context']['$job']=this['context'];}['bindJobMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['JOB']['KEYS']['map'](_0x3d8d32=>'metadata/'+_0x3d8d32);}['bindActivityMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['ACTIVITY']['KEYS']['map'](_0x1b43a4=>'output/metadata/'+_0x1b43a4);}['resolveGranularity'](){return this['config']['stats']?.['granularity']||reporter_1['ReporterService']['DEFAULT_GRANULARITY'];}['getJobStatus'](){return this['context']['metadata']['js'];}['resolveJobId'](_0x204990){const _0xbeb985=this['config']['stats']?.['id'];return _0xbeb985?pipe_1['Pipe']['resolve'](_0xbeb985,_0x204990):(0x0,utils_1['guid'])();}['resolveJobKey'](_0x4d9db7){const _0x4033be=this['config']['stats']?.['key'];return _0x4033be?pipe_1['Pipe']['resolve'](_0x4033be,_0x4d9db7):'';}async['setStateNX'](_0x44e850){const _0x7392be=this['context']['metadata']['jid'];if(!await this['store']['setStateNX'](_0x7392be,this['engine']['appId'],_0x44e850))throw new errors_1['DuplicateJobError'](_0x7392be);}async['setStats'](_0x3cec70){const _0x3a0e24=this['context']['metadata'];if(_0x3a0e24['key']&&this['config']['stats']?.['measures']){const _0x18dc01=await this['engine']['getVID'](),_0x3e43c5=new reporter_1['ReporterService'](_0x18dc01,this['store'],this['logger']);await this['store']['setStats'](_0x3a0e24['key'],_0x3a0e24['jid'],_0x3a0e24['ts'],_0x3e43c5['resolveTriggerStatistics'](this['config'],this['context']),_0x18dc01,_0x3cec70);}}}exports['Trigger']=Trigger;
1
+ 'use strict';(function(_0x1a226e,_0x3c0fe7){const _0x365467=_0x4be8,_0x297f69=_0x1a226e();while(!![]){try{const _0x462fe6=-parseInt(_0x365467(0x7f))/0x1+-parseInt(_0x365467(0x7d))/0x2*(-parseInt(_0x365467(0x80))/0x3)+parseInt(_0x365467(0x79))/0x4*(-parseInt(_0x365467(0x82))/0x5)+parseInt(_0x365467(0x7e))/0x6+-parseInt(_0x365467(0x81))/0x7+parseInt(_0x365467(0x7b))/0x8+parseInt(_0x365467(0x7c))/0x9*(parseInt(_0x365467(0x7a))/0xa);if(_0x462fe6===_0x3c0fe7)break;else _0x297f69['push'](_0x297f69['shift']());}catch(_0x4c76d1){_0x297f69['push'](_0x297f69['shift']());}}}(_0x5db2,0x5c059));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Trigger']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),reporter_1=require('../reporter'),serializer_1=require('../serializer'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Trigger extends activity_1['Activity']{constructor(_0x78cd8a,_0x8a203f,_0xe3bfda,_0x35e15c,_0x32526a,_0x131012){super(_0x78cd8a,_0x8a203f,_0xe3bfda,_0x35e15c,_0x32526a,_0x131012);}async['process'](_0xd8a4c2){this['logger']['debug']('trigger-process',{'subscribes':this['config']['subscribes']});let _0x3deb73;try{this['setLeg'](0x2),await this['getState'](),_0x3deb73=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x3deb73['startJobSpan'](),_0x3deb73['startActivitySpan'](this['leg']),this['mapJobData'](),this['adjacencyList']=await this['filterAdjacent']();const _0x430b95=this['initStatus'](_0xd8a4c2,this['adjacencyList']['length']);await this['setStateNX'](_0x430b95),await this['setStatus'](_0x430b95),this['bindSearchData'](_0xd8a4c2),this['bindMarkerData'](_0xd8a4c2);const _0xa5b90=this['store']['transact']();await this['setState'](_0xa5b90),await this['setStats'](_0xa5b90);_0xd8a4c2?.['pending']&&await this['setExpired'](_0xd8a4c2?.['pending'],_0xa5b90);await collator_1['CollatorService']['notarizeInception'](this,this['context']['metadata']['guid'],_0xa5b90),await _0xa5b90['exec'](),this['execAdjacentParent'](),_0x3deb73['mapActivityAttributes']();const _0x540de8=Number(this['context']['metadata']['js']);_0x3deb73['setJobAttributes']({'app.job.jss':_0x540de8});const _0x2a9ace={'app.job.jss':_0x540de8};return await this['transitionAndLogAdjacent'](_0xd8a4c2,_0x540de8,_0x2a9ace),_0x3deb73['setActivityAttributes'](_0x2a9ace),this['context']['metadata']['jid'];}catch(_0xe7f54c){_0x3deb73?.['setActivityError'](_0xe7f54c['message']);if(_0xe7f54c instanceof errors_1['DuplicateJobError']){await(0x0,utils_1['sleepFor'])(0x3e8);const _0x5905c7=await collator_1['CollatorService']['isInceptionOverage'](this,this['context']['metadata']['guid']);if(_0x5905c7){this['logger']['info']('trigger-collation-overage',{'job_id':_0xe7f54c['jobId'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('duplicate-job-error',{'job_id':_0xe7f54c['jobId'],'guid':this['context']['metadata']['guid']});}else this['logger']['error']('trigger-process-error',{..._0xe7f54c});throw _0xe7f54c;}finally{_0x3deb73?.['endJobSpan'](),_0x3deb73?.['endActivitySpan'](),this['logger']['debug']('trigger-process-end',{'subscribes':this['config']['subscribes'],'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid']});}}async['transitionAndLogAdjacent'](_0x177264={},_0x5d09f3,_0x34ebd1){if(isNaN(_0x177264['pending'])){const _0x41ad11=await this['transition'](this['adjacencyList'],_0x5d09f3);_0x41ad11['length']&&(_0x34ebd1['app.activity.mids']=_0x41ad11['join'](','));}}['initStatus'](_0x4e5ba6={},_0x29c845){if(_0x4e5ba6['pending'])return-0x1;return _0x29c845;}async['setExpired'](_0x1a66b8,_0x37308d){await this['store']['expireJob'](this['context']['metadata']['jid'],_0x1a66b8,_0x37308d);}['safeKey'](_0x388e90){return'_'+_0x388e90;}['bindSearchData'](_0x354255){_0x354255?.['search']&&Object['keys'](_0x354255['search'])['forEach'](_0x2d463d=>{this['context']['data'][this['safeKey'](_0x2d463d)]=_0x354255['search'][_0x2d463d]['toString']();});}['bindMarkerData'](_0x253dd7){_0x253dd7?.['marker']&&Object['keys'](_0x253dd7['marker'])['forEach'](_0x5d7b28=>{_0x5d7b28['startsWith']('-')&&(this['context']['data'][_0x5d7b28]=_0x253dd7['marker'][_0x5d7b28]['toString']());});}async['setStatus'](_0x14fb9a){this['context']['metadata']['js']=_0x14fb9a;}async['execAdjacentParent'](){if(this['context']['metadata']['px']){const _0x36cb8b=(0x0,utils_1['formatISODate'])(new Date()),_0x32496f={'metadata':this['context']['metadata'],'data':{'job_id':this['context']['metadata']['jid'],'jc':_0x36cb8b,'ju':_0x36cb8b}};await this['engine']['execAdjacentParent'](this['context'],_0x32496f);}}['createInputContext'](){const _0x1d95ee={[this['metadata']['aid']]:{'input':{'data':this['data']}},'$self':{'input':{'data':this['data']},'output':{'data':this['data']}}};return _0x1d95ee;}async['getState'](){const _0x25321c=this['createInputContext'](),_0x4a01bb=this['resolveJobId'](_0x25321c),_0x19668f=this['resolveJobKey'](_0x25321c),_0x157eaa=(0x0,utils_1['formatISODate'])(new Date()),{id:_0x341924,version:_0x3732c6}=await this['engine']['getVID']();this['initDimensionalAddress'](collator_1['CollatorService']['getDimensionalSeed']());const _0x5e4c59={...this['metadata'],'jid':_0x4a01bb,'key':_0x19668f,'as':collator_1['CollatorService']['getTriggerSeed']()};this['context']={'metadata':{...this['metadata'],'gid':(0x0,utils_1['guid'])(),'ngn':this['context']['metadata']['ngn'],'pj':this['context']['metadata']['pj'],'pg':this['context']['metadata']['pg'],'pd':this['context']['metadata']['pd'],'pa':this['context']['metadata']['pa'],'px':this['context']['metadata']['px'],'app':_0x341924,'vrs':_0x3732c6,'tpc':this['config']['subscribes'],'trc':this['context']['metadata']['trc'],'spn':this['context']['metadata']['spn'],'guid':this['context']['metadata']['guid'],'jid':_0x4a01bb,'dad':collator_1['CollatorService']['getDimensionalSeed'](),'key':_0x19668f,'jc':_0x157eaa,'ju':_0x157eaa,'ts':(0x0,utils_1['getTimeSeries'])(this['resolveGranularity']()),'js':0x0},'data':{},[this['metadata']['aid']]:{'input':{'data':this['data'],'metadata':_0x5e4c59},'output':{'data':this['data'],'metadata':_0x5e4c59},'settings':{'data':{}},'errors':{'data':{}}}},this['context']['$self']=this['context'][this['metadata']['aid']],this['context']['$job']=this['context'];}['bindJobMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['JOB']['KEYS']['map'](_0x2672aa=>'metadata/'+_0x2672aa);}['bindActivityMetadataPaths'](){return serializer_1['MDATA_SYMBOLS']['ACTIVITY']['KEYS']['map'](_0x447d5f=>'output/metadata/'+_0x447d5f);}['resolveGranularity'](){return this['config']['stats']?.['granularity']||reporter_1['ReporterService']['DEFAULT_GRANULARITY'];}['getJobStatus'](){return this['context']['metadata']['js'];}['resolveJobId'](_0x2aeb00){const _0x54e97c=this['config']['stats']?.['id'];return _0x54e97c?pipe_1['Pipe']['resolve'](_0x54e97c,_0x2aeb00):(0x0,utils_1['guid'])();}['resolveJobKey'](_0x432d0e){const _0x1ee717=this['config']['stats']?.['key'];return _0x1ee717?pipe_1['Pipe']['resolve'](_0x1ee717,_0x432d0e):'';}async['setStateNX'](_0x613807){const _0x563a86=this['context']['metadata']['jid'];if(!await this['store']['setStateNX'](_0x563a86,this['engine']['appId'],_0x613807))throw new errors_1['DuplicateJobError'](_0x563a86);}async['setStats'](_0x8548a){const _0x5e3c69=this['context']['metadata'];if(_0x5e3c69['key']&&this['config']['stats']?.['measures']){const _0x508bec=await this['engine']['getVID'](),_0xacdfa2=new reporter_1['ReporterService'](_0x508bec,this['store'],this['logger']);await this['store']['setStats'](_0x5e3c69['key'],_0x5e3c69['jid'],_0x5e3c69['ts'],_0xacdfa2['resolveTriggerStatistics'](this['config'],this['context']),_0x508bec,_0x8548a);}}}function _0x4be8(_0x367db4,_0x5764a7){const _0x5db2fd=_0x5db2();return _0x4be8=function(_0x4be85f,_0x5ef66c){_0x4be85f=_0x4be85f-0x79;let _0x92cebb=_0x5db2fd[_0x4be85f];return _0x92cebb;},_0x4be8(_0x367db4,_0x5764a7);}function _0x5db2(){const _0x2f1ec9=['15IugJpQ','934868cHiORf','4930ZMsgTM','232128vSsavK','28899TocmrR','2ZpgpwI','1649790ypbpmD','700408Vyzgkt','405771uXyXeV','1706467naIEHA'];_0x5db2=function(){return _0x2f1ec9;};return _0x5db2();}exports['Trigger']=Trigger;
@@ -1 +1 @@
1
- 'use strict';(function(_0x40920b,_0x54e2fb){const _0x2b2ec0=_0x236f,_0x327ffe=_0x40920b();while(!![]){try{const _0x4ce944=-parseInt(_0x2b2ec0(0x92))/0x1+parseInt(_0x2b2ec0(0x8b))/0x2+-parseInt(_0x2b2ec0(0x8f))/0x3*(-parseInt(_0x2b2ec0(0x8a))/0x4)+parseInt(_0x2b2ec0(0x8c))/0x5+-parseInt(_0x2b2ec0(0x8e))/0x6*(parseInt(_0x2b2ec0(0x90))/0x7)+parseInt(_0x2b2ec0(0x8d))/0x8+parseInt(_0x2b2ec0(0x93))/0x9*(-parseInt(_0x2b2ec0(0x91))/0xa);if(_0x4ce944===_0x54e2fb)break;else _0x327ffe['push'](_0x327ffe['shift']());}catch(_0x57a43f){_0x327ffe['push'](_0x327ffe['shift']());}}}(_0x18d3,0x423d3));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Worker']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');function _0x236f(_0xe719a1,_0x3df0fb){const _0x18d33b=_0x18d3();return _0x236f=function(_0x236ff1,_0x1497bc){_0x236ff1=_0x236ff1-0x8a;let _0x33eccc=_0x18d33b[_0x236ff1];return _0x33eccc;},_0x236f(_0xe719a1,_0x3df0fb);}class Worker extends activity_1['Activity']{constructor(_0x911241,_0x6b24ca,_0x3965e1,_0x215387,_0xa62a6,_0xdceac4){super(_0x911241,_0x6b24ca,_0x3965e1,_0x215387,_0xa62a6,_0xdceac4);}async['process'](){this['logger']['debug']('worker-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x12426a;try{await this['verifyEntry'](),_0x12426a=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x12426a['startActivitySpan'](this['leg']),this['mapInputData']();const _0x48b44b=this['store']['transact'](),_0x58f969=await this['execActivity'](_0x48b44b);await collator_1['CollatorService']['authorizeReentry'](this,_0x48b44b),await this['setState'](_0x48b44b),await this['setStatus'](0x0,_0x48b44b);const _0x556752=await _0x48b44b['exec']();_0x12426a['mapActivityAttributes']();const _0x2c7b90=this['resolveStatus'](_0x556752);return _0x12426a['setActivityAttributes']({'app.activity.mid':_0x58f969,'app.job.jss':_0x2c7b90}),this['context']['metadata']['aid'];}catch(_0xe7f030){if(_0xe7f030 instanceof errors_1['InactiveJobError']){this['logger']['error']('await-inactive-job-error',{..._0xe7f030});return;}else{if(_0xe7f030 instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0xe7f030});return;}else{if(_0xe7f030 instanceof errors_1['GetStateError']){this['logger']['error']('worker-get-state-error',{..._0xe7f030});return;}else{if(_0xe7f030 instanceof errors_1['CollationError']){if(_0xe7f030['fault']==='duplicate'){this['logger']['info']('worker-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('worker-collation-error',{..._0xe7f030});}else this['logger']['error']('worker-process-error',{..._0xe7f030});}}}_0x12426a?.['setActivityError'](_0xe7f030['message']);throw _0xe7f030;}finally{_0x12426a?.['endActivitySpan'](),this['logger']['debug']('worker-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](_0x570316){const _0x27afd4=pipe_1['Pipe']['resolve'](this['config']['subtype'],this['context']),_0x3685ae={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':this['metadata']['dad'],'aid':this['metadata']['aid'],'topic':_0x27afd4,'spn':this['context']['$self']['output']['metadata']['l1s'],'trc':this['context']['metadata']['trc']},'data':this['context']['data']};return this['config']['retry']&&(_0x3685ae['policies']={'retry':this['config']['retry']}),await this['engine']['router']?.['publishMessage'](_0x27afd4,_0x3685ae,_0x570316);}}function _0x18d3(){const _0x3844d3=['103598wmAivC','2399470zCTnzy','2016080qXbVcX','12gIdTIR','29409ZTiWyN','875161hgVqsh','10YnOnOf','124221gSbEOh','2478267evhyss','56XcnjeN'];_0x18d3=function(){return _0x3844d3;};return _0x18d3();}exports['Worker']=Worker;
1
+ 'use strict';(function(_0x24f253,_0x5f0c0c){const _0x44c6c5=_0xdda3,_0x289122=_0x24f253();while(!![]){try{const _0x4f140c=parseInt(_0x44c6c5(0x165))/0x1+-parseInt(_0x44c6c5(0x163))/0x2*(-parseInt(_0x44c6c5(0x166))/0x3)+-parseInt(_0x44c6c5(0x164))/0x4+parseInt(_0x44c6c5(0x160))/0x5+-parseInt(_0x44c6c5(0x161))/0x6+parseInt(_0x44c6c5(0x162))/0x7*(-parseInt(_0x44c6c5(0x15e))/0x8)+parseInt(_0x44c6c5(0x15f))/0x9;if(_0x4f140c===_0x5f0c0c)break;else _0x289122['push'](_0x289122['shift']());}catch(_0x55a85f){_0x289122['push'](_0x289122['shift']());}}}(_0x5373,0xe16f8));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Worker']=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require('../../modules/utils'),collator_1=require('../collator'),pipe_1=require('../pipe'),telemetry_1=require('../telemetry'),activity_1=require('./activity');class Worker extends activity_1['Activity']{constructor(_0x3f8bbd,_0x32e48a,_0x34127d,_0x377a72,_0x487eb5,_0x1b7fd2){super(_0x3f8bbd,_0x32e48a,_0x34127d,_0x377a72,_0x487eb5,_0x1b7fd2);}async['process'](){this['logger']['debug']('worker-process',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});let _0x5de12c;try{await this['verifyEntry'](),_0x5de12c=new telemetry_1['TelemetryService'](this['engine']['appId'],this['config'],this['metadata'],this['context']),_0x5de12c['startActivitySpan'](this['leg']),this['mapInputData']();const _0x39034e=this['store']['transact'](),_0x4db86b=await this['execActivity'](_0x39034e);await collator_1['CollatorService']['authorizeReentry'](this,_0x39034e),await this['setState'](_0x39034e),await this['setStatus'](0x0,_0x39034e);const _0x19a2c0=await _0x39034e['exec']();_0x5de12c['mapActivityAttributes']();const _0x4dbf54=this['resolveStatus'](_0x19a2c0);return _0x5de12c['setActivityAttributes']({'app.activity.mid':_0x4db86b,'app.job.jss':_0x4dbf54}),this['context']['metadata']['aid'];}catch(_0x45c25e){if(_0x45c25e instanceof errors_1['InactiveJobError']){this['logger']['error']('await-inactive-job-error',{..._0x45c25e});return;}else{if(_0x45c25e instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{..._0x45c25e});return;}else{if(_0x45c25e instanceof errors_1['GetStateError']){this['logger']['error']('worker-get-state-error',{..._0x45c25e});return;}else{if(_0x45c25e instanceof errors_1['CollationError']){if(_0x45c25e['fault']==='duplicate'){this['logger']['info']('worker-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this['context']['metadata']['guid']});return;}this['logger']['error']('worker-collation-error',{..._0x45c25e});}else this['logger']['error']('worker-process-error',{..._0x45c25e});}}}_0x5de12c?.['setActivityError'](_0x45c25e['message']);throw _0x45c25e;}finally{_0x5de12c?.['endActivitySpan'](),this['logger']['debug']('worker-process-end',{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](_0x482b75){const _0xb59d85=pipe_1['Pipe']['resolve'](this['config']['subtype'],this['context']),_0x20b0e2={'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata']['gid'],'dad':this['metadata']['dad'],'aid':this['metadata']['aid'],'topic':_0xb59d85,'spn':this['context']['$self']['output']['metadata']['l1s'],'trc':this['context']['metadata']['trc']},'data':this['context']['data']};return this['config']['retry']&&(_0x20b0e2['policies']={'retry':this['config']['retry']}),await this['engine']['router']?.['publishMessage'](_0xb59d85,_0x20b0e2,_0x482b75);}}function _0x5373(){const _0x92298e=['135792JPBzuw','3RGbcNB','266488YrteGv','32285736IDDpex','4864250qnoQyq','8903898LQfwSB','371pqbEWO','874794gTdmLd','3841972NqiHZL'];_0x5373=function(){return _0x92298e;};return _0x5373();}function _0xdda3(_0x1434dd,_0x35b873){const _0x5373ea=_0x5373();return _0xdda3=function(_0xdda3b7,_0xb0c467){_0xdda3b7=_0xdda3b7-0x15e;let _0x35c4df=_0x5373ea[_0xdda3b7];return _0x35c4df;},_0xdda3(_0x1434dd,_0x35b873);}exports['Worker']=Worker;
@@ -1 +1 @@
1
- 'use strict';(function(_0x322475,_0x18fcab){const _0x4b6398=_0x26f9,_0x429ff6=_0x322475();while(!![]){try{const _0x4b5704=parseInt(_0x4b6398(0x1a1))/0x1*(-parseInt(_0x4b6398(0x1a5))/0x2)+parseInt(_0x4b6398(0x1a6))/0x3+parseInt(_0x4b6398(0x19f))/0x4*(-parseInt(_0x4b6398(0x1a0))/0x5)+parseInt(_0x4b6398(0x1a2))/0x6+parseInt(_0x4b6398(0x1a4))/0x7+-parseInt(_0x4b6398(0x19e))/0x8+parseInt(_0x4b6398(0x1a3))/0x9;if(_0x4b5704===_0x18fcab)break;else _0x429ff6['push'](_0x429ff6['shift']());}catch(_0x72b903){_0x429ff6['push'](_0x429ff6['shift']());}}}(_0x485b,0x9d87c));function _0x26f9(_0x442171,_0x1aa722){const _0x485b03=_0x485b();return _0x26f9=function(_0x26f940,_0x4c23f1){_0x26f940=_0x26f940-0x19e;let _0x233a3e=_0x485b03[_0x26f940];return _0x233a3e;},_0x26f9(_0x442171,_0x1aa722);}function _0x485b(){const _0xbfc799=['634xsbnao','570375KgulBe','5756688PomocN','772FYHqkE','30025zWenmx','2116mdHqAO','7734924TXzmsn','11338911dSZnFR','3187863RBOVZa'];_0x485b=function(){return _0xbfc799;};return _0x485b();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CollatorService']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../../types/collator');class CollatorService{static['assertJobActive'](_0x165819,_0x17aeb8,_0x55d231,_0x407068=0x0){if(_0x165819<=_0x407068)throw new errors_1['InactiveJobError'](_0x17aeb8,_0x165819,_0x55d231);}static['getDimensionalAddress'](_0x4e4249,_0x3a98e0=![]){let _0x5e410d=_0x4e4249['context']['metadata']['dad']||_0x4e4249['metadata']['dad'];return _0x3a98e0&&_0x5e410d&&_0x4e4249['leg']===0x2&&(_0x5e410d=_0x5e410d['substring'](0x0,_0x5e410d['lastIndexOf'](','))+',0'),CollatorService['getDimensionsById']([..._0x4e4249['config']['ancestors'],_0x4e4249['metadata']['aid']],_0x5e410d);}static['resolveReentryDimension'](_0x184084){const _0x10ea27=_0x184084['config']['ancestor'],_0x4bfa06=_0x184084['config']['ancestors'],_0x351239=_0x4bfa06['indexOf'](_0x10ea27),_0x38bb11=_0x184084['metadata']['dad']['split'](',');return _0x38bb11['length']=_0x351239+0x1,_0x38bb11['push']('0'),_0x38bb11['join'](',');}static async['notarizeEntry'](_0xf3e0f6,_0xc37db1){const _0x4cf246=await _0xf3e0f6['store']['collate'](_0xf3e0f6['context']['metadata']['jid'],_0xf3e0f6['metadata']['aid'],-0x5af3107a4000,this['getDimensionalAddress'](_0xf3e0f6),_0xc37db1);return this['verifyInteger'](_0x4cf246,0x1,'enter'),_0x4cf246;}static async['authorizeReentry'](_0x3c170d,_0x559fe3){const _0x567208=await _0x3c170d['store']['collate'](_0x3c170d['context']['metadata']['jid'],_0x3c170d['metadata']['aid'],-0x9184e72a000,this['getDimensionalAddress'](_0x3c170d),_0x559fe3);return _0x567208;}static async['notarizeEarlyExit'](_0xda6b76,_0x439c33){return await _0xda6b76['store']['collate'](_0xda6b76['context']['metadata']['jid'],_0xda6b76['metadata']['aid'],-0xa012317b000,this['getDimensionalAddress'](_0xda6b76),_0x439c33);}static async['notarizeEarlyCompletion'](_0x5da120,_0x372a3e){const _0x574434=_0x5da120['config']['cycle']?0x9184e72a000:0xa012317b000;return await _0x5da120['store']['collate'](_0x5da120['context']['metadata']['jid'],_0x5da120['metadata']['aid'],0xf4241-_0x574434,this['getDimensionalAddress'](_0x5da120),_0x372a3e);}static async['notarizeInception'](_0x35ffcf,_0x4a025f,_0x30c032){_0x4a025f&&await _0x35ffcf['store']['collateSynthetic'](_0x35ffcf['context']['metadata']['jid'],_0x4a025f,0xf4240,_0x30c032);}static async['isInceptionOverage'](_0x4baeb4,_0x12ef43){if(_0x12ef43){const _0x413caf=await _0x4baeb4['store']['collateSynthetic'](_0x4baeb4['context']['metadata']['jid'],_0x12ef43,0xf4240);return _0x413caf>0xf4240;}return![];}static async['notarizeReentry'](_0x6aae2a,_0x30e93a,_0x30ab75){const _0x1d79f3=_0x6aae2a['context']['metadata']['jid'],_0x149064=_0x30ab75||_0x6aae2a['store']['transact']();await _0x6aae2a['store']['collate'](_0x1d79f3,_0x6aae2a['metadata']['aid'],0xf4240,this['getDimensionalAddress'](_0x6aae2a,!![]),_0x149064),await _0x6aae2a['store']['collateSynthetic'](_0x1d79f3,_0x30e93a,0xf4240,_0x149064);const [_0x1b3cb1,_0x40d4c1]=await _0x149064['exec'](),_0x35d60a=Array['isArray'](_0x1b3cb1)?_0x1b3cb1[0x1]:_0x1b3cb1,_0x5e96bc=Array['isArray'](_0x40d4c1)?_0x40d4c1[0x1]:_0x40d4c1;return this['verifyInteger'](_0x35d60a,0x2,'enter'),this['verifySyntheticInteger'](_0x5e96bc),_0x35d60a;}static async['notarizeContinuation'](_0x228664,_0x20f4cc){return await _0x228664['store']['collate'](_0x228664['context']['metadata']['jid'],_0x228664['metadata']['aid'],0x1,this['getDimensionalAddress'](_0x228664),_0x20f4cc);}static async['notarizeCompletion'](_0x1e2296,_0xb25a79){const _0x387ee4=_0x1e2296['config']['cycle']?0x0:0xe8d4a51000;return await _0x1e2296['store']['collate'](_0x1e2296['context']['metadata']['jid'],_0x1e2296['metadata']['aid'],0x1-_0x387ee4,this['getDimensionalAddress'](_0x1e2296),_0xb25a79);}static['getDigitAtIndex'](_0x3a55cb,_0x4bfd47){const _0x2bf93b=_0x3a55cb['toString']();if(_0x4bfd47<0x0||_0x4bfd47>=_0x2bf93b['length'])return null;const _0x48e39c=parseInt(_0x2bf93b[_0x4bfd47],0xa);return _0x48e39c;}static['getDimensionalIndex'](_0x18b4c2){const _0x1428e9=_0x18b4c2['toString']();if(_0x1428e9['length']<0x9)return null;const _0xe7f5e=_0x1428e9['substring'](0x3,0x9),_0x110a58=parseInt(_0xe7f5e,0xa);return _0x110a58-0x1;}static['isDuplicate'](_0xee346c,_0x3b79c2){return this['getDigitAtIndex'](_0xee346c,_0x3b79c2)<0x8;}static['isInactive'](_0x3ab1e7){return this['getDigitAtIndex'](_0x3ab1e7,0x2)<0x9;}static['isPrimed'](_0x4da494,_0x2bdec7){return _0x2bdec7==0x1?_0x4da494!=-0x5af3107a4000:this['getDigitAtIndex'](_0x4da494,0x0)<0x9&&this['getDigitAtIndex'](_0x4da494,0x1)<0x9;}static['verifySyntheticInteger'](_0x2deddf){const _0x8781e8=_0x2deddf['toString'](),_0x1d647e=parseInt(_0x8781e8[_0x8781e8['length']-0x1],0xa);if(_0x1d647e>0x0)throw new errors_1['CollationError'](_0x2deddf,0x2,'enter',collator_1['CollationFaultType']['INACTIVE']);else{if(_0x2deddf>=0x1e8480)throw new errors_1['CollationError'](_0x2deddf,0x2,'enter',collator_1['CollationFaultType']['DUPLICATE']);}}static['verifyInteger'](_0xbea234,_0x1ed276,_0x279d16){let _0x450cc9;if(_0x1ed276===0x1&&_0x279d16==='enter'){if(!this['isPrimed'](_0xbea234,0x1))_0x450cc9=collator_1['CollationFaultType']['MISSING'];else{if(this['isDuplicate'](_0xbea234,0x0))_0x450cc9=collator_1['CollationFaultType']['DUPLICATE'];else _0xbea234!=0x331a2bfa73000&&(_0x450cc9=collator_1['CollationFaultType']['INVALID']);}}else{if(_0x1ed276===0x1&&_0x279d16==='exit'){if(_0xbea234===-0x9184e72a000)_0x450cc9=collator_1['CollationFaultType']['MISSING'];else this['isDuplicate'](_0xbea234,0x1)&&(_0x450cc9=collator_1['CollationFaultType']['DUPLICATE']);}else{if(_0x1ed276===0x2&&_0x279d16==='enter'){if(!this['isPrimed'](_0xbea234,0x2))_0x450cc9=collator_1['CollationFaultType']['FORBIDDEN'];else this['isInactive'](_0xbea234)&&(_0x450cc9=collator_1['CollationFaultType']['INACTIVE']);}}}if(_0x450cc9)throw new errors_1['CollationError'](_0xbea234,_0x1ed276,_0x279d16,_0x450cc9);}static['getDimensionsById'](_0x449642,_0x3ead4f){const _0x1cff63={'$ADJACENT':_0x3ead4f+',0'};let _0x224761=_0x3ead4f;return _0x449642['reverse']()['forEach'](_0x2abfbb=>{_0x1cff63[_0x2abfbb]=_0x224761,_0x224761=_0x224761['substring'](0x0,_0x224761['lastIndexOf'](','));}),_0x1cff63;}static['getSeed'](){return'999000000000000';}static['getTriggerSeed'](){return'888000001000001';}static['compile'](_0x3f5b61){CollatorService['bindAncestorArray'](_0x3f5b61);}static['bindAncestorArray'](_0x5df7ce){_0x5df7ce['forEach'](_0x360adc=>{const _0x425964={},_0x325cc9=Object['keys'](_0x360adc['activities'])['find'](_0x1937af=>_0x360adc['activities'][_0x1937af]['type']==='trigger');if(!_0x325cc9)throw new Error('collator-trigger-activity-not-found');const _0x5c98c2=(_0x427e71,_0x377da6)=>{_0x425964[_0x427e71]=_0x377da6,_0x360adc['activities'][_0x427e71]['ancestors']=_0x377da6;const _0x39a2fe=_0x360adc['transitions']?.[_0x427e71]||[];_0x39a2fe['forEach'](_0xc8bf71=>{_0x5c98c2(_0xc8bf71['to'],[..._0x377da6,_0x427e71]);});};_0x5c98c2(_0x325cc9,[]);});}static['getDimensionalSeed'](_0x1d6316=0x0){return','+_0x1d6316;}}exports['CollatorService']=CollatorService,CollatorService['targetLength']=0xf;
1
+ 'use strict';(function(_0x3db730,_0x18c0e2){const _0x2fb0f2=_0x1b8d,_0x436c3d=_0x3db730();while(!![]){try{const _0x56f69e=-parseInt(_0x2fb0f2(0x8c))/0x1+-parseInt(_0x2fb0f2(0x92))/0x2+parseInt(_0x2fb0f2(0x91))/0x3*(-parseInt(_0x2fb0f2(0x8e))/0x4)+parseInt(_0x2fb0f2(0x8d))/0x5+-parseInt(_0x2fb0f2(0x8a))/0x6+-parseInt(_0x2fb0f2(0x8b))/0x7*(parseInt(_0x2fb0f2(0x90))/0x8)+parseInt(_0x2fb0f2(0x8f))/0x9;if(_0x56f69e===_0x18c0e2)break;else _0x436c3d['push'](_0x436c3d['shift']());}catch(_0x2b5f75){_0x436c3d['push'](_0x436c3d['shift']());}}}(_0x1cb6,0x65e78));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CollatorService']=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require('../../types/collator');class CollatorService{static['assertJobActive'](_0x493507,_0xfffb04,_0x24a4fe,_0x386252=0x0){if(_0x493507<=_0x386252)throw new errors_1['InactiveJobError'](_0xfffb04,_0x493507,_0x24a4fe);}static['getDimensionalAddress'](_0x5df87f,_0x529ad0=![]){let _0x56c4ca=_0x5df87f['context']['metadata']['dad']||_0x5df87f['metadata']['dad'];return _0x529ad0&&_0x56c4ca&&_0x5df87f['leg']===0x2&&(_0x56c4ca=_0x56c4ca['substring'](0x0,_0x56c4ca['lastIndexOf'](','))+',0'),CollatorService['getDimensionsById']([..._0x5df87f['config']['ancestors'],_0x5df87f['metadata']['aid']],_0x56c4ca);}static['resolveReentryDimension'](_0x2cdd36){const _0x2d5ac3=_0x2cdd36['config']['ancestor'],_0x355400=_0x2cdd36['config']['ancestors'],_0x3cb521=_0x355400['indexOf'](_0x2d5ac3),_0x5c7360=_0x2cdd36['metadata']['dad']['split'](',');return _0x5c7360['length']=_0x3cb521+0x1,_0x5c7360['push']('0'),_0x5c7360['join'](',');}static async['notarizeEntry'](_0x634181,_0x2228c5){const _0x550902=await _0x634181['store']['collate'](_0x634181['context']['metadata']['jid'],_0x634181['metadata']['aid'],-0x5af3107a4000,this['getDimensionalAddress'](_0x634181),_0x2228c5);return this['verifyInteger'](_0x550902,0x1,'enter'),_0x550902;}static async['authorizeReentry'](_0x14b09a,_0x49905f){const _0x5c58cf=await _0x14b09a['store']['collate'](_0x14b09a['context']['metadata']['jid'],_0x14b09a['metadata']['aid'],-0x9184e72a000,this['getDimensionalAddress'](_0x14b09a),_0x49905f);return _0x5c58cf;}static async['notarizeEarlyExit'](_0x475ca0,_0x144e20){return await _0x475ca0['store']['collate'](_0x475ca0['context']['metadata']['jid'],_0x475ca0['metadata']['aid'],-0xa012317b000,this['getDimensionalAddress'](_0x475ca0),_0x144e20);}static async['notarizeEarlyCompletion'](_0x180980,_0x376b8a){const _0x13a792=_0x180980['config']['cycle']?0x9184e72a000:0xa012317b000;return await _0x180980['store']['collate'](_0x180980['context']['metadata']['jid'],_0x180980['metadata']['aid'],0xf4241-_0x13a792,this['getDimensionalAddress'](_0x180980),_0x376b8a);}static async['notarizeInception'](_0x266d03,_0x35294c,_0x3b2187){_0x35294c&&await _0x266d03['store']['collateSynthetic'](_0x266d03['context']['metadata']['jid'],_0x35294c,0xf4240,_0x3b2187);}static async['isInceptionOverage'](_0x4ae8cf,_0x4411dd){if(_0x4411dd){const _0x1e256e=await _0x4ae8cf['store']['collateSynthetic'](_0x4ae8cf['context']['metadata']['jid'],_0x4411dd,0xf4240);return _0x1e256e>0xf4240;}return![];}static async['notarizeReentry'](_0x32897b,_0x7c7159,_0x36e6db){const _0x367b6b=_0x32897b['context']['metadata']['jid'],_0x269af1=_0x36e6db||_0x32897b['store']['transact']();await _0x32897b['store']['collate'](_0x367b6b,_0x32897b['metadata']['aid'],0xf4240,this['getDimensionalAddress'](_0x32897b,!![]),_0x269af1),await _0x32897b['store']['collateSynthetic'](_0x367b6b,_0x7c7159,0xf4240,_0x269af1);const [_0x3333bc,_0x2b292e]=await _0x269af1['exec'](),_0x39442a=Array['isArray'](_0x3333bc)?_0x3333bc[0x1]:_0x3333bc,_0x34b78d=Array['isArray'](_0x2b292e)?_0x2b292e[0x1]:_0x2b292e;return this['verifyInteger'](_0x39442a,0x2,'enter'),this['verifySyntheticInteger'](_0x34b78d),_0x39442a;}static async['notarizeContinuation'](_0x2dcdaa,_0xbf89a3){return await _0x2dcdaa['store']['collate'](_0x2dcdaa['context']['metadata']['jid'],_0x2dcdaa['metadata']['aid'],0x1,this['getDimensionalAddress'](_0x2dcdaa),_0xbf89a3);}static async['notarizeCompletion'](_0x3b86a5,_0x2da985){const _0x534c33=_0x3b86a5['config']['cycle']?0x0:0xe8d4a51000;return await _0x3b86a5['store']['collate'](_0x3b86a5['context']['metadata']['jid'],_0x3b86a5['metadata']['aid'],0x1-_0x534c33,this['getDimensionalAddress'](_0x3b86a5),_0x2da985);}static['getDigitAtIndex'](_0x14c2e1,_0x44a050){const _0x121e85=_0x14c2e1['toString']();if(_0x44a050<0x0||_0x44a050>=_0x121e85['length'])return null;const _0xef3365=parseInt(_0x121e85[_0x44a050],0xa);return _0xef3365;}static['getDimensionalIndex'](_0xa61bdf){const _0x1c7c18=_0xa61bdf['toString']();if(_0x1c7c18['length']<0x9)return null;const _0x10ce74=_0x1c7c18['substring'](0x3,0x9),_0x35281c=parseInt(_0x10ce74,0xa);return _0x35281c-0x1;}static['isDuplicate'](_0x4f163f,_0x5a00c7){return this['getDigitAtIndex'](_0x4f163f,_0x5a00c7)<0x8;}static['isInactive'](_0x3befb2){return this['getDigitAtIndex'](_0x3befb2,0x2)<0x9;}static['isPrimed'](_0x271d74,_0x3028bd){return _0x3028bd==0x1?_0x271d74!=-0x5af3107a4000:this['getDigitAtIndex'](_0x271d74,0x0)<0x9&&this['getDigitAtIndex'](_0x271d74,0x1)<0x9;}static['verifySyntheticInteger'](_0x146a37){const _0x293858=_0x146a37['toString'](),_0x1124be=parseInt(_0x293858[_0x293858['length']-0x1],0xa);if(_0x1124be>0x0)throw new errors_1['CollationError'](_0x146a37,0x2,'enter',collator_1['CollationFaultType']['INACTIVE']);else{if(_0x146a37>=0x1e8480)throw new errors_1['CollationError'](_0x146a37,0x2,'enter',collator_1['CollationFaultType']['DUPLICATE']);}}static['verifyInteger'](_0xa5f1e7,_0xc555b1,_0x362635){let _0x22596c;if(_0xc555b1===0x1&&_0x362635==='enter'){if(!this['isPrimed'](_0xa5f1e7,0x1))_0x22596c=collator_1['CollationFaultType']['MISSING'];else{if(this['isDuplicate'](_0xa5f1e7,0x0))_0x22596c=collator_1['CollationFaultType']['DUPLICATE'];else _0xa5f1e7!=0x331a2bfa73000&&(_0x22596c=collator_1['CollationFaultType']['INVALID']);}}else{if(_0xc555b1===0x1&&_0x362635==='exit'){if(_0xa5f1e7===-0x9184e72a000)_0x22596c=collator_1['CollationFaultType']['MISSING'];else this['isDuplicate'](_0xa5f1e7,0x1)&&(_0x22596c=collator_1['CollationFaultType']['DUPLICATE']);}else{if(_0xc555b1===0x2&&_0x362635==='enter'){if(!this['isPrimed'](_0xa5f1e7,0x2))_0x22596c=collator_1['CollationFaultType']['FORBIDDEN'];else this['isInactive'](_0xa5f1e7)&&(_0x22596c=collator_1['CollationFaultType']['INACTIVE']);}}}if(_0x22596c)throw new errors_1['CollationError'](_0xa5f1e7,_0xc555b1,_0x362635,_0x22596c);}static['getDimensionsById'](_0x39eebf,_0x14d253){const _0x3bbf66={'$ADJACENT':_0x14d253+',0'};let _0x3359e2=_0x14d253;return _0x39eebf['reverse']()['forEach'](_0x2ed06e=>{_0x3bbf66[_0x2ed06e]=_0x3359e2,_0x3359e2=_0x3359e2['substring'](0x0,_0x3359e2['lastIndexOf'](','));}),_0x3bbf66;}static['getSeed'](){return'999000000000000';}static['getTriggerSeed'](){return'888000001000001';}static['compile'](_0x3f78ce){CollatorService['bindAncestorArray'](_0x3f78ce);}static['bindAncestorArray'](_0x25f499){_0x25f499['forEach'](_0x1bc10c=>{const _0x5686cc={},_0x3e8452=Object['keys'](_0x1bc10c['activities'])['find'](_0x163859=>_0x1bc10c['activities'][_0x163859]['type']==='trigger');if(!_0x3e8452)throw new Error('collator-trigger-activity-not-found');const _0x22b3cc=(_0x5cc114,_0x13008f)=>{_0x5686cc[_0x5cc114]=_0x13008f,_0x1bc10c['activities'][_0x5cc114]['ancestors']=_0x13008f;const _0x31df56=_0x1bc10c['transitions']?.[_0x5cc114]||[];_0x31df56['forEach'](_0x1786eb=>{_0x22b3cc(_0x1786eb['to'],[..._0x13008f,_0x5cc114]);});};_0x22b3cc(_0x3e8452,[]);});}static['getDimensionalSeed'](_0x52df80=0x0){return','+_0x52df80;}}exports['CollatorService']=CollatorService,CollatorService['targetLength']=0xf;function _0x1b8d(_0x2582da,_0x45b28b){const _0x1cb67d=_0x1cb6();return _0x1b8d=function(_0x1b8d6a,_0x295c56){_0x1b8d6a=_0x1b8d6a-0x8a;let _0x3a5291=_0x1cb67d[_0x1b8d6a];return _0x3a5291;},_0x1b8d(_0x2582da,_0x45b28b);}function _0x1cb6(){const _0x320b52=['645310sxCeiE','1739120EcLFmy','2734844KWVfVx','18562518HwtlPQ','1506488RBfCtD','3EIsrit','603916uouSGB','1041816WnWnmT','7PUpzUo'];_0x1cb6=function(){return _0x320b52;};return _0x1cb6();}