fb7e8e048bc6dbc7505e1d8ccedde83cd0c0c8cb
[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 _0xef87=['uniqueid','lodash','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./mailQueueReport.attributes','define','MailQueueReport','report_mail_queue'];(function(_0x6347f4,_0x417d8b){var _0x4e8443=function(_0x397062){while(--_0x397062){_0x6347f4['push'](_0x6347f4['shift']());}};_0x4e8443(++_0x417d8b);}(_0xef87,0x1bb));var _0x7ef8=function(_0x1a049e,_0x20b220){_0x1a049e=_0x1a049e-0x0;var _0x39c57a=_0xef87[_0x1a049e];return _0x39c57a;};'use strict';var _=require(_0x7ef8('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x7ef8('0x1'));var moment=require(_0x7ef8('0x2'));var BPromise=require(_0x7ef8('0x3'));var rp=require(_0x7ef8('0x4'));var fs=require('fs');var path=require(_0x7ef8('0x5'));var rimraf=require(_0x7ef8('0x6'));var config=require(_0x7ef8('0x7'));var attributes=require(_0x7ef8('0x8'));module['exports']=function(_0x49e4a0,_0x3bd7b7){return _0x49e4a0[_0x7ef8('0x9')](_0x7ef8('0xa'),attributes,{'tableName':_0x7ef8('0xb'),'paranoid':![],'indexes':[{'name':_0x7ef8('0xc'),'fields':[_0x7ef8('0xc')]}],'timestamps':!![]});};