Built motion from commit (unavailable).|2.4.4
[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 _0xc373=['exports','alias','setDataValue','getDataValue','name','long','select','parse','values','isArray','stringify','lodash'];(function(_0x367c8e,_0x3a6502){var _0x1c2789=function(_0x908461){while(--_0x908461){_0x367c8e['push'](_0x367c8e['shift']());}};_0x1c2789(++_0x3a6502);}(_0xc373,0x1af));var _0x3c37=function(_0x33dcf7,_0x3d5390){_0x33dcf7=_0x33dcf7-0x0;var _0x542d4e=_0xc373[_0x33dcf7];return _0x542d4e;};'use strict';var Sequelize=require('sequelize');var _=require(_0x3c37('0x0'));module[_0x3c37('0x1')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x1c2e93){return this['getDataValue'](_0x3c37('0x2'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x8e86ca){this[_0x3c37('0x3')](_0x3c37('0x2'),_0x8e86ca?_0x8e86ca:this[_0x3c37('0x4')](_0x3c37('0x5')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0x3c37('0x6')),'get':function(){if(this['getDataValue']('type')===_0x3c37('0x7')){return JSON[_0x3c37('0x8')](this[_0x3c37('0x4')]('values'));}else{return this[_0x3c37('0x4')](_0x3c37('0x9'));}},'set':function(_0x595d0d){if(Array[_0x3c37('0xa')](_0x595d0d)){this[_0x3c37('0x3')](_0x3c37('0x9'),JSON[_0x3c37('0xb')](_0x595d0d));}else{this[_0x3c37('0x3')](_0x3c37('0x9'),_0x595d0d);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};