Built motion from commit fe909640.|2.6.8
[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 _0xecda=['parse','values','isArray','BOOLEAN','ENUM','sequelize','lodash','exports','VIRTUAL','getDataValue','setDataValue','alias','name','TEXT','long','type','select'];(function(_0x4d1f43,_0x131251){var _0x382c50=function(_0x4b9336){while(--_0x4b9336){_0x4d1f43['push'](_0x4d1f43['shift']());}};_0x382c50(++_0x131251);}(_0xecda,0x19d));var _0xaecd=function(_0x8ebeef,_0x19fa18){_0x8ebeef=_0x8ebeef-0x0;var _0x2a856d=_0xecda[_0x8ebeef];return _0x2a856d;};'use strict';var Sequelize=require(_0xaecd('0x0'));var _=require(_0xaecd('0x1'));module[_0xaecd('0x2')]={'name':{'type':Sequelize[_0xaecd('0x3')],'get':function(_0x138d65){return this[_0xaecd('0x4')]('alias');}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x305610){this[_0xaecd('0x5')](_0xaecd('0x6'),_0x305610?_0x305610:this[_0xaecd('0x4')](_0xaecd('0x7')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0xaecd('0x8')](_0xaecd('0x9')),'get':function(){if(this[_0xaecd('0x4')](_0xaecd('0xa'))===_0xaecd('0xb')){return JSON[_0xaecd('0xc')](this[_0xaecd('0x4')](_0xaecd('0xd')));}else{return this[_0xaecd('0x4')](_0xaecd('0xd'));}},'set':function(_0x347a17){if(Array[_0xaecd('0xe')](_0x347a17)){this[_0xaecd('0x5')](_0xaecd('0xd'),JSON['stringify'](_0x347a17));}else{this['setDataValue'](_0xaecd('0xd'),_0x347a17);}}},'required':{'type':Sequelize[_0xaecd('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0xaecd('0x10')]('voice')}};