81cd998e843fa104add7653d59ce46c71b9e789e
[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 _0x087b=['STRING','contest_mailbox','setDataValue','email','string','trim','central','ENUM','yes','TINYINT(4)','TIMESTAMP','INTEGER','VIRTUAL','getDataValue','\x20-\x20','mailbox','sequelize','exports','from-voicemail'];(function(_0x4834e2,_0x45bfd8){var _0xd80183=function(_0x542840){while(--_0x542840){_0x4834e2['push'](_0x4834e2['shift']());}};_0xd80183(++_0x45bfd8);}(_0x087b,0x11a));var _0xb087=function(_0x38ced4,_0x24263f){_0x38ced4=_0x38ced4-0x0;var _0x547c07=_0x087b[_0x38ced4];return _0x547c07;};'use strict';var Sequelize=require(_0xb087('0x0'));module[_0xb087('0x1')]={'customer_id':{'type':Sequelize['STRING']},'context':{'type':Sequelize['STRING'],'defaultValue':_0xb087('0x2'),'unique':'contest_mailbox'},'mailbox':{'type':Sequelize[_0xb087('0x3')],'defaultValue':'','allowNull':![],'unique':_0xb087('0x4')},'password':{'type':Sequelize[_0xb087('0x3')]},'fullname':{'type':Sequelize[_0xb087('0x3')]},'email':{'type':Sequelize[_0xb087('0x3')],'validate':{'isEmail':!![]},'set':function(_0x46e106){this[_0xb087('0x5')](_0xb087('0x6'),typeof _0x46e106===_0xb087('0x7')&&_0x46e106[_0xb087('0x8')]()?_0x46e106[_0xb087('0x8')]():null);}},'pager':{'type':Sequelize[_0xb087('0x3')]},'tz':{'type':Sequelize[_0xb087('0x3')],'defaultValue':_0xb087('0x9')},'attach':{'type':Sequelize[_0xb087('0xa')](_0xb087('0xb'),'no'),'defaultValue':_0xb087('0xb'),'allowNull':![]},'saycid':{'type':Sequelize['ENUM'](_0xb087('0xb'),'no'),'defaultValue':_0xb087('0xb'),'allowNull':![]},'dialout':{'type':Sequelize[_0xb087('0x3')]},'callback':{'type':Sequelize[_0xb087('0x3')]},'review':{'type':Sequelize[_0xb087('0xa')](_0xb087('0xb'),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize[_0xb087('0xa')]('yes','no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize[_0xb087('0xa')](_0xb087('0xb'),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize[_0xb087('0xa')]('yes','no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':_0xb087('0xc'),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize[_0xb087('0xa')](_0xb087('0xb'),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize[_0xb087('0xa')](_0xb087('0xb'),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize[_0xb087('0xa')](_0xb087('0xb'),'no'),'defaultValue':_0xb087('0xb'),'allowNull':![]},'forcename':{'type':Sequelize[_0xb087('0xa')](_0xb087('0xb'),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize['ENUM'](_0xb087('0xb'),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0xb087('0xa')]('yes','no'),'defaultValue':_0xb087('0xb'),'allowNull':![]},'stamp':{'type':_0xb087('0xd')},'emailsubject':{'type':Sequelize[_0xb087('0x3')]},'emailbody':{'type':Sequelize['STRING']},'maxsecs':{'type':Sequelize[_0xb087('0xe')](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0xb087('0xe')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize[_0xb087('0xf')],'get':function(){return this[_0xb087('0x10')]('fullname')+_0xb087('0x11')+this[_0xb087('0x10')](_0xb087('0x12'));}}};