0c32ae7ccb37f0661edde007bc2fbf9c2a935767
[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 _0x6788=['rimraf','../../config/environment','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0xf1af27,_0x598bb1){var _0x46b274=function(_0x1dba43){while(--_0x1dba43){_0xf1af27['push'](_0xf1af27['shift']());}};_0x46b274(++_0x598bb1);}(_0x6788,0x132));var _0x8678=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x6788[_0x59ee6f];return _0x4c0979;};'use strict';var _=require(_0x8678('0x0'));var util=require(_0x8678('0x1'));var logger=require(_0x8678('0x2'))(_0x8678('0x3'));var moment=require(_0x8678('0x4'));var BPromise=require(_0x8678('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x8678('0x6'));var config=require(_0x8678('0x7'));var attributes=require(_0x8678('0x8'));module[_0x8678('0x9')]=function(_0x2528a0,_0x5e7511){return _0x2528a0[_0x8678('0xa')](_0x8678('0xb'),attributes,{'tableName':_0x8678('0xc'),'paranoid':!![],'indexes':[],'timestamps':!![]});};