Built motion from commit b0a9a629.|2.6.33
[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 _0x512e=['lodash','exports','VIRTUAL','getDataValue','alias','setDataValue','name','STRING','TEXT','long','type','select','parse','values','isArray','stringify','BOOLEAN','ENUM','voice','sequelize'];(function(_0x5e0bd4,_0xc02524){var _0xa5d074=function(_0x50b1fb){while(--_0x50b1fb){_0x5e0bd4['push'](_0x5e0bd4['shift']());}};_0xa5d074(++_0xc02524);}(_0x512e,0x117));var _0xe512=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x512e[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require(_0xe512('0x0'));var _=require(_0xe512('0x1'));module[_0xe512('0x2')]={'name':{'type':Sequelize[_0xe512('0x3')],'get':function(_0xce4f64){return this[_0xe512('0x4')](_0xe512('0x5'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x4e7404){this[_0xe512('0x6')](_0xe512('0x5'),_0x4e7404?_0x4e7404:this[_0xe512('0x4')](_0xe512('0x7')));}},'type':{'type':Sequelize[_0xe512('0x8')],'allowNull':![]},'values':{'type':Sequelize[_0xe512('0x9')](_0xe512('0xa')),'get':function(){if(this['getDataValue'](_0xe512('0xb'))===_0xe512('0xc')){return JSON[_0xe512('0xd')](this[_0xe512('0x4')](_0xe512('0xe')));}else{return this[_0xe512('0x4')](_0xe512('0xe'));}},'set':function(_0x19baca){if(Array[_0xe512('0xf')](_0x19baca)){this[_0xe512('0x6')](_0xe512('0xe'),JSON[_0xe512('0x10')](_0x19baca));}else{this['setDataValue'](_0xe512('0xe'),_0x19baca);}}},'required':{'type':Sequelize[_0xe512('0x11')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xe512('0x11')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xe512('0x12')](_0xe512('0x13'))}};