4cc823a6f21acdfcd207f409ff70672edb89bdde
[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 _0xe3d5=['define','ReportAgentPreview','report_agent_preview','lodash','util','../../config/logger','moment','request-promise','path','rimraf','./reportAgentPreview.attributes','exports'];(function(_0x420f22,_0x16b6ea){var _0x573bc9=function(_0x2cfcba){while(--_0x2cfcba){_0x420f22['push'](_0x420f22['shift']());}};_0x573bc9(++_0x16b6ea);}(_0xe3d5,0x13b));var _0x5e3d=function(_0x342baa,_0x4a110f){_0x342baa=_0x342baa-0x0;var _0x1208f3=_0xe3d5[_0x342baa];return _0x1208f3;};'use strict';var _=require(_0x5e3d('0x0'));var util=require(_0x5e3d('0x1'));var logger=require(_0x5e3d('0x2'))('api');var moment=require(_0x5e3d('0x3'));var BPromise=require('bluebird');var rp=require(_0x5e3d('0x4'));var fs=require('fs');var path=require(_0x5e3d('0x5'));var rimraf=require(_0x5e3d('0x6'));var config=require('../../config/environment');var attributes=require(_0x5e3d('0x7'));module[_0x5e3d('0x8')]=function(_0x28fad4,_0x92fa20){return _0x28fad4[_0x5e3d('0x9')](_0x5e3d('0xa'),attributes,{'tableName':_0x5e3d('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};