Built motion from commit 5b761a7b.|2.5.36
[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 _0xc316=['setDataValue','name','TEXT','long','select','values','isArray','stringify','BOOLEAN','sequelize','lodash','exports','VIRTUAL','getDataValue','alias','STRING'];(function(_0x288203,_0x51ef77){var _0x374374=function(_0x5f5900){while(--_0x5f5900){_0x288203['push'](_0x288203['shift']());}};_0x374374(++_0x51ef77);}(_0xc316,0x1d9));var _0x6c31=function(_0x49420a,_0x5b4cb5){_0x49420a=_0x49420a-0x0;var _0x4e6436=_0xc316[_0x49420a];return _0x4e6436;};'use strict';var Sequelize=require(_0x6c31('0x0'));var _=require(_0x6c31('0x1'));module[_0x6c31('0x2')]={'name':{'type':Sequelize[_0x6c31('0x3')],'get':function(_0x93c83a){return this[_0x6c31('0x4')](_0x6c31('0x5'));}},'alias':{'type':Sequelize[_0x6c31('0x6')],'allowNull':![],'set':function(_0x266e12){this[_0x6c31('0x7')](_0x6c31('0x5'),_0x266e12?_0x266e12:this[_0x6c31('0x4')](_0x6c31('0x8')));}},'type':{'type':Sequelize[_0x6c31('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0x6c31('0x9')](_0x6c31('0xa')),'get':function(){if(this[_0x6c31('0x4')]('type')===_0x6c31('0xb')){return JSON['parse'](this['getDataValue'](_0x6c31('0xc')));}else{return this['getDataValue'](_0x6c31('0xc'));}},'set':function(_0x4426df){if(Array[_0x6c31('0xd')](_0x4426df)){this['setDataValue'](_0x6c31('0xc'),JSON[_0x6c31('0xe')](_0x4426df));}else{this[_0x6c31('0x7')](_0x6c31('0xc'),_0x4426df);}}},'required':{'type':Sequelize[_0x6c31('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM']('voice')}};