7b750d1b214e6bd0baccb0a74a5f27eeee030a5c
[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 _0x66a2=['util','../../config/logger','api','moment','bluebird','request-promise','path','./reportAgentPreview.attributes','exports','define','ReportAgentPreview','report_agent_preview','lodash'];(function(_0x3ef918,_0x555e0c){var _0x1128cb=function(_0x51f39b){while(--_0x51f39b){_0x3ef918['push'](_0x3ef918['shift']());}};_0x1128cb(++_0x555e0c);}(_0x66a2,0xc2));var _0x266a=function(_0x3331a2,_0x42f95c){_0x3331a2=_0x3331a2-0x0;var _0x390ed1=_0x66a2[_0x3331a2];return _0x390ed1;};'use strict';var _=require(_0x266a('0x0'));var util=require(_0x266a('0x1'));var logger=require(_0x266a('0x2'))(_0x266a('0x3'));var moment=require(_0x266a('0x4'));var BPromise=require(_0x266a('0x5'));var rp=require(_0x266a('0x6'));var fs=require('fs');var path=require(_0x266a('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x266a('0x8'));module[_0x266a('0x9')]=function(_0xb5fa7d,_0x467da2){return _0xb5fa7d[_0x266a('0xa')](_0x266a('0xb'),attributes,{'tableName':_0x266a('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};