Built motion from commit ddca4d0d.|2.5.47
[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 _0x5e61=['path','rimraf','./mailQueueReport.attributes','exports','define','MailQueueReport','report_mail_queue','uniqueid','lodash','../../config/logger','api','bluebird','request-promise'];(function(_0x3277fc,_0x53451a){var _0x6d1480=function(_0x6d4b7b){while(--_0x6d4b7b){_0x3277fc['push'](_0x3277fc['shift']());}};_0x6d1480(++_0x53451a);}(_0x5e61,0x126));var _0x15e6=function(_0x26e4ed,_0x10625f){_0x26e4ed=_0x26e4ed-0x0;var _0x10db8d=_0x5e61[_0x26e4ed];return _0x10db8d;};'use strict';var _=require(_0x15e6('0x0'));var util=require('util');var logger=require(_0x15e6('0x1'))(_0x15e6('0x2'));var moment=require('moment');var BPromise=require(_0x15e6('0x3'));var rp=require(_0x15e6('0x4'));var fs=require('fs');var path=require(_0x15e6('0x5'));var rimraf=require(_0x15e6('0x6'));var config=require('../../config/environment');var attributes=require(_0x15e6('0x7'));module[_0x15e6('0x8')]=function(_0x41fb99,_0x5c4f9f){return _0x41fb99[_0x15e6('0x9')](_0x15e6('0xa'),attributes,{'tableName':_0x15e6('0xb'),'paranoid':![],'indexes':[{'name':_0x15e6('0xc'),'fields':[_0x15e6('0xc')]}],'timestamps':!![]});};