190cc8da78aa5c6329822242a9c91d2a1949a5dd
[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 _0x2c8d=['path','../../config/environment','exports','define','IntegrationReport','report_integration','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x2726d0,_0x5b2554){var _0x37ef2c=function(_0x160a1f){while(--_0x160a1f){_0x2726d0['push'](_0x2726d0['shift']());}};_0x37ef2c(++_0x5b2554);}(_0x2c8d,0x162));var _0xd2c8=function(_0x5d37c8,_0x366d21){_0x5d37c8=_0x5d37c8-0x0;var _0x1afc14=_0x2c8d[_0x5d37c8];return _0x1afc14;};'use strict';var _=require(_0xd2c8('0x0'));var util=require(_0xd2c8('0x1'));var logger=require(_0xd2c8('0x2'))(_0xd2c8('0x3'));var moment=require('moment');var BPromise=require(_0xd2c8('0x4'));var rp=require(_0xd2c8('0x5'));var fs=require('fs');var path=require(_0xd2c8('0x6'));var rimraf=require('rimraf');var config=require(_0xd2c8('0x7'));var attributes=require('./integrationReport.attributes');module[_0xd2c8('0x8')]=function(_0x20ce8f,_0x51ba06){return _0x20ce8f[_0xd2c8('0x9')](_0xd2c8('0xa'),attributes,{'tableName':_0xd2c8('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};