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