af32e519071dc496cccca1c62a71176bc808a6e1
[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 _0x6ad2=['rimraf','./mailQueueReport.attributes','exports','define','MailQueueReport','report_mail_queue','uniqueid','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x1f334f,_0x109cdb){var _0x192af4=function(_0x5631ef){while(--_0x5631ef){_0x1f334f['push'](_0x1f334f['shift']());}};_0x192af4(++_0x109cdb);}(_0x6ad2,0x159));var _0x26ad=function(_0x303875,_0x29fc7f){_0x303875=_0x303875-0x0;var _0x507814=_0x6ad2[_0x303875];return _0x507814;};'use strict';var _=require(_0x26ad('0x0'));var util=require(_0x26ad('0x1'));var logger=require(_0x26ad('0x2'))(_0x26ad('0x3'));var moment=require(_0x26ad('0x4'));var BPromise=require(_0x26ad('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x26ad('0x6'));var config=require('../../config/environment');var attributes=require(_0x26ad('0x7'));module[_0x26ad('0x8')]=function(_0x2b7467,_0x38ddbc){return _0x2b7467[_0x26ad('0x9')](_0x26ad('0xa'),attributes,{'tableName':_0x26ad('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x26ad('0xc')]}],'timestamps':!![]});};