Built motion from commit e6806ed6.|2.6.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 _0x4e48=['VIRTUAL','getDataValue','alias','STRING','setDataValue','name','long','type','select','values','isArray','stringify','BOOLEAN','voice','sequelize','lodash','exports'];(function(_0x109d5a,_0xdd3ce9){var _0xc3e8b1=function(_0x2625fd){while(--_0x2625fd){_0x109d5a['push'](_0x109d5a['shift']());}};_0xc3e8b1(++_0xdd3ce9);}(_0x4e48,0xda));var _0x84e4=function(_0xf746c0,_0x3471b2){_0xf746c0=_0xf746c0-0x0;var _0x59e314=_0x4e48[_0xf746c0];return _0x59e314;};'use strict';var Sequelize=require(_0x84e4('0x0'));var _=require(_0x84e4('0x1'));module[_0x84e4('0x2')]={'name':{'type':Sequelize[_0x84e4('0x3')],'get':function(_0x35b193){return this[_0x84e4('0x4')](_0x84e4('0x5'));}},'alias':{'type':Sequelize[_0x84e4('0x6')],'allowNull':![],'set':function(_0x3a05e1){this[_0x84e4('0x7')](_0x84e4('0x5'),_0x3a05e1?_0x3a05e1:this[_0x84e4('0x4')](_0x84e4('0x8')));}},'type':{'type':Sequelize[_0x84e4('0x6')],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0x84e4('0x9')),'get':function(){if(this[_0x84e4('0x4')](_0x84e4('0xa'))===_0x84e4('0xb')){return JSON['parse'](this[_0x84e4('0x4')](_0x84e4('0xc')));}else{return this['getDataValue'](_0x84e4('0xc'));}},'set':function(_0x187b97){if(Array[_0x84e4('0xd')](_0x187b97)){this[_0x84e4('0x7')](_0x84e4('0xc'),JSON[_0x84e4('0xe')](_0x187b97));}else{this[_0x84e4('0x7')](_0x84e4('0xc'),_0x187b97);}}},'required':{'type':Sequelize[_0x84e4('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x84e4('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x84e4('0x10'))}};