7f8db0500e1e7b572ad79471107826150a5be20e
[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 _0x8dc4=['request-promise','path','./analyticTreeReport.attributes','exports','AnalyticTreeReport','analytics_report_trees','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x58fae5,_0xea34ed){var _0x2c5345=function(_0x16879f){while(--_0x16879f){_0x58fae5['push'](_0x58fae5['shift']());}};_0x2c5345(++_0xea34ed);}(_0x8dc4,0xae));var _0x48dc=function(_0x276576,_0x13dcdf){_0x276576=_0x276576-0x0;var _0x2f4fd6=_0x8dc4[_0x276576];return _0x2f4fd6;};'use strict';var _=require(_0x48dc('0x0'));var util=require(_0x48dc('0x1'));var logger=require(_0x48dc('0x2'))(_0x48dc('0x3'));var moment=require(_0x48dc('0x4'));var BPromise=require(_0x48dc('0x5'));var rp=require(_0x48dc('0x6'));var fs=require('fs');var path=require(_0x48dc('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x48dc('0x8'));module[_0x48dc('0x9')]=function(_0x38b86a,_0xd4a4b0){return _0x38b86a['define'](_0x48dc('0xa'),attributes,{'tableName':_0x48dc('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};