Built motion from commit caf7d5f0.|2.5.39
[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 _0xc299=['STRING','setDataValue','TEXT','long','type','select','parse','values','stringify','BOOLEAN','ENUM','voice','sequelize','lodash','exports','VIRTUAL','getDataValue','alias'];(function(_0xcc65f1,_0x14dd3d){var _0x195f42=function(_0x58f001){while(--_0x58f001){_0xcc65f1['push'](_0xcc65f1['shift']());}};_0x195f42(++_0x14dd3d);}(_0xc299,0x1aa));var _0x9c29=function(_0x173441,_0x26b0d9){_0x173441=_0x173441-0x0;var _0x2423a8=_0xc299[_0x173441];return _0x2423a8;};'use strict';var Sequelize=require(_0x9c29('0x0'));var _=require(_0x9c29('0x1'));module[_0x9c29('0x2')]={'name':{'type':Sequelize[_0x9c29('0x3')],'get':function(_0x6fd47a){return this[_0x9c29('0x4')](_0x9c29('0x5'));}},'alias':{'type':Sequelize[_0x9c29('0x6')],'allowNull':![],'set':function(_0x57bb7e){this[_0x9c29('0x7')](_0x9c29('0x5'),_0x57bb7e?_0x57bb7e:this[_0x9c29('0x4')]('name'));}},'type':{'type':Sequelize[_0x9c29('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0x9c29('0x8')](_0x9c29('0x9')),'get':function(){if(this[_0x9c29('0x4')](_0x9c29('0xa'))===_0x9c29('0xb')){return JSON[_0x9c29('0xc')](this['getDataValue'](_0x9c29('0xd')));}else{return this['getDataValue'](_0x9c29('0xd'));}},'set':function(_0x12c7d4){if(Array['isArray'](_0x12c7d4)){this[_0x9c29('0x7')](_0x9c29('0xd'),JSON[_0x9c29('0xe')](_0x12c7d4));}else{this[_0x9c29('0x7')](_0x9c29('0xd'),_0x12c7d4);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x9c29('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x9c29('0x10')](_0x9c29('0x11'))}};