a5d464b52abfdb115e4290f9a6df573566f74891
[motion2.git] / server / api / reportAgentPreview / reportAgentPreview.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 _0x35bb=['bluebird','request-promise','exports','define','ReportAgentPreview','report_agent_preview','lodash','../../config/logger','api','moment'];(function(_0x149cf0,_0x3746f2){var _0x2ee2c8=function(_0x4b6c23){while(--_0x4b6c23){_0x149cf0['push'](_0x149cf0['shift']());}};_0x2ee2c8(++_0x3746f2);}(_0x35bb,0x7e));var _0xb35b=function(_0x119d45,_0x21c8b5){_0x119d45=_0x119d45-0x0;var _0x4e6e60=_0x35bb[_0x119d45];return _0x4e6e60;};'use strict';var _=require(_0xb35b('0x0'));var util=require('util');var logger=require(_0xb35b('0x1'))(_0xb35b('0x2'));var moment=require(_0xb35b('0x3'));var BPromise=require(_0xb35b('0x4'));var rp=require(_0xb35b('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./reportAgentPreview.attributes');module[_0xb35b('0x6')]=function(_0x16b1d6,_0x593240){return _0x16b1d6[_0xb35b('0x7')](_0xb35b('0x8'),attributes,{'tableName':_0xb35b('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};