6aacf97908b0053fb1bf23b2604a5765f98517cd
[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 _0x7d81=['request-promise','path','rimraf','../../config/environment','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x1734ff,_0x4feb6e){var _0x3b17ac=function(_0x109195){while(--_0x109195){_0x1734ff['push'](_0x1734ff['shift']());}};_0x3b17ac(++_0x4feb6e);}(_0x7d81,0xcc));var _0x17d8=function(_0x528ab1,_0x13ca90){_0x528ab1=_0x528ab1-0x0;var _0x2eea3b=_0x7d81[_0x528ab1];return _0x2eea3b;};'use strict';var _=require(_0x17d8('0x0'));var util=require(_0x17d8('0x1'));var logger=require(_0x17d8('0x2'))(_0x17d8('0x3'));var moment=require(_0x17d8('0x4'));var BPromise=require(_0x17d8('0x5'));var rp=require(_0x17d8('0x6'));var fs=require('fs');var path=require(_0x17d8('0x7'));var rimraf=require(_0x17d8('0x8'));var config=require(_0x17d8('0x9'));var attributes=require(_0x17d8('0xa'));module[_0x17d8('0xb')]=function(_0x17cdce,_0x2aa204){return _0x17cdce[_0x17d8('0xc')](_0x17d8('0xd'),attributes,{'tableName':_0x17d8('0xe'),'paranoid':!![],'indexes':[],'timestamps':!![]});};