Built motion from commit da617fac.|2.6.6
[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 _0xcbd7=['path','../../config/environment','exports','define','AnalyticTreeReport','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x3cfb0d,_0x4df584){var _0x3486b4=function(_0x1b0939){while(--_0x1b0939){_0x3cfb0d['push'](_0x3cfb0d['shift']());}};_0x3486b4(++_0x4df584);}(_0xcbd7,0x1c8));var _0x7cbd=function(_0x54810f,_0x6da227){_0x54810f=_0x54810f-0x0;var _0x3e04fa=_0xcbd7[_0x54810f];return _0x3e04fa;};'use strict';var _=require(_0x7cbd('0x0'));var util=require('util');var logger=require(_0x7cbd('0x1'))(_0x7cbd('0x2'));var moment=require(_0x7cbd('0x3'));var BPromise=require(_0x7cbd('0x4'));var rp=require(_0x7cbd('0x5'));var fs=require('fs');var path=require(_0x7cbd('0x6'));var rimraf=require('rimraf');var config=require(_0x7cbd('0x7'));var attributes=require('./analyticTreeReport.attributes');module[_0x7cbd('0x8')]=function(_0x19f53d,_0x5760d4){return _0x19f53d[_0x7cbd('0x9')](_0x7cbd('0xa'),attributes,{'tableName':'analytics_report_trees','paranoid':![],'indexes':[],'timestamps':!![]});};