Built motion from commit cb845558.|2.6.34
[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 _0x499c=['alias','STRING','setDataValue','name','TEXT','type','select','parse','values','isArray','BOOLEAN','sequelize','lodash','exports','VIRTUAL','getDataValue'];(function(_0x4b0612,_0x3f1930){var _0x113213=function(_0x28f115){while(--_0x28f115){_0x4b0612['push'](_0x4b0612['shift']());}};_0x113213(++_0x3f1930);}(_0x499c,0xbb));var _0xc499=function(_0x5464fa,_0x102b68){_0x5464fa=_0x5464fa-0x0;var _0x23a529=_0x499c[_0x5464fa];return _0x23a529;};'use strict';var Sequelize=require(_0xc499('0x0'));var _=require(_0xc499('0x1'));module[_0xc499('0x2')]={'name':{'type':Sequelize[_0xc499('0x3')],'get':function(_0x59287e){return this[_0xc499('0x4')](_0xc499('0x5'));}},'alias':{'type':Sequelize[_0xc499('0x6')],'allowNull':![],'set':function(_0x1cfbf1){this[_0xc499('0x7')](_0xc499('0x5'),_0x1cfbf1?_0x1cfbf1:this[_0xc499('0x4')](_0xc499('0x8')));}},'type':{'type':Sequelize[_0xc499('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0xc499('0x9')]('long'),'get':function(){if(this[_0xc499('0x4')](_0xc499('0xa'))===_0xc499('0xb')){return JSON[_0xc499('0xc')](this['getDataValue'](_0xc499('0xd')));}else{return this[_0xc499('0x4')](_0xc499('0xd'));}},'set':function(_0x48e3c7){if(Array[_0xc499('0xe')](_0x48e3c7)){this[_0xc499('0x7')]('values',JSON['stringify'](_0x48e3c7));}else{this[_0xc499('0x7')](_0xc499('0xd'),_0x48e3c7);}}},'required':{'type':Sequelize[_0xc499('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM']('voice')}};