6637eaa7578f78c1259939594feb6975ba9fb733
[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 _0xb079=['define','report_mail_transfer','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./mailTransferReport.attributes','exports'];(function(_0x1df498,_0x119fb2){var _0x5c1da3=function(_0xa58afa){while(--_0xa58afa){_0x1df498['push'](_0x1df498['shift']());}};_0x5c1da3(++_0x119fb2);}(_0xb079,0x1c9));var _0x9b07=function(_0x2bcbc3,_0x6bf084){_0x2bcbc3=_0x2bcbc3-0x0;var _0x4d1775=_0xb079[_0x2bcbc3];return _0x4d1775;};'use strict';var _=require('lodash');var util=require(_0x9b07('0x0'));var logger=require(_0x9b07('0x1'))(_0x9b07('0x2'));var moment=require(_0x9b07('0x3'));var BPromise=require(_0x9b07('0x4'));var rp=require(_0x9b07('0x5'));var fs=require('fs');var path=require(_0x9b07('0x6'));var rimraf=require(_0x9b07('0x7'));var config=require(_0x9b07('0x8'));var attributes=require(_0x9b07('0x9'));module[_0x9b07('0xa')]=function(_0x4a6f57,_0x1ebf90){return _0x4a6f57[_0x9b07('0xb')]('MailTransferReport',attributes,{'tableName':_0x9b07('0xc'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};