Built motion from commit 1fa89557.|2.6.10
[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 _0x8e94=['path','exports','define','report_mail_transfer','uniqueid','lodash','util','api','bluebird'];(function(_0x13fa74,_0x2de84c){var _0x230227=function(_0x145e0d){while(--_0x145e0d){_0x13fa74['push'](_0x13fa74['shift']());}};_0x230227(++_0x2de84c);}(_0x8e94,0xf8));var _0x48e9=function(_0x45313f,_0x46caf4){_0x45313f=_0x45313f-0x0;var _0x402910=_0x8e94[_0x45313f];return _0x402910;};'use strict';var _=require(_0x48e9('0x0'));var util=require(_0x48e9('0x1'));var logger=require('../../config/logger')(_0x48e9('0x2'));var moment=require('moment');var BPromise=require(_0x48e9('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x48e9('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./mailTransferReport.attributes');module[_0x48e9('0x5')]=function(_0x20d724,_0x5d6996){return _0x20d724[_0x48e9('0x6')]('MailTransferReport',attributes,{'tableName':_0x48e9('0x7'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x48e9('0x8')]}],'timestamps':!![]});};