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