8a59ed1d6fa2690fbaee6af8697ed322cdf9d48f
[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 _0x1c91=['define','AnalyticTreeReport','analytics_report_trees','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','exports'];(function(_0x31f3aa,_0x5164dc){var _0x25649b=function(_0x154a79){while(--_0x154a79){_0x31f3aa['push'](_0x31f3aa['shift']());}};_0x25649b(++_0x5164dc);}(_0x1c91,0x142));var _0x11c9=function(_0x47e7cb,_0x4c1b8d){_0x47e7cb=_0x47e7cb-0x0;var _0x2a8874=_0x1c91[_0x47e7cb];return _0x2a8874;};'use strict';var _=require(_0x11c9('0x0'));var util=require(_0x11c9('0x1'));var logger=require(_0x11c9('0x2'))('api');var moment=require(_0x11c9('0x3'));var BPromise=require(_0x11c9('0x4'));var rp=require(_0x11c9('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x11c9('0x6'));var config=require('../../config/environment');var attributes=require('./analyticTreeReport.attributes');module[_0x11c9('0x7')]=function(_0x48f20b,_0x37b762){return _0x48f20b[_0x11c9('0x8')](_0x11c9('0x9'),attributes,{'tableName':_0x11c9('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};