Built motion from commit bab6f49e.|2.6.17
[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 _0x4b99=['alias','setDataValue','name','STRING','type','select','parse','values','stringify','BOOLEAN','ENUM','voice','sequelize','lodash','exports','getDataValue'];(function(_0x30c522,_0x3d081d){var _0x2bfe7d=function(_0x85413c){while(--_0x85413c){_0x30c522['push'](_0x30c522['shift']());}};_0x2bfe7d(++_0x3d081d);}(_0x4b99,0x8c));var _0x94b9=function(_0x53368e,_0x4b377c){_0x53368e=_0x53368e-0x0;var _0xfe5ef3=_0x4b99[_0x53368e];return _0xfe5ef3;};'use strict';var Sequelize=require(_0x94b9('0x0'));var _=require(_0x94b9('0x1'));module[_0x94b9('0x2')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x5557ec){return this[_0x94b9('0x3')](_0x94b9('0x4'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x40fbb2){this[_0x94b9('0x5')](_0x94b9('0x4'),_0x40fbb2?_0x40fbb2:this[_0x94b9('0x3')](_0x94b9('0x6')));}},'type':{'type':Sequelize[_0x94b9('0x7')],'allowNull':![]},'values':{'type':Sequelize['TEXT']('long'),'get':function(){if(this['getDataValue'](_0x94b9('0x8'))===_0x94b9('0x9')){return JSON[_0x94b9('0xa')](this[_0x94b9('0x3')]('values'));}else{return this['getDataValue'](_0x94b9('0xb'));}},'set':function(_0x4a51a3){if(Array['isArray'](_0x4a51a3)){this[_0x94b9('0x5')]('values',JSON[_0x94b9('0xc')](_0x4a51a3));}else{this[_0x94b9('0x5')](_0x94b9('0xb'),_0x4a51a3);}}},'required':{'type':Sequelize[_0x94b9('0xd')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x94b9('0xd')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x94b9('0xe')](_0x94b9('0xf'))}};