Built motion from commit 2b9af5da.|2.6.26
[motion2.git] / server / services / ami / trigger / script / index.js
index da06344..c3ffbfa 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdbde=['exec','data2','Script','data3','render','error','format','info','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','util','shelljs'];(function(_0x568039,_0x570f8e){var _0x1595fc=function(_0x50ac8f){while(--_0x50ac8f){_0x568039['push'](_0x568039['shift']());}};_0x1595fc(++_0x570f8e);}(_0xdbde,0xc4));var _0xedbd=function(_0x2e1fd3,_0x36ce85){_0x2e1fd3=_0x2e1fd3-0x0;var _0x598615=_0xdbde[_0x2e1fd3];return _0x598615;};'use strict';var util=require(_0xedbd('0x0'));var sh=require(_0xedbd('0x1'));var Mustache=require('mustache');var logger=require('../../../../config/logger')('trigger');exports[_0xedbd('0x2')]=function(_0x262cb1,_0x15b30f){var _0x33fc2=_0x262cb1[_0xedbd('0x3')]?_0x262cb1[_0xedbd('0x3')]:_0xedbd('0x4');var _0x542f03=_0x262cb1[_0xedbd('0x5')]?Mustache[_0xedbd('0x6')](_0x262cb1[_0xedbd('0x5')],_0x15b30f):_0x15b30f;sh[_0xedbd('0x2')](_0x542f03,function(_0x2652ac,_0x2cb8a9,_0x3b4038){if(_0x2652ac!==0x0){logger[_0xedbd('0x7')](util[_0xedbd('0x8')]('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0x33fc2,_0x542f03,_0x2652ac,_0x3b4038));}else{logger[_0xedbd('0x9')](util[_0xedbd('0x8')](_0xedbd('0xa'),_0x33fc2,_0x542f03,_0x2cb8a9));}});};
\ No newline at end of file
+var _0xddd5=['../../../../config/logger','trigger','exec','data2','Script','data3','render','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','format','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','util','shelljs'];(function(_0x510310,_0x54c70f){var _0x5b97a6=function(_0x27f7e3){while(--_0x27f7e3){_0x510310['push'](_0x510310['shift']());}};_0x5b97a6(++_0x54c70f);}(_0xddd5,0x17e));var _0x5ddd=function(_0x426030,_0x150c40){_0x426030=_0x426030-0x0;var _0x42ed8b=_0xddd5[_0x426030];return _0x42ed8b;};'use strict';var util=require(_0x5ddd('0x0'));var sh=require(_0x5ddd('0x1'));var Mustache=require('mustache');var logger=require(_0x5ddd('0x2'))(_0x5ddd('0x3'));exports[_0x5ddd('0x4')]=function(_0x286bb8,_0x5ea903){var _0xa26b49=_0x286bb8[_0x5ddd('0x5')]?_0x286bb8[_0x5ddd('0x5')]:_0x5ddd('0x6');var _0x3398cc=_0x286bb8[_0x5ddd('0x7')]?Mustache[_0x5ddd('0x8')](_0x286bb8[_0x5ddd('0x7')],_0x5ea903):_0x5ea903;sh[_0x5ddd('0x4')](_0x3398cc,function(_0x2e259b,_0x26d381,_0x330e84){if(_0x2e259b!==0x0){logger['error'](util['format'](_0x5ddd('0x9'),_0xa26b49,_0x3398cc,_0x2e259b,_0x330e84));}else{logger['info'](util[_0x5ddd('0xa')](_0x5ddd('0xb'),_0xa26b49,_0x3398cc,_0x26d381));}});};
\ No newline at end of file