Built motion from commit (unavailable).|2.5.0
[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 _0xdf98=['STRING','TEXT','type','select','values','isArray','stringify','BOOLEAN','exports','VIRTUAL','alias','setDataValue','getDataValue','name'];(function(_0x22bee0,_0x412ecb){var _0x2d295b=function(_0x59d4b5){while(--_0x59d4b5){_0x22bee0['push'](_0x22bee0['shift']());}};_0x2d295b(++_0x412ecb);}(_0xdf98,0xbe));var _0x8df9=function(_0x248a43,_0x59e52a){_0x248a43=_0x248a43-0x0;var _0x451379=_0xdf98[_0x248a43];return _0x451379;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module[_0x8df9('0x0')]={'name':{'type':Sequelize[_0x8df9('0x1')],'get':function(_0x5b5695){return this['getDataValue'](_0x8df9('0x2'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0xd41535){this[_0x8df9('0x3')](_0x8df9('0x2'),_0xd41535?_0xd41535:this[_0x8df9('0x4')](_0x8df9('0x5')));}},'type':{'type':Sequelize[_0x8df9('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0x8df9('0x7')]('long'),'get':function(){if(this[_0x8df9('0x4')](_0x8df9('0x8'))===_0x8df9('0x9')){return JSON['parse'](this[_0x8df9('0x4')](_0x8df9('0xa')));}else{return this[_0x8df9('0x4')]('values');}},'set':function(_0x1a1a35){if(Array[_0x8df9('0xb')](_0x1a1a35)){this['setDataValue'](_0x8df9('0xa'),JSON[_0x8df9('0xc')](_0x1a1a35));}else{this[_0x8df9('0x3')]('values',_0x1a1a35);}}},'required':{'type':Sequelize[_0x8df9('0xd')],'defaultValue':![]}};