4ac916f8fb4418803c70b19ee2b55ee80186cab1
[motion2.git] / server / api / analyticCustomReport / analyticCustomReport.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 _0xc5ce=['./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','util','api','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x5ac096,_0xef96fc){var _0x588955=function(_0xc482b2){while(--_0xc482b2){_0x5ac096['push'](_0x5ac096['shift']());}};_0x588955(++_0xef96fc);}(_0xc5ce,0x7d));var _0xec5c=function(_0x255d5b,_0x4f6f35){_0x255d5b=_0x255d5b-0x0;var _0x3e141a=_0xc5ce[_0x255d5b];return _0x3e141a;};'use strict';var _=require('lodash');var util=require(_0xec5c('0x0'));var logger=require('../../config/logger')(_0xec5c('0x1'));var moment=require(_0xec5c('0x2'));var BPromise=require(_0xec5c('0x3'));var rp=require(_0xec5c('0x4'));var fs=require('fs');var path=require(_0xec5c('0x5'));var rimraf=require('rimraf');var config=require(_0xec5c('0x6'));var attributes=require(_0xec5c('0x7'));module[_0xec5c('0x8')]=function(_0x3c335b,_0xf61ad){return _0x3c335b[_0xec5c('0x9')](_0xec5c('0xa'),attributes,{'tableName':_0xec5c('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};