07d2d7e219b134d31fd93dd21088d13d7572a832
[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 _0x858e=['parse','values','isArray','stringify','BOOLEAN','ENUM','sequelize','lodash','exports','getDataValue','alias','STRING','setDataValue','name','TEXT','long','select'];(function(_0x5f0dc0,_0x5a7898){var _0x518322=function(_0x280f7a){while(--_0x280f7a){_0x5f0dc0['push'](_0x5f0dc0['shift']());}};_0x518322(++_0x5a7898);}(_0x858e,0x138));var _0xe858=function(_0x3f8d23,_0x16f5ee){_0x3f8d23=_0x3f8d23-0x0;var _0x1ffe51=_0x858e[_0x3f8d23];return _0x1ffe51;};'use strict';var Sequelize=require(_0xe858('0x0'));var _=require(_0xe858('0x1'));module[_0xe858('0x2')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x34c91b){return this[_0xe858('0x3')](_0xe858('0x4'));}},'alias':{'type':Sequelize[_0xe858('0x5')],'allowNull':![],'set':function(_0x31b8c3){this[_0xe858('0x6')](_0xe858('0x4'),_0x31b8c3?_0x31b8c3:this[_0xe858('0x3')](_0xe858('0x7')));}},'type':{'type':Sequelize[_0xe858('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0xe858('0x8')](_0xe858('0x9')),'get':function(){if(this[_0xe858('0x3')]('type')===_0xe858('0xa')){return JSON[_0xe858('0xb')](this['getDataValue']('values'));}else{return this[_0xe858('0x3')](_0xe858('0xc'));}},'set':function(_0x5e3915){if(Array[_0xe858('0xd')](_0x5e3915)){this[_0xe858('0x6')](_0xe858('0xc'),JSON[_0xe858('0xe')](_0x5e3915));}else{this[_0xe858('0x6')](_0xe858('0xc'),_0x5e3915);}}},'required':{'type':Sequelize[_0xe858('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xe858('0xf')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xe858('0x10')]('voice')}};