6406cb1f07da478c7ce3ef9ef176f295c753ca89
[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 _0xf6f7=['./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x183f27,_0x276411){var _0x452ae4=function(_0x30cb0e){while(--_0x30cb0e){_0x183f27['push'](_0x183f27['shift']());}};_0x452ae4(++_0x276411);}(_0xf6f7,0x87));var _0x7f6f=function(_0x4afac5,_0x1ab4ed){_0x4afac5=_0x4afac5-0x0;var _0x2404b3=_0xf6f7[_0x4afac5];return _0x2404b3;};'use strict';var _=require(_0x7f6f('0x0'));var util=require(_0x7f6f('0x1'));var logger=require(_0x7f6f('0x2'))(_0x7f6f('0x3'));var moment=require('moment');var BPromise=require(_0x7f6f('0x4'));var rp=require(_0x7f6f('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7f6f('0x6'));var config=require(_0x7f6f('0x7'));var attributes=require(_0x7f6f('0x8'));module[_0x7f6f('0x9')]=function(_0x3ece5f,_0x575423){return _0x3ece5f[_0x7f6f('0xa')](_0x7f6f('0xb'),attributes,{'tableName':_0x7f6f('0xc'),'paranoid':!![],'indexes':[],'timestamps':!![]});};