Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / services / ami / trigger / script / index.js
index 84683cc..109a0e8 100644 (file)
@@ -1 +1 @@
-const a1147_0x2f61=['%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','../../../../config/logger','info','render','format','mustache','data2','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','data3'];(function(_0x5d1a5d,_0x2f61f7){const _0x210ce3=function(_0x1990b5){while(--_0x1990b5){_0x5d1a5d['push'](_0x5d1a5d['shift']());}};_0x210ce3(++_0x2f61f7);}(a1147_0x2f61,0x159));const a1147_0x210c=function(_0x5d1a5d,_0x2f61f7){_0x5d1a5d=_0x5d1a5d-0x0;let _0x210ce3=a1147_0x2f61[_0x5d1a5d];return _0x210ce3;};const _0x436afe=a1147_0x210c;'use strict';const util=require('util'),sh=require('shelljs'),Mustache=require(_0x436afe('0x2')),logger=require(_0x436afe('0x7'))('trigger');exports['exec']=function(_0x1990b5,_0x1c65e7){const _0x37654e=_0x436afe,_0x1d22b7=_0x1990b5[_0x37654e('0x3')]?_0x1990b5[_0x37654e('0x3')]:'Script',_0x3ae6a7=_0x1990b5[_0x37654e('0x5')]?Mustache[_0x37654e('0x0')](_0x1990b5[_0x37654e('0x5')],_0x1c65e7):_0x1c65e7;sh['exec'](_0x3ae6a7,function(_0x4e98d2,_0x5d2f1a,_0x11294d){const _0x4e36a3=_0x37654e;_0x4e98d2!==0x0?logger['error'](util[_0x4e36a3('0x1')](_0x4e36a3('0x4'),_0x1d22b7,_0x3ae6a7,_0x4e98d2,_0x11294d)):logger[_0x4e36a3('0x8')](util[_0x4e36a3('0x1')](_0x4e36a3('0x6'),_0x1d22b7,_0x3ae6a7,_0x5d2f1a));});};
\ No newline at end of file
+const a1147_0x4dd5=['mustache','Script','data2','util','exec','render','error','data3','shelljs','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','../../../../config/logger','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info'];(function(_0x329326,_0x4dd559){const _0x3ea85c=function(_0x1c54b5){while(--_0x1c54b5){_0x329326['push'](_0x329326['shift']());}};_0x3ea85c(++_0x4dd559);}(a1147_0x4dd5,0x70));const a1147_0x3ea8=function(_0x329326,_0x4dd559){_0x329326=_0x329326-0x0;let _0x3ea85c=a1147_0x4dd5[_0x329326];return _0x3ea85c;};const _0x5b1be8=a1147_0x3ea8;'use strict';const util=require(_0x5b1be8('0x8')),sh=require(_0x5b1be8('0x0')),Mustache=require(_0x5b1be8('0x5')),logger=require(_0x5b1be8('0x2'))('trigger');exports[_0x5b1be8('0x9')]=function(_0x1c54b5,_0x22f97d){const _0x1331f3=_0x5b1be8,_0x29c4c3=_0x1c54b5[_0x1331f3('0x7')]?_0x1c54b5[_0x1331f3('0x7')]:_0x1331f3('0x6'),_0x489354=_0x1c54b5[_0x1331f3('0xc')]?Mustache[_0x1331f3('0xa')](_0x1c54b5[_0x1331f3('0xc')],_0x22f97d):_0x22f97d;sh[_0x1331f3('0x9')](_0x489354,function(_0x4a8e6b,_0x41dfa1,_0x5df9d2){const _0x1f96ff=_0x1331f3;_0x4a8e6b!==0x0?logger[_0x1f96ff('0xb')](util['format'](_0x1f96ff('0x3'),_0x29c4c3,_0x489354,_0x4a8e6b,_0x5df9d2)):logger[_0x1f96ff('0x4')](util['format'](_0x1f96ff('0x1'),_0x29c4c3,_0x489354,_0x41dfa1));});};
\ No newline at end of file