Built motion from commit (unavailable).|2.5.2
[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 _0x3aa4=['define','MailQueueReport','report_mail_queue','uniqueid','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./mailQueueReport.attributes','exports'];(function(_0x3ec822,_0x59a9c2){var _0x5927c6=function(_0x56a240){while(--_0x56a240){_0x3ec822['push'](_0x3ec822['shift']());}};_0x5927c6(++_0x59a9c2);}(_0x3aa4,0x11c));var _0x43aa=function(_0x38b39f,_0x59e038){_0x38b39f=_0x38b39f-0x0;var _0x5aedef=_0x3aa4[_0x38b39f];return _0x5aedef;};'use strict';var _=require('lodash');var util=require(_0x43aa('0x0'));var logger=require('../../config/logger')(_0x43aa('0x1'));var moment=require(_0x43aa('0x2'));var BPromise=require(_0x43aa('0x3'));var rp=require(_0x43aa('0x4'));var fs=require('fs');var path=require(_0x43aa('0x5'));var rimraf=require(_0x43aa('0x6'));var config=require(_0x43aa('0x7'));var attributes=require(_0x43aa('0x8'));module[_0x43aa('0x9')]=function(_0x197009,_0x1f377e){return _0x197009[_0x43aa('0xa')](_0x43aa('0xb'),attributes,{'tableName':_0x43aa('0xc'),'paranoid':![],'indexes':[{'name':_0x43aa('0xd'),'fields':[_0x43aa('0xd')]}],'timestamps':!![]});};