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