58274c284744cf05eabd169be4d2c1634b163f4f
[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 _0xe29b=['../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports','define','MailQueueReport','report_mail_queue','uniqueid','util'];(function(_0x522b12,_0x1f1edd){var _0x45ba05=function(_0x8c2b47){while(--_0x8c2b47){_0x522b12['push'](_0x522b12['shift']());}};_0x45ba05(++_0x1f1edd);}(_0xe29b,0x81));var _0xbe29=function(_0x3c8f41,_0x44151b){_0x3c8f41=_0x3c8f41-0x0;var _0x3c2ebd=_0xe29b[_0x3c8f41];return _0x3c2ebd;};'use strict';var _=require('lodash');var util=require(_0xbe29('0x0'));var logger=require(_0xbe29('0x1'))(_0xbe29('0x2'));var moment=require(_0xbe29('0x3'));var BPromise=require(_0xbe29('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbe29('0x5'));var rimraf=require(_0xbe29('0x6'));var config=require(_0xbe29('0x7'));var attributes=require('./mailQueueReport.attributes');module[_0xbe29('0x8')]=function(_0x1b8291,_0x3fc6fd){return _0x1b8291[_0xbe29('0x9')](_0xbe29('0xa'),attributes,{'tableName':_0xbe29('0xb'),'paranoid':![],'indexes':[{'name':_0xbe29('0xc'),'fields':[_0xbe29('0xc')]}],'timestamps':!![]});};