Built motion from commit 19a84241.|2.5.34
[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 _0x0aee=['uniqueid','lodash','../../config/logger','moment','path','rimraf','../../config/environment','exports','define','MailTransferReport','report_mail_transfer'];(function(_0x3ac3f6,_0x29c49c){var _0x5a8ef2=function(_0x114e2d){while(--_0x114e2d){_0x3ac3f6['push'](_0x3ac3f6['shift']());}};_0x5a8ef2(++_0x29c49c);}(_0x0aee,0x1a3));var _0xe0ae=function(_0x2e2afd,_0x52647d){_0x2e2afd=_0x2e2afd-0x0;var _0x388efe=_0x0aee[_0x2e2afd];return _0x388efe;};'use strict';var _=require(_0xe0ae('0x0'));var util=require('util');var logger=require(_0xe0ae('0x1'))('api');var moment=require(_0xe0ae('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xe0ae('0x3'));var rimraf=require(_0xe0ae('0x4'));var config=require(_0xe0ae('0x5'));var attributes=require('./mailTransferReport.attributes');module[_0xe0ae('0x6')]=function(_0x28eae7,_0x532ba5){return _0x28eae7[_0xe0ae('0x7')](_0xe0ae('0x8'),attributes,{'tableName':_0xe0ae('0x9'),'paranoid':![],'indexes':[{'name':_0xe0ae('0xa'),'fields':[_0xe0ae('0xa')]}],'timestamps':!![]});};