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