Built motion from commit bbcb218.|0.0.68
[motion.git] / server / models / automation.js
1 var _0xc768=["\x65\x78\x70\x6F\x72\x74\x73","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x49\x4E\x54\x45\x47\x45\x52","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x41\x6C\x6C","\x4F\x6E\x65\x41\x6C\x6C","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x41\x6C\x6C\x49\x64","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x41\x6E\x79","\x4F\x6E\x65\x41\x6E\x79","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x41\x6E\x79\x49\x64","\x41\x63\x74\x69\x6F\x6E\x73","\x61\x6C\x6C","\x54\x6F\x6F\x6C\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x76\x61\x6C\x75\x65","\x54\x6F\x6F\x6C\x73\x41\x63\x74\x69\x6F\x6E","\x61\x63\x74\x69\x6F\x6E","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x64\x61\x74\x61\x34","\x64\x61\x74\x61\x35","\x61\x64\x64\x53\x63\x6F\x70\x65","\x64\x65\x66\x69\x6E\x65"];module[_0xc768[0]]=function(_0x72c1x1,_0x72c1x2){var _0x72c1x3=_0x72c1x1[_0xc768[28]](_0xc768[1],{name:_0x72c1x2[_0xc768[2]],channel:_0x72c1x2[_0xc768[2]],description:_0x72c1x2[_0xc768[2]],status:{type:_0x72c1x2[_0xc768[3]],defaultValue:false},timeout:{type:_0x72c1x2[_0xc768[4]],defaultValue:10}},{tableName:_0xc768[5],associate:function(_0x72c1x4){_0x72c1x3[_0xc768[10]](_0x72c1x4.ToolsCondition,{as:{plural:_0xc768[6],singular:_0xc768[7]},foreignKey:_0xc768[8],onDelete:_0xc768[9],hooks:true});_0x72c1x3[_0xc768[10]](_0x72c1x4.ToolsCondition,{as:{plural:_0xc768[11],singular:_0xc768[12]},foreignKey:_0xc768[13],onDelete:_0xc768[9],hooks:true});_0x72c1x3[_0xc768[10]](_0x72c1x4.ToolsAction,{as:_0xc768[14],onDelete:_0xc768[9],hooks:true});_0x72c1x3[_0xc768[27]](_0xc768[15],{include:[{model:_0x72c1x4[_0xc768[16]],as:_0xc768[6],attributes:[_0xc768[17],_0xc768[18],_0xc768[19]]},{model:_0x72c1x4[_0xc768[16]],as:_0xc768[11],attributes:[_0xc768[17],_0xc768[18],_0xc768[19]]},{model:_0x72c1x4[_0xc768[20]],as:_0xc768[14],attributes:[_0xc768[21],_0xc768[22],_0xc768[23],_0xc768[24],_0xc768[25],_0xc768[26]]}]})}});return _0x72c1x3}