Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / services / ami / trigger / script / index.js
index 423e1b5..3e521cf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x59bd=['render','error','format','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info','shelljs','mustache','../../../../config/logger','trigger','exec','data2','data3'];(function(_0xac18c1,_0x2f3d07){var _0x53b5c2=function(_0x4ea836){while(--_0x4ea836){_0xac18c1['push'](_0xac18c1['shift']());}};_0x53b5c2(++_0x2f3d07);}(_0x59bd,0x125));var _0xd59b=function(_0x2ce1bd,_0x492a67){_0x2ce1bd=_0x2ce1bd-0x0;var _0x33abc5=_0x59bd[_0x2ce1bd];return _0x33abc5;};'use strict';var util=require('util');var sh=require(_0xd59b('0x0'));var Mustache=require(_0xd59b('0x1'));var logger=require(_0xd59b('0x2'))(_0xd59b('0x3'));exports[_0xd59b('0x4')]=function(_0x92f635,_0x5ba302){var _0x5692ca=_0x92f635['data2']?_0x92f635[_0xd59b('0x5')]:'Script';var _0x36b78c=_0x92f635[_0xd59b('0x6')]?Mustache[_0xd59b('0x7')](_0x92f635['data3'],_0x5ba302):_0x5ba302;sh[_0xd59b('0x4')](_0x36b78c,function(_0x3b51bf,_0x9b5278,_0x389d74){if(_0x3b51bf!==0x0){logger[_0xd59b('0x8')](util[_0xd59b('0x9')](_0xd59b('0xa'),_0x5692ca,_0x36b78c,_0x3b51bf,_0x389d74));}else{logger[_0xd59b('0xb')](util['format']('%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s',_0x5692ca,_0x36b78c,_0x9b5278));}});};
\ No newline at end of file
+var _0x48da=['trigger','exec','data2','Script','format','info','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','util','shelljs','mustache','../../../../config/logger'];(function(_0x22e279,_0x1996fb){var _0x3c0af6=function(_0x461a2e){while(--_0x461a2e){_0x22e279['push'](_0x22e279['shift']());}};_0x3c0af6(++_0x1996fb);}(_0x48da,0xee));var _0xa48d=function(_0xcd5f58,_0x2271d7){_0xcd5f58=_0xcd5f58-0x0;var _0x394039=_0x48da[_0xcd5f58];return _0x394039;};'use strict';var util=require(_0xa48d('0x0'));var sh=require(_0xa48d('0x1'));var Mustache=require(_0xa48d('0x2'));var logger=require(_0xa48d('0x3'))(_0xa48d('0x4'));exports[_0xa48d('0x5')]=function(_0x142d9e,_0x2f6825){var _0x126bb0=_0x142d9e[_0xa48d('0x6')]?_0x142d9e[_0xa48d('0x6')]:_0xa48d('0x7');var _0x4cff78=_0x142d9e['data3']?Mustache['render'](_0x142d9e['data3'],_0x2f6825):_0x2f6825;sh[_0xa48d('0x5')](_0x4cff78,function(_0x58c84c,_0x357f0a,_0xb8c531){if(_0x58c84c!==0x0){logger['error'](util[_0xa48d('0x8')]('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0x126bb0,_0x4cff78,_0x58c84c,_0xb8c531));}else{logger[_0xa48d('0x9')](util['format'](_0xa48d('0xa'),_0x126bb0,_0x4cff78,_0x357f0a));}});};
\ No newline at end of file