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 _0x1c89=['values','stringify','BOOLEAN','sequelize','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','TEXT','long','select','parse'];(function(_0x414032,_0x49f061){var _0x16da4d=function(_0x3a0b15){while(--_0x3a0b15){_0x414032['push'](_0x414032['shift']());}};_0x16da4d(++_0x49f061);}(_0x1c89,0x1df));var _0x91c8=function(_0x5dc0de,_0x25bba4){_0x5dc0de=_0x5dc0de-0x0;var _0x54ba0e=_0x1c89[_0x5dc0de];return _0x54ba0e;};'use strict';var Sequelize=require(_0x91c8('0x0'));var _=require('lodash');module['exports']={'name':{'type':Sequelize[_0x91c8('0x1')],'get':function(_0x5b4254){return this[_0x91c8('0x2')](_0x91c8('0x3'));}},'alias':{'type':Sequelize[_0x91c8('0x4')],'allowNull':![],'set':function(_0x4c5dfb){this[_0x91c8('0x5')](_0x91c8('0x3'),_0x4c5dfb?_0x4c5dfb:this['getDataValue'](_0x91c8('0x6')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0x91c8('0x7')](_0x91c8('0x8')),'get':function(){if(this[_0x91c8('0x2')]('type')===_0x91c8('0x9')){return JSON[_0x91c8('0xa')](this[_0x91c8('0x2')](_0x91c8('0xb')));}else{return this[_0x91c8('0x2')](_0x91c8('0xb'));}},'set':function(_0x286562){if(Array['isArray'](_0x286562)){this[_0x91c8('0x5')](_0x91c8('0xb'),JSON[_0x91c8('0xc')](_0x286562));}else{this['setDataValue']('values',_0x286562);}}},'required':{'type':Sequelize[_0x91c8('0xd')],'defaultValue':![]}};