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 _0x0ece=['BOOLEAN','voice','sequelize','lodash','VIRTUAL','getDataValue','alias','STRING','setDataValue','name','TEXT','long','type','values','isArray','stringify'];(function(_0x57d821,_0x31e5de){var _0x111ffa=function(_0x407bc9){while(--_0x407bc9){_0x57d821['push'](_0x57d821['shift']());}};_0x111ffa(++_0x31e5de);}(_0x0ece,0x142));var _0xe0ec=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x0ece[_0x321bb2];return _0x9c12ed;};'use strict';var Sequelize=require(_0xe0ec('0x0'));var _=require(_0xe0ec('0x1'));module['exports']={'name':{'type':Sequelize[_0xe0ec('0x2')],'get':function(_0x666722){return this[_0xe0ec('0x3')](_0xe0ec('0x4'));}},'alias':{'type':Sequelize[_0xe0ec('0x5')],'allowNull':![],'set':function(_0x290400){this[_0xe0ec('0x6')]('alias',_0x290400?_0x290400:this[_0xe0ec('0x3')](_0xe0ec('0x7')));}},'type':{'type':Sequelize[_0xe0ec('0x5')],'allowNull':![]},'values':{'type':Sequelize[_0xe0ec('0x8')](_0xe0ec('0x9')),'get':function(){if(this['getDataValue'](_0xe0ec('0xa'))==='select'){return JSON['parse'](this[_0xe0ec('0x3')](_0xe0ec('0xb')));}else{return this['getDataValue']('values');}},'set':function(_0x3f6ac2){if(Array[_0xe0ec('0xc')](_0x3f6ac2)){this['setDataValue'](_0xe0ec('0xb'),JSON[_0xe0ec('0xd')](_0x3f6ac2));}else{this['setDataValue'](_0xe0ec('0xb'),_0x3f6ac2);}}},'required':{'type':Sequelize[_0xe0ec('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xe0ec('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0xe0ec('0xf'))}};