Built motion from commit 9d0783e6.|2.6.13
[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 _0x4231=['api','bluebird','request-promise','path','rimraf','../../config/environment','./analyticTreeReport.attributes','exports','AnalyticTreeReport','analytics_report_trees','util','../../config/logger'];(function(_0x18ab2a,_0x4debcd){var _0x16dcee=function(_0x10107a){while(--_0x10107a){_0x18ab2a['push'](_0x18ab2a['shift']());}};_0x16dcee(++_0x4debcd);}(_0x4231,0x82));var _0x1423=function(_0xe5d54f,_0x143d93){_0xe5d54f=_0xe5d54f-0x0;var _0x2a74bf=_0x4231[_0xe5d54f];return _0x2a74bf;};'use strict';var _=require('lodash');var util=require(_0x1423('0x0'));var logger=require(_0x1423('0x1'))(_0x1423('0x2'));var moment=require('moment');var BPromise=require(_0x1423('0x3'));var rp=require(_0x1423('0x4'));var fs=require('fs');var path=require(_0x1423('0x5'));var rimraf=require(_0x1423('0x6'));var config=require(_0x1423('0x7'));var attributes=require(_0x1423('0x8'));module[_0x1423('0x9')]=function(_0x21fe37,_0x4f315e){return _0x21fe37['define'](_0x1423('0xa'),attributes,{'tableName':_0x1423('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};