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