1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xa352=['STRING','alias','getDataValue','name','TEXT','type','select','parse','values','setDataValue','stringify','BOOLEAN','sequelize','lodash','exports'];(function(_0x3d93c9,_0x1efb90){var _0xfc7b77=function(_0x13122b){while(--_0x13122b){_0x3d93c9['push'](_0x3d93c9['shift']());}};_0xfc7b77(++_0x1efb90);}(_0xa352,0xed));var _0x2a35=function(_0xadde88,_0x58ad47){_0xadde88=_0xadde88-0x0;var _0x3b8eb6=_0xa352[_0xadde88];return _0x3b8eb6;};'use strict';var Sequelize=require(_0x2a35('0x0'));var _=require(_0x2a35('0x1'));module[_0x2a35('0x2')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x232997){return this['getDataValue']('alias');}},'alias':{'type':Sequelize[_0x2a35('0x3')],'allowNull':![],'set':function(_0x4c7903){this['setDataValue'](_0x2a35('0x4'),_0x4c7903?_0x4c7903:this[_0x2a35('0x5')](_0x2a35('0x6')));}},'type':{'type':Sequelize[_0x2a35('0x3')],'allowNull':![]},'values':{'type':Sequelize[_0x2a35('0x7')]('long'),'get':function(){if(this[_0x2a35('0x5')](_0x2a35('0x8'))===_0x2a35('0x9')){return JSON[_0x2a35('0xa')](this[_0x2a35('0x5')](_0x2a35('0xb')));}else{return this[_0x2a35('0x5')](_0x2a35('0xb'));}},'set':function(_0x331c9b){if(Array['isArray'](_0x331c9b)){this[_0x2a35('0xc')](_0x2a35('0xb'),JSON[_0x2a35('0xd')](_0x331c9b));}else{this[_0x2a35('0xc')](_0x2a35('0xb'),_0x331c9b);}}},'required':{'type':Sequelize[_0x2a35('0xe')],'defaultValue':![]}};