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 _0xfbfd=['values','isArray','stringify','BOOLEAN','sequelize','lodash','exports','VIRTUAL','alias','setDataValue','getDataValue','name','STRING','long','type','select','parse'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0xfbfd,0x1cf));var _0xdfbf=function(_0xfd37c6,_0x12a6bd){_0xfd37c6=_0xfd37c6-0x0;var _0x44d7b9=_0xfbfd[_0xfd37c6];return _0x44d7b9;};'use strict';var Sequelize=require(_0xdfbf('0x0'));var _=require(_0xdfbf('0x1'));module[_0xdfbf('0x2')]={'name':{'type':Sequelize[_0xdfbf('0x3')],'get':function(_0xb75648){return this['getDataValue'](_0xdfbf('0x4'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x42f66f){this[_0xdfbf('0x5')](_0xdfbf('0x4'),_0x42f66f?_0x42f66f:this[_0xdfbf('0x6')](_0xdfbf('0x7')));}},'type':{'type':Sequelize[_0xdfbf('0x8')],'allowNull':![]},'values':{'type':Sequelize['TEXT'](_0xdfbf('0x9')),'get':function(){if(this[_0xdfbf('0x6')](_0xdfbf('0xa'))===_0xdfbf('0xb')){return JSON[_0xdfbf('0xc')](this['getDataValue'](_0xdfbf('0xd')));}else{return this[_0xdfbf('0x6')]('values');}},'set':function(_0x2ee26b){if(Array[_0xdfbf('0xe')](_0x2ee26b)){this[_0xdfbf('0x5')](_0xdfbf('0xd'),JSON[_0xdfbf('0xf')](_0x2ee26b));}else{this['setDataValue'](_0xdfbf('0xd'),_0x2ee26b);}}},'required':{'type':Sequelize[_0xdfbf('0x10')],'defaultValue':![]}};