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