Built motion from commit 9d1906d1.|2.5.40
[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 _0x07b9=['../../config/logger','api','bluebird','path','rimraf','../../config/environment','./mailTransferReport.attributes','exports','MailTransferReport','report_mail_transfer','uniqueid','lodash','util'];(function(_0x11a2e3,_0x14f5af){var _0x50521c=function(_0x101c37){while(--_0x101c37){_0x11a2e3['push'](_0x11a2e3['shift']());}};_0x50521c(++_0x14f5af);}(_0x07b9,0x143));var _0x907b=function(_0x1be3b3,_0x4335ee){_0x1be3b3=_0x1be3b3-0x0;var _0x4f8b2d=_0x07b9[_0x1be3b3];return _0x4f8b2d;};'use strict';var _=require(_0x907b('0x0'));var util=require(_0x907b('0x1'));var logger=require(_0x907b('0x2'))(_0x907b('0x3'));var moment=require('moment');var BPromise=require(_0x907b('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x907b('0x5'));var rimraf=require(_0x907b('0x6'));var config=require(_0x907b('0x7'));var attributes=require(_0x907b('0x8'));module[_0x907b('0x9')]=function(_0x1f27e9,_0x4440af){return _0x1f27e9['define'](_0x907b('0xa'),attributes,{'tableName':_0x907b('0xb'),'paranoid':![],'indexes':[{'name':_0x907b('0xc'),'fields':[_0x907b('0xc')]}],'timestamps':!![]});};