Built motion from commit (unavailable).|2.5.3
[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 _0x9fa7=['#ffffff','#2196f3','sequelize','squel','lodash','exports','STRING','long','parse','getDataValue','attrs','setDataValue','stringify','INTEGER'];(function(_0x292fbe,_0x1148ec){var _0x53ddce=function(_0x1890e5){while(--_0x1890e5){_0x292fbe['push'](_0x292fbe['shift']());}};_0x53ddce(++_0x1148ec);}(_0x9fa7,0x1de));var _0x79fa=function(_0x584af4,_0x3a40e1){_0x584af4=_0x584af4-0x0;var _0x5c5e11=_0x9fa7[_0x584af4];return _0x5c5e11;};'use strict';var Sequelize=require(_0x79fa('0x0'));var squel=require(_0x79fa('0x1'));var _=require(_0x79fa('0x2'));module[_0x79fa('0x3')]={'title':{'type':Sequelize[_0x79fa('0x4')],'allowNull':![]},'type':{'type':Sequelize['STRING'](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize['TEXT'](_0x79fa('0x5')),'get':function(){try{return JSON[_0x79fa('0x6')](this[_0x79fa('0x7')](_0x79fa('0x8')));}catch(_0xbfc41d){return[];}},'set':function(_0x4b742c){try{this[_0x79fa('0x9')](_0x79fa('0x8'),JSON[_0x79fa('0xa')](_0x4b742c));}catch(_0x52521f){this[_0x79fa('0x9')](_0x79fa('0x8'),JSON[_0x79fa('0xa')]([]));}}},'sizeX':{'type':Sequelize[_0x79fa('0xb')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize['INTEGER']},'col':{'type':Sequelize[_0x79fa('0xb')]},'background':{'type':Sequelize[_0x79fa('0x4')],'allowNull':![],'defaultValue':_0x79fa('0xc'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x79fa('0x4')],'allowNull':![],'defaultValue':_0x79fa('0xd'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x79fa('0x4')]}};