Built motion from commit eddce310.|2.6.12
[motion2.git] / server / services / ami / rpc / trigger.js
index eb0aef6..ba184ec 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xefa1=['field','value','Action','action','data1','data2','data3','data4','data5','data6','data7','GetTrigger','../client','getTriggers','channel','Condition','operator'];(function(_0x4e7a3d,_0x41d47a){var _0x373953=function(_0x394777){while(--_0x394777){_0x4e7a3d['push'](_0x4e7a3d['shift']());}};_0x373953(++_0x41d47a);}(_0xefa1,0xc7));var _0x1efa=function(_0x1d024c,_0x18a151){_0x1d024c=_0x1d024c-0x0;var _0x20d6a6=_0xefa1[_0x1d024c];return _0x20d6a6;};'use strict';var client=require(_0x1efa('0x0'));exports[_0x1efa('0x1')]=function(_0x31652a){return function(_0x238c45){return client['Request']('GetTrigger',{'options':{'raw':![],'attributes':['id','name',_0x1efa('0x2'),'status'],'include':[{'model':_0x1efa('0x3'),'as':'AllConditions','attributes':['id','field',_0x1efa('0x4'),'value']},{'model':'Condition','as':'AnyConditions','attributes':['id',_0x1efa('0x5'),_0x1efa('0x4'),_0x1efa('0x6')]},{'model':_0x1efa('0x7'),'as':'Actions','attributes':['id',_0x1efa('0x8'),_0x1efa('0x9'),_0x1efa('0xa'),_0x1efa('0xb'),_0x1efa('0xc'),_0x1efa('0xd'),_0x1efa('0xe'),_0x1efa('0xf')]}]},'log':_0x1efa('0x10')});};};
\ No newline at end of file
+var _0xed4e=['data7','GetTrigger','name','channel','status','field','Condition','operator','value','Action','Actions','action','data2','data3','data5','data6'];(function(_0x1ea19c,_0x499bb5){var _0x387142=function(_0x1c69b6){while(--_0x1c69b6){_0x1ea19c['push'](_0x1ea19c['shift']());}};_0x387142(++_0x499bb5);}(_0xed4e,0x111));var _0xeed4=function(_0x4fe693,_0x4cf2ba){_0x4fe693=_0x4fe693-0x0;var _0x4dde2a=_0xed4e[_0x4fe693];return _0x4dde2a;};'use strict';var client=require('../client');exports['getTriggers']=function(_0x12694a){return function(_0x1125c0){return client['Request'](_0xeed4('0x0'),{'options':{'raw':![],'attributes':['id',_0xeed4('0x1'),_0xeed4('0x2'),_0xeed4('0x3')],'include':[{'model':'Condition','as':'AllConditions','attributes':['id',_0xeed4('0x4'),'operator','value']},{'model':_0xeed4('0x5'),'as':'AnyConditions','attributes':['id',_0xeed4('0x4'),_0xeed4('0x6'),_0xeed4('0x7')]},{'model':_0xeed4('0x8'),'as':_0xeed4('0x9'),'attributes':['id',_0xeed4('0xa'),'data1',_0xeed4('0xb'),_0xeed4('0xc'),'data4',_0xeed4('0xd'),_0xeed4('0xe'),_0xeed4('0xf')]}]},'log':_0xeed4('0x0')});};};
\ No newline at end of file