aef4dcf63545fbb58c1a190e8579d9ccf54f526f
[motion2.git] / server / api / mailQueueReport / mailQueueReport.model.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 _0xb5be=['../../config/logger','api','moment','bluebird','request-promise','path','rimraf','exports','define','MailQueueReport','report_mail_queue','uniqueid','lodash','util'];(function(_0x45e23f,_0x4e3d26){var _0x4e8234=function(_0x37d5d8){while(--_0x37d5d8){_0x45e23f['push'](_0x45e23f['shift']());}};_0x4e8234(++_0x4e3d26);}(_0xb5be,0x116));var _0xeb5b=function(_0x4d613c,_0x55f220){_0x4d613c=_0x4d613c-0x0;var _0x301fe3=_0xb5be[_0x4d613c];return _0x301fe3;};'use strict';var _=require(_0xeb5b('0x0'));var util=require(_0xeb5b('0x1'));var logger=require(_0xeb5b('0x2'))(_0xeb5b('0x3'));var moment=require(_0xeb5b('0x4'));var BPromise=require(_0xeb5b('0x5'));var rp=require(_0xeb5b('0x6'));var fs=require('fs');var path=require(_0xeb5b('0x7'));var rimraf=require(_0xeb5b('0x8'));var config=require('../../config/environment');var attributes=require('./mailQueueReport.attributes');module[_0xeb5b('0x9')]=function(_0x169cd0,_0x1c43fd){return _0x169cd0[_0xeb5b('0xa')](_0xeb5b('0xb'),attributes,{'tableName':_0xeb5b('0xc'),'paranoid':![],'indexes':[{'name':_0xeb5b('0xd'),'fields':[_0xeb5b('0xd')]}],'timestamps':!![]});};