Built motion from commit 47436d59.|2.6.7
[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 _0x21f6=['util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./reportAgentPreview.attributes','exports','define','ReportAgentPreview','report_agent_preview','lodash'];(function(_0xa9a245,_0x2a0387){var _0x2d0eaa=function(_0x2bba86){while(--_0x2bba86){_0xa9a245['push'](_0xa9a245['shift']());}};_0x2d0eaa(++_0x2a0387);}(_0x21f6,0x1b1));var _0x621f=function(_0x1a7ac0,_0x5798be){_0x1a7ac0=_0x1a7ac0-0x0;var _0x5f1f6b=_0x21f6[_0x1a7ac0];return _0x5f1f6b;};'use strict';var _=require(_0x621f('0x0'));var util=require(_0x621f('0x1'));var logger=require(_0x621f('0x2'))(_0x621f('0x3'));var moment=require(_0x621f('0x4'));var BPromise=require(_0x621f('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x621f('0x6'));var rimraf=require(_0x621f('0x7'));var config=require(_0x621f('0x8'));var attributes=require(_0x621f('0x9'));module[_0x621f('0xa')]=function(_0x3e6306,_0x5e6d5c){return _0x3e6306[_0x621f('0xb')](_0x621f('0xc'),attributes,{'tableName':_0x621f('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};