Built motion from commit ce97982f.|2.6.29
[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 _0x4e6b=['../../config/environment','./mailQueueReport.attributes','exports','define','MailQueueReport','report_mail_queue','lodash','util','api','bluebird','request-promise','path','rimraf'];(function(_0x3d95f8,_0x45f525){var _0x583a21=function(_0x127b2e){while(--_0x127b2e){_0x3d95f8['push'](_0x3d95f8['shift']());}};_0x583a21(++_0x45f525);}(_0x4e6b,0x172));var _0xb4e6=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x4e6b[_0x3b380d];return _0x54502b;};'use strict';var _=require(_0xb4e6('0x0'));var util=require(_0xb4e6('0x1'));var logger=require('../../config/logger')(_0xb4e6('0x2'));var moment=require('moment');var BPromise=require(_0xb4e6('0x3'));var rp=require(_0xb4e6('0x4'));var fs=require('fs');var path=require(_0xb4e6('0x5'));var rimraf=require(_0xb4e6('0x6'));var config=require(_0xb4e6('0x7'));var attributes=require(_0xb4e6('0x8'));module[_0xb4e6('0x9')]=function(_0x1d7883,_0x1cda58){return _0x1d7883[_0xb4e6('0xa')](_0xb4e6('0xb'),attributes,{'tableName':_0xb4e6('0xc'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};