b56fa4ebc25bcf988a8ecb9af829d1542685595e
[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 _0x5e81=['exports','define','IntegrationReport','report_integration','util','api','moment','request-promise','path','rimraf','./integrationReport.attributes'];(function(_0x138adb,_0x193fee){var _0x1b27f2=function(_0x5e97a2){while(--_0x5e97a2){_0x138adb['push'](_0x138adb['shift']());}};_0x1b27f2(++_0x193fee);}(_0x5e81,0x117));var _0x15e8=function(_0x51bd76,_0x25183c){_0x51bd76=_0x51bd76-0x0;var _0x5c1410=_0x5e81[_0x51bd76];return _0x5c1410;};'use strict';var _=require('lodash');var util=require(_0x15e8('0x0'));var logger=require('../../config/logger')(_0x15e8('0x1'));var moment=require(_0x15e8('0x2'));var BPromise=require('bluebird');var rp=require(_0x15e8('0x3'));var fs=require('fs');var path=require(_0x15e8('0x4'));var rimraf=require(_0x15e8('0x5'));var config=require('../../config/environment');var attributes=require(_0x15e8('0x6'));module[_0x15e8('0x7')]=function(_0x494771,_0x206f06){return _0x494771[_0x15e8('0x8')](_0x15e8('0x9'),attributes,{'tableName':_0x15e8('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};