6b910c42d197e6de8a1fe89fe7f74966125e5fc8
[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 _0x3b81=['request-promise','path','rimraf','../../config/environment','./analyticCustomReport.attributes','define','AnalyticCustomReport','analytics_custom_reports','util','api','moment','bluebird'];(function(_0x4046b6,_0x238c36){var _0x1443be=function(_0x2e6c5d){while(--_0x2e6c5d){_0x4046b6['push'](_0x4046b6['shift']());}};_0x1443be(++_0x238c36);}(_0x3b81,0xec));var _0x13b8=function(_0x3fe2d9,_0x330323){_0x3fe2d9=_0x3fe2d9-0x0;var _0x182e7c=_0x3b81[_0x3fe2d9];return _0x182e7c;};'use strict';var _=require('lodash');var util=require(_0x13b8('0x0'));var logger=require('../../config/logger')(_0x13b8('0x1'));var moment=require(_0x13b8('0x2'));var BPromise=require(_0x13b8('0x3'));var rp=require(_0x13b8('0x4'));var fs=require('fs');var path=require(_0x13b8('0x5'));var rimraf=require(_0x13b8('0x6'));var config=require(_0x13b8('0x7'));var attributes=require(_0x13b8('0x8'));module['exports']=function(_0x4be8ed,_0xa59068){return _0x4be8ed[_0x13b8('0x9')](_0x13b8('0xa'),attributes,{'tableName':_0x13b8('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};