4c65859f56c1594f41a23dd99829e4fa145f539a
[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 _0x6c93=['getDataValue','name','long','type','select','parse','values','BOOLEAN','ENUM','voice','sequelize','lodash','exports','VIRTUAL','alias','STRING','setDataValue'];(function(_0x186922,_0x525776){var _0x3132a0=function(_0x643392){while(--_0x643392){_0x186922['push'](_0x186922['shift']());}};_0x3132a0(++_0x525776);}(_0x6c93,0xa3));var _0x36c9=function(_0x4c9915,_0x406b1a){_0x4c9915=_0x4c9915-0x0;var _0x473218=_0x6c93[_0x4c9915];return _0x473218;};'use strict';var Sequelize=require(_0x36c9('0x0'));var _=require(_0x36c9('0x1'));module[_0x36c9('0x2')]={'name':{'type':Sequelize[_0x36c9('0x3')],'get':function(_0xe7e309){return this['getDataValue'](_0x36c9('0x4'));}},'alias':{'type':Sequelize[_0x36c9('0x5')],'allowNull':![],'set':function(_0x1bda4b){this[_0x36c9('0x6')](_0x36c9('0x4'),_0x1bda4b?_0x1bda4b:this[_0x36c9('0x7')](_0x36c9('0x8')));}},'type':{'type':Sequelize[_0x36c9('0x5')],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0x36c9('0x9')),'get':function(){if(this['getDataValue'](_0x36c9('0xa'))===_0x36c9('0xb')){return JSON[_0x36c9('0xc')](this['getDataValue'](_0x36c9('0xd')));}else{return this[_0x36c9('0x7')](_0x36c9('0xd'));}},'set':function(_0x4ab73a){if(Array['isArray'](_0x4ab73a)){this['setDataValue']('values',JSON['stringify'](_0x4ab73a));}else{this[_0x36c9('0x6')]('values',_0x4ab73a);}}},'required':{'type':Sequelize[_0x36c9('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0x36c9('0xf')](_0x36c9('0x10'))}};