Built motion from commit 67e5df37.|2.0.59
[motion2.git] / server / api / dashboardItem / dashboardItem.attributes.js
1 var _0xd990=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x73\x71\x75\x65\x6C","\x6C\x6F\x64\x61\x73\x68","\x65\x78\x70\x6F\x72\x74\x73","\x6C\x6F\x6E\x67","\x61\x74\x74\x72\x73","\x67\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x70\x61\x72\x73\x65","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x23\x66\x66\x66\x66\x66\x66","\x23\x32\x31\x39\x36\x66\x33"];_0xd990[0];var Sequelize=require(_0xd990[1]);var squel=require(_0xd990[2]);var _=require(_0xd990[3]);module[_0xd990[4]]= {title:{type:Sequelize.STRING(20),validate:{len:[0,20]}},type:{type:Sequelize.STRING(20),allowNull:false,validate:{len:[1,20]}},attrs:{type:Sequelize.TEXT(_0xd990[5]),get:function(){try{return JSON[_0xd990[8]](this[_0xd990[7]](_0xd990[6]))}catch(e){return []}},set:function(_0x9e19x4){try{this[_0xd990[10]](_0xd990[6],JSON[_0xd990[9]](_0x9e19x4))}catch(e){this[_0xd990[10]](_0xd990[6],JSON[_0xd990[9]]([]))}}},sizeX:{type:Sequelize[_0xd990[11]],allowNull:false,defaultValue:1},sizeY:{type:Sequelize[_0xd990[11]],allowNull:false,defaultValue:1},row:{type:Sequelize[_0xd990[11]]},col:{type:Sequelize[_0xd990[11]]},background:{type:Sequelize[_0xd990[12]],allowNull:false,defaultValue:_0xd990[13],validate:{notEmpty:true}},foreground:{type:Sequelize[_0xd990[12]],allowNull:false,defaultValue:_0xd990[14],validate:{notEmpty:true}},link:{type:Sequelize[_0xd990[12]]}}