7835ed68c045ce6df9c0bd7b00819549226573c7
[motion2.git] / server / api / dashboardItem / dashboardItem.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x90ea=['long','parse','attrs','setDataValue','stringify','INTEGER','#ffffff','sequelize','squel','STRING','TEXT'];(function(_0x4d8ed9,_0x2ae284){var _0x1e2140=function(_0x9cca89){while(--_0x9cca89){_0x4d8ed9['push'](_0x4d8ed9['shift']());}};_0x1e2140(++_0x2ae284);}(_0x90ea,0x167));var _0xa90e=function(_0x22be36,_0x5b85d6){_0x22be36=_0x22be36-0x0;var _0x1786f9=_0x90ea[_0x22be36];return _0x1786f9;};'use strict';var Sequelize=require(_0xa90e('0x0'));var squel=require(_0xa90e('0x1'));var _=require('lodash');module['exports']={'title':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0xa90e('0x2')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0xa90e('0x3')](_0xa90e('0x4')),'get':function(){try{return JSON[_0xa90e('0x5')](this['getDataValue'](_0xa90e('0x6')));}catch(_0x24e82e){return[];}},'set':function(_0x865d2f){try{this[_0xa90e('0x7')](_0xa90e('0x6'),JSON[_0xa90e('0x8')](_0x865d2f));}catch(_0x53c066){this['setDataValue'](_0xa90e('0x6'),JSON[_0xa90e('0x8')]([]));}}},'sizeX':{'type':Sequelize[_0xa90e('0x9')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0xa90e('0x9')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0xa90e('0x9')]},'col':{'type':Sequelize[_0xa90e('0x9')]},'background':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xa90e('0xa'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0xa90e('0x2')],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0xa90e('0x2')]},'titleFontSize':{'type':Sequelize[_0xa90e('0x9')],'defaultValue':0xc}};