Built motion from commit (unavailable).|2.4.4
[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 _0x198c=['lodash','exports','STRING','parse','getDataValue','attrs','setDataValue','stringify','INTEGER','sequelize','squel'];(function(_0x377217,_0x26b013){var _0x26258d=function(_0x1e1894){while(--_0x1e1894){_0x377217['push'](_0x377217['shift']());}};_0x26258d(++_0x26b013);}(_0x198c,0x169));var _0xc198=function(_0x132a31,_0xd09ae6){_0x132a31=_0x132a31-0x0;var _0x220552=_0x198c[_0x132a31];return _0x220552;};'use strict';var Sequelize=require(_0xc198('0x0'));var squel=require(_0xc198('0x1'));var _=require(_0xc198('0x2'));module[_0xc198('0x3')]={'title':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0xc198('0x4')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize['TEXT']('long'),'get':function(){try{return JSON[_0xc198('0x5')](this[_0xc198('0x6')](_0xc198('0x7')));}catch(_0x8e1069){return[];}},'set':function(_0x1df900){try{this[_0xc198('0x8')](_0xc198('0x7'),JSON[_0xc198('0x9')](_0x1df900));}catch(_0x5636d1){this[_0xc198('0x8')]('attrs',JSON['stringify']([]));}}},'sizeX':{'type':Sequelize[_0xc198('0xa')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0xc198('0xa')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0xc198('0xa')]},'col':{'type':Sequelize[_0xc198('0xa')]},'background':{'type':Sequelize[_0xc198('0x4')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0xc198('0x4')],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0xc198('0x4')]}};