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 _0x9de3=['STRING','TEXT','long','type','values','isArray','stringify','ENUM','voice','sequelize','exports','VIRTUAL','alias','setDataValue','getDataValue'];(function(_0x5ef733,_0x187505){var _0x1cceea=function(_0x15af68){while(--_0x15af68){_0x5ef733['push'](_0x5ef733['shift']());}};_0x1cceea(++_0x187505);}(_0x9de3,0xea));var _0x39de=function(_0x5d0be3,_0x345903){_0x5d0be3=_0x5d0be3-0x0;var _0x1a4f6f=_0x9de3[_0x5d0be3];return _0x1a4f6f;};'use strict';var Sequelize=require(_0x39de('0x0'));var _=require('lodash');module[_0x39de('0x1')]={'name':{'type':Sequelize[_0x39de('0x2')],'get':function(_0x33c312){return this['getDataValue'](_0x39de('0x3'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x1010da){this[_0x39de('0x4')](_0x39de('0x3'),_0x1010da?_0x1010da:this[_0x39de('0x5')]('name'));}},'type':{'type':Sequelize[_0x39de('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0x39de('0x7')](_0x39de('0x8')),'get':function(){if(this[_0x39de('0x5')](_0x39de('0x9'))==='select'){return JSON['parse'](this['getDataValue'](_0x39de('0xa')));}else{return this[_0x39de('0x5')](_0x39de('0xa'));}},'set':function(_0x3185dc){if(Array[_0x39de('0xb')](_0x3185dc)){this[_0x39de('0x4')](_0x39de('0xa'),JSON[_0x39de('0xc')](_0x3185dc));}else{this['setDataValue'](_0x39de('0xa'),_0x3185dc);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize[_0x39de('0xd')](_0x39de('0xe'))}};