fc6ebb51ce96229600866745b7af31f5e275e4a9
[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 _0xb73d=['lodash','util','moment','bluebird','exports','define','AnalyticTreeReport','analytics_report_trees'];(function(_0x11505d,_0x959a1d){var _0x344b59=function(_0x47b9e7){while(--_0x47b9e7){_0x11505d['push'](_0x11505d['shift']());}};_0x344b59(++_0x959a1d);}(_0xb73d,0xd8));var _0xdb73=function(_0x114c53,_0x2249c6){_0x114c53=_0x114c53-0x0;var _0x4e0c14=_0xb73d[_0x114c53];return _0x4e0c14;};'use strict';var _=require(_0xdb73('0x0'));var util=require(_0xdb73('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xdb73('0x2'));var BPromise=require(_0xdb73('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./analyticTreeReport.attributes');module[_0xdb73('0x4')]=function(_0x285815,_0x48cb5b){return _0x285815[_0xdb73('0x5')](_0xdb73('0x6'),attributes,{'tableName':_0xdb73('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};