fa83ae590000cca577e43ae24ba65b5ddcdd038e
[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 _0xf746=['TEXT','long','type','select','parse','values','isArray','stringify','BOOLEAN','ENUM','voice','sequelize','lodash','exports','VIRTUAL','getDataValue','STRING','setDataValue','name'];(function(_0x5e08df,_0xb3987f){var _0x234cdb=function(_0x32a03f){while(--_0x32a03f){_0x5e08df['push'](_0x5e08df['shift']());}};_0x234cdb(++_0xb3987f);}(_0xf746,0xa3));var _0x6f74=function(_0x1035c1,_0x2d8583){_0x1035c1=_0x1035c1-0x0;var _0x308d67=_0xf746[_0x1035c1];return _0x308d67;};'use strict';var Sequelize=require(_0x6f74('0x0'));var _=require(_0x6f74('0x1'));module[_0x6f74('0x2')]={'name':{'type':Sequelize[_0x6f74('0x3')],'get':function(_0x3a5ea1){return this[_0x6f74('0x4')]('alias');}},'alias':{'type':Sequelize[_0x6f74('0x5')],'allowNull':![],'set':function(_0xef91ac){this[_0x6f74('0x6')]('alias',_0xef91ac?_0xef91ac:this['getDataValue'](_0x6f74('0x7')));}},'type':{'type':Sequelize[_0x6f74('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0x6f74('0x8')](_0x6f74('0x9')),'get':function(){if(this[_0x6f74('0x4')](_0x6f74('0xa'))===_0x6f74('0xb')){return JSON[_0x6f74('0xc')](this[_0x6f74('0x4')](_0x6f74('0xd')));}else{return this[_0x6f74('0x4')](_0x6f74('0xd'));}},'set':function(_0x384332){if(Array[_0x6f74('0xe')](_0x384332)){this[_0x6f74('0x6')](_0x6f74('0xd'),JSON[_0x6f74('0xf')](_0x384332));}else{this['setDataValue']('values',_0x384332);}}},'required':{'type':Sequelize[_0x6f74('0x10')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x6f74('0x10')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x6f74('0x11')](_0x6f74('0x12'))}};