Built motion from commit f7863d46.|2.5.41
[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 _0xac8d=['rimraf','./mailTransferReport.attributes','exports','define','MailTransferReport','report_mail_transfer','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x471592,_0x24cbda){var _0x59fc24=function(_0x2ba4ee){while(--_0x2ba4ee){_0x471592['push'](_0x471592['shift']());}};_0x59fc24(++_0x24cbda);}(_0xac8d,0x1d8));var _0xdac8=function(_0x5e964f,_0x42e8a9){_0x5e964f=_0x5e964f-0x0;var _0x31834e=_0xac8d[_0x5e964f];return _0x31834e;};'use strict';var _=require(_0xdac8('0x0'));var util=require(_0xdac8('0x1'));var logger=require(_0xdac8('0x2'))(_0xdac8('0x3'));var moment=require(_0xdac8('0x4'));var BPromise=require(_0xdac8('0x5'));var rp=require(_0xdac8('0x6'));var fs=require('fs');var path=require(_0xdac8('0x7'));var rimraf=require(_0xdac8('0x8'));var config=require('../../config/environment');var attributes=require(_0xdac8('0x9'));module[_0xdac8('0xa')]=function(_0x370d70,_0x13d70e){return _0x370d70[_0xdac8('0xb')](_0xdac8('0xc'),attributes,{'tableName':_0xdac8('0xd'),'paranoid':![],'indexes':[{'name':_0xdac8('0xe'),'fields':[_0xdac8('0xe')]}],'timestamps':!![]});};