c71cc82faf308cd5b5f8d51fc5ff84723221594f
[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 _0x926b=['getDataValue','attrs','setDataValue','stringify','INTEGER','#ffffff','#2196f3','sequelize','lodash','exports','STRING','TEXT','long','parse'];(function(_0x5e45ee,_0x2c626e){var _0x169025=function(_0x24210a){while(--_0x24210a){_0x5e45ee['push'](_0x5e45ee['shift']());}};_0x169025(++_0x2c626e);}(_0x926b,0x1d5));var _0xb926=function(_0x5bc966,_0x4fd3bb){_0x5bc966=_0x5bc966-0x0;var _0xc87720=_0x926b[_0x5bc966];return _0xc87720;};'use strict';var Sequelize=require(_0xb926('0x0'));var squel=require('squel');var _=require(_0xb926('0x1'));module[_0xb926('0x2')]={'title':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0xb926('0x3')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0xb926('0x4')](_0xb926('0x5')),'get':function(){try{return JSON[_0xb926('0x6')](this[_0xb926('0x7')](_0xb926('0x8')));}catch(_0x436a9f){return[];}},'set':function(_0x3c95a8){try{this[_0xb926('0x9')]('attrs',JSON[_0xb926('0xa')](_0x3c95a8));}catch(_0x2ce2f4){this['setDataValue']('attrs',JSON['stringify']([]));}}},'sizeX':{'type':Sequelize[_0xb926('0xb')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0xb926('0xb')]},'col':{'type':Sequelize[_0xb926('0xb')]},'background':{'type':Sequelize[_0xb926('0x3')],'allowNull':![],'defaultValue':_0xb926('0xc'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0xb926('0x3')],'allowNull':![],'defaultValue':_0xb926('0xd'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0xb926('0x3')]},'titleFontSize':{'type':Sequelize[_0xb926('0xb')],'defaultValue':0xc}};