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 _0xcdcb=['bluebird','path','rimraf','exports','define','MailQueueReport','uniqueid','util','../../config/logger','api','moment'];(function(_0x440b8c,_0x49c31a){var _0x40b249=function(_0x62fbe7){while(--_0x62fbe7){_0x440b8c['push'](_0x440b8c['shift']());}};_0x40b249(++_0x49c31a);}(_0xcdcb,0x75));var _0xbcdc=function(_0xe69aed,_0x295338){_0xe69aed=_0xe69aed-0x0;var _0x101cab=_0xcdcb[_0xe69aed];return _0x101cab;};'use strict';var _=require('lodash');var util=require(_0xbcdc('0x0'));var logger=require(_0xbcdc('0x1'))(_0xbcdc('0x2'));var moment=require(_0xbcdc('0x3'));var BPromise=require(_0xbcdc('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbcdc('0x5'));var rimraf=require(_0xbcdc('0x6'));var config=require('../../config/environment');var attributes=require('./mailQueueReport.attributes');module[_0xbcdc('0x7')]=function(_0x5b5143,_0x48a0ab){return _0x5b5143[_0xbcdc('0x8')](_0xbcdc('0x9'),attributes,{'tableName':'report_mail_queue','paranoid':![],'indexes':[{'name':_0xbcdc('0xa'),'fields':[_0xbcdc('0xa')]}],'timestamps':!![]});};