Built motion from commit a679711e.|2.6.15
[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 _0x9de2=['exports','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','TEXT','long','type','select','parse','values','isArray','stringify','BOOLEAN','ENUM','voice'];(function(_0x5018bd,_0x24b200){var _0x5cb7c7=function(_0x3a5d84){while(--_0x3a5d84){_0x5018bd['push'](_0x5018bd['shift']());}};_0x5cb7c7(++_0x24b200);}(_0x9de2,0xa2));var _0x29de=function(_0x2ea36d,_0x30f614){_0x2ea36d=_0x2ea36d-0x0;var _0x40d7a1=_0x9de2[_0x2ea36d];return _0x40d7a1;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module[_0x29de('0x0')]={'name':{'type':Sequelize[_0x29de('0x1')],'get':function(_0x5b6bcb){return this[_0x29de('0x2')](_0x29de('0x3'));}},'alias':{'type':Sequelize[_0x29de('0x4')],'allowNull':![],'set':function(_0x4b87c5){this[_0x29de('0x5')](_0x29de('0x3'),_0x4b87c5?_0x4b87c5:this[_0x29de('0x2')](_0x29de('0x6')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0x29de('0x7')](_0x29de('0x8')),'get':function(){if(this[_0x29de('0x2')](_0x29de('0x9'))===_0x29de('0xa')){return JSON[_0x29de('0xb')](this[_0x29de('0x2')]('values'));}else{return this[_0x29de('0x2')](_0x29de('0xc'));}},'set':function(_0x5d724c){if(Array[_0x29de('0xd')](_0x5d724c)){this['setDataValue'](_0x29de('0xc'),JSON[_0x29de('0xe')](_0x5d724c));}else{this[_0x29de('0x5')]('values',_0x5d724c);}}},'required':{'type':Sequelize[_0x29de('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x29de('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x29de('0x10')](_0x29de('0x11'))}};