5fc6b9473489d8114f5d90d371517ec5e8b29566
[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 _0x6bf2=['report_mail_transfer','uniqueid','lodash','../../config/logger','api','moment','../../config/environment','./mailTransferReport.attributes','exports','MailTransferReport'];(function(_0x3230d9,_0x5985bc){var _0x399e30=function(_0x4f6156){while(--_0x4f6156){_0x3230d9['push'](_0x3230d9['shift']());}};_0x399e30(++_0x5985bc);}(_0x6bf2,0x188));var _0x26bf=function(_0x305ac2,_0x3fae6e){_0x305ac2=_0x305ac2-0x0;var _0x54cd61=_0x6bf2[_0x305ac2];return _0x54cd61;};'use strict';var _=require(_0x26bf('0x0'));var util=require('util');var logger=require(_0x26bf('0x1'))(_0x26bf('0x2'));var moment=require(_0x26bf('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x26bf('0x4'));var attributes=require(_0x26bf('0x5'));module[_0x26bf('0x6')]=function(_0x234e22,_0x593735){return _0x234e22['define'](_0x26bf('0x7'),attributes,{'tableName':_0x26bf('0x8'),'paranoid':![],'indexes':[{'name':_0x26bf('0x9'),'fields':[_0x26bf('0x9')]}],'timestamps':!![]});};