Built motion from commit (unavailable).|2.2.0
[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 _0x8c60=['INTEGER','VIRTUAL','getDataValue','fullname','mailbox','sequelize','exports','STRING','contest_mailbox','setDataValue','string','trim','ENUM','yes','TINYINT(4)'];(function(_0x47cfc9,_0x24fc3d){var _0x18fc41=function(_0x4cb2cd){while(--_0x4cb2cd){_0x47cfc9['push'](_0x47cfc9['shift']());}};_0x18fc41(++_0x24fc3d);}(_0x8c60,0x7d));var _0x08c6=function(_0x8b2a7f,_0x5987a7){_0x8b2a7f=_0x8b2a7f-0x0;var _0x2116e4=_0x8c60[_0x8b2a7f];return _0x2116e4;};'use strict';var Sequelize=require(_0x08c6('0x0'));module[_0x08c6('0x1')]={'customer_id':{'type':Sequelize[_0x08c6('0x2')]},'context':{'type':Sequelize['STRING'],'defaultValue':'from-voicemail','unique':_0x08c6('0x3')},'mailbox':{'type':Sequelize[_0x08c6('0x2')],'defaultValue':'','allowNull':![],'unique':_0x08c6('0x3')},'password':{'type':Sequelize[_0x08c6('0x2')]},'fullname':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0x08c6('0x2')],'validate':{'isEmail':!![]},'set':function(_0x45ec9d){this[_0x08c6('0x4')]('email',typeof _0x45ec9d===_0x08c6('0x5')&&_0x45ec9d[_0x08c6('0x6')]()?_0x45ec9d[_0x08c6('0x6')]():null);}},'pager':{'type':Sequelize[_0x08c6('0x2')]},'tz':{'type':Sequelize['STRING'],'defaultValue':'central'},'attach':{'type':Sequelize[_0x08c6('0x7')](_0x08c6('0x8'),'no'),'defaultValue':_0x08c6('0x8'),'allowNull':![]},'saycid':{'type':Sequelize[_0x08c6('0x7')](_0x08c6('0x8'),'no'),'defaultValue':_0x08c6('0x8'),'allowNull':![]},'dialout':{'type':Sequelize[_0x08c6('0x2')]},'callback':{'type':Sequelize['STRING']},'review':{'type':Sequelize['ENUM'](_0x08c6('0x8'),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize[_0x08c6('0x7')](_0x08c6('0x8'),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize[_0x08c6('0x7')](_0x08c6('0x8'),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':_0x08c6('0x9'),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize['ENUM'](_0x08c6('0x8'),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize['ENUM'](_0x08c6('0x8'),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize[_0x08c6('0x7')](_0x08c6('0x8'),'no'),'defaultValue':_0x08c6('0x8'),'allowNull':![]},'forcename':{'type':Sequelize[_0x08c6('0x7')](_0x08c6('0x8'),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize[_0x08c6('0x7')](_0x08c6('0x8'),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0x08c6('0x7')](_0x08c6('0x8'),'no'),'defaultValue':_0x08c6('0x8'),'allowNull':![]},'stamp':{'type':'TIMESTAMP'},'emailsubject':{'type':Sequelize['STRING']},'emailbody':{'type':Sequelize[_0x08c6('0x2')]},'maxsecs':{'type':Sequelize[_0x08c6('0xa')](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0x08c6('0xa')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize[_0x08c6('0xb')],'get':function(){return this[_0x08c6('0xc')](_0x08c6('0xd'))+'\x20-\x20'+this[_0x08c6('0xc')](_0x08c6('0xe'));}}};