Built motion from commit (unavailable).|2.5.11
[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 _0x3e9a=['path','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','lodash','api','bluebird','request-promise'];(function(_0x4b757c,_0x567c0f){var _0x427379=function(_0x423083){while(--_0x423083){_0x4b757c['push'](_0x4b757c['shift']());}};_0x427379(++_0x567c0f);}(_0x3e9a,0x1d2));var _0xa3e9=function(_0x56bd0c,_0x51c525){_0x56bd0c=_0x56bd0c-0x0;var _0x8b5f15=_0x3e9a[_0x56bd0c];return _0x8b5f15;};'use strict';var _=require(_0xa3e9('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xa3e9('0x1'));var moment=require('moment');var BPromise=require(_0xa3e9('0x2'));var rp=require(_0xa3e9('0x3'));var fs=require('fs');var path=require(_0xa3e9('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xa3e9('0x5'));module[_0xa3e9('0x6')]=function(_0x4b6a4e,_0x427d74){return _0x4b6a4e[_0xa3e9('0x7')](_0xa3e9('0x8'),attributes,{'tableName':_0xa3e9('0x9'),'paranoid':!![],'indexes':[],'timestamps':!![]});};