Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / services / ami / trigger / script / index.js
index 14804de..d9cfa04 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc0df=['exec','data2','Script','data3','error','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info','format','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','shelljs','mustache','../../../../config/logger'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0xc0df,0x1a1));var _0xfc0d=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0xc0df[_0x4b369d];return _0x571a98;};'use strict';var util=require('util');var sh=require(_0xfc0d('0x0'));var Mustache=require(_0xfc0d('0x1'));var logger=require(_0xfc0d('0x2'))('trigger');exports[_0xfc0d('0x3')]=function(_0x5ecd22,_0x23eaa4){var _0x252844=_0x5ecd22['data2']?_0x5ecd22[_0xfc0d('0x4')]:_0xfc0d('0x5');var _0x94c576=_0x5ecd22[_0xfc0d('0x6')]?Mustache['render'](_0x5ecd22[_0xfc0d('0x6')],_0x23eaa4):_0x23eaa4;sh['exec'](_0x94c576,function(_0x4204d2,_0x1bddf5,_0x5b7248){if(_0x4204d2!==0x0){logger[_0xfc0d('0x7')](util['format'](_0xfc0d('0x8'),_0x252844,_0x94c576,_0x4204d2,_0x5b7248));}else{logger[_0xfc0d('0x9')](util[_0xfc0d('0xa')](_0xfc0d('0xb'),_0x252844,_0x94c576,_0x1bddf5));}});};
\ No newline at end of file
+var _0xf0a1=['data2','Script','data3','render','error','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','shelljs','mustache','trigger'];(function(_0x7c0646,_0x45d16b){var _0x32416d=function(_0x22abdd){while(--_0x22abdd){_0x7c0646['push'](_0x7c0646['shift']());}};_0x32416d(++_0x45d16b);}(_0xf0a1,0xe6));var _0x1f0a=function(_0x1f1c62,_0x859e8a){_0x1f1c62=_0x1f1c62-0x0;var _0x503f0a=_0xf0a1[_0x1f1c62];return _0x503f0a;};'use strict';var util=require(_0x1f0a('0x0'));var sh=require(_0x1f0a('0x1'));var Mustache=require(_0x1f0a('0x2'));var logger=require('../../../../config/logger')(_0x1f0a('0x3'));exports['exec']=function(_0x422774,_0x5d9eb9){var _0x4ad032=_0x422774[_0x1f0a('0x4')]?_0x422774[_0x1f0a('0x4')]:_0x1f0a('0x5');var _0x145955=_0x422774[_0x1f0a('0x6')]?Mustache[_0x1f0a('0x7')](_0x422774[_0x1f0a('0x6')],_0x5d9eb9):_0x5d9eb9;sh['exec'](_0x145955,function(_0x3e204d,_0x3931cb,_0x17605a){if(_0x3e204d!==0x0){logger[_0x1f0a('0x8')](util[_0x1f0a('0x9')](_0x1f0a('0xa'),_0x4ad032,_0x145955,_0x3e204d,_0x17605a));}else{logger[_0x1f0a('0xb')](util[_0x1f0a('0x9')](_0x1f0a('0xc'),_0x4ad032,_0x145955,_0x3931cb));}});};
\ No newline at end of file