Built motion from commit f8768ebe.|2.6.15
[motion2.git] / server / services / ami / trigger / script / index.js
index d0ff7fb..6646dae 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3f97=['data3','error','format','info','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','mustache','../../../../config/logger','exec','data2','Script'];(function(_0x13e741,_0x5d3c24){var _0x3f8bb3=function(_0x4440a0){while(--_0x4440a0){_0x13e741['push'](_0x13e741['shift']());}};_0x3f8bb3(++_0x5d3c24);}(_0x3f97,0x9b));var _0x73f9=function(_0x5cccb8,_0x285c72){_0x5cccb8=_0x5cccb8-0x0;var _0x223fc6=_0x3f97[_0x5cccb8];return _0x223fc6;};'use strict';var util=require('util');var sh=require('shelljs');var Mustache=require(_0x73f9('0x0'));var logger=require(_0x73f9('0x1'))('trigger');exports[_0x73f9('0x2')]=function(_0x24979b,_0x428b5b){var _0x5302cc=_0x24979b[_0x73f9('0x3')]?_0x24979b[_0x73f9('0x3')]:_0x73f9('0x4');var _0xa38931=_0x24979b[_0x73f9('0x5')]?Mustache['render'](_0x24979b[_0x73f9('0x5')],_0x428b5b):_0x428b5b;sh['exec'](_0xa38931,function(_0x247f85,_0xd4d351,_0x3ab191){if(_0x247f85!==0x0){logger[_0x73f9('0x6')](util[_0x73f9('0x7')]('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0x5302cc,_0xa38931,_0x247f85,_0x3ab191));}else{logger[_0x73f9('0x8')](util['format'](_0x73f9('0x9'),_0x5302cc,_0xa38931,_0xd4d351));}});};
\ No newline at end of file
+var _0x6d26=['Script','data3','render','exec','info','format','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','util','shelljs','mustache','../../../../config/logger','trigger','data2'];(function(_0x20c85b,_0x19ba3b){var _0x45a8df=function(_0x4fbf9f){while(--_0x4fbf9f){_0x20c85b['push'](_0x20c85b['shift']());}};_0x45a8df(++_0x19ba3b);}(_0x6d26,0x13f));var _0x66d2=function(_0x38c272,_0x41b5f2){_0x38c272=_0x38c272-0x0;var _0x570a54=_0x6d26[_0x38c272];return _0x570a54;};'use strict';var util=require(_0x66d2('0x0'));var sh=require(_0x66d2('0x1'));var Mustache=require(_0x66d2('0x2'));var logger=require(_0x66d2('0x3'))(_0x66d2('0x4'));exports['exec']=function(_0x57f671,_0x5d15aa){var _0x3f4d86=_0x57f671['data2']?_0x57f671[_0x66d2('0x5')]:_0x66d2('0x6');var _0x32d6a1=_0x57f671[_0x66d2('0x7')]?Mustache[_0x66d2('0x8')](_0x57f671[_0x66d2('0x7')],_0x5d15aa):_0x5d15aa;sh[_0x66d2('0x9')](_0x32d6a1,function(_0x24ceaa,_0x2b6627,_0x4ca69d){if(_0x24ceaa!==0x0){logger['error'](util['format']('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0x3f4d86,_0x32d6a1,_0x24ceaa,_0x4ca69d));}else{logger[_0x66d2('0xa')](util[_0x66d2('0xb')](_0x66d2('0xc'),_0x3f4d86,_0x32d6a1,_0x2b6627));}});};
\ No newline at end of file