2b4f79664c2bb62c7c4d4517d451febf38540d10
[motion2.git] / server / api / voiceMail / voiceMail.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x450d=['sequelize','exports','STRING','from-voicemail','contest_mailbox','email','string','trim','central','ENUM','yes','INTEGER','VIRTUAL','getDataValue','mailbox'];(function(_0x42ea39,_0x3edf4b){var _0x5dc5f7=function(_0x33a529){while(--_0x33a529){_0x42ea39['push'](_0x42ea39['shift']());}};_0x5dc5f7(++_0x3edf4b);}(_0x450d,0x177));var _0xd450=function(_0xbd08b4,_0x4790ed){_0xbd08b4=_0xbd08b4-0x0;var _0x314f1e=_0x450d[_0xbd08b4];return _0x314f1e;};'use strict';var Sequelize=require(_0xd450('0x0'));module[_0xd450('0x1')]={'customer_id':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0xd450('0x2')],'defaultValue':_0xd450('0x3'),'unique':_0xd450('0x4')},'mailbox':{'type':Sequelize[_0xd450('0x2')],'defaultValue':'','allowNull':![],'unique':'contest_mailbox'},'password':{'type':Sequelize[_0xd450('0x2')]},'fullname':{'type':Sequelize[_0xd450('0x2')]},'email':{'type':Sequelize[_0xd450('0x2')],'validate':{'isEmail':!![]},'set':function(_0x4ce5b6){this['setDataValue'](_0xd450('0x5'),typeof _0x4ce5b6===_0xd450('0x6')&&_0x4ce5b6['trim']()?_0x4ce5b6[_0xd450('0x7')]():null);}},'pager':{'type':Sequelize[_0xd450('0x2')]},'tz':{'type':Sequelize[_0xd450('0x2')],'defaultValue':_0xd450('0x8')},'attach':{'type':Sequelize[_0xd450('0x9')](_0xd450('0xa'),'no'),'defaultValue':_0xd450('0xa'),'allowNull':![]},'saycid':{'type':Sequelize['ENUM'](_0xd450('0xa'),'no'),'defaultValue':_0xd450('0xa'),'allowNull':![]},'dialout':{'type':Sequelize[_0xd450('0x2')]},'callback':{'type':Sequelize[_0xd450('0x2')]},'review':{'type':Sequelize[_0xd450('0x9')]('yes','no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize[_0xd450('0x9')](_0xd450('0xa'),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize[_0xd450('0x9')](_0xd450('0xa'),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize['ENUM'](_0xd450('0xa'),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':'TINYINT(4)','defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize[_0xd450('0x9')](_0xd450('0xa'),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize[_0xd450('0x9')](_0xd450('0xa'),'no'),'defaultValue':_0xd450('0xa'),'allowNull':![]},'forcename':{'type':Sequelize[_0xd450('0x9')]('yes','no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0xd450('0x9')](_0xd450('0xa'),'no'),'defaultValue':_0xd450('0xa'),'allowNull':![]},'stamp':{'type':'TIMESTAMP'},'emailsubject':{'type':Sequelize[_0xd450('0x2')]},'emailbody':{'type':Sequelize[_0xd450('0x2')]},'maxsecs':{'type':Sequelize[_0xd450('0xb')](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0xd450('0xb')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize[_0xd450('0xc')],'get':function(){return this[_0xd450('0xd')]('fullname')+'\x20-\x20'+this[_0xd450('0xd')](_0xd450('0xe'));}}};