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