37ee330e7713dc8a3a28d1099f330600677161d9
[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 _0x31e2=['TIMESTAMP','INTEGER','VIRTUAL','getDataValue','fullname','STRING','from-voicemail','contest_mailbox','setDataValue','trim','central','yes','ENUM','TINYINT(4)'];(function(_0x5659f8,_0x4ea1e6){var _0x2860b8=function(_0x56cb48){while(--_0x56cb48){_0x5659f8['push'](_0x5659f8['shift']());}};_0x2860b8(++_0x4ea1e6);}(_0x31e2,0x9f));var _0x231e=function(_0x11f249,_0x4ca4a8){_0x11f249=_0x11f249-0x0;var _0x5c3656=_0x31e2[_0x11f249];return _0x5c3656;};'use strict';var Sequelize=require('sequelize');module['exports']={'customer_id':{'type':Sequelize[_0x231e('0x0')]},'context':{'type':Sequelize['STRING'],'defaultValue':_0x231e('0x1'),'unique':_0x231e('0x2')},'mailbox':{'type':Sequelize['STRING'],'defaultValue':'','allowNull':![],'unique':_0x231e('0x2')},'password':{'type':Sequelize[_0x231e('0x0')]},'fullname':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0x231e('0x0')],'validate':{'isEmail':!![]},'set':function(_0x1e1320){this[_0x231e('0x3')]('email',typeof _0x1e1320==='string'&&_0x1e1320['trim']()?_0x1e1320[_0x231e('0x4')]():null);}},'pager':{'type':Sequelize[_0x231e('0x0')]},'tz':{'type':Sequelize[_0x231e('0x0')],'defaultValue':_0x231e('0x5')},'attach':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':_0x231e('0x6'),'allowNull':![]},'saycid':{'type':Sequelize[_0x231e('0x7')](_0x231e('0x6'),'no'),'defaultValue':_0x231e('0x6'),'allowNull':![]},'dialout':{'type':Sequelize[_0x231e('0x0')]},'callback':{'type':Sequelize[_0x231e('0x0')]},'review':{'type':Sequelize[_0x231e('0x7')](_0x231e('0x6'),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize['ENUM'](_0x231e('0x6'),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize[_0x231e('0x7')](_0x231e('0x6'),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':_0x231e('0x8'),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize[_0x231e('0x7')](_0x231e('0x6'),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize['ENUM'](_0x231e('0x6'),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize[_0x231e('0x7')](_0x231e('0x6'),'no'),'defaultValue':_0x231e('0x6'),'allowNull':![]},'forcename':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize[_0x231e('0x7')](_0x231e('0x6'),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0x231e('0x7')](_0x231e('0x6'),'no'),'defaultValue':'yes','allowNull':![]},'stamp':{'type':_0x231e('0x9')},'emailsubject':{'type':Sequelize[_0x231e('0x0')]},'emailbody':{'type':Sequelize['STRING']},'maxsecs':{'type':Sequelize[_0x231e('0xa')](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0x231e('0xa')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize[_0x231e('0xb')],'get':function(){return this[_0x231e('0xc')](_0x231e('0xd'))+'\x20-\x20'+this[_0x231e('0xc')]('mailbox');}}};