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 _0x16a6=['STRING','setDataValue','name','TEXT','long','parse','values','isArray','stringify','voice','sequelize','lodash','exports','VIRTUAL','getDataValue','alias'];(function(_0x27a2df,_0x3fa861){var _0x5310bd=function(_0x25c36a){while(--_0x25c36a){_0x27a2df['push'](_0x27a2df['shift']());}};_0x5310bd(++_0x3fa861);}(_0x16a6,0x6a));var _0x616a=function(_0x42ebba,_0x4cbf87){_0x42ebba=_0x42ebba-0x0;var _0x3fd2af=_0x16a6[_0x42ebba];return _0x3fd2af;};'use strict';var Sequelize=require(_0x616a('0x0'));var _=require(_0x616a('0x1'));module[_0x616a('0x2')]={'name':{'type':Sequelize[_0x616a('0x3')],'get':function(_0x1c6350){return this[_0x616a('0x4')](_0x616a('0x5'));}},'alias':{'type':Sequelize[_0x616a('0x6')],'allowNull':![],'set':function(_0x1957db){this[_0x616a('0x7')](_0x616a('0x5'),_0x1957db?_0x1957db:this[_0x616a('0x4')](_0x616a('0x8')));}},'type':{'type':Sequelize[_0x616a('0x6')],'allowNull':![]},'values':{'type':Sequelize[_0x616a('0x9')](_0x616a('0xa')),'get':function(){if(this['getDataValue']('type')==='select'){return JSON[_0x616a('0xb')](this[_0x616a('0x4')](_0x616a('0xc')));}else{return this['getDataValue'](_0x616a('0xc'));}},'set':function(_0x156c54){if(Array[_0x616a('0xd')](_0x156c54)){this[_0x616a('0x7')]('values',JSON[_0x616a('0xe')](_0x156c54));}else{this[_0x616a('0x7')](_0x616a('0xc'),_0x156c54);}}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x616a('0xf'))}};