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 _0xade8=['define','AnalyticTreeReport','analytics_report_trees','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./analyticTreeReport.attributes','exports'];(function(_0x12a5ac,_0x4cb0d2){var _0x282958=function(_0x3ae041){while(--_0x3ae041){_0x12a5ac['push'](_0x12a5ac['shift']());}};_0x282958(++_0x4cb0d2);}(_0xade8,0xe3));var _0x8ade=function(_0xa77f8b,_0x3a8fdb){_0xa77f8b=_0xa77f8b-0x0;var _0x341b0d=_0xade8[_0xa77f8b];return _0x341b0d;};'use strict';var _=require(_0x8ade('0x0'));var util=require(_0x8ade('0x1'));var logger=require('../../config/logger')(_0x8ade('0x2'));var moment=require(_0x8ade('0x3'));var BPromise=require(_0x8ade('0x4'));var rp=require(_0x8ade('0x5'));var fs=require('fs');var path=require(_0x8ade('0x6'));var rimraf=require(_0x8ade('0x7'));var config=require(_0x8ade('0x8'));var attributes=require(_0x8ade('0x9'));module[_0x8ade('0xa')]=function(_0x276ed3,_0x42ab64){return _0x276ed3[_0x8ade('0xb')](_0x8ade('0xc'),attributes,{'tableName':_0x8ade('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};