@strato-automation/node-red-contrib-strato-automation
Version:
Strato Automation Official Node Red Library
1 lines • 2.79 kB
JavaScript
const a22_0xae671a=a22_0x421a;function a22_0x1053(){const _0x10b640=['16295MJdBGa','Fetching\x20telemetries...','red','189iwXBLm','https://','ocn-telemetry','registerType','8329673NkomiR','643410XICzwI','ocn_server_node','1632ddfUSy','json','4440756mgotxv','input','exports','Error\x20fetching\x20telemetries','api_token','572LLMxXI','22295rQttJL','status','HTTP\x20status\x20:\x20','ocn_ip','2scamoi','createNode','/api/v1','blue','nodes','../lib/ocnApiClient.js','error','4554003lzdWTf','dot','1199243fqjFMZ'];a22_0x1053=function(){return _0x10b640;};return a22_0x1053();}function a22_0x421a(_0x56735a,_0x149a43){const _0x10537f=a22_0x1053();return a22_0x421a=function(_0x421a66,_0x2e68b3){_0x421a66=_0x421a66-0x1d3;let _0xed38a0=_0x10537f[_0x421a66];return _0xed38a0;},a22_0x421a(_0x56735a,_0x149a43);}(function(_0x135f1a,_0x1028e5){const _0x364e11=a22_0x421a,_0x351e3f=_0x135f1a();while(!![]){try{const _0x55fdd6=parseInt(_0x364e11(0x1e0))/0x1+parseInt(_0x364e11(0x1d7))/0x2*(-parseInt(_0x364e11(0x1de))/0x3)+-parseInt(_0x364e11(0x1f2))/0x4*(-parseInt(_0x364e11(0x1e1))/0x5)+-parseInt(_0x364e11(0x1ed))/0x6+-parseInt(_0x364e11(0x1d3))/0x7*(parseInt(_0x364e11(0x1eb))/0x8)+-parseInt(_0x364e11(0x1e4))/0x9*(-parseInt(_0x364e11(0x1e9))/0xa)+parseInt(_0x364e11(0x1e8))/0xb;if(_0x55fdd6===_0x1028e5)break;else _0x351e3f['push'](_0x351e3f['shift']());}catch(_0x3dab8a){_0x351e3f['push'](_0x351e3f['shift']());}}}(a22_0x1053,0xd3619),module[a22_0xae671a(0x1ef)]=function(_0x557670){const _0xc422e0=a22_0xae671a,_0x33bf1a=require(_0xc422e0(0x1dc));function _0x2101ee(_0x286c78){const _0x5e42f3=_0xc422e0;_0x557670[_0x5e42f3(0x1db)][_0x5e42f3(0x1d8)](this,_0x286c78);var _0x5221b0=this;_0x5221b0[_0x5e42f3(0x1ea)]=_0x557670[_0x5e42f3(0x1db)]['getNode'](_0x286c78[_0x5e42f3(0x1ea)]),_0x5221b0['on'](_0x5e42f3(0x1ee),function(_0x1ca5c6){const _0x31f242=_0x5e42f3,_0x2e3af1=new _0x33bf1a(_0x31f242(0x1e5)+_0x5221b0['ocn_server_node'][_0x31f242(0x1d6)]+_0x31f242(0x1d9),_0x5221b0[_0x31f242(0x1ea)][_0x31f242(0x1f1)]);_0x5221b0[_0x31f242(0x1d4)]({'fill':_0x31f242(0x1da),'shape':'dot','text':_0x31f242(0x1e2)}),_0x2e3af1['getTelemetry'](_0x1ca5c6['payload'])['then'](_0x1a56af=>{const _0x3138c3=_0x31f242;_0x5221b0[_0x3138c3(0x1d4)]({}),_0x1a56af[_0x3138c3(0x1d4)]==0xc8?_0x1a56af[_0x3138c3(0x1ec)]()['then'](_0x13a3ab=>{_0x1ca5c6['payload']=_0x13a3ab,_0x5221b0['send'](_0x1ca5c6);}):(_0x5221b0[_0x3138c3(0x1d4)]({'fill':_0x3138c3(0x1e3),'shape':_0x3138c3(0x1df),'text':_0x3138c3(0x1d5)+_0x1a56af[_0x3138c3(0x1d4)]}),_0x5221b0[_0x3138c3(0x1dd)](_0x3138c3(0x1f0)));})['catch'](_0x2ad882=>{const _0x1dbde0=_0x31f242;_0x5221b0['status']({'fill':_0x1dbde0(0x1e3),'shape':'dot','text':_0x1dbde0(0x1f0)}),_0x5221b0['error'](_0x2ad882);});});}_0x557670['nodes'][_0xc422e0(0x1e7)](_0xc422e0(0x1e6),_0x2101ee);});