Built motion from commit fe7020c.|0.0.69
[motion.git] / server / models / team.js
1 var _0x50ec=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x54\x65\x61\x6D","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x74\x65\x61\x6D\x73","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x61\x75\x6C\x74","\x55\x73\x65\x72","\x61\x67\x65\x6E\x74","\x69\x64","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x61\x64\x64\x53\x63\x6F\x70\x65","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x50ec[0]);module[_0x50ec[1]]=function(_0x97f5x2,_0x97f5x3){var _0x97f5x4=_0x97f5x2[_0x50ec[17]](_0x50ec[2],{name:{type:_0x97f5x3[_0x50ec[3]],allowNull:false,unique:true},description:{type:_0x97f5x3[_0x50ec[3]]},defaultEntry:{type:_0x97f5x3[_0x50ec[4]],defaultValue:0}},{tableName:_0x50ec[5],associate:function(_0x97f5x5){_0x97f5x4[_0x50ec[7]](_0x97f5x5.User,{through:_0x97f5x5[_0x50ec[6]]});_0x97f5x4[_0x50ec[16]](_0x50ec[8],{include:[{model:_0x97f5x5[_0x50ec[9]],where:{role:_0x50ec[10]},required:false,attributes:[_0x50ec[11],_0x50ec[12],_0x50ec[13],_0x50ec[14],_0x50ec[15]]}]})}});return _0x97f5x4}