1b84eb0b9327f40edfc2665e0494e6778a61b9b3
[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 _0x7344=['request-promise','rimraf','../../config/environment','./mailQueueReport.attributes','exports','define','MailQueueReport','report_mail_queue','uniqueid','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x3cad16,_0x3fe124){var _0x524bbe=function(_0x4a5376){while(--_0x4a5376){_0x3cad16['push'](_0x3cad16['shift']());}};_0x524bbe(++_0x3fe124);}(_0x7344,0xbd));var _0x4734=function(_0x2b70b6,_0x916a68){_0x2b70b6=_0x2b70b6-0x0;var _0x31e91c=_0x7344[_0x2b70b6];return _0x31e91c;};'use strict';var _=require(_0x4734('0x0'));var util=require(_0x4734('0x1'));var logger=require(_0x4734('0x2'))(_0x4734('0x3'));var moment=require(_0x4734('0x4'));var BPromise=require(_0x4734('0x5'));var rp=require(_0x4734('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4734('0x7'));var config=require(_0x4734('0x8'));var attributes=require(_0x4734('0x9'));module[_0x4734('0xa')]=function(_0x17ee12,_0x245211){return _0x17ee12[_0x4734('0xb')](_0x4734('0xc'),attributes,{'tableName':_0x4734('0xd'),'paranoid':![],'indexes':[{'name':_0x4734('0xe'),'fields':['uniqueid']}],'timestamps':!![]});};