d9dbb5b4b69bb5b516b922962eefbdc90fa4e054
[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 _0x4ce6=['lodash','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','MailTransferReport','report_mail_transfer','uniqueid'];(function(_0x15f6ec,_0x54bcfc){var _0x2339d0=function(_0x5c1071){while(--_0x5c1071){_0x15f6ec['push'](_0x15f6ec['shift']());}};_0x2339d0(++_0x54bcfc);}(_0x4ce6,0x108));var _0x64ce=function(_0x5f1617,_0x46277b){_0x5f1617=_0x5f1617-0x0;var _0x3af5da=_0x4ce6[_0x5f1617];return _0x3af5da;};'use strict';var _=require(_0x64ce('0x0'));var util=require('util');var logger=require(_0x64ce('0x1'))(_0x64ce('0x2'));var moment=require(_0x64ce('0x3'));var BPromise=require(_0x64ce('0x4'));var rp=require(_0x64ce('0x5'));var fs=require('fs');var path=require(_0x64ce('0x6'));var rimraf=require('rimraf');var config=require(_0x64ce('0x7'));var attributes=require('./mailTransferReport.attributes');module['exports']=function(_0x31bc0f,_0x262751){return _0x31bc0f['define'](_0x64ce('0x8'),attributes,{'tableName':_0x64ce('0x9'),'paranoid':![],'indexes':[{'name':_0x64ce('0xa'),'fields':[_0x64ce('0xa')]}],'timestamps':!![]});};