5de0197e83b53c1daeba325f6ce28c3b0723e7a4
[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 _0xc0b9=['setDataValue','stringify','INTEGER','#2196f3','squel','exports','STRING','TEXT','long','attrs'];(function(_0x72586e,_0x48bfc1){var _0x59ed4d=function(_0x4d00b1){while(--_0x4d00b1){_0x72586e['push'](_0x72586e['shift']());}};_0x59ed4d(++_0x48bfc1);}(_0xc0b9,0x72));var _0x9c0b=function(_0x4d8d36,_0xd9cb7b){_0x4d8d36=_0x4d8d36-0x0;var _0x53906d=_0xc0b9[_0x4d8d36];return _0x53906d;};'use strict';var Sequelize=require('sequelize');var squel=require(_0x9c0b('0x0'));var _=require('lodash');module[_0x9c0b('0x1')]={'title':{'type':Sequelize[_0x9c0b('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0x9c0b('0x2')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x9c0b('0x3')](_0x9c0b('0x4')),'get':function(){try{return JSON['parse'](this['getDataValue'](_0x9c0b('0x5')));}catch(_0x460944){return[];}},'set':function(_0x429486){try{this[_0x9c0b('0x6')](_0x9c0b('0x5'),JSON['stringify'](_0x429486));}catch(_0x2d14b2){this[_0x9c0b('0x6')](_0x9c0b('0x5'),JSON[_0x9c0b('0x7')]([]));}}},'sizeX':{'type':Sequelize[_0x9c0b('0x8')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x9c0b('0x8')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x9c0b('0x8')]},'col':{'type':Sequelize['INTEGER']},'background':{'type':Sequelize[_0x9c0b('0x2')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x9c0b('0x2')],'allowNull':![],'defaultValue':_0x9c0b('0x9'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x9c0b('0x2')]}};