0cd79e53b5a56d6f8a300c03010bb06e361fc98b
[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 _0x2034=['BOOLEAN','sequelize','lodash','exports','VIRTUAL','getDataValue','alias','setDataValue','name','STRING','TEXT','long','type','select','values','isArray','stringify'];(function(_0x3b7911,_0x3d8c28){var _0x193910=function(_0x26df8c){while(--_0x26df8c){_0x3b7911['push'](_0x3b7911['shift']());}};_0x193910(++_0x3d8c28);}(_0x2034,0x133));var _0x4203=function(_0x55ad1d,_0x101d17){_0x55ad1d=_0x55ad1d-0x0;var _0x324bc0=_0x2034[_0x55ad1d];return _0x324bc0;};'use strict';var Sequelize=require(_0x4203('0x0'));var _=require(_0x4203('0x1'));module[_0x4203('0x2')]={'name':{'type':Sequelize[_0x4203('0x3')],'get':function(_0x334c6b){return this[_0x4203('0x4')](_0x4203('0x5'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x360713){this[_0x4203('0x6')](_0x4203('0x5'),_0x360713?_0x360713:this[_0x4203('0x4')](_0x4203('0x7')));}},'type':{'type':Sequelize[_0x4203('0x8')],'allowNull':![]},'values':{'type':Sequelize[_0x4203('0x9')](_0x4203('0xa')),'get':function(){if(this[_0x4203('0x4')](_0x4203('0xb'))===_0x4203('0xc')){return JSON['parse'](this[_0x4203('0x4')](_0x4203('0xd')));}else{return this[_0x4203('0x4')](_0x4203('0xd'));}},'set':function(_0x57c61f){if(Array[_0x4203('0xe')](_0x57c61f)){this[_0x4203('0x6')](_0x4203('0xd'),JSON[_0x4203('0xf')](_0x57c61f));}else{this[_0x4203('0x6')]('values',_0x57c61f);}}},'required':{'type':Sequelize[_0x4203('0x10')],'defaultValue':![]}};