efe60f230d2617a758c8f23cc754a188391acc30
[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 _0xb7c0=['moment','bluebird','path','../../config/environment','exports','define','IntegrationReport','lodash','util','../../config/logger','api'];(function(_0x582d37,_0xc34a90){var _0x4aa6b6=function(_0x47224a){while(--_0x47224a){_0x582d37['push'](_0x582d37['shift']());}};_0x4aa6b6(++_0xc34a90);}(_0xb7c0,0xe3));var _0x0b7c=function(_0x411def,_0x13b19d){_0x411def=_0x411def-0x0;var _0xdf876=_0xb7c0[_0x411def];return _0xdf876;};'use strict';var _=require(_0x0b7c('0x0'));var util=require(_0x0b7c('0x1'));var logger=require(_0x0b7c('0x2'))(_0x0b7c('0x3'));var moment=require(_0x0b7c('0x4'));var BPromise=require(_0x0b7c('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0b7c('0x6'));var rimraf=require('rimraf');var config=require(_0x0b7c('0x7'));var attributes=require('./integrationReport.attributes');module[_0x0b7c('0x8')]=function(_0x329796,_0x4a17e3){return _0x329796[_0x0b7c('0x9')](_0x0b7c('0xa'),attributes,{'tableName':'report_integration','paranoid':![],'indexes':[],'timestamps':!![]});};