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