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 _0xae10=['BOOLEAN','sequelize','lodash','exports','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','type','select','parse','stringify','values'];(function(_0x3d92cc,_0x360b2e){var _0x41e4c8=function(_0x4d5454){while(--_0x4d5454){_0x3d92cc['push'](_0x3d92cc['shift']());}};_0x41e4c8(++_0x360b2e);}(_0xae10,0x10f));var _0x0ae1=function(_0x4f653f,_0x3a513b){_0x4f653f=_0x4f653f-0x0;var _0x2d9175=_0xae10[_0x4f653f];return _0x2d9175;};'use strict';var Sequelize=require(_0x0ae1('0x0'));var _=require(_0x0ae1('0x1'));module[_0x0ae1('0x2')]={'name':{'type':Sequelize[_0x0ae1('0x3')],'get':function(_0x40627f){return this[_0x0ae1('0x4')](_0x0ae1('0x5'));}},'alias':{'type':Sequelize[_0x0ae1('0x6')],'allowNull':![],'set':function(_0x1e7acd){this[_0x0ae1('0x7')](_0x0ae1('0x5'),_0x1e7acd?_0x1e7acd:this['getDataValue'](_0x0ae1('0x8')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize['TEXT']('long'),'get':function(){if(this[_0x0ae1('0x4')](_0x0ae1('0x9'))===_0x0ae1('0xa')){return JSON[_0x0ae1('0xb')](this[_0x0ae1('0x4')]('values'));}else{return this[_0x0ae1('0x4')]('values');}},'set':function(_0x45cc6f){if(Array['isArray'](_0x45cc6f)){this[_0x0ae1('0x7')]('values',JSON[_0x0ae1('0xc')](_0x45cc6f));}else{this[_0x0ae1('0x7')](_0x0ae1('0xd'),_0x45cc6f);}}},'required':{'type':Sequelize[_0x0ae1('0xe')],'defaultValue':![]}};