Built motion from commit f3da74b7.|2.5.36
[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 _0x4386=['AnalyticTreeReport','analytics_report_trees','util','api','moment','bluebird','path','rimraf','./analyticTreeReport.attributes','exports','define'];(function(_0x11abf9,_0x1ff7e5){var _0x547878=function(_0x2ac98c){while(--_0x2ac98c){_0x11abf9['push'](_0x11abf9['shift']());}};_0x547878(++_0x1ff7e5);}(_0x4386,0x141));var _0x6438=function(_0x515232,_0x3de920){_0x515232=_0x515232-0x0;var _0x45685c=_0x4386[_0x515232];return _0x45685c;};'use strict';var _=require('lodash');var util=require(_0x6438('0x0'));var logger=require('../../config/logger')(_0x6438('0x1'));var moment=require(_0x6438('0x2'));var BPromise=require(_0x6438('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6438('0x4'));var rimraf=require(_0x6438('0x5'));var config=require('../../config/environment');var attributes=require(_0x6438('0x6'));module[_0x6438('0x7')]=function(_0x531071,_0x3888fe){return _0x531071[_0x6438('0x8')](_0x6438('0x9'),attributes,{'tableName':_0x6438('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};