22ecec699da491a66c15a869a409ed7319908a6a
[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 _0x18f3=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./analyticTreeReport.attributes','exports','define','AnalyticTreeReport','analytics_report_trees'];(function(_0x100f05,_0x2de0fa){var _0x2bcde1=function(_0x1e564d){while(--_0x1e564d){_0x100f05['push'](_0x100f05['shift']());}};_0x2bcde1(++_0x2de0fa);}(_0x18f3,0x7e));var _0x318f=function(_0x513aa5,_0x1fba79){_0x513aa5=_0x513aa5-0x0;var _0x1a1a7c=_0x18f3[_0x513aa5];return _0x1a1a7c;};'use strict';var _=require(_0x318f('0x0'));var util=require(_0x318f('0x1'));var logger=require(_0x318f('0x2'))(_0x318f('0x3'));var moment=require(_0x318f('0x4'));var BPromise=require(_0x318f('0x5'));var rp=require(_0x318f('0x6'));var fs=require('fs');var path=require(_0x318f('0x7'));var rimraf=require('rimraf');var config=require(_0x318f('0x8'));var attributes=require(_0x318f('0x9'));module[_0x318f('0xa')]=function(_0x5df83b,_0x55e201){return _0x5df83b[_0x318f('0xb')](_0x318f('0xc'),attributes,{'tableName':_0x318f('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};