0e5d1c0c2b58cea758cd1f5caabbdefaea629f06
[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 _0xd885=['stringify','BOOLEAN','ENUM','voice','sequelize','lodash','exports','VIRTUAL','getDataValue','alias','setDataValue','name','STRING','TEXT','type','select','values'];(function(_0x34657c,_0x85d5fa){var _0xa54db4=function(_0xf69233){while(--_0xf69233){_0x34657c['push'](_0x34657c['shift']());}};_0xa54db4(++_0x85d5fa);}(_0xd885,0x169));var _0x5d88=function(_0x3c0b27,_0x3e891c){_0x3c0b27=_0x3c0b27-0x0;var _0x444957=_0xd885[_0x3c0b27];return _0x444957;};'use strict';var Sequelize=require(_0x5d88('0x0'));var _=require(_0x5d88('0x1'));module[_0x5d88('0x2')]={'name':{'type':Sequelize[_0x5d88('0x3')],'get':function(_0x3f7d1e){return this[_0x5d88('0x4')](_0x5d88('0x5'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x47e52c){this[_0x5d88('0x6')]('alias',_0x47e52c?_0x47e52c:this['getDataValue'](_0x5d88('0x7')));}},'type':{'type':Sequelize[_0x5d88('0x8')],'allowNull':![]},'values':{'type':Sequelize[_0x5d88('0x9')]('long'),'get':function(){if(this[_0x5d88('0x4')](_0x5d88('0xa'))===_0x5d88('0xb')){return JSON['parse'](this[_0x5d88('0x4')](_0x5d88('0xc')));}else{return this[_0x5d88('0x4')](_0x5d88('0xc'));}},'set':function(_0x54fb67){if(Array['isArray'](_0x54fb67)){this[_0x5d88('0x6')](_0x5d88('0xc'),JSON[_0x5d88('0xd')](_0x54fb67));}else{this[_0x5d88('0x6')](_0x5d88('0xc'),_0x54fb67);}}},'required':{'type':Sequelize[_0x5d88('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0x5d88('0xf')](_0x5d88('0x10'))}};