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 _0x833e=['BOOLEAN','ENUM','voice','sequelize','lodash','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','TEXT','long','type','parse','values','isArray'];(function(_0x1f5303,_0x354414){var _0x84ef1a=function(_0x27e275){while(--_0x27e275){_0x1f5303['push'](_0x1f5303['shift']());}};_0x84ef1a(++_0x354414);}(_0x833e,0x69));var _0xe833=function(_0x23017c,_0x564c10){_0x23017c=_0x23017c-0x0;var _0x17909c=_0x833e[_0x23017c];return _0x17909c;};'use strict';var Sequelize=require(_0xe833('0x0'));var _=require(_0xe833('0x1'));module['exports']={'name':{'type':Sequelize[_0xe833('0x2')],'get':function(_0x168fb0){return this[_0xe833('0x3')](_0xe833('0x4'));}},'alias':{'type':Sequelize[_0xe833('0x5')],'allowNull':![],'set':function(_0x4f7e4c){this[_0xe833('0x6')]('alias',_0x4f7e4c?_0x4f7e4c:this[_0xe833('0x3')](_0xe833('0x7')));}},'type':{'type':Sequelize[_0xe833('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0xe833('0x8')](_0xe833('0x9')),'get':function(){if(this['getDataValue'](_0xe833('0xa'))==='select'){return JSON[_0xe833('0xb')](this[_0xe833('0x3')](_0xe833('0xc')));}else{return this[_0xe833('0x3')]('values');}},'set':function(_0x137706){if(Array[_0xe833('0xd')](_0x137706)){this[_0xe833('0x6')](_0xe833('0xc'),JSON['stringify'](_0x137706));}else{this[_0xe833('0x6')]('values',_0x137706);}}},'required':{'type':Sequelize[_0xe833('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xe833('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xe833('0xf')](_0xe833('0x10'))}};