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 _0xfe2d=['BOOLEAN','ENUM','sequelize','exports','VIRTUAL','getDataValue','alias','setDataValue','name','STRING','TEXT','type','values','isArray','stringify'];(function(_0x1ff0cd,_0x75a49c){var _0x3389fd=function(_0xe9d931){while(--_0xe9d931){_0x1ff0cd['push'](_0x1ff0cd['shift']());}};_0x3389fd(++_0x75a49c);}(_0xfe2d,0xd4));var _0xdfe2=function(_0x513b4c,_0x51c91f){_0x513b4c=_0x513b4c-0x0;var _0x3dd43e=_0xfe2d[_0x513b4c];return _0x3dd43e;};'use strict';var Sequelize=require(_0xdfe2('0x0'));var _=require('lodash');module[_0xdfe2('0x1')]={'name':{'type':Sequelize[_0xdfe2('0x2')],'get':function(_0x4f05d1){return this[_0xdfe2('0x3')](_0xdfe2('0x4'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x175809){this[_0xdfe2('0x5')](_0xdfe2('0x4'),_0x175809?_0x175809:this['getDataValue'](_0xdfe2('0x6')));}},'type':{'type':Sequelize[_0xdfe2('0x7')],'allowNull':![]},'values':{'type':Sequelize[_0xdfe2('0x8')]('long'),'get':function(){if(this[_0xdfe2('0x3')](_0xdfe2('0x9'))==='select'){return JSON['parse'](this[_0xdfe2('0x3')](_0xdfe2('0xa')));}else{return this[_0xdfe2('0x3')](_0xdfe2('0xa'));}},'set':function(_0x49a3ae){if(Array[_0xdfe2('0xb')](_0x49a3ae)){this[_0xdfe2('0x5')]('values',JSON[_0xdfe2('0xc')](_0x49a3ae));}else{this[_0xdfe2('0x5')](_0xdfe2('0xa'),_0x49a3ae);}}},'required':{'type':Sequelize[_0xdfe2('0xd')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xdfe2('0xd')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xdfe2('0xe')]('voice')}};