738abf3f1b7c02d27ac319c8e10fad2e7ce9d7ad
[motion-next.git] / server / api / voiceMail / voiceMail.attributes.js
1 const a879_0x44c2=['sequelize','INTEGER','trim','\x20-\x20','from-voicemail','STRING','mailbox','getDataValue','ENUM','contest_mailbox','TINYINT(4)','exports','fullname','string','yes'];(function(_0x2ba341,_0x14ce70){const _0x44c25d=function(_0xc19a17){while(--_0xc19a17){_0x2ba341['push'](_0x2ba341['shift']());}};_0x44c25d(++_0x14ce70);}(a879_0x44c2,0xfa));const a879_0xc19a=function(_0x2ba341,_0x14ce70){_0x2ba341=_0x2ba341-0x15e;let _0x44c25d=a879_0x44c2[_0x2ba341];return _0x44c25d;};const a879_0x4fa670=a879_0xc19a;'use strict';const {DataTypes}=require(a879_0x4fa670(0x163)),attributes={'customer_id':{'type':DataTypes[a879_0x4fa670(0x168)]},'context':{'type':DataTypes[a879_0x4fa670(0x168)],'defaultValue':a879_0x4fa670(0x167),'unique':a879_0x4fa670(0x16c)},'mailbox':{'type':DataTypes[a879_0x4fa670(0x168)],'defaultValue':'','allowNull':![],'unique':a879_0x4fa670(0x16c)},'password':{'type':DataTypes[a879_0x4fa670(0x168)]},'fullname':{'type':DataTypes[a879_0x4fa670(0x168)]},'email':{'type':DataTypes[a879_0x4fa670(0x168)],'validate':{'isEmail':!![]},'set':function(_0x5c5e2f){const _0x3eae85=a879_0x4fa670;this['setDataValue']('email',typeof _0x5c5e2f===_0x3eae85(0x161)&&_0x5c5e2f[_0x3eae85(0x165)]()?_0x5c5e2f[_0x3eae85(0x165)]():null);}},'pager':{'type':DataTypes['STRING']},'tz':{'type':DataTypes[a879_0x4fa670(0x168)],'defaultValue':'central'},'attach':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'yes','allowNull':![]},'saycid':{'type':DataTypes['ENUM'](a879_0x4fa670(0x162),'no'),'defaultValue':a879_0x4fa670(0x162),'allowNull':![]},'dialout':{'type':DataTypes['STRING']},'callback':{'type':DataTypes['STRING']},'review':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':DataTypes['ENUM'](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':a879_0x4fa670(0x15e),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':a879_0x4fa670(0x162),'allowNull':![]},'forcename':{'type':DataTypes['ENUM'](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':a879_0x4fa670(0x162),'allowNull':![]},'stamp':{'type':'TIMESTAMP'},'emailsubject':{'type':DataTypes[a879_0x4fa670(0x168)]},'emailbody':{'type':DataTypes[a879_0x4fa670(0x168)]},'maxsecs':{'type':DataTypes[a879_0x4fa670(0x164)]({'length':0xff}),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':DataTypes[a879_0x4fa670(0x164)]({'length':0xff}),'defaultValue':0x64,'allowNull':![]},'name':{'type':DataTypes['VIRTUAL'],'get':function(){const _0x5020a5=a879_0x4fa670;return this[_0x5020a5(0x16a)](_0x5020a5(0x160))+_0x5020a5(0x166)+this['getDataValue'](_0x5020a5(0x169));}}};module[a879_0x4fa670(0x15f)]['attributes']=attributes;