93f55ec37d356f4996c421ad3c8b62e1fa3ed354
[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 _0x2374=['request-promise','rimraf','../../config/environment','./analyticTreeReport.attributes','exports','define','AnalyticTreeReport','analytics_report_trees','lodash','util','../../config/logger','api','bluebird'];(function(_0x24ce7d,_0x13ac8f){var _0x599aa1=function(_0x554d6a){while(--_0x554d6a){_0x24ce7d['push'](_0x24ce7d['shift']());}};_0x599aa1(++_0x13ac8f);}(_0x2374,0x133));var _0x4237=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x2374[_0x167cc1];return _0x10bc4b;};'use strict';var _=require(_0x4237('0x0'));var util=require(_0x4237('0x1'));var logger=require(_0x4237('0x2'))(_0x4237('0x3'));var moment=require('moment');var BPromise=require(_0x4237('0x4'));var rp=require(_0x4237('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4237('0x6'));var config=require(_0x4237('0x7'));var attributes=require(_0x4237('0x8'));module[_0x4237('0x9')]=function(_0xe6acdd,_0x187bff){return _0xe6acdd[_0x4237('0xa')](_0x4237('0xb'),attributes,{'tableName':_0x4237('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};