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 _0x9b18=['exports','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','TEXT','long','select','values','isArray','BOOLEAN','ENUM','voice','sequelize','lodash'];(function(_0x651aaf,_0x35f9a4){var _0x5efa91=function(_0x36fb6f){while(--_0x36fb6f){_0x651aaf['push'](_0x651aaf['shift']());}};_0x5efa91(++_0x35f9a4);}(_0x9b18,0x1a7));var _0x89b1=function(_0x26b5ff,_0x92009a){_0x26b5ff=_0x26b5ff-0x0;var _0x58603e=_0x9b18[_0x26b5ff];return _0x58603e;};'use strict';var Sequelize=require(_0x89b1('0x0'));var _=require(_0x89b1('0x1'));module[_0x89b1('0x2')]={'name':{'type':Sequelize[_0x89b1('0x3')],'get':function(_0x444e49){return this[_0x89b1('0x4')](_0x89b1('0x5'));}},'alias':{'type':Sequelize[_0x89b1('0x6')],'allowNull':![],'set':function(_0x28228d){this[_0x89b1('0x7')](_0x89b1('0x5'),_0x28228d?_0x28228d:this['getDataValue'](_0x89b1('0x8')));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0x89b1('0x9')](_0x89b1('0xa')),'get':function(){if(this[_0x89b1('0x4')]('type')===_0x89b1('0xb')){return JSON['parse'](this[_0x89b1('0x4')](_0x89b1('0xc')));}else{return this[_0x89b1('0x4')]('values');}},'set':function(_0x24b66f){if(Array[_0x89b1('0xd')](_0x24b66f)){this['setDataValue'](_0x89b1('0xc'),JSON['stringify'](_0x24b66f));}else{this[_0x89b1('0x7')](_0x89b1('0xc'),_0x24b66f);}}},'required':{'type':Sequelize[_0x89b1('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x89b1('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x89b1('0xf')](_0x89b1('0x10'))}};