Built motion from commit (unavailable).|2.5.30
[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 _0xf5f5=['exports','STRING','TEXT','long','parse','getDataValue','attrs','stringify','setDataValue','INTEGER','#ffffff','#2196f3','sequelize'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0xf5f5,0x74));var _0x5f5f=function(_0x32fb3b,_0xbec2b6){_0x32fb3b=_0x32fb3b-0x0;var _0x47dbda=_0xf5f5[_0x32fb3b];return _0x47dbda;};'use strict';var Sequelize=require(_0x5f5f('0x0'));var squel=require('squel');var _=require('lodash');module[_0x5f5f('0x1')]={'title':{'type':Sequelize[_0x5f5f('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0x5f5f('0x2')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x5f5f('0x3')](_0x5f5f('0x4')),'get':function(){try{return JSON[_0x5f5f('0x5')](this[_0x5f5f('0x6')](_0x5f5f('0x7')));}catch(_0x5e708c){return[];}},'set':function(_0x187974){try{this['setDataValue'](_0x5f5f('0x7'),JSON[_0x5f5f('0x8')](_0x187974));}catch(_0x5eefbc){this[_0x5f5f('0x9')]('attrs',JSON[_0x5f5f('0x8')]([]));}}},'sizeX':{'type':Sequelize[_0x5f5f('0xa')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x5f5f('0xa')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x5f5f('0xa')]},'col':{'type':Sequelize[_0x5f5f('0xa')]},'background':{'type':Sequelize[_0x5f5f('0x2')],'allowNull':![],'defaultValue':_0x5f5f('0xb'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x5f5f('0x2')],'allowNull':![],'defaultValue':_0x5f5f('0xc'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x5f5f('0x2')]},'titleFontSize':{'type':Sequelize[_0x5f5f('0xa')],'defaultValue':0xc}};