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 _0xb6cc=['BOOLEAN','ENUM','voice','sequelize','lodash','VIRTUAL','alias','STRING','setDataValue','TEXT','getDataValue','type','select','values','isArray','stringify'];(function(_0x1d770c,_0x3c859f){var _0xd9833b=function(_0x2a36cd){while(--_0x2a36cd){_0x1d770c['push'](_0x1d770c['shift']());}};_0xd9833b(++_0x3c859f);}(_0xb6cc,0x1d3));var _0xcb6c=function(_0x37a072,_0x3f37cb){_0x37a072=_0x37a072-0x0;var _0x598db0=_0xb6cc[_0x37a072];return _0x598db0;};'use strict';var Sequelize=require(_0xcb6c('0x0'));var _=require(_0xcb6c('0x1'));module['exports']={'name':{'type':Sequelize[_0xcb6c('0x2')],'get':function(_0xb6c66){return this['getDataValue'](_0xcb6c('0x3'));}},'alias':{'type':Sequelize[_0xcb6c('0x4')],'allowNull':![],'set':function(_0x16f9c6){this[_0xcb6c('0x5')](_0xcb6c('0x3'),_0x16f9c6?_0x16f9c6:this['getDataValue']('name'));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0xcb6c('0x6')]('long'),'get':function(){if(this[_0xcb6c('0x7')](_0xcb6c('0x8'))===_0xcb6c('0x9')){return JSON['parse'](this[_0xcb6c('0x7')](_0xcb6c('0xa')));}else{return this[_0xcb6c('0x7')](_0xcb6c('0xa'));}},'set':function(_0x104718){if(Array[_0xcb6c('0xb')](_0x104718)){this['setDataValue'](_0xcb6c('0xa'),JSON[_0xcb6c('0xc')](_0x104718));}else{this[_0xcb6c('0x5')](_0xcb6c('0xa'),_0x104718);}}},'required':{'type':Sequelize[_0xcb6c('0xd')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xcb6c('0xd')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xcb6c('0xe')](_0xcb6c('0xf'))}};