Built motion from commit 994c64e1.|2.6.1
[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 _0x5671=['util','moment','path','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports'];(function(_0x4c12ec,_0x2e9103){var _0x3ae42c=function(_0x5a728f){while(--_0x5a728f){_0x4c12ec['push'](_0x4c12ec['shift']());}};_0x3ae42c(++_0x2e9103);}(_0x5671,0x190));var _0x1567=function(_0x5d8778,_0x3c2f0e){_0x5d8778=_0x5d8778-0x0;var _0x133e42=_0x5671[_0x5d8778];return _0x133e42;};'use strict';var _=require('lodash');var util=require(_0x1567('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x1567('0x1'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x1567('0x2'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x1567('0x3'));module[_0x1567('0x4')]=function(_0x1314d1,_0x53d03e){return _0x1314d1[_0x1567('0x5')](_0x1567('0x6'),attributes,{'tableName':_0x1567('0x7'),'paranoid':!![],'indexes':[],'timestamps':!![]});};