Built motion from commit f7863d46.|2.5.41
[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 _0xe170=['parse','values','isArray','stringify','BOOLEAN','voice','lodash','exports','VIRTUAL','getDataValue','alias','STRING','setDataValue','TEXT','long','select'];(function(_0x47dad0,_0x4f82a0){var _0x5d3e93=function(_0x5854ea){while(--_0x5854ea){_0x47dad0['push'](_0x47dad0['shift']());}};_0x5d3e93(++_0x4f82a0);}(_0xe170,0x156));var _0x0e17=function(_0x3d35a2,_0x1240da){_0x3d35a2=_0x3d35a2-0x0;var _0x539ed2=_0xe170[_0x3d35a2];return _0x539ed2;};'use strict';var Sequelize=require('sequelize');var _=require(_0x0e17('0x0'));module[_0x0e17('0x1')]={'name':{'type':Sequelize[_0x0e17('0x2')],'get':function(_0x341738){return this[_0x0e17('0x3')](_0x0e17('0x4'));}},'alias':{'type':Sequelize[_0x0e17('0x5')],'allowNull':![],'set':function(_0x5761b7){this[_0x0e17('0x6')](_0x0e17('0x4'),_0x5761b7?_0x5761b7:this[_0x0e17('0x3')]('name'));}},'type':{'type':Sequelize[_0x0e17('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0x0e17('0x7')](_0x0e17('0x8')),'get':function(){if(this[_0x0e17('0x3')]('type')===_0x0e17('0x9')){return JSON[_0x0e17('0xa')](this[_0x0e17('0x3')](_0x0e17('0xb')));}else{return this['getDataValue'](_0x0e17('0xb'));}},'set':function(_0x850039){if(Array[_0x0e17('0xc')](_0x850039)){this[_0x0e17('0x6')]('values',JSON[_0x0e17('0xd')](_0x850039));}else{this[_0x0e17('0x6')](_0x0e17('0xb'),_0x850039);}}},'required':{'type':Sequelize[_0x0e17('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x0e17('0xf'))}};