Built motion from commit (unavailable).|2.4.18
[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 _0xa8e6=['parse','values','isArray','stringify','sequelize','lodash','exports','alias','setDataValue','name','STRING','TEXT','long','getDataValue','type','select'];(function(_0x507c4c,_0x18a6b1){var _0x360938=function(_0x37af16){while(--_0x37af16){_0x507c4c['push'](_0x507c4c['shift']());}};_0x360938(++_0x18a6b1);}(_0xa8e6,0x1e4));var _0x6a8e=function(_0x2c3458,_0x1f7efd){_0x2c3458=_0x2c3458-0x0;var _0x3f7e02=_0xa8e6[_0x2c3458];return _0x3f7e02;};'use strict';var Sequelize=require(_0x6a8e('0x0'));var _=require(_0x6a8e('0x1'));module[_0x6a8e('0x2')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x38b61d){return this['getDataValue'](_0x6a8e('0x3'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x5b4edd){this[_0x6a8e('0x4')]('alias',_0x5b4edd?_0x5b4edd:this['getDataValue'](_0x6a8e('0x5')));}},'type':{'type':Sequelize[_0x6a8e('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0x6a8e('0x7')](_0x6a8e('0x8')),'get':function(){if(this[_0x6a8e('0x9')](_0x6a8e('0xa'))===_0x6a8e('0xb')){return JSON[_0x6a8e('0xc')](this[_0x6a8e('0x9')]('values'));}else{return this[_0x6a8e('0x9')](_0x6a8e('0xd'));}},'set':function(_0x3f96ca){if(Array[_0x6a8e('0xe')](_0x3f96ca)){this[_0x6a8e('0x4')](_0x6a8e('0xd'),JSON[_0x6a8e('0xf')](_0x3f96ca));}else{this[_0x6a8e('0x4')](_0x6a8e('0xd'),_0x3f96ca);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};