1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x8f3b=['define','MailTransferReport','report_mail_transfer','uniqueid','lodash','util','api','moment','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x53ccf2,_0x13cb67){var _0x5a2964=function(_0x3b0514){while(--_0x3b0514){_0x53ccf2['push'](_0x53ccf2['shift']());}};_0x5a2964(++_0x13cb67);}(_0x8f3b,0xee));var _0xb8f3=function(_0x29c71e,_0x1c8c16){_0x29c71e=_0x29c71e-0x0;var _0x385eb0=_0x8f3b[_0x29c71e];return _0x385eb0;};'use strict';var _=require(_0xb8f3('0x0'));var util=require(_0xb8f3('0x1'));var logger=require('../../config/logger')(_0xb8f3('0x2'));var moment=require(_0xb8f3('0x3'));var BPromise=require('bluebird');var rp=require(_0xb8f3('0x4'));var fs=require('fs');var path=require(_0xb8f3('0x5'));var rimraf=require(_0xb8f3('0x6'));var config=require(_0xb8f3('0x7'));var attributes=require('./mailTransferReport.attributes');module[_0xb8f3('0x8')]=function(_0x31f052,_0x3efd05){return _0x31f052[_0xb8f3('0x9')](_0xb8f3('0xa'),attributes,{'tableName':_0xb8f3('0xb'),'paranoid':![],'indexes':[{'name':_0xb8f3('0xc'),'fields':[_0xb8f3('0xc')]}],'timestamps':!![]});};