d14d9603b3fea032a1eba6bb4a76f8190ea2bc4b
[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 _0x96d8=['rimraf','../../config/environment','./analyticTreeReport.attributes','exports','AnalyticTreeReport','analytics_report_trees','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x14d770,_0x41b389){var _0x4283a5=function(_0x1bc6e7){while(--_0x1bc6e7){_0x14d770['push'](_0x14d770['shift']());}};_0x4283a5(++_0x41b389);}(_0x96d8,0x1e2));var _0x896d=function(_0x4b5b01,_0x4fa208){_0x4b5b01=_0x4b5b01-0x0;var _0x59837e=_0x96d8[_0x4b5b01];return _0x59837e;};'use strict';var _=require(_0x896d('0x0'));var util=require(_0x896d('0x1'));var logger=require(_0x896d('0x2'))(_0x896d('0x3'));var moment=require(_0x896d('0x4'));var BPromise=require(_0x896d('0x5'));var rp=require(_0x896d('0x6'));var fs=require('fs');var path=require(_0x896d('0x7'));var rimraf=require(_0x896d('0x8'));var config=require(_0x896d('0x9'));var attributes=require(_0x896d('0xa'));module[_0x896d('0xb')]=function(_0x14dbfa,_0x32d0a0){return _0x14dbfa['define'](_0x896d('0xc'),attributes,{'tableName':_0x896d('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};