5da1f3d76554789dd650f9752dbe410bbc904de6
[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 _0x4f16=['uniqueid','lodash','util','../../config/logger','request-promise','path','../../config/environment','exports','define','MailTransferReport','report_mail_transfer'];(function(_0x56ff59,_0x429581){var _0x39f094=function(_0x31f87b){while(--_0x31f87b){_0x56ff59['push'](_0x56ff59['shift']());}};_0x39f094(++_0x429581);}(_0x4f16,0x11f));var _0x64f1=function(_0x5e4f42,_0x296563){_0x5e4f42=_0x5e4f42-0x0;var _0x24a54e=_0x4f16[_0x5e4f42];return _0x24a54e;};'use strict';var _=require(_0x64f1('0x0'));var util=require(_0x64f1('0x1'));var logger=require(_0x64f1('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x64f1('0x3'));var fs=require('fs');var path=require(_0x64f1('0x4'));var rimraf=require('rimraf');var config=require(_0x64f1('0x5'));var attributes=require('./mailTransferReport.attributes');module[_0x64f1('0x6')]=function(_0x1ff13e,_0x464433){return _0x1ff13e[_0x64f1('0x7')](_0x64f1('0x8'),attributes,{'tableName':_0x64f1('0x9'),'paranoid':![],'indexes':[{'name':_0x64f1('0xa'),'fields':['uniqueid']}],'timestamps':!![]});};