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 _0x7d35=['name','TEXT','long','type','select','values','isArray','stringify','BOOLEAN','voice','sequelize','lodash','exports','getDataValue','alias','STRING','setDataValue'];(function(_0x299f67,_0x8a22c8){var _0x27f667=function(_0x29e762){while(--_0x29e762){_0x299f67['push'](_0x299f67['shift']());}};_0x27f667(++_0x8a22c8);}(_0x7d35,0x14d));var _0x57d3=function(_0x4c953c,_0x2edbb8){_0x4c953c=_0x4c953c-0x0;var _0xfa0543=_0x7d35[_0x4c953c];return _0xfa0543;};'use strict';var Sequelize=require(_0x57d3('0x0'));var _=require(_0x57d3('0x1'));module[_0x57d3('0x2')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x31ebd6){return this[_0x57d3('0x3')](_0x57d3('0x4'));}},'alias':{'type':Sequelize[_0x57d3('0x5')],'allowNull':![],'set':function(_0x4c7f4e){this[_0x57d3('0x6')](_0x57d3('0x4'),_0x4c7f4e?_0x4c7f4e:this[_0x57d3('0x3')](_0x57d3('0x7')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0x57d3('0x8')](_0x57d3('0x9')),'get':function(){if(this[_0x57d3('0x3')](_0x57d3('0xa'))===_0x57d3('0xb')){return JSON['parse'](this[_0x57d3('0x3')](_0x57d3('0xc')));}else{return this['getDataValue'](_0x57d3('0xc'));}},'set':function(_0x174caa){if(Array[_0x57d3('0xd')](_0x174caa)){this[_0x57d3('0x6')](_0x57d3('0xc'),JSON[_0x57d3('0xe')](_0x174caa));}else{this[_0x57d3('0x6')](_0x57d3('0xc'),_0x174caa);}}},'required':{'type':Sequelize[_0x57d3('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x57d3('0x10'))}};