20404ec31c0dba965c1a2a6c77f58cb6e8176871
[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 _0x64f5=['select','parse','values','isArray','BOOLEAN','ENUM','voice','sequelize','alias','STRING','setDataValue','getDataValue','name','long','type'];(function(_0xbd08b4,_0x4790ed){var _0x314f1e=function(_0x161589){while(--_0x161589){_0xbd08b4['push'](_0xbd08b4['shift']());}};_0x314f1e(++_0x4790ed);}(_0x64f5,0x17e));var _0x564f=function(_0x5670a9,_0x1fb382){_0x5670a9=_0x5670a9-0x0;var _0x296679=_0x64f5[_0x5670a9];return _0x296679;};'use strict';var Sequelize=require(_0x564f('0x0'));var _=require('lodash');module['exports']={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x39903b){return this['getDataValue'](_0x564f('0x1'));}},'alias':{'type':Sequelize[_0x564f('0x2')],'allowNull':![],'set':function(_0x59c424){this[_0x564f('0x3')](_0x564f('0x1'),_0x59c424?_0x59c424:this[_0x564f('0x4')](_0x564f('0x5')));}},'type':{'type':Sequelize[_0x564f('0x2')],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0x564f('0x6')),'get':function(){if(this[_0x564f('0x4')](_0x564f('0x7'))===_0x564f('0x8')){return JSON[_0x564f('0x9')](this[_0x564f('0x4')](_0x564f('0xa')));}else{return this[_0x564f('0x4')](_0x564f('0xa'));}},'set':function(_0x3aa86a){if(Array[_0x564f('0xb')](_0x3aa86a)){this[_0x564f('0x3')](_0x564f('0xa'),JSON['stringify'](_0x3aa86a));}else{this['setDataValue'](_0x564f('0xa'),_0x3aa86a);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x564f('0xc')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x564f('0xd')](_0x564f('0xe'))}};