bbc53ffbcd8fb00edea5bbc3cf1df7770bdd82b1
[motion2.git] / server / api / analyticTreeReport / analyticTreeReport.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 _0xc3b5=['exports','define','AnalyticTreeReport','analytics_report_trees','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./analyticTreeReport.attributes'];(function(_0x496467,_0x546296){var _0x4bc682=function(_0x35f6c9){while(--_0x35f6c9){_0x496467['push'](_0x496467['shift']());}};_0x4bc682(++_0x546296);}(_0xc3b5,0xfb));var _0x5c3b=function(_0x1b2b18,_0x53b2bb){_0x1b2b18=_0x1b2b18-0x0;var _0x1e97ee=_0xc3b5[_0x1b2b18];return _0x1e97ee;};'use strict';var _=require('lodash');var util=require(_0x5c3b('0x0'));var logger=require(_0x5c3b('0x1'))(_0x5c3b('0x2'));var moment=require(_0x5c3b('0x3'));var BPromise=require(_0x5c3b('0x4'));var rp=require(_0x5c3b('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5c3b('0x6'));var config=require(_0x5c3b('0x7'));var attributes=require(_0x5c3b('0x8'));module[_0x5c3b('0x9')]=function(_0x34eb0f,_0x452bd8){return _0x34eb0f[_0x5c3b('0xa')](_0x5c3b('0xb'),attributes,{'tableName':_0x5c3b('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};