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 _0x2f29=['BOOLEAN','ENUM','sequelize','lodash','exports','VIRTUAL','getDataValue','alias','STRING','setDataValue','TEXT','type','select','parse','values','isArray','stringify'];(function(_0x582fe5,_0x51c720){var _0x492564=function(_0x491d6c){while(--_0x491d6c){_0x582fe5['push'](_0x582fe5['shift']());}};_0x492564(++_0x51c720);}(_0x2f29,0x189));var _0x92f2=function(_0x342baa,_0x4a110f){_0x342baa=_0x342baa-0x0;var _0x1208f3=_0x2f29[_0x342baa];return _0x1208f3;};'use strict';var Sequelize=require(_0x92f2('0x0'));var _=require(_0x92f2('0x1'));module[_0x92f2('0x2')]={'name':{'type':Sequelize[_0x92f2('0x3')],'get':function(_0x3b8bb8){return this[_0x92f2('0x4')](_0x92f2('0x5'));}},'alias':{'type':Sequelize[_0x92f2('0x6')],'allowNull':![],'set':function(_0xab5cf4){this[_0x92f2('0x7')](_0x92f2('0x5'),_0xab5cf4?_0xab5cf4:this['getDataValue']('name'));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0x92f2('0x8')]('long'),'get':function(){if(this[_0x92f2('0x4')](_0x92f2('0x9'))===_0x92f2('0xa')){return JSON[_0x92f2('0xb')](this[_0x92f2('0x4')](_0x92f2('0xc')));}else{return this[_0x92f2('0x4')]('values');}},'set':function(_0x3fe712){if(Array[_0x92f2('0xd')](_0x3fe712)){this['setDataValue'](_0x92f2('0xc'),JSON[_0x92f2('0xe')](_0x3fe712));}else{this['setDataValue'](_0x92f2('0xc'),_0x3fe712);}}},'required':{'type':Sequelize[_0x92f2('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0x92f2('0x10')]('voice')}};