058057aaf5cc55510360fcbb66c4603bd2b926b0
[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 _0x653e=['define','MailQueueReport','report_mail_queue','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./mailQueueReport.attributes'];(function(_0x1d9c1c,_0x1c84b2){var _0x3f0156=function(_0x301b5b){while(--_0x301b5b){_0x1d9c1c['push'](_0x1d9c1c['shift']());}};_0x3f0156(++_0x1c84b2);}(_0x653e,0xba));var _0xe653=function(_0x1fafa5,_0x1aa281){_0x1fafa5=_0x1fafa5-0x0;var _0xcf08c9=_0x653e[_0x1fafa5];return _0xcf08c9;};'use strict';var _=require(_0xe653('0x0'));var util=require(_0xe653('0x1'));var logger=require(_0xe653('0x2'))(_0xe653('0x3'));var moment=require(_0xe653('0x4'));var BPromise=require(_0xe653('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe653('0x6'));var rimraf=require(_0xe653('0x7'));var config=require(_0xe653('0x8'));var attributes=require(_0xe653('0x9'));module['exports']=function(_0x3fca36,_0x2fba6d){return _0x3fca36[_0xe653('0xa')](_0xe653('0xb'),attributes,{'tableName':_0xe653('0xc'),'paranoid':![],'indexes':[{'name':_0xe653('0xd'),'fields':[_0xe653('0xd')]}],'timestamps':!![]});};