Built motion from commit 8271bb6f.|2.6.28
[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 _0x190f=['exports','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','type','select','parse','values','stringify','ENUM','lodash'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x190f,0x187));var _0xf190=function(_0x109596,_0x4f7b03){_0x109596=_0x109596-0x0;var _0x39faf2=_0x190f[_0x109596];return _0x39faf2;};'use strict';var Sequelize=require('sequelize');var _=require(_0xf190('0x0'));module[_0xf190('0x1')]={'name':{'type':Sequelize[_0xf190('0x2')],'get':function(_0x582e92){return this[_0xf190('0x3')](_0xf190('0x4'));}},'alias':{'type':Sequelize[_0xf190('0x5')],'allowNull':![],'set':function(_0x503adf){this[_0xf190('0x6')](_0xf190('0x4'),_0x503adf?_0x503adf:this[_0xf190('0x3')](_0xf190('0x7')));}},'type':{'type':Sequelize[_0xf190('0x5')],'allowNull':![]},'values':{'type':Sequelize['TEXT']('long'),'get':function(){if(this[_0xf190('0x3')](_0xf190('0x8'))===_0xf190('0x9')){return JSON[_0xf190('0xa')](this[_0xf190('0x3')](_0xf190('0xb')));}else{return this[_0xf190('0x3')]('values');}},'set':function(_0x43cc83){if(Array['isArray'](_0x43cc83)){this['setDataValue']('values',JSON[_0xf190('0xc')](_0x43cc83));}else{this[_0xf190('0x6')](_0xf190('0xb'),_0x43cc83);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0xf190('0xd')]('voice')}};