543a8a190f5faf416fadc6a8a8248122424338d8
[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 _0xd905=['request-promise','path','../../config/environment','./analyticTreeReport.attributes','exports','define','AnalyticTreeReport','analytics_report_trees','util','../../config/logger','bluebird'];(function(_0x2cfad5,_0x15c56b){var _0x3568fb=function(_0x35179b){while(--_0x35179b){_0x2cfad5['push'](_0x2cfad5['shift']());}};_0x3568fb(++_0x15c56b);}(_0xd905,0x11b));var _0x5d90=function(_0x25ac47,_0x17c52e){_0x25ac47=_0x25ac47-0x0;var _0x11fda2=_0xd905[_0x25ac47];return _0x11fda2;};'use strict';var _=require('lodash');var util=require(_0x5d90('0x0'));var logger=require(_0x5d90('0x1'))('api');var moment=require('moment');var BPromise=require(_0x5d90('0x2'));var rp=require(_0x5d90('0x3'));var fs=require('fs');var path=require(_0x5d90('0x4'));var rimraf=require('rimraf');var config=require(_0x5d90('0x5'));var attributes=require(_0x5d90('0x6'));module[_0x5d90('0x7')]=function(_0x19a847,_0x441639){return _0x19a847[_0x5d90('0x8')](_0x5d90('0x9'),attributes,{'tableName':_0x5d90('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};