Built motion from commit (unavailable).|2.5.7
[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 _0x7fa6=['exports','define','MailTransferReport','uniqueid','lodash','util','../../config/logger','api','request-promise','path','../../config/environment'];(function(_0x238830,_0x545f75){var _0x5917f0=function(_0x12f821){while(--_0x12f821){_0x238830['push'](_0x238830['shift']());}};_0x5917f0(++_0x545f75);}(_0x7fa6,0x10c));var _0x67fa=function(_0x2e78cb,_0x111663){_0x2e78cb=_0x2e78cb-0x0;var _0x10176a=_0x7fa6[_0x2e78cb];return _0x10176a;};'use strict';var _=require(_0x67fa('0x0'));var util=require(_0x67fa('0x1'));var logger=require(_0x67fa('0x2'))(_0x67fa('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x67fa('0x4'));var fs=require('fs');var path=require(_0x67fa('0x5'));var rimraf=require('rimraf');var config=require(_0x67fa('0x6'));var attributes=require('./mailTransferReport.attributes');module[_0x67fa('0x7')]=function(_0x54d4be,_0x32e357){return _0x54d4be[_0x67fa('0x8')](_0x67fa('0x9'),attributes,{'tableName':'report_mail_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x67fa('0xa')]}],'timestamps':!![]});};