3e093b1ec6eb91b88abb48838b9d88237d3805a5
[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 _0x89af=['attrs','setDataValue','stringify','INTEGER','#ffffff','#2196f3','squel','lodash','STRING','TEXT','getDataValue'];(function(_0x20f71e,_0x5b67a1){var _0x3142d8=function(_0x3b3091){while(--_0x3b3091){_0x20f71e['push'](_0x20f71e['shift']());}};_0x3142d8(++_0x5b67a1);}(_0x89af,0x1c9));var _0xf89a=function(_0x40f62f,_0x12990c){_0x40f62f=_0x40f62f-0x0;var _0x3bcad3=_0x89af[_0x40f62f];return _0x3bcad3;};'use strict';var Sequelize=require('sequelize');var squel=require(_0xf89a('0x0'));var _=require(_0xf89a('0x1'));module['exports']={'title':{'type':Sequelize[_0xf89a('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0xf89a('0x2')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0xf89a('0x3')]('long'),'get':function(){try{return JSON['parse'](this[_0xf89a('0x4')](_0xf89a('0x5')));}catch(_0x3cdb2a){return[];}},'set':function(_0x28a980){try{this[_0xf89a('0x6')](_0xf89a('0x5'),JSON['stringify'](_0x28a980));}catch(_0x5f2103){this[_0xf89a('0x6')]('attrs',JSON[_0xf89a('0x7')]([]));}}},'sizeX':{'type':Sequelize[_0xf89a('0x8')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0xf89a('0x8')]},'col':{'type':Sequelize[_0xf89a('0x8')]},'background':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xf89a('0x9'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xf89a('0xa'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0xf89a('0x2')]},'titleFontSize':{'type':Sequelize[_0xf89a('0x8')],'defaultValue':0xc}};