851c83078ea3441276363beb065a837e6da0fbaf
[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 _0x3120=['stringify','INTEGER','#ffffff','#2196f3','sequelize','lodash','STRING','TEXT','parse','attrs','setDataValue'];(function(_0x17e651,_0x5b9d5a){var _0x48a900=function(_0x2c9a07){while(--_0x2c9a07){_0x17e651['push'](_0x17e651['shift']());}};_0x48a900(++_0x5b9d5a);}(_0x3120,0x101));var _0x0312=function(_0x2340e4,_0x26f13c){_0x2340e4=_0x2340e4-0x0;var _0x16c5d0=_0x3120[_0x2340e4];return _0x16c5d0;};'use strict';var Sequelize=require(_0x0312('0x0'));var squel=require('squel');var _=require(_0x0312('0x1'));module['exports']={'title':{'type':Sequelize[_0x0312('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0x0312('0x2')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x0312('0x3')]('long'),'get':function(){try{return JSON[_0x0312('0x4')](this['getDataValue'](_0x0312('0x5')));}catch(_0x509afd){return[];}},'set':function(_0x29df82){try{this[_0x0312('0x6')](_0x0312('0x5'),JSON[_0x0312('0x7')](_0x29df82));}catch(_0x3f667d){this['setDataValue'](_0x0312('0x5'),JSON['stringify']([]));}}},'sizeX':{'type':Sequelize[_0x0312('0x8')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x0312('0x8')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x0312('0x8')]},'col':{'type':Sequelize[_0x0312('0x8')]},'background':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x0312('0x9'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x0312('0x2')],'allowNull':![],'defaultValue':_0x0312('0xa'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x0312('0x2')]},'titleFontSize':{'type':Sequelize[_0x0312('0x8')],'defaultValue':0xc}};