07b5f48a1773c19fb4ecf4aff886db14bb552807
[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 _0x5d2e=['lodash','exports','STRING','TEXT','long','parse','attrs','setDataValue','stringify','INTEGER','sequelize','squel'];(function(_0x403fe9,_0x4853f0){var _0x9b5e77=function(_0x5fc61b){while(--_0x5fc61b){_0x403fe9['push'](_0x403fe9['shift']());}};_0x9b5e77(++_0x4853f0);}(_0x5d2e,0xd6));var _0xe5d2=function(_0x55f8b4,_0x43f30d){_0x55f8b4=_0x55f8b4-0x0;var _0x2475f9=_0x5d2e[_0x55f8b4];return _0x2475f9;};'use strict';var Sequelize=require(_0xe5d2('0x0'));var squel=require(_0xe5d2('0x1'));var _=require(_0xe5d2('0x2'));module[_0xe5d2('0x3')]={'title':{'type':Sequelize[_0xe5d2('0x4')],'allowNull':![]},'type':{'type':Sequelize[_0xe5d2('0x4')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0xe5d2('0x5')](_0xe5d2('0x6')),'get':function(){try{return JSON[_0xe5d2('0x7')](this['getDataValue'](_0xe5d2('0x8')));}catch(_0x1e2ea0){return[];}},'set':function(_0x388254){try{this[_0xe5d2('0x9')](_0xe5d2('0x8'),JSON[_0xe5d2('0xa')](_0x388254));}catch(_0x5cda37){this['setDataValue'](_0xe5d2('0x8'),JSON[_0xe5d2('0xa')]([]));}}},'sizeX':{'type':Sequelize[_0xe5d2('0xb')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0xe5d2('0xb')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize['INTEGER']},'col':{'type':Sequelize['INTEGER']},'background':{'type':Sequelize[_0xe5d2('0x4')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0xe5d2('0x4')],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0xe5d2('0x4')]}};