86acc42d2e571f5ada0f86cab375ee2672172ec7
[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 _0xe2b7=['./reportAgentPreview.attributes','exports','define','ReportAgentPreview','report_agent_preview','lodash','util','api','request-promise','rimraf','../../config/environment'];(function(_0x1ed46f,_0x7691d7){var _0x43b931=function(_0x5f2454){while(--_0x5f2454){_0x1ed46f['push'](_0x1ed46f['shift']());}};_0x43b931(++_0x7691d7);}(_0xe2b7,0xb5));var _0x7e2b=function(_0x2a744c,_0x3a34cc){_0x2a744c=_0x2a744c-0x0;var _0x485e5a=_0xe2b7[_0x2a744c];return _0x485e5a;};'use strict';var _=require(_0x7e2b('0x0'));var util=require(_0x7e2b('0x1'));var logger=require('../../config/logger')(_0x7e2b('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x7e2b('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7e2b('0x4'));var config=require(_0x7e2b('0x5'));var attributes=require(_0x7e2b('0x6'));module[_0x7e2b('0x7')]=function(_0x1cde8e,_0x3ef9c8){return _0x1cde8e[_0x7e2b('0x8')](_0x7e2b('0x9'),attributes,{'tableName':_0x7e2b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};