Built motion from commit 20b39a97.|2.6.29
[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 _0xc606=['analytics_report_trees','util','../../config/logger','api','bluebird','path','../../config/environment','./analyticTreeReport.attributes','exports','AnalyticTreeReport'];(function(_0x5a9c0c,_0x4ec485){var _0x53c77d=function(_0x1cf384){while(--_0x1cf384){_0x5a9c0c['push'](_0x5a9c0c['shift']());}};_0x53c77d(++_0x4ec485);}(_0xc606,0x79));var _0x6c60=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xc606[_0x4565bf];return _0x5610ba;};'use strict';var _=require('lodash');var util=require(_0x6c60('0x0'));var logger=require(_0x6c60('0x1'))(_0x6c60('0x2'));var moment=require('moment');var BPromise=require(_0x6c60('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6c60('0x4'));var rimraf=require('rimraf');var config=require(_0x6c60('0x5'));var attributes=require(_0x6c60('0x6'));module[_0x6c60('0x7')]=function(_0x44864f,_0x27e40f){return _0x44864f['define'](_0x6c60('0x8'),attributes,{'tableName':_0x6c60('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};