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 _0x6420=['STRING','setDataValue','name','TEXT','type','select','values','stringify','BOOLEAN','ENUM','voice','sequelize','lodash','VIRTUAL','getDataValue','alias'];(function(_0x866c2f,_0x17500f){var _0x241384=function(_0x4b9a9b){while(--_0x4b9a9b){_0x866c2f['push'](_0x866c2f['shift']());}};_0x241384(++_0x17500f);}(_0x6420,0xeb));var _0x0642=function(_0x235482,_0x14b833){_0x235482=_0x235482-0x0;var _0x5f5bea=_0x6420[_0x235482];return _0x5f5bea;};'use strict';var Sequelize=require(_0x0642('0x0'));var _=require(_0x0642('0x1'));module['exports']={'name':{'type':Sequelize[_0x0642('0x2')],'get':function(_0x43a2e6){return this[_0x0642('0x3')](_0x0642('0x4'));}},'alias':{'type':Sequelize[_0x0642('0x5')],'allowNull':![],'set':function(_0x294b44){this[_0x0642('0x6')](_0x0642('0x4'),_0x294b44?_0x294b44:this[_0x0642('0x3')](_0x0642('0x7')));}},'type':{'type':Sequelize[_0x0642('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0x0642('0x8')]('long'),'get':function(){if(this['getDataValue'](_0x0642('0x9'))===_0x0642('0xa')){return JSON['parse'](this[_0x0642('0x3')]('values'));}else{return this[_0x0642('0x3')](_0x0642('0xb'));}},'set':function(_0x35a647){if(Array['isArray'](_0x35a647)){this[_0x0642('0x6')](_0x0642('0xb'),JSON[_0x0642('0xc')](_0x35a647));}else{this['setDataValue'](_0x0642('0xb'),_0x35a647);}}},'required':{'type':Sequelize[_0x0642('0xd')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x0642('0xd')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x0642('0xe')](_0x0642('0xf'))}};