Built motion from commit eddce310.|2.6.12
[motion2.git] / server / services / ami / rpc / trigger.js
index 24c0481..ba184ec 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdb53=['data4','data7','GetTrigger','../client','getTriggers','Request','name','channel','AllConditions','field','operator','AnyConditions','value','Action','data2','data3'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xdb53,0x183));var _0x3db5=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xdb53[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0x3db5('0x0'));exports[_0x3db5('0x1')]=function(_0x4e8bb5){return function(_0x2ee2b2){return client[_0x3db5('0x2')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x3db5('0x3'),_0x3db5('0x4'),'status'],'include':[{'model':'Condition','as':_0x3db5('0x5'),'attributes':['id',_0x3db5('0x6'),_0x3db5('0x7'),'value']},{'model':'Condition','as':_0x3db5('0x8'),'attributes':['id','field',_0x3db5('0x7'),_0x3db5('0x9')]},{'model':_0x3db5('0xa'),'as':'Actions','attributes':['id','action','data1',_0x3db5('0xb'),_0x3db5('0xc'),_0x3db5('0xd'),'data5','data6',_0x3db5('0xe')]}]},'log':_0x3db5('0xf')});};};
\ 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