a7b3172b6ec17644d7871f3aa148991395da32d7
[motion2.git] / server / api / integrationReport / integrationReport.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 _0x4e1b=['IntegrationReport','report_integration','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','exports'];(function(_0x3959fd,_0x5096c6){var _0x341770=function(_0x314a19){while(--_0x314a19){_0x3959fd['push'](_0x3959fd['shift']());}};_0x341770(++_0x5096c6);}(_0x4e1b,0x138));var _0xb4e1=function(_0x247007,_0x3b280b){_0x247007=_0x247007-0x0;var _0x2e41f3=_0x4e1b[_0x247007];return _0x2e41f3;};'use strict';var _=require('lodash');var util=require(_0xb4e1('0x0'));var logger=require(_0xb4e1('0x1'))(_0xb4e1('0x2'));var moment=require('moment');var BPromise=require(_0xb4e1('0x3'));var rp=require(_0xb4e1('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb4e1('0x5'));var config=require(_0xb4e1('0x6'));var attributes=require('./integrationReport.attributes');module[_0xb4e1('0x7')]=function(_0x4213b1,_0x212e53){return _0x4213b1['define'](_0xb4e1('0x8'),attributes,{'tableName':_0xb4e1('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};