e4b656d627e35830e036be55dd1cddead377aa51
[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 _0x3501=['getDataValue','name','long','type','select','parse','isArray','values','BOOLEAN','ENUM','sequelize','exports','VIRTUAL','alias','STRING','setDataValue'];(function(_0x35c992,_0x4a14f0){var _0x1ded30=function(_0x5d655d){while(--_0x5d655d){_0x35c992['push'](_0x35c992['shift']());}};_0x1ded30(++_0x4a14f0);}(_0x3501,0x18a));var _0x1350=function(_0x3fb030,_0x12aebe){_0x3fb030=_0x3fb030-0x0;var _0xd6899b=_0x3501[_0x3fb030];return _0xd6899b;};'use strict';var Sequelize=require(_0x1350('0x0'));var _=require('lodash');module[_0x1350('0x1')]={'name':{'type':Sequelize[_0x1350('0x2')],'get':function(_0x543a95){return this['getDataValue'](_0x1350('0x3'));}},'alias':{'type':Sequelize[_0x1350('0x4')],'allowNull':![],'set':function(_0x39243f){this[_0x1350('0x5')](_0x1350('0x3'),_0x39243f?_0x39243f:this[_0x1350('0x6')](_0x1350('0x7')));}},'type':{'type':Sequelize[_0x1350('0x4')],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0x1350('0x8')),'get':function(){if(this[_0x1350('0x6')](_0x1350('0x9'))===_0x1350('0xa')){return JSON[_0x1350('0xb')](this[_0x1350('0x6')]('values'));}else{return this[_0x1350('0x6')]('values');}},'set':function(_0x206294){if(Array[_0x1350('0xc')](_0x206294)){this[_0x1350('0x5')](_0x1350('0xd'),JSON['stringify'](_0x206294));}else{this[_0x1350('0x5')](_0x1350('0xd'),_0x206294);}}},'required':{'type':Sequelize[_0x1350('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0x1350('0xf')]('voice')}};