Built motion from commit e0fa946e.|2.6.5
[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 _0x86ba=['alias','STRING','setDataValue','TEXT','long','type','select','parse','values','stringify','BOOLEAN','ENUM','sequelize','lodash','VIRTUAL','getDataValue'];(function(_0x237877,_0x2c985f){var _0x197435=function(_0x4881a6){while(--_0x4881a6){_0x237877['push'](_0x237877['shift']());}};_0x197435(++_0x2c985f);}(_0x86ba,0x10c));var _0xa86b=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x86ba[_0x19e35c];return _0x3e1fe8;};'use strict';var Sequelize=require(_0xa86b('0x0'));var _=require(_0xa86b('0x1'));module['exports']={'name':{'type':Sequelize[_0xa86b('0x2')],'get':function(_0x1da979){return this[_0xa86b('0x3')](_0xa86b('0x4'));}},'alias':{'type':Sequelize[_0xa86b('0x5')],'allowNull':![],'set':function(_0x32c2b4){this[_0xa86b('0x6')](_0xa86b('0x4'),_0x32c2b4?_0x32c2b4:this[_0xa86b('0x3')]('name'));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0xa86b('0x7')](_0xa86b('0x8')),'get':function(){if(this[_0xa86b('0x3')](_0xa86b('0x9'))===_0xa86b('0xa')){return JSON[_0xa86b('0xb')](this[_0xa86b('0x3')](_0xa86b('0xc')));}else{return this[_0xa86b('0x3')](_0xa86b('0xc'));}},'set':function(_0xc86d90){if(Array['isArray'](_0xc86d90)){this[_0xa86b('0x6')](_0xa86b('0xc'),JSON[_0xa86b('0xd')](_0xc86d90));}else{this[_0xa86b('0x6')](_0xa86b('0xc'),_0xc86d90);}}},'required':{'type':Sequelize[_0xa86b('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xa86b('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xa86b('0xf')]('voice')}};