Built motion from commit 9d0783e6.|2.6.13
[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 _0x959f=['getDataValue','type','select','parse','values','isArray','BOOLEAN','ENUM','voice','sequelize','exports','VIRTUAL','alias','STRING','setDataValue'];(function(_0x40cbce,_0x45870f){var _0x41dfd4=function(_0x4f832f){while(--_0x4f832f){_0x40cbce['push'](_0x40cbce['shift']());}};_0x41dfd4(++_0x45870f);}(_0x959f,0xcc));var _0xf959=function(_0x5df8cb,_0x354497){_0x5df8cb=_0x5df8cb-0x0;var _0x21f113=_0x959f[_0x5df8cb];return _0x21f113;};'use strict';var Sequelize=require(_0xf959('0x0'));var _=require('lodash');module[_0xf959('0x1')]={'name':{'type':Sequelize[_0xf959('0x2')],'get':function(_0x579150){return this['getDataValue'](_0xf959('0x3'));}},'alias':{'type':Sequelize[_0xf959('0x4')],'allowNull':![],'set':function(_0x39bd6a){this[_0xf959('0x5')](_0xf959('0x3'),_0x39bd6a?_0x39bd6a:this[_0xf959('0x6')]('name'));}},'type':{'type':Sequelize[_0xf959('0x4')],'allowNull':![]},'values':{'type':Sequelize['TEXT']('long'),'get':function(){if(this[_0xf959('0x6')](_0xf959('0x7'))===_0xf959('0x8')){return JSON[_0xf959('0x9')](this[_0xf959('0x6')](_0xf959('0xa')));}else{return this[_0xf959('0x6')](_0xf959('0xa'));}},'set':function(_0x5281a7){if(Array[_0xf959('0xb')](_0x5281a7)){this['setDataValue'](_0xf959('0xa'),JSON['stringify'](_0x5281a7));}else{this['setDataValue'](_0xf959('0xa'),_0x5281a7);}}},'required':{'type':Sequelize[_0xf959('0xc')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0xf959('0xd')](_0xf959('0xe'))}};