Built motion from commit 10af8726.|2.6.34
[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 _0xa87f=['api','moment','bluebird','request-promise','../../config/environment','exports','AnalyticTreeReport','analytics_report_trees','lodash','util','../../config/logger'];(function(_0x239842,_0x160228){var _0x50af5f=function(_0x1fd44c){while(--_0x1fd44c){_0x239842['push'](_0x239842['shift']());}};_0x50af5f(++_0x160228);}(_0xa87f,0xd9));var _0xfa87=function(_0x2e6a54,_0x3388df){_0x2e6a54=_0x2e6a54-0x0;var _0x34d05d=_0xa87f[_0x2e6a54];return _0x34d05d;};'use strict';var _=require(_0xfa87('0x0'));var util=require(_0xfa87('0x1'));var logger=require(_0xfa87('0x2'))(_0xfa87('0x3'));var moment=require(_0xfa87('0x4'));var BPromise=require(_0xfa87('0x5'));var rp=require(_0xfa87('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xfa87('0x7'));var attributes=require('./analyticTreeReport.attributes');module[_0xfa87('0x8')]=function(_0x7665e,_0x2c45ab){return _0x7665e['define'](_0xfa87('0x9'),attributes,{'tableName':_0xfa87('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};