d9efab286a89b0daab4cce43d90e0fbebee84a1d
[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 _0x6afc=['lodash','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','./analyticTreeReport.attributes','define','AnalyticTreeReport','analytics_report_trees'];(function(_0x1b3ef5,_0x130efc){var _0x3078a1=function(_0x1f41ff){while(--_0x1f41ff){_0x1b3ef5['push'](_0x1b3ef5['shift']());}};_0x3078a1(++_0x130efc);}(_0x6afc,0x16b));var _0xc6af=function(_0x39f615,_0xf7942b){_0x39f615=_0x39f615-0x0;var _0x34d59b=_0x6afc[_0x39f615];return _0x34d59b;};'use strict';var _=require(_0xc6af('0x0'));var util=require('util');var logger=require(_0xc6af('0x1'))('api');var moment=require(_0xc6af('0x2'));var BPromise=require(_0xc6af('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc6af('0x4'));var rimraf=require(_0xc6af('0x5'));var config=require(_0xc6af('0x6'));var attributes=require(_0xc6af('0x7'));module['exports']=function(_0x3beacd,_0x2bca8e){return _0x3beacd[_0xc6af('0x8')](_0xc6af('0x9'),attributes,{'tableName':_0xc6af('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};