Built motion from commit (unavailable).|2.4.18
[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 _0x2eb1=['path','../../config/environment','exports','define','MailQueueReport','report_mail_queue','uniqueid','lodash','util','api','moment','bluebird','request-promise'];(function(_0xe947,_0x26e99f){var _0x79efb1=function(_0x56f321){while(--_0x56f321){_0xe947['push'](_0xe947['shift']());}};_0x79efb1(++_0x26e99f);}(_0x2eb1,0xb0));var _0x12eb=function(_0x1ed5c5,_0x132155){_0x1ed5c5=_0x1ed5c5-0x0;var _0x1af3fa=_0x2eb1[_0x1ed5c5];return _0x1af3fa;};'use strict';var _=require(_0x12eb('0x0'));var util=require(_0x12eb('0x1'));var logger=require('../../config/logger')(_0x12eb('0x2'));var moment=require(_0x12eb('0x3'));var BPromise=require(_0x12eb('0x4'));var rp=require(_0x12eb('0x5'));var fs=require('fs');var path=require(_0x12eb('0x6'));var rimraf=require('rimraf');var config=require(_0x12eb('0x7'));var attributes=require('./mailQueueReport.attributes');module[_0x12eb('0x8')]=function(_0x261315,_0x19cdd2){return _0x261315[_0x12eb('0x9')](_0x12eb('0xa'),attributes,{'tableName':_0x12eb('0xb'),'paranoid':![],'indexes':[{'name':_0x12eb('0xc'),'fields':[_0x12eb('0xc')]}],'timestamps':!![]});};