5be7513fe5957e91770dc0f64a67556986b35164
[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 _0xe22e=['util','api','bluebird','request-promise','path','rimraf','./mailQueueReport.attributes','exports','define','MailQueueReport','report_mail_queue','uniqueid','lodash'];(function(_0x16de68,_0x33d7ff){var _0x1c277e=function(_0x1d8549){while(--_0x1d8549){_0x16de68['push'](_0x16de68['shift']());}};_0x1c277e(++_0x33d7ff);}(_0xe22e,0x1b9));var _0xee22=function(_0xc8db6b,_0x320abd){_0xc8db6b=_0xc8db6b-0x0;var _0x12cb81=_0xe22e[_0xc8db6b];return _0x12cb81;};'use strict';var _=require(_0xee22('0x0'));var util=require(_0xee22('0x1'));var logger=require('../../config/logger')(_0xee22('0x2'));var moment=require('moment');var BPromise=require(_0xee22('0x3'));var rp=require(_0xee22('0x4'));var fs=require('fs');var path=require(_0xee22('0x5'));var rimraf=require(_0xee22('0x6'));var config=require('../../config/environment');var attributes=require(_0xee22('0x7'));module[_0xee22('0x8')]=function(_0x7785f7,_0x4ccf33){return _0x7785f7[_0xee22('0x9')](_0xee22('0xa'),attributes,{'tableName':_0xee22('0xb'),'paranoid':![],'indexes':[{'name':_0xee22('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};