cd131d0c876c6780535216da1d6f8f4bbc27138a
[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 _0xa58d=['long','parse','getDataValue','attrs','setDataValue','stringify','INTEGER','#ffffff','#2196f3','squel','exports','STRING','TEXT'];(function(_0x32f75b,_0x16cde7){var _0x26f5c7=function(_0x2f80b8){while(--_0x2f80b8){_0x32f75b['push'](_0x32f75b['shift']());}};_0x26f5c7(++_0x16cde7);}(_0xa58d,0x7e));var _0xda58=function(_0x75d890,_0x2aee0b){_0x75d890=_0x75d890-0x0;var _0xf90253=_0xa58d[_0x75d890];return _0xf90253;};'use strict';var Sequelize=require('sequelize');var squel=require(_0xda58('0x0'));var _=require('lodash');module[_0xda58('0x1')]={'title':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0xda58('0x2')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0xda58('0x3')](_0xda58('0x4')),'get':function(){try{return JSON[_0xda58('0x5')](this[_0xda58('0x6')](_0xda58('0x7')));}catch(_0x21fac2){return[];}},'set':function(_0x48e412){try{this[_0xda58('0x8')](_0xda58('0x7'),JSON[_0xda58('0x9')](_0x48e412));}catch(_0x5ea178){this[_0xda58('0x8')](_0xda58('0x7'),JSON[_0xda58('0x9')]([]));}}},'sizeX':{'type':Sequelize[_0xda58('0xa')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0xda58('0xa')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize['INTEGER']},'col':{'type':Sequelize[_0xda58('0xa')]},'background':{'type':Sequelize[_0xda58('0x2')],'allowNull':![],'defaultValue':_0xda58('0xb'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0xda58('0x2')],'allowNull':![],'defaultValue':_0xda58('0xc'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0xda58('0x2')]}};