Built motion from commit c0cdc9d8.|2.6.28
[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 _0x45aa=['../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./mailTransferReport.attributes','exports','define','MailTransferReport','report_mail_transfer','uniqueid','util'];(function(_0x323749,_0x1f9fe7){var _0xa1ba97=function(_0x5436df){while(--_0x5436df){_0x323749['push'](_0x323749['shift']());}};_0xa1ba97(++_0x1f9fe7);}(_0x45aa,0xdf));var _0xa45a=function(_0x467e63,_0x1c85e8){_0x467e63=_0x467e63-0x0;var _0x54cbce=_0x45aa[_0x467e63];return _0x54cbce;};'use strict';var _=require('lodash');var util=require(_0xa45a('0x0'));var logger=require(_0xa45a('0x1'))(_0xa45a('0x2'));var moment=require(_0xa45a('0x3'));var BPromise=require('bluebird');var rp=require(_0xa45a('0x4'));var fs=require('fs');var path=require(_0xa45a('0x5'));var rimraf=require(_0xa45a('0x6'));var config=require(_0xa45a('0x7'));var attributes=require(_0xa45a('0x8'));module[_0xa45a('0x9')]=function(_0x38cd0c,_0x527758){return _0x38cd0c[_0xa45a('0xa')](_0xa45a('0xb'),attributes,{'tableName':_0xa45a('0xc'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xa45a('0xd')]}],'timestamps':!![]});};