4cb962c49656f3dd6b420eee526ca07798338850
[motion-next.git] / server / api / cmCustomField / cmCustomField.attributes.js
1 const a132_0xb007=['long','setDataValue','name','BOOLEAN','values','exports','STRING','type','select','isArray','ENUM','TEXT','VIRTUAL','alias','getDataValue','stringify','sequelize'];(function(_0x1ee349,_0xb007e3){const _0x4d5d74=function(_0x373bf6){while(--_0x373bf6){_0x1ee349['push'](_0x1ee349['shift']());}};_0x4d5d74(++_0xb007e3);}(a132_0xb007,0x9d));const a132_0x4d5d=function(_0x1ee349,_0xb007e3){_0x1ee349=_0x1ee349-0x0;let _0x4d5d74=a132_0xb007[_0x1ee349];return _0x4d5d74;};const _0x34ea35=a132_0x4d5d;'use strict';const Sequelize=require(_0x34ea35('0xc'));module[_0x34ea35('0x1')]={'name':{'type':Sequelize[_0x34ea35('0x8')],'get':function(){const _0x1a92b4=_0x34ea35;return this[_0x1a92b4('0xa')](_0x1a92b4('0x9'));}},'alias':{'type':Sequelize[_0x34ea35('0x2')],'allowNull':![],'set':function(_0x373bf6){const _0x26c7b2=_0x34ea35;this[_0x26c7b2('0xe')](_0x26c7b2('0x9'),_0x373bf6?_0x373bf6:this[_0x26c7b2('0xa')](_0x26c7b2('0xf')));}},'type':{'type':Sequelize[_0x34ea35('0x2')],'allowNull':![]},'values':{'type':Sequelize[_0x34ea35('0x7')](_0x34ea35('0xd')),'get':function(){const _0x208da5=_0x34ea35;return this[_0x208da5('0xa')](_0x208da5('0x3'))===_0x208da5('0x4')?JSON['parse'](this[_0x208da5('0xa')](_0x208da5('0x0'))):this['getDataValue'](_0x208da5('0x0'));},'set':function(_0x972575){const _0x1f33b6=_0x34ea35;Array[_0x1f33b6('0x5')](_0x972575)?this[_0x1f33b6('0xe')]('values',JSON[_0x1f33b6('0xb')](_0x972575)):this[_0x1f33b6('0xe')](_0x1f33b6('0x0'),_0x972575);}},'required':{'type':Sequelize[_0x34ea35('0x10')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x34ea35('0x10')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x34ea35('0x6')]('voice')}};