2a258cd339ecaf9d4e10702c4ac334aba17dc4aa
[motion2.git] / server / api / schedule / schedule.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 _0xa280=['hours','ENUM','pdf','xlsx','csv','custom','default','TEXT','BOOLEAN','sequelize','STRING','0\x200\x20*\x20*\x20*','DATE','INTEGER','years','months','weeks','days'];(function(_0x4d30ad,_0x207204){var _0x52e687=function(_0x2c409f){while(--_0x2c409f){_0x4d30ad['push'](_0x4d30ad['shift']());}};_0x52e687(++_0x207204);}(_0xa280,0x195));var _0x0a28=function(_0x5abb9c,_0x32f2eb){_0x5abb9c=_0x5abb9c-0x0;var _0x33916e=_0xa280[_0x5abb9c];return _0x33916e;};'use strict';var Sequelize=require(_0x0a28('0x0'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x0a28('0x1')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x0a28('0x1')],'allowNull':![],'defaultValue':_0x0a28('0x2')},'startAt':{'type':Sequelize[_0x0a28('0x3')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x0a28('0x4')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0x0a28('0x5'),'quarters',_0x0a28('0x6'),_0x0a28('0x7'),_0x0a28('0x8'),_0x0a28('0x9'),'minutes'),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x0a28('0xa')]('csv',_0x0a28('0xb'),_0x0a28('0xc')),'allowNull':![],'defaultValue':_0x0a28('0xd')},'type':{'type':Sequelize[_0x0a28('0xa')](_0x0a28('0xe'),_0x0a28('0xf')),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize['STRING']},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize[_0x0a28('0x10')]},'sendIfEmpty':{'type':Sequelize[_0x0a28('0x11')],'defaultValue':!![]}};