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 _0xe820=['lodash','../../config/logger','bluebird','request-promise','path','../../config/environment','exports','define','MailQueueReport','uniqueid'];(function(_0x25ecbc,_0x1d71e9){var _0x3da7f8=function(_0x48ba0c){while(--_0x48ba0c){_0x25ecbc['push'](_0x25ecbc['shift']());}};_0x3da7f8(++_0x1d71e9);}(_0xe820,0xd2));var _0x0e82=function(_0x5a5a33,_0x5b6d8d){_0x5a5a33=_0x5a5a33-0x0;var _0x395428=_0xe820[_0x5a5a33];return _0x395428;};'use strict';var _=require(_0x0e82('0x0'));var util=require('util');var logger=require(_0x0e82('0x1'))('api');var moment=require('moment');var BPromise=require(_0x0e82('0x2'));var rp=require(_0x0e82('0x3'));var fs=require('fs');var path=require(_0x0e82('0x4'));var rimraf=require('rimraf');var config=require(_0x0e82('0x5'));var attributes=require('./mailQueueReport.attributes');module[_0x0e82('0x6')]=function(_0x105e3c,_0x69e27f){return _0x105e3c[_0x0e82('0x7')](_0x0e82('0x8'),attributes,{'tableName':'report_mail_queue','paranoid':![],'indexes':[{'name':_0x0e82('0x9'),'fields':[_0x0e82('0x9')]}],'timestamps':!![]});};