Built motion from commit d13fb11b.|2.6.34
[motion2.git] / server / services / ami / trigger / script / index.js
index ea4a147..3258a00 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xceaf=['data2','Script','data3','exec','error','info','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','util','shelljs','mustache','../../../../config/logger','trigger'];(function(_0xd3a53d,_0x5e5bc2){var _0x56f46b=function(_0x2aced9){while(--_0x2aced9){_0xd3a53d['push'](_0xd3a53d['shift']());}};_0x56f46b(++_0x5e5bc2);}(_0xceaf,0x11b));var _0xfcea=function(_0x14cf6a,_0x48deba){_0x14cf6a=_0x14cf6a-0x0;var _0x547400=_0xceaf[_0x14cf6a];return _0x547400;};'use strict';var util=require(_0xfcea('0x0'));var sh=require(_0xfcea('0x1'));var Mustache=require(_0xfcea('0x2'));var logger=require(_0xfcea('0x3'))(_0xfcea('0x4'));exports['exec']=function(_0x301a26,_0xdcec95){var _0x38394e=_0x301a26[_0xfcea('0x5')]?_0x301a26[_0xfcea('0x5')]:_0xfcea('0x6');var _0x2309d2=_0x301a26[_0xfcea('0x7')]?Mustache['render'](_0x301a26[_0xfcea('0x7')],_0xdcec95):_0xdcec95;sh[_0xfcea('0x8')](_0x2309d2,function(_0x3a0dc8,_0x5807f4,_0x5baef0){if(_0x3a0dc8!==0x0){logger[_0xfcea('0x9')](util['format']('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0x38394e,_0x2309d2,_0x3a0dc8,_0x5baef0));}else{logger[_0xfcea('0xa')](util['format'](_0xfcea('0xb'),_0x38394e,_0x2309d2,_0x5807f4));}});};
\ No newline at end of file
+var _0x4263=['format','%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','mustache','trigger','exec','data2','Script','render','data3','error'];(function(_0x4612df,_0x37a8f7){var _0x2804c6=function(_0x2b1979){while(--_0x2b1979){_0x4612df['push'](_0x4612df['shift']());}};_0x2804c6(++_0x37a8f7);}(_0x4263,0x12f));var _0x3426=function(_0x380120,_0x5a7acd){_0x380120=_0x380120-0x0;var _0x5d3ce7=_0x4263[_0x380120];return _0x5d3ce7;};'use strict';var util=require(_0x3426('0x0'));var sh=require('shelljs');var Mustache=require(_0x3426('0x1'));var logger=require('../../../../config/logger')(_0x3426('0x2'));exports[_0x3426('0x3')]=function(_0x4e260f,_0x4591e4){var _0x4cad77=_0x4e260f[_0x3426('0x4')]?_0x4e260f[_0x3426('0x4')]:_0x3426('0x5');var _0x42bb25=_0x4e260f['data3']?Mustache[_0x3426('0x6')](_0x4e260f[_0x3426('0x7')],_0x4591e4):_0x4591e4;sh[_0x3426('0x3')](_0x42bb25,function(_0x11b142,_0x1ba6ea,_0x1abcd5){if(_0x11b142!==0x0){logger[_0x3426('0x8')](util[_0x3426('0x9')](_0x3426('0xa'),_0x4cad77,_0x42bb25,_0x11b142,_0x1abcd5));}else{logger[_0x3426('0xb')](util['format'](_0x3426('0xc'),_0x4cad77,_0x42bb25,_0x1ba6ea));}});};
\ No newline at end of file