18e67b959b1aa7072523d01feeb37bf2c0e31cc6
[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 _0x3285=['exports','TEXT','getDataValue','setDataValue','attrs','stringify','INTEGER','STRING','#2196f3','sequelize'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x3285,0x18f));var _0x5328=function(_0x36eaaa,_0x326732){_0x36eaaa=_0x36eaaa-0x0;var _0x461349=_0x3285[_0x36eaaa];return _0x461349;};'use strict';var Sequelize=require(_0x5328('0x0'));var squel=require('squel');var _=require('lodash');module[_0x5328('0x1')]={'title':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize['STRING'](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x5328('0x2')]('long'),'get':function(){try{return JSON['parse'](this[_0x5328('0x3')]('attrs'));}catch(_0x45b59f){return[];}},'set':function(_0x33197c){try{this[_0x5328('0x4')](_0x5328('0x5'),JSON[_0x5328('0x6')](_0x33197c));}catch(_0x39b4fa){this['setDataValue']('attrs',JSON['stringify']([]));}}},'sizeX':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x5328('0x7')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x5328('0x7')]},'col':{'type':Sequelize[_0x5328('0x7')]},'background':{'type':Sequelize[_0x5328('0x8')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x5328('0x9'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize['STRING']}};