Built motion from commit 97153652.|2.6.26
[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 _0xbdc1=['path','rimraf','./analyticFieldReport.attributes','exports','define','AnalyticFieldReport','analytics_report_fields','util','../../config/logger','moment'];(function(_0x258b00,_0x28e9b0){var _0x3ca676=function(_0xff2a4e){while(--_0xff2a4e){_0x258b00['push'](_0x258b00['shift']());}};_0x3ca676(++_0x28e9b0);}(_0xbdc1,0x13d));var _0x1bdc=function(_0x37745c,_0x4d4e32){_0x37745c=_0x37745c-0x0;var _0x508313=_0xbdc1[_0x37745c];return _0x508313;};'use strict';var _=require('lodash');var util=require(_0x1bdc('0x0'));var logger=require(_0x1bdc('0x1'))('api');var moment=require(_0x1bdc('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x1bdc('0x3'));var rimraf=require(_0x1bdc('0x4'));var config=require('../../config/environment');var attributes=require(_0x1bdc('0x5'));module[_0x1bdc('0x6')]=function(_0x1f4aaf,_0x17160a){return _0x1f4aaf[_0x1bdc('0x7')](_0x1bdc('0x8'),attributes,{'tableName':_0x1bdc('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};