830658ef8c56cefb3cad67ae8c9e221fba816b2b
[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 _0x7c09=['getDataValue','attrs','stringify','setDataValue','INTEGER','#2196f3','squel','lodash','STRING','TEXT','long','parse'];(function(_0x55d8dc,_0x86cda1){var _0x3eeff8=function(_0x53a6b2){while(--_0x53a6b2){_0x55d8dc['push'](_0x55d8dc['shift']());}};_0x3eeff8(++_0x86cda1);}(_0x7c09,0x102));var _0x97c0=function(_0x81abff,_0x2828ec){_0x81abff=_0x81abff-0x0;var _0x4e28d0=_0x7c09[_0x81abff];return _0x4e28d0;};'use strict';var Sequelize=require('sequelize');var squel=require(_0x97c0('0x0'));var _=require(_0x97c0('0x1'));module['exports']={'title':{'type':Sequelize[_0x97c0('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0x97c0('0x2')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x97c0('0x3')](_0x97c0('0x4')),'get':function(){try{return JSON[_0x97c0('0x5')](this[_0x97c0('0x6')](_0x97c0('0x7')));}catch(_0x4a7788){return[];}},'set':function(_0x4b2f81){try{this['setDataValue'](_0x97c0('0x7'),JSON[_0x97c0('0x8')](_0x4b2f81));}catch(_0x2c19fa){this[_0x97c0('0x9')](_0x97c0('0x7'),JSON['stringify']([]));}}},'sizeX':{'type':Sequelize[_0x97c0('0xa')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x97c0('0xa')]},'col':{'type':Sequelize[_0x97c0('0xa')]},'background':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x97c0('0x2')],'allowNull':![],'defaultValue':_0x97c0('0xb'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x97c0('0x2')]},'titleFontSize':{'type':Sequelize[_0x97c0('0xa')],'defaultValue':0xc}};