Built motion from commit fe7020c.|0.0.69
[motion.git] / server / models / trigger.js
1 var _0x8f8c=["\x65\x78\x70\x6F\x72\x74\x73","\x54\x72\x69\x67\x67\x65\x72","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x74\x72\x69\x67\x67\x65\x72\x73","\x41\x6C\x6C","\x4F\x6E\x65\x41\x6C\x6C","\x54\x72\x69\x67\x67\x65\x72\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","\x54\x72\x69\x67\x67\x65\x72\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[_0x8f8c[0]]=function(_0xf8bex1,_0xf8bex2){var _0xf8bex3=_0xf8bex1[_0x8f8c[27]](_0x8f8c[1],{name:_0xf8bex2[_0x8f8c[2]],channel:_0xf8bex2[_0x8f8c[2]],description:_0xf8bex2[_0x8f8c[2]],status:{type:_0xf8bex2[_0x8f8c[3]],defaultValue:false}},{tableName:_0x8f8c[4],associate:function(_0xf8bex4){_0xf8bex3[_0x8f8c[9]](_0xf8bex4.ToolsCondition,{as:{plural:_0x8f8c[5],singular:_0x8f8c[6]},foreignKey:_0x8f8c[7],onDelete:_0x8f8c[8],hooks:true});_0xf8bex3[_0x8f8c[9]](_0xf8bex4.ToolsCondition,{as:{plural:_0x8f8c[10],singular:_0x8f8c[11]},foreignKey:_0x8f8c[12],onDelete:_0x8f8c[8],hooks:true});_0xf8bex3[_0x8f8c[9]](_0xf8bex4.ToolsAction,{as:_0x8f8c[13],onDelete:_0x8f8c[8],hooks:true});_0xf8bex3[_0x8f8c[26]](_0x8f8c[14],{include:[{model:_0xf8bex4[_0x8f8c[15]],as:_0x8f8c[5],attributes:[_0x8f8c[16],_0x8f8c[17],_0x8f8c[18]]},{model:_0xf8bex4[_0x8f8c[15]],as:_0x8f8c[10],attributes:[_0x8f8c[16],_0x8f8c[17],_0x8f8c[18]]},{model:_0xf8bex4[_0x8f8c[19]],as:_0x8f8c[13],attributes:[_0x8f8c[20],_0x8f8c[21],_0x8f8c[22],_0x8f8c[23],_0x8f8c[24],_0x8f8c[25]]}]})}});return _0xf8bex3}