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