Built motion from commit 497d3d92.|2.5.43
[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 _0x82b7=['rimraf','../../config/environment','./analyticTreeReport.attributes','exports','define','AnalyticTreeReport','analytics_report_trees','lodash','../../config/logger','api','path'];(function(_0x1cd18b,_0x23dc7d){var _0x55e2ad=function(_0x173df2){while(--_0x173df2){_0x1cd18b['push'](_0x1cd18b['shift']());}};_0x55e2ad(++_0x23dc7d);}(_0x82b7,0x1e0));var _0x782b=function(_0x550ff0,_0x277ae5){_0x550ff0=_0x550ff0-0x0;var _0x22f7fa=_0x82b7[_0x550ff0];return _0x22f7fa;};'use strict';var _=require(_0x782b('0x0'));var util=require('util');var logger=require(_0x782b('0x1'))(_0x782b('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x782b('0x3'));var rimraf=require(_0x782b('0x4'));var config=require(_0x782b('0x5'));var attributes=require(_0x782b('0x6'));module[_0x782b('0x7')]=function(_0x4353cb,_0x26f29c){return _0x4353cb[_0x782b('0x8')](_0x782b('0x9'),attributes,{'tableName':_0x782b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};