Built motion from commit 20e1a16.|0.0.54
[motion.git] / server / models / automation.js
1 var _0x216e=["\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[_0x216e[0]]=function(_0x27d0x1,_0x27d0x2){var _0x27d0x3=_0x27d0x1[_0x216e[28]](_0x216e[1],{name:_0x27d0x2[_0x216e[2]],channel:_0x27d0x2[_0x216e[2]],description:_0x27d0x2[_0x216e[2]],status:{type:_0x27d0x2[_0x216e[3]],defaultValue:false},timeout:{type:_0x27d0x2[_0x216e[4]],defaultValue:10}},{tableName:_0x216e[5],associate:function(_0x27d0x4){_0x27d0x3[_0x216e[10]](_0x27d0x4.ToolsCondition,{as:{plural:_0x216e[6],singular:_0x216e[7]},foreignKey:_0x216e[8],onDelete:_0x216e[9],hooks:true});_0x27d0x3[_0x216e[10]](_0x27d0x4.ToolsCondition,{as:{plural:_0x216e[11],singular:_0x216e[12]},foreignKey:_0x216e[13],onDelete:_0x216e[9],hooks:true});_0x27d0x3[_0x216e[10]](_0x27d0x4.ToolsAction,{as:_0x216e[14],onDelete:_0x216e[9],hooks:true});_0x27d0x3[_0x216e[27]](_0x216e[15],{include:[{model:_0x27d0x4[_0x216e[16]],as:_0x216e[6],attributes:[_0x216e[17],_0x216e[18],_0x216e[19]]},{model:_0x27d0x4[_0x216e[16]],as:_0x216e[11],attributes:[_0x216e[17],_0x216e[18],_0x216e[19]]},{model:_0x27d0x4[_0x216e[20]],as:_0x216e[14],attributes:[_0x216e[21],_0x216e[22],_0x216e[23],_0x216e[24],_0x216e[25],_0x216e[26]]}]})}});return _0x27d0x3}