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 _0x6b70=['setDataValue','name','TEXT','type','values','BOOLEAN','sequelize','lodash','VIRTUAL','getDataValue','alias','STRING'];(function(_0x4ce7d2,_0x4f8e30){var _0x4017ba=function(_0x48a3a2){while(--_0x48a3a2){_0x4ce7d2['push'](_0x4ce7d2['shift']());}};_0x4017ba(++_0x4f8e30);}(_0x6b70,0x72));var _0x06b7=function(_0x57a53b,_0x11494e){_0x57a53b=_0x57a53b-0x0;var _0x29e81c=_0x6b70[_0x57a53b];return _0x29e81c;};'use strict';var Sequelize=require(_0x06b7('0x0'));var _=require(_0x06b7('0x1'));module['exports']={'name':{'type':Sequelize[_0x06b7('0x2')],'get':function(_0xffbbaa){return this[_0x06b7('0x3')](_0x06b7('0x4'));}},'alias':{'type':Sequelize[_0x06b7('0x5')],'allowNull':![],'set':function(_0x1cd894){this[_0x06b7('0x6')](_0x06b7('0x4'),_0x1cd894?_0x1cd894:this[_0x06b7('0x3')](_0x06b7('0x7')));}},'type':{'type':Sequelize[_0x06b7('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0x06b7('0x8')]('long'),'get':function(){if(this[_0x06b7('0x3')](_0x06b7('0x9'))==='select'){return JSON['parse'](this[_0x06b7('0x3')](_0x06b7('0xa')));}else{return this[_0x06b7('0x3')](_0x06b7('0xa'));}},'set':function(_0xc2e1e9){if(Array['isArray'](_0xc2e1e9)){this[_0x06b7('0x6')](_0x06b7('0xa'),JSON['stringify'](_0xc2e1e9));}else{this[_0x06b7('0x6')](_0x06b7('0xa'),_0xc2e1e9);}}},'required':{'type':Sequelize[_0x06b7('0xb')],'defaultValue':![]}};