Built motion from commit (unavailable).|2.5.15
[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 _0x1656=['STRING','TEXT','long','parse','attrs','setDataValue','stringify','INTEGER','#ffffff','sequelize','squel','lodash'];(function(_0x14cbca,_0x27914c){var _0x5243ed=function(_0x3f415d){while(--_0x3f415d){_0x14cbca['push'](_0x14cbca['shift']());}};_0x5243ed(++_0x27914c);}(_0x1656,0x17d));var _0x6165=function(_0x1974a1,_0x347db8){_0x1974a1=_0x1974a1-0x0;var _0x415789=_0x1656[_0x1974a1];return _0x415789;};'use strict';var Sequelize=require(_0x6165('0x0'));var squel=require(_0x6165('0x1'));var _=require(_0x6165('0x2'));module['exports']={'title':{'type':Sequelize[_0x6165('0x3')],'allowNull':![]},'type':{'type':Sequelize['STRING'](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x6165('0x4')](_0x6165('0x5')),'get':function(){try{return JSON[_0x6165('0x6')](this['getDataValue'](_0x6165('0x7')));}catch(_0x151e13){return[];}},'set':function(_0x101cab){try{this[_0x6165('0x8')](_0x6165('0x7'),JSON[_0x6165('0x9')](_0x101cab));}catch(_0x364fc5){this[_0x6165('0x8')](_0x6165('0x7'),JSON[_0x6165('0x9')]([]));}}},'sizeX':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x6165('0xa')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x6165('0xa')]},'col':{'type':Sequelize[_0x6165('0xa')]},'background':{'type':Sequelize[_0x6165('0x3')],'allowNull':![],'defaultValue':_0x6165('0xb'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x6165('0x3')]}};