Built motion from commit b0a9a629.|2.6.33
[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 _0x6b1d=['bluebird','request-promise','path','../../config/environment','exports','define','MailTransferReport','report_mail_transfer','uniqueid','util','api','moment'];(function(_0x58e7be,_0x4ff570){var _0x56589e=function(_0x5f1d45){while(--_0x5f1d45){_0x58e7be['push'](_0x58e7be['shift']());}};_0x56589e(++_0x4ff570);}(_0x6b1d,0xc9));var _0xd6b1=function(_0x746739,_0x289561){_0x746739=_0x746739-0x0;var _0x4b7447=_0x6b1d[_0x746739];return _0x4b7447;};'use strict';var _=require('lodash');var util=require(_0xd6b1('0x0'));var logger=require('../../config/logger')(_0xd6b1('0x1'));var moment=require(_0xd6b1('0x2'));var BPromise=require(_0xd6b1('0x3'));var rp=require(_0xd6b1('0x4'));var fs=require('fs');var path=require(_0xd6b1('0x5'));var rimraf=require('rimraf');var config=require(_0xd6b1('0x6'));var attributes=require('./mailTransferReport.attributes');module[_0xd6b1('0x7')]=function(_0x37345b,_0x106639){return _0x37345b[_0xd6b1('0x8')](_0xd6b1('0x9'),attributes,{'tableName':_0xd6b1('0xa'),'paranoid':![],'indexes':[{'name':_0xd6b1('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};