70454f56275579c88d67a38cc78ad54a3ff4f41f
[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 _0x943a=['lodash','api','moment','bluebird','rimraf','../../config/environment','exports','report_mail_transfer','uniqueid'];(function(_0xf485c1,_0x303495){var _0x5f4a1a=function(_0x39b055){while(--_0x39b055){_0xf485c1['push'](_0xf485c1['shift']());}};_0x5f4a1a(++_0x303495);}(_0x943a,0xfc));var _0xa943=function(_0x2fd71a,_0x3b7db6){_0x2fd71a=_0x2fd71a-0x0;var _0x497a1f=_0x943a[_0x2fd71a];return _0x497a1f;};'use strict';var _=require(_0xa943('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xa943('0x1'));var moment=require(_0xa943('0x2'));var BPromise=require(_0xa943('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xa943('0x4'));var config=require(_0xa943('0x5'));var attributes=require('./mailTransferReport.attributes');module[_0xa943('0x6')]=function(_0x441e94,_0x1069d5){return _0x441e94['define']('MailTransferReport',attributes,{'tableName':_0xa943('0x7'),'paranoid':![],'indexes':[{'name':_0xa943('0x8'),'fields':[_0xa943('0x8')]}],'timestamps':!![]});};