Built motion from commit ffdca78c.|2.6.24
[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 _0xbb36=['MailTransferReport','uniqueid','util','../../config/logger','api','moment','bluebird','request-promise','path','./mailTransferReport.attributes','exports','define'];(function(_0x496895,_0x5a1ba5){var _0xe195f=function(_0x14df75){while(--_0x14df75){_0x496895['push'](_0x496895['shift']());}};_0xe195f(++_0x5a1ba5);}(_0xbb36,0x92));var _0x6bb3=function(_0x120f56,_0x6c8df2){_0x120f56=_0x120f56-0x0;var _0x5654d3=_0xbb36[_0x120f56];return _0x5654d3;};'use strict';var _=require('lodash');var util=require(_0x6bb3('0x0'));var logger=require(_0x6bb3('0x1'))(_0x6bb3('0x2'));var moment=require(_0x6bb3('0x3'));var BPromise=require(_0x6bb3('0x4'));var rp=require(_0x6bb3('0x5'));var fs=require('fs');var path=require(_0x6bb3('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x6bb3('0x7'));module[_0x6bb3('0x8')]=function(_0x47fab4,_0x2615d2){return _0x47fab4[_0x6bb3('0x9')](_0x6bb3('0xa'),attributes,{'tableName':'report_mail_transfer','paranoid':![],'indexes':[{'name':_0x6bb3('0xb'),'fields':[_0x6bb3('0xb')]}],'timestamps':!![]});};