ca959c37b8d2372e961234573865cee8918fc8f3
[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 _0x3390=['name','STRING','TEXT','long','type','select','values','isArray','setDataValue','stringify','BOOLEAN','voice','sequelize','lodash','exports','VIRTUAL','getDataValue','alias'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x3390,0x108));var _0x0339=function(_0x37ea79,_0x489e57){_0x37ea79=_0x37ea79-0x0;var _0x220eb3=_0x3390[_0x37ea79];return _0x220eb3;};'use strict';var Sequelize=require(_0x0339('0x0'));var _=require(_0x0339('0x1'));module[_0x0339('0x2')]={'name':{'type':Sequelize[_0x0339('0x3')],'get':function(_0x2771e3){return this[_0x0339('0x4')](_0x0339('0x5'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x15353f){this['setDataValue']('alias',_0x15353f?_0x15353f:this['getDataValue'](_0x0339('0x6')));}},'type':{'type':Sequelize[_0x0339('0x7')],'allowNull':![]},'values':{'type':Sequelize[_0x0339('0x8')](_0x0339('0x9')),'get':function(){if(this['getDataValue'](_0x0339('0xa'))===_0x0339('0xb')){return JSON['parse'](this['getDataValue'](_0x0339('0xc')));}else{return this['getDataValue'](_0x0339('0xc'));}},'set':function(_0x3520d7){if(Array[_0x0339('0xd')](_0x3520d7)){this[_0x0339('0xe')]('values',JSON[_0x0339('0xf')](_0x3520d7));}else{this[_0x0339('0xe')](_0x0339('0xc'),_0x3520d7);}}},'required':{'type':Sequelize[_0x0339('0x10')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x0339('0x10')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x0339('0x11'))}};