182a43cff3a6311bf26feced2f767604f53a41ad
[motion2.git] / server / api / analyticFieldReport / analyticFieldReport.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 _0x501c=['AnalyticFieldReport','analytics_report_fields','lodash','util','../../config/logger','bluebird','path','rimraf','../../config/environment','./analyticFieldReport.attributes','exports','define'];(function(_0x55e39b,_0x208ca0){var _0x4fd3da=function(_0x58f8b3){while(--_0x58f8b3){_0x55e39b['push'](_0x55e39b['shift']());}};_0x4fd3da(++_0x208ca0);}(_0x501c,0xce));var _0xc501=function(_0x2a7b92,_0x4499c1){_0x2a7b92=_0x2a7b92-0x0;var _0x51a19c=_0x501c[_0x2a7b92];return _0x51a19c;};'use strict';var _=require(_0xc501('0x0'));var util=require(_0xc501('0x1'));var logger=require(_0xc501('0x2'))('api');var moment=require('moment');var BPromise=require(_0xc501('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc501('0x4'));var rimraf=require(_0xc501('0x5'));var config=require(_0xc501('0x6'));var attributes=require(_0xc501('0x7'));module[_0xc501('0x8')]=function(_0x257300,_0x55b9f6){return _0x257300[_0xc501('0x9')](_0xc501('0xa'),attributes,{'tableName':_0xc501('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};