Built motion from commit eddce310.|2.6.12
[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 _0x1d9b=['exports','VIRTUAL','STRING','setDataValue','alias','TEXT','long','getDataValue','type','select','parse','values','isArray','stringify','BOOLEAN','voice','sequelize','lodash'];(function(_0x2c6615,_0x139760){var _0x2316bb=function(_0xf67fa4){while(--_0xf67fa4){_0x2c6615['push'](_0x2c6615['shift']());}};_0x2316bb(++_0x139760);}(_0x1d9b,0x7c));var _0xb1d9=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x1d9b[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require(_0xb1d9('0x0'));var _=require(_0xb1d9('0x1'));module[_0xb1d9('0x2')]={'name':{'type':Sequelize[_0xb1d9('0x3')],'get':function(_0x4a2d69){return this['getDataValue']('alias');}},'alias':{'type':Sequelize[_0xb1d9('0x4')],'allowNull':![],'set':function(_0x6aff3d){this[_0xb1d9('0x5')](_0xb1d9('0x6'),_0x6aff3d?_0x6aff3d:this['getDataValue']('name'));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0xb1d9('0x7')](_0xb1d9('0x8')),'get':function(){if(this[_0xb1d9('0x9')](_0xb1d9('0xa'))===_0xb1d9('0xb')){return JSON[_0xb1d9('0xc')](this[_0xb1d9('0x9')]('values'));}else{return this['getDataValue'](_0xb1d9('0xd'));}},'set':function(_0x55fb6e){if(Array[_0xb1d9('0xe')](_0x55fb6e)){this[_0xb1d9('0x5')](_0xb1d9('0xd'),JSON[_0xb1d9('0xf')](_0x55fb6e));}else{this[_0xb1d9('0x5')](_0xb1d9('0xd'),_0x55fb6e);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xb1d9('0x10')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0xb1d9('0x11'))}};