Built motion from commit d69f4380.|2.6.29
[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 _0x6b15=['rimraf','../../config/environment','./analyticFieldReport.attributes','exports','define','AnalyticFieldReport','analytics_report_fields','lodash','util','../../config/logger','api','bluebird','path'];(function(_0x4416ea,_0x252686){var _0x4b3cbe=function(_0x343505){while(--_0x343505){_0x4416ea['push'](_0x4416ea['shift']());}};_0x4b3cbe(++_0x252686);}(_0x6b15,0x1a7));var _0x56b1=function(_0x531535,_0x39872c){_0x531535=_0x531535-0x0;var _0x3f1563=_0x6b15[_0x531535];return _0x3f1563;};'use strict';var _=require(_0x56b1('0x0'));var util=require(_0x56b1('0x1'));var logger=require(_0x56b1('0x2'))(_0x56b1('0x3'));var moment=require('moment');var BPromise=require(_0x56b1('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x56b1('0x5'));var rimraf=require(_0x56b1('0x6'));var config=require(_0x56b1('0x7'));var attributes=require(_0x56b1('0x8'));module[_0x56b1('0x9')]=function(_0x5b2e45,_0x10ee05){return _0x5b2e45[_0x56b1('0xa')](_0x56b1('0xb'),attributes,{'tableName':_0x56b1('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};