Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / services / ami / trigger / script / index.js
index 675f108..350af8b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7a54=['mustache','trigger','exec','data2','Script','data3','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','util','shelljs'];(function(_0xb0b594,_0x1897c6){var _0x4c2d86=function(_0x5b05a1){while(--_0x5b05a1){_0xb0b594['push'](_0xb0b594['shift']());}};_0x4c2d86(++_0x1897c6);}(_0x7a54,0x106));var _0x47a5=function(_0x1680f5,_0x20e6f9){_0x1680f5=_0x1680f5-0x0;var _0x1758f2=_0x7a54[_0x1680f5];return _0x1758f2;};'use strict';var util=require(_0x47a5('0x0'));var sh=require(_0x47a5('0x1'));var Mustache=require(_0x47a5('0x2'));var logger=require('../../../../config/logger')(_0x47a5('0x3'));exports[_0x47a5('0x4')]=function(_0x4880bf,_0x5f7f12){var _0x11bf85=_0x4880bf[_0x47a5('0x5')]?_0x4880bf[_0x47a5('0x5')]:_0x47a5('0x6');var _0x545a97=_0x4880bf[_0x47a5('0x7')]?Mustache['render'](_0x4880bf[_0x47a5('0x7')],_0x5f7f12):_0x5f7f12;sh[_0x47a5('0x4')](_0x545a97,function(_0x506eda,_0x194fb0,_0x5077f3){if(_0x506eda!==0x0){logger['error'](util['format'](_0x47a5('0x8'),_0x11bf85,_0x545a97,_0x506eda,_0x5077f3));}else{logger[_0x47a5('0x9')](util['format'](_0x47a5('0xa'),_0x11bf85,_0x545a97,_0x194fb0));}});};
\ No newline at end of file
+var _0xd714=['%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','util','shelljs','mustache','../../../../config/logger','data2','Script','data3','render','exec','error','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info','format'];(function(_0x1b6186,_0x1ec7f2){var _0x186121=function(_0x1748a8){while(--_0x1748a8){_0x1b6186['push'](_0x1b6186['shift']());}};_0x186121(++_0x1ec7f2);}(_0xd714,0x10b));var _0x4d71=function(_0x364cf8,_0x146b9b){_0x364cf8=_0x364cf8-0x0;var _0x6a59ee=_0xd714[_0x364cf8];return _0x6a59ee;};'use strict';var util=require(_0x4d71('0x0'));var sh=require(_0x4d71('0x1'));var Mustache=require(_0x4d71('0x2'));var logger=require(_0x4d71('0x3'))('trigger');exports['exec']=function(_0x5beafb,_0x2c9b8b){var _0x25890a=_0x5beafb[_0x4d71('0x4')]?_0x5beafb[_0x4d71('0x4')]:_0x4d71('0x5');var _0x14c388=_0x5beafb[_0x4d71('0x6')]?Mustache[_0x4d71('0x7')](_0x5beafb[_0x4d71('0x6')],_0x2c9b8b):_0x2c9b8b;sh[_0x4d71('0x8')](_0x14c388,function(_0xadd905,_0x16047e,_0x553b52){if(_0xadd905!==0x0){logger[_0x4d71('0x9')](util['format'](_0x4d71('0xa'),_0x25890a,_0x14c388,_0xadd905,_0x553b52));}else{logger[_0x4d71('0xb')](util[_0x4d71('0xc')](_0x4d71('0xd'),_0x25890a,_0x14c388,_0x16047e));}});};
\ No newline at end of file