8466254c9e2aa772f3db17cd6d6e896a7d41942d
[motion2.git] / server / api / cmCustomField / cmCustomField.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 _0x3c68=['name','TEXT','long','type','select','parse','values','stringify','BOOLEAN','ENUM','voice','lodash','exports','VIRTUAL','getDataValue','alias','STRING','setDataValue'];(function(_0x5b2747,_0x7d55d2){var _0x2307fb=function(_0x5d8f61){while(--_0x5d8f61){_0x5b2747['push'](_0x5b2747['shift']());}};_0x2307fb(++_0x7d55d2);}(_0x3c68,0x1bb));var _0x83c6=function(_0x508047,_0x2e955d){_0x508047=_0x508047-0x0;var _0x411d48=_0x3c68[_0x508047];return _0x411d48;};'use strict';var Sequelize=require('sequelize');var _=require(_0x83c6('0x0'));module[_0x83c6('0x1')]={'name':{'type':Sequelize[_0x83c6('0x2')],'get':function(_0x3a30ac){return this[_0x83c6('0x3')](_0x83c6('0x4'));}},'alias':{'type':Sequelize[_0x83c6('0x5')],'allowNull':![],'set':function(_0x1258f6){this[_0x83c6('0x6')](_0x83c6('0x4'),_0x1258f6?_0x1258f6:this[_0x83c6('0x3')](_0x83c6('0x7')));}},'type':{'type':Sequelize[_0x83c6('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0x83c6('0x8')](_0x83c6('0x9')),'get':function(){if(this['getDataValue'](_0x83c6('0xa'))===_0x83c6('0xb')){return JSON[_0x83c6('0xc')](this[_0x83c6('0x3')](_0x83c6('0xd')));}else{return this[_0x83c6('0x3')]('values');}},'set':function(_0x565f35){if(Array['isArray'](_0x565f35)){this[_0x83c6('0x6')](_0x83c6('0xd'),JSON[_0x83c6('0xe')](_0x565f35));}else{this[_0x83c6('0x6')](_0x83c6('0xd'),_0x565f35);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x83c6('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x83c6('0x10')](_0x83c6('0x11'))}};