Built motion from commit fda31434.|2.5.44
[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 _0x98ba=['bluebird','path','rimraf','../../config/environment','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','lodash','util','../../config/logger','api'];(function(_0xa5bd84,_0x287943){var _0x22bcca=function(_0x13f6f4){while(--_0x13f6f4){_0xa5bd84['push'](_0xa5bd84['shift']());}};_0x22bcca(++_0x287943);}(_0x98ba,0x141));var _0xa98b=function(_0x339981,_0x53680c){_0x339981=_0x339981-0x0;var _0x3f9bf3=_0x98ba[_0x339981];return _0x3f9bf3;};'use strict';var _=require(_0xa98b('0x0'));var util=require(_0xa98b('0x1'));var logger=require(_0xa98b('0x2'))(_0xa98b('0x3'));var moment=require('moment');var BPromise=require(_0xa98b('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa98b('0x5'));var rimraf=require(_0xa98b('0x6'));var config=require(_0xa98b('0x7'));var attributes=require(_0xa98b('0x8'));module[_0xa98b('0x9')]=function(_0x57d117,_0x421b61){return _0x57d117[_0xa98b('0xa')](_0xa98b('0xb'),attributes,{'tableName':_0xa98b('0xc'),'paranoid':!![],'indexes':[],'timestamps':!![]});};