Built motion from commit (unavailable).|2.5.0
[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 _0xd1c2=['api','moment','bluebird','path','rimraf','../../config/environment','./mailTransferReport.attributes','exports','MailTransferReport','report_mail_transfer','uniqueid','lodash','util'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xd1c2,0x80));var _0x2d1c=function(_0x252c16,_0x3904b3){_0x252c16=_0x252c16-0x0;var _0x1482d5=_0xd1c2[_0x252c16];return _0x1482d5;};'use strict';var _=require(_0x2d1c('0x0'));var util=require(_0x2d1c('0x1'));var logger=require('../../config/logger')(_0x2d1c('0x2'));var moment=require(_0x2d1c('0x3'));var BPromise=require(_0x2d1c('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2d1c('0x5'));var rimraf=require(_0x2d1c('0x6'));var config=require(_0x2d1c('0x7'));var attributes=require(_0x2d1c('0x8'));module[_0x2d1c('0x9')]=function(_0x38af8e,_0x4eb3f0){return _0x38af8e['define'](_0x2d1c('0xa'),attributes,{'tableName':_0x2d1c('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x2d1c('0xc')]}],'timestamps':!![]});};