5723900455e7e5aa9e15ad8d66da9877d6e43aff
[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 _0xce9d=['rimraf','./mailQueueReport.attributes','exports','define','MailQueueReport','report_mail_queue','uniqueid','lodash','util','../../config/logger','api','bluebird','path'];(function(_0xcfeda9,_0xd418ae){var _0x4826c7=function(_0x45dc9d){while(--_0x45dc9d){_0xcfeda9['push'](_0xcfeda9['shift']());}};_0x4826c7(++_0xd418ae);}(_0xce9d,0x1ce));var _0xdce9=function(_0x464537,_0x437af4){_0x464537=_0x464537-0x0;var _0x2a4f85=_0xce9d[_0x464537];return _0x2a4f85;};'use strict';var _=require(_0xdce9('0x0'));var util=require(_0xdce9('0x1'));var logger=require(_0xdce9('0x2'))(_0xdce9('0x3'));var moment=require('moment');var BPromise=require(_0xdce9('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdce9('0x5'));var rimraf=require(_0xdce9('0x6'));var config=require('../../config/environment');var attributes=require(_0xdce9('0x7'));module[_0xdce9('0x8')]=function(_0x3b2a80,_0x18841b){return _0x3b2a80[_0xdce9('0x9')](_0xdce9('0xa'),attributes,{'tableName':_0xdce9('0xb'),'paranoid':![],'indexes':[{'name':_0xdce9('0xc'),'fields':[_0xdce9('0xc')]}],'timestamps':!![]});};