c55fcb9eabe6e3e0610fecedf5ad156bb66e7dd4
[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 _0xafff=['AnalyticTreeReport','analytics_report_trees','lodash','util','../../config/logger','request-promise','../../config/environment','./analyticTreeReport.attributes','exports','define'];(function(_0x53ccf2,_0x13cb67){var _0x5a2964=function(_0x3b0514){while(--_0x3b0514){_0x53ccf2['push'](_0x53ccf2['shift']());}};_0x5a2964(++_0x13cb67);}(_0xafff,0x1a6));var _0xfaff=function(_0xb5b851,_0x4fbbf0){_0xb5b851=_0xb5b851-0x0;var _0x231288=_0xafff[_0xb5b851];return _0x231288;};'use strict';var _=require(_0xfaff('0x0'));var util=require(_0xfaff('0x1'));var logger=require(_0xfaff('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xfaff('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xfaff('0x4'));var attributes=require(_0xfaff('0x5'));module[_0xfaff('0x6')]=function(_0x4f85c0,_0x5ce3c3){return _0x4f85c0[_0xfaff('0x7')](_0xfaff('0x8'),attributes,{'tableName':_0xfaff('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};