3524dfe5225d29c2fe51af33ccfe85f21e44e108
[motion2.git] / server / api / mailTransferReport / mailTransferReport.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 _0x3c97=['exports','define','MailTransferReport','report_mail_transfer','uniqueid','lodash','util','api','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0xf50820,_0x56f041){var _0x2a9b10=function(_0x33f0f4){while(--_0x33f0f4){_0xf50820['push'](_0xf50820['shift']());}};_0x2a9b10(++_0x56f041);}(_0x3c97,0x1b2));var _0x73c9=function(_0x504483,_0x58f86a){_0x504483=_0x504483-0x0;var _0x538395=_0x3c97[_0x504483];return _0x538395;};'use strict';var _=require(_0x73c9('0x0'));var util=require(_0x73c9('0x1'));var logger=require('../../config/logger')(_0x73c9('0x2'));var moment=require(_0x73c9('0x3'));var BPromise=require(_0x73c9('0x4'));var rp=require(_0x73c9('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x73c9('0x6'));var config=require(_0x73c9('0x7'));var attributes=require('./mailTransferReport.attributes');module[_0x73c9('0x8')]=function(_0x2963ce,_0x436c1d){return _0x2963ce[_0x73c9('0x9')](_0x73c9('0xa'),attributes,{'tableName':_0x73c9('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x73c9('0xc')]}],'timestamps':!![]});};