988f54ac3d4c8f1c694ac10105a6f05da271c67a
[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 _0x1ab1=['define','AnalyticTreeReport','analytics_report_trees','lodash','api','path','../../config/environment','./analyticTreeReport.attributes','exports'];(function(_0x37abe3,_0x3029b0){var _0x594f22=function(_0x6f6568){while(--_0x6f6568){_0x37abe3['push'](_0x37abe3['shift']());}};_0x594f22(++_0x3029b0);}(_0x1ab1,0x12c));var _0x11ab=function(_0x299837,_0x4b01b2){_0x299837=_0x299837-0x0;var _0xc2019d=_0x1ab1[_0x299837];return _0xc2019d;};'use strict';var _=require(_0x11ab('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x11ab('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x11ab('0x2'));var rimraf=require('rimraf');var config=require(_0x11ab('0x3'));var attributes=require(_0x11ab('0x4'));module[_0x11ab('0x5')]=function(_0x1399f4,_0x5758c5){return _0x1399f4[_0x11ab('0x6')](_0x11ab('0x7'),attributes,{'tableName':_0x11ab('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};