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 _0xcb63=['parse','stringify','values','BOOLEAN','sequelize','exports','VIRTUAL','getDataValue','STRING','setDataValue','alias','TEXT','type'];(function(_0x2a85df,_0x21230a){var _0x428275=function(_0x90c986){while(--_0x90c986){_0x2a85df['push'](_0x2a85df['shift']());}};_0x428275(++_0x21230a);}(_0xcb63,0x115));var _0x3cb6=function(_0x744ce5,_0x32c683){_0x744ce5=_0x744ce5-0x0;var _0x4ca6f8=_0xcb63[_0x744ce5];return _0x4ca6f8;};'use strict';var Sequelize=require(_0x3cb6('0x0'));var _=require('lodash');module[_0x3cb6('0x1')]={'name':{'type':Sequelize[_0x3cb6('0x2')],'get':function(_0x45acdb){return this[_0x3cb6('0x3')]('alias');}},'alias':{'type':Sequelize[_0x3cb6('0x4')],'allowNull':![],'set':function(_0x257f2b){this[_0x3cb6('0x5')](_0x3cb6('0x6'),_0x257f2b?_0x257f2b:this[_0x3cb6('0x3')]('name'));}},'type':{'type':Sequelize['STRING'],'allowNull':![]},'values':{'type':Sequelize[_0x3cb6('0x7')]('long'),'get':function(){if(this[_0x3cb6('0x3')](_0x3cb6('0x8'))==='select'){return JSON[_0x3cb6('0x9')](this[_0x3cb6('0x3')]('values'));}else{return this[_0x3cb6('0x3')]('values');}},'set':function(_0x56e725){if(Array['isArray'](_0x56e725)){this['setDataValue']('values',JSON[_0x3cb6('0xa')](_0x56e725));}else{this[_0x3cb6('0x5')](_0x3cb6('0xb'),_0x56e725);}}},'required':{'type':Sequelize[_0x3cb6('0xc')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x3cb6('0xc')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM']('voice')}};