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 _0xa3e6=['TEXT','type','values','isArray','stringify','setDataValue','BOOLEAN','voice','sequelize','exports','getDataValue','alias','name','STRING'];(function(_0x45b49a,_0x5868d9){var _0x2316bf=function(_0x350c7c){while(--_0x350c7c){_0x45b49a['push'](_0x45b49a['shift']());}};_0x2316bf(++_0x5868d9);}(_0xa3e6,0xbe));var _0x6a3e=function(_0x11ee64,_0x9a29c0){_0x11ee64=_0x11ee64-0x0;var _0x1a6915=_0xa3e6[_0x11ee64];return _0x1a6915;};'use strict';var Sequelize=require(_0x6a3e('0x0'));var _=require('lodash');module[_0x6a3e('0x1')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x1dbcdb){return this[_0x6a3e('0x2')](_0x6a3e('0x3'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0xe03261){this['setDataValue'](_0x6a3e('0x3'),_0xe03261?_0xe03261:this[_0x6a3e('0x2')](_0x6a3e('0x4')));}},'type':{'type':Sequelize[_0x6a3e('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0x6a3e('0x6')]('long'),'get':function(){if(this[_0x6a3e('0x2')](_0x6a3e('0x7'))==='select'){return JSON['parse'](this[_0x6a3e('0x2')]('values'));}else{return this['getDataValue'](_0x6a3e('0x8'));}},'set':function(_0x4f5a4a){if(Array[_0x6a3e('0x9')](_0x4f5a4a)){this['setDataValue'](_0x6a3e('0x8'),JSON[_0x6a3e('0xa')](_0x4f5a4a));}else{this[_0x6a3e('0xb')](_0x6a3e('0x8'),_0x4f5a4a);}}},'required':{'type':Sequelize[_0x6a3e('0xc')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x6a3e('0xc')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x6a3e('0xd'))}};