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 _0xf4b3=['ENUM','sequelize','lodash','exports','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','TEXT','type','parse','values'];(function(_0x27fd5c,_0x37c57c){var _0x5e7d82=function(_0x23c4bb){while(--_0x23c4bb){_0x27fd5c['push'](_0x27fd5c['shift']());}};_0x5e7d82(++_0x37c57c);}(_0xf4b3,0x1b3));var _0x3f4b=function(_0x362333,_0xa40fda){_0x362333=_0x362333-0x0;var _0x2cba45=_0xf4b3[_0x362333];return _0x2cba45;};'use strict';var Sequelize=require(_0x3f4b('0x0'));var _=require(_0x3f4b('0x1'));module[_0x3f4b('0x2')]={'name':{'type':Sequelize[_0x3f4b('0x3')],'get':function(_0x1f029f){return this[_0x3f4b('0x4')](_0x3f4b('0x5'));}},'alias':{'type':Sequelize[_0x3f4b('0x6')],'allowNull':![],'set':function(_0x2ec6f8){this[_0x3f4b('0x7')](_0x3f4b('0x5'),_0x2ec6f8?_0x2ec6f8:this[_0x3f4b('0x4')](_0x3f4b('0x8')));}},'type':{'type':Sequelize[_0x3f4b('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0x3f4b('0x9')]('long'),'get':function(){if(this['getDataValue'](_0x3f4b('0xa'))==='select'){return JSON[_0x3f4b('0xb')](this[_0x3f4b('0x4')](_0x3f4b('0xc')));}else{return this[_0x3f4b('0x4')](_0x3f4b('0xc'));}},'set':function(_0x5b98b5){if(Array['isArray'](_0x5b98b5)){this[_0x3f4b('0x7')](_0x3f4b('0xc'),JSON['stringify'](_0x5b98b5));}else{this[_0x3f4b('0x7')](_0x3f4b('0xc'),_0x5b98b5);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0x3f4b('0xd')]('voice')}};