a13e5ab962cd9c95f09ec4de53dda3227d0adaac
[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 _0x1885=['setDataValue','INTEGER','#ffffff','squel','lodash','STRING','TEXT','long','parse','getDataValue','attrs','stringify'];(function(_0x5e59d6,_0x3bef6d){var _0x22b057=function(_0x3f91f1){while(--_0x3f91f1){_0x5e59d6['push'](_0x5e59d6['shift']());}};_0x22b057(++_0x3bef6d);}(_0x1885,0xcf));var _0x5188=function(_0x1c2341,_0x22a8a8){_0x1c2341=_0x1c2341-0x0;var _0x14377a=_0x1885[_0x1c2341];return _0x14377a;};'use strict';var Sequelize=require('sequelize');var squel=require(_0x5188('0x0'));var _=require(_0x5188('0x1'));module['exports']={'title':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0x5188('0x2')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x5188('0x3')](_0x5188('0x4')),'get':function(){try{return JSON[_0x5188('0x5')](this[_0x5188('0x6')](_0x5188('0x7')));}catch(_0x292d7d){return[];}},'set':function(_0x19b656){try{this['setDataValue'](_0x5188('0x7'),JSON[_0x5188('0x8')](_0x19b656));}catch(_0x1e1273){this[_0x5188('0x9')]('attrs',JSON[_0x5188('0x8')]([]));}}},'sizeX':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x5188('0xa')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x5188('0xa')]},'col':{'type':Sequelize[_0x5188('0xa')]},'background':{'type':Sequelize[_0x5188('0x2')],'allowNull':![],'defaultValue':_0x5188('0xb'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x5188('0x2')],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x5188('0x2')]}};