0dfbe2cc9b6faace2d146c033056b7cfd436ab8f
[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 _0x53a9=['sequelize','squel','exports','STRING','TEXT','long','parse','getDataValue','attrs','setDataValue','stringify','INTEGER','#ffffff','#2196f3'];(function(_0x3bfa22,_0x17ef2c){var _0x19fb0b=function(_0x4889dc){while(--_0x4889dc){_0x3bfa22['push'](_0x3bfa22['shift']());}};_0x19fb0b(++_0x17ef2c);}(_0x53a9,0x188));var _0x953a=function(_0x1f3044,_0x2a3426){_0x1f3044=_0x1f3044-0x0;var _0x2aa7d7=_0x53a9[_0x1f3044];return _0x2aa7d7;};'use strict';var Sequelize=require(_0x953a('0x0'));var squel=require(_0x953a('0x1'));var _=require('lodash');module[_0x953a('0x2')]={'title':{'type':Sequelize[_0x953a('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x953a('0x3')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x953a('0x4')](_0x953a('0x5')),'get':function(){try{return JSON[_0x953a('0x6')](this[_0x953a('0x7')]('attrs'));}catch(_0x4e22a2){return[];}},'set':function(_0x3ce61f){try{this['setDataValue'](_0x953a('0x8'),JSON['stringify'](_0x3ce61f));}catch(_0x2d5f68){this[_0x953a('0x9')](_0x953a('0x8'),JSON[_0x953a('0xa')]([]));}}},'sizeX':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x953a('0xb')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x953a('0xb')]},'col':{'type':Sequelize['INTEGER']},'background':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x953a('0xc'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x953a('0x3')],'allowNull':![],'defaultValue':_0x953a('0xd'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x953a('0x3')]},'titleFontSize':{'type':Sequelize[_0x953a('0xb')],'defaultValue':0xc}};