Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / services / ami / trigger / script / index.js
index 079bbb0..6848b18 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x54a1=['%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','mustache','../../../../config/logger','trigger','data2','data3','exec','error','format','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info'];(function(_0x648d02,_0x279ec4){var _0x42c3e5=function(_0x38ff54){while(--_0x38ff54){_0x648d02['push'](_0x648d02['shift']());}};_0x42c3e5(++_0x279ec4);}(_0x54a1,0x1c4));var _0x154a=function(_0x45783c,_0x49c56d){_0x45783c=_0x45783c-0x0;var _0x1161da=_0x54a1[_0x45783c];return _0x1161da;};'use strict';var util=require('util');var sh=require('shelljs');var Mustache=require(_0x154a('0x0'));var logger=require(_0x154a('0x1'))(_0x154a('0x2'));exports['exec']=function(_0x5d7025,_0x482e72){var _0x580931=_0x5d7025[_0x154a('0x3')]?_0x5d7025['data2']:'Script';var _0x367af8=_0x5d7025[_0x154a('0x4')]?Mustache['render'](_0x5d7025[_0x154a('0x4')],_0x482e72):_0x482e72;sh[_0x154a('0x5')](_0x367af8,function(_0x54d771,_0x5ee963,_0x1b9f51){if(_0x54d771!==0x0){logger[_0x154a('0x6')](util[_0x154a('0x7')](_0x154a('0x8'),_0x580931,_0x367af8,_0x54d771,_0x1b9f51));}else{logger[_0x154a('0x9')](util[_0x154a('0x7')](_0x154a('0xa'),_0x580931,_0x367af8,_0x5ee963));}});};
\ No newline at end of file
+var _0x333e=['render','exec','error','format','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info','util','shelljs','mustache','../../../../config/logger','trigger','data2','Script','data3'];(function(_0x56a58f,_0x17841d){var _0x552049=function(_0x15c24e){while(--_0x15c24e){_0x56a58f['push'](_0x56a58f['shift']());}};_0x552049(++_0x17841d);}(_0x333e,0x19c));var _0xe333=function(_0x4fbc9f,_0x1ba070){_0x4fbc9f=_0x4fbc9f-0x0;var _0x205885=_0x333e[_0x4fbc9f];return _0x205885;};'use strict';var util=require(_0xe333('0x0'));var sh=require(_0xe333('0x1'));var Mustache=require(_0xe333('0x2'));var logger=require(_0xe333('0x3'))(_0xe333('0x4'));exports['exec']=function(_0x18368b,_0x18ec93){var _0x5ed21c=_0x18368b[_0xe333('0x5')]?_0x18368b[_0xe333('0x5')]:_0xe333('0x6');var _0x30d739=_0x18368b[_0xe333('0x7')]?Mustache[_0xe333('0x8')](_0x18368b[_0xe333('0x7')],_0x18ec93):_0x18ec93;sh[_0xe333('0x9')](_0x30d739,function(_0x1eacad,_0xabfe0c,_0x5bd409){if(_0x1eacad!==0x0){logger[_0xe333('0xa')](util[_0xe333('0xb')](_0xe333('0xc'),_0x5ed21c,_0x30d739,_0x1eacad,_0x5bd409));}else{logger[_0xe333('0xd')](util[_0xe333('0xb')]('%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s',_0x5ed21c,_0x30d739,_0xabfe0c));}});};
\ No newline at end of file