Built motion from commit (unavailable).|2.5.4
[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 _0x2e11=['util','api','moment','path','rimraf','../../config/environment','exports','define','AnalyticTreeReport','analytics_report_trees','lodash'];(function(_0x60df74,_0x458e29){var _0x5ee872=function(_0x356888){while(--_0x356888){_0x60df74['push'](_0x60df74['shift']());}};_0x5ee872(++_0x458e29);}(_0x2e11,0x112));var _0x12e1=function(_0x1d01be,_0x107191){_0x1d01be=_0x1d01be-0x0;var _0x467fd8=_0x2e11[_0x1d01be];return _0x467fd8;};'use strict';var _=require(_0x12e1('0x0'));var util=require(_0x12e1('0x1'));var logger=require('../../config/logger')(_0x12e1('0x2'));var moment=require(_0x12e1('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x12e1('0x4'));var rimraf=require(_0x12e1('0x5'));var config=require(_0x12e1('0x6'));var attributes=require('./analyticTreeReport.attributes');module[_0x12e1('0x7')]=function(_0x84785c,_0x4fe6fe){return _0x84785c[_0x12e1('0x8')](_0x12e1('0x9'),attributes,{'tableName':_0x12e1('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};