Built motion from commit (unavailable).|2.5.9
[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 _0x4f25=['lodash','exports','STRING','TEXT','parse','attrs','stringify','setDataValue','INTEGER','#2196f3','sequelize','squel'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x4f25,0x172));var _0x54f2=function(_0x5d61b4,_0x4f7b91){_0x5d61b4=_0x5d61b4-0x0;var _0x183fc5=_0x4f25[_0x5d61b4];return _0x183fc5;};'use strict';var Sequelize=require(_0x54f2('0x0'));var squel=require(_0x54f2('0x1'));var _=require(_0x54f2('0x2'));module[_0x54f2('0x3')]={'title':{'type':Sequelize[_0x54f2('0x4')],'allowNull':![]},'type':{'type':Sequelize[_0x54f2('0x4')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x54f2('0x5')]('long'),'get':function(){try{return JSON[_0x54f2('0x6')](this['getDataValue'](_0x54f2('0x7')));}catch(_0x582af9){return[];}},'set':function(_0x57cdfa){try{this['setDataValue'](_0x54f2('0x7'),JSON[_0x54f2('0x8')](_0x57cdfa));}catch(_0x23ce04){this[_0x54f2('0x9')](_0x54f2('0x7'),JSON['stringify']([]));}}},'sizeX':{'type':Sequelize[_0x54f2('0xa')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x54f2('0xa')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize['INTEGER']},'col':{'type':Sequelize['INTEGER']},'background':{'type':Sequelize[_0x54f2('0x4')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x54f2('0x4')],'allowNull':![],'defaultValue':_0x54f2('0xb'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize['STRING']}};