Built motion from commit 19a84241.|2.5.34
[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 _0xa462=['request-promise','rimraf','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','lodash','util','api','bluebird'];(function(_0x1eb622,_0x2a8af2){var _0x122700=function(_0x134b0d){while(--_0x134b0d){_0x1eb622['push'](_0x1eb622['shift']());}};_0x122700(++_0x2a8af2);}(_0xa462,0xee));var _0x2a46=function(_0x2f897e,_0x23a531){_0x2f897e=_0x2f897e-0x0;var _0x33b22c=_0xa462[_0x2f897e];return _0x33b22c;};'use strict';var _=require(_0x2a46('0x0'));var util=require(_0x2a46('0x1'));var logger=require('../../config/logger')(_0x2a46('0x2'));var moment=require('moment');var BPromise=require(_0x2a46('0x3'));var rp=require(_0x2a46('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2a46('0x5'));var config=require('../../config/environment');var attributes=require(_0x2a46('0x6'));module[_0x2a46('0x7')]=function(_0x354c93,_0x232847){return _0x354c93[_0x2a46('0x8')](_0x2a46('0x9'),attributes,{'tableName':_0x2a46('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};