d13ab70cef145d266ee51286bfa68db93bfa328b
[motion-next.git] / server / api / dashboardItem / dashboardItem.attributes.js
1 const a174_0x3ba5=['INTEGER','#2196f3','stringify','long','TEXT','STRING','#ffffff','attrs','parse','setDataValue','exports'];(function(_0x4a8753,_0x3ba59e){const _0xfff447=function(_0x9b95be){while(--_0x9b95be){_0x4a8753['push'](_0x4a8753['shift']());}};_0xfff447(++_0x3ba59e);}(a174_0x3ba5,0x1db));const a174_0xfff4=function(_0x4a8753,_0x3ba59e){_0x4a8753=_0x4a8753-0x0;let _0xfff447=a174_0x3ba5[_0x4a8753];return _0xfff447;};const _0x569f10=a174_0xfff4;'use strict';const Sequelize=require('sequelize');module[_0x569f10('0x8')]={'title':{'type':Sequelize[_0x569f10('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x569f10('0x3')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x569f10('0x2')](_0x569f10('0x1')),'get':function(){const _0x4e5ca6=_0x569f10;try{return JSON[_0x4e5ca6('0x6')](this['getDataValue'](_0x4e5ca6('0x5')));}catch(_0x9b95be){return[];}},'set':function(_0x1b11a){const _0x1df93f=_0x569f10;try{this[_0x1df93f('0x7')](_0x1df93f('0x5'),JSON[_0x1df93f('0x0')](_0x1b11a));}catch(_0x540468){this[_0x1df93f('0x7')]('attrs',JSON[_0x1df93f('0x0')]([]));}}},'sizeX':{'type':Sequelize[_0x569f10('0x9')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x569f10('0x9')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x569f10('0x9')]},'col':{'type':Sequelize['INTEGER']},'background':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x569f10('0x4'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x569f10('0x3')],'allowNull':![],'defaultValue':_0x569f10('0xa'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x569f10('0x3')]}};