Built motion from commit (unavailable).|2.5.18
[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 _0x3fb3=['../../config/logger','api','moment','bluebird','path','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','util'];(function(_0x11ccc0,_0x174e0a){var _0x5d8f3d=function(_0x2a3f8c){while(--_0x2a3f8c){_0x11ccc0['push'](_0x11ccc0['shift']());}};_0x5d8f3d(++_0x174e0a);}(_0x3fb3,0x15f));var _0x33fb=function(_0x351db3,_0x189819){_0x351db3=_0x351db3-0x0;var _0x577cc4=_0x3fb3[_0x351db3];return _0x577cc4;};'use strict';var _=require('lodash');var util=require(_0x33fb('0x0'));var logger=require(_0x33fb('0x1'))(_0x33fb('0x2'));var moment=require(_0x33fb('0x3'));var BPromise=require(_0x33fb('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x33fb('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x33fb('0x6'));module[_0x33fb('0x7')]=function(_0x2320e9,_0x14effc){return _0x2320e9[_0x33fb('0x8')](_0x33fb('0x9'),attributes,{'tableName':_0x33fb('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};