03770b32a2d59f1022eff4949836a5b29e6aee39
[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 _0x0edd=['exports','STRING','TEXT','parse','attrs','setDataValue','stringify','INTEGER','#ffffff','#2196f3','lodash'];(function(_0xcd389e,_0xaa53b4){var _0x3bef5c=function(_0x4b54fb){while(--_0x4b54fb){_0xcd389e['push'](_0xcd389e['shift']());}};_0x3bef5c(++_0xaa53b4);}(_0x0edd,0xba));var _0xd0ed=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0x0edd[_0x2b4411];return _0x8e41ef;};'use strict';var Sequelize=require('sequelize');var squel=require('squel');var _=require(_0xd0ed('0x0'));module[_0xd0ed('0x1')]={'title':{'type':Sequelize[_0xd0ed('0x2')],'allowNull':![]},'type':{'type':Sequelize['STRING'](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0xd0ed('0x3')]('long'),'get':function(){try{return JSON[_0xd0ed('0x4')](this['getDataValue'](_0xd0ed('0x5')));}catch(_0x2df958){return[];}},'set':function(_0x1750ac){try{this[_0xd0ed('0x6')]('attrs',JSON[_0xd0ed('0x7')](_0x1750ac));}catch(_0x16dfb0){this[_0xd0ed('0x6')](_0xd0ed('0x5'),JSON[_0xd0ed('0x7')]([]));}}},'sizeX':{'type':Sequelize[_0xd0ed('0x8')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0xd0ed('0x8')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize['INTEGER']},'col':{'type':Sequelize[_0xd0ed('0x8')]},'background':{'type':Sequelize[_0xd0ed('0x2')],'allowNull':![],'defaultValue':_0xd0ed('0x9'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0xd0ed('0x2')],'allowNull':![],'defaultValue':_0xd0ed('0xa'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0xd0ed('0x2')]}};