Built motion from commit 9d1906d1.|2.5.40
[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 _0x130f=['report_agent_preview','lodash','util','../../config/logger','bluebird','request-promise','path','rimraf','./reportAgentPreview.attributes','exports','define','ReportAgentPreview'];(function(_0x44e4b5,_0x1b1c7b){var _0x3f7a87=function(_0x221ece){while(--_0x221ece){_0x44e4b5['push'](_0x44e4b5['shift']());}};_0x3f7a87(++_0x1b1c7b);}(_0x130f,0x151));var _0xf130=function(_0x2764c9,_0x1b0596){_0x2764c9=_0x2764c9-0x0;var _0x287c7c=_0x130f[_0x2764c9];return _0x287c7c;};'use strict';var _=require(_0xf130('0x0'));var util=require(_0xf130('0x1'));var logger=require(_0xf130('0x2'))('api');var moment=require('moment');var BPromise=require(_0xf130('0x3'));var rp=require(_0xf130('0x4'));var fs=require('fs');var path=require(_0xf130('0x5'));var rimraf=require(_0xf130('0x6'));var config=require('../../config/environment');var attributes=require(_0xf130('0x7'));module[_0xf130('0x8')]=function(_0x9ceaa5,_0x4b9ec7){return _0x9ceaa5[_0xf130('0x9')](_0xf130('0xa'),attributes,{'tableName':_0xf130('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};