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