Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / analyticCustomReport / analyticCustomReport.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 _0x649b=['../../config/logger','api','bluebird','request-promise','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','util'];(function(_0x3391fe,_0x5c24d9){var _0x1ae383=function(_0x5e71a4){while(--_0x5e71a4){_0x3391fe['push'](_0x3391fe['shift']());}};_0x1ae383(++_0x5c24d9);}(_0x649b,0x1a3));var _0xb649=function(_0x165232,_0x48da00){_0x165232=_0x165232-0x0;var _0x1a324e=_0x649b[_0x165232];return _0x1a324e;};'use strict';var _=require('lodash');var util=require(_0xb649('0x0'));var logger=require(_0xb649('0x1'))(_0xb649('0x2'));var moment=require('moment');var BPromise=require(_0xb649('0x3'));var rp=require(_0xb649('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xb649('0x5'));module[_0xb649('0x6')]=function(_0x2496c5,_0x5f5b2f){return _0x2496c5[_0xb649('0x7')](_0xb649('0x8'),attributes,{'tableName':_0xb649('0x9'),'paranoid':!![],'indexes':[],'timestamps':!![]});};