Built motion from commit 00bf23f6.|2.6.16
[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 _0x8e54=['moment','bluebird','request-promise','path','../../config/environment','./reportAgentPreview.attributes','exports','define','ReportAgentPreview','report_agent_preview','lodash','util'];(function(_0x5538a4,_0xe0b8b0){var _0x530a52=function(_0x1ebe09){while(--_0x1ebe09){_0x5538a4['push'](_0x5538a4['shift']());}};_0x530a52(++_0xe0b8b0);}(_0x8e54,0xca));var _0x48e5=function(_0x35d988,_0x104c5a){_0x35d988=_0x35d988-0x0;var _0x10bcd8=_0x8e54[_0x35d988];return _0x10bcd8;};'use strict';var _=require(_0x48e5('0x0'));var util=require(_0x48e5('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x48e5('0x2'));var BPromise=require(_0x48e5('0x3'));var rp=require(_0x48e5('0x4'));var fs=require('fs');var path=require(_0x48e5('0x5'));var rimraf=require('rimraf');var config=require(_0x48e5('0x6'));var attributes=require(_0x48e5('0x7'));module[_0x48e5('0x8')]=function(_0x20ce40,_0x4c9f74){return _0x20ce40[_0x48e5('0x9')](_0x48e5('0xa'),attributes,{'tableName':_0x48e5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};