1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xdfd7=['api','bluebird','request-promise','path','define','OpenchannelQueueReport','report_openchannel_queue','uniqueid','util'];(function(_0x5c086a,_0x5e49ad){var _0x416f7b=function(_0x3af942){while(--_0x3af942){_0x5c086a['push'](_0x5c086a['shift']());}};_0x416f7b(++_0x5e49ad);}(_0xdfd7,0x1dc));var _0x7dfd=function(_0x4d9cd0,_0x112ac2){_0x4d9cd0=_0x4d9cd0-0x0;var _0x4636e9=_0xdfd7[_0x4d9cd0];return _0x4636e9;};'use strict';var _=require('lodash');var util=require(_0x7dfd('0x0'));var logger=require('../../config/logger')(_0x7dfd('0x1'));var moment=require('moment');var BPromise=require(_0x7dfd('0x2'));var rp=require(_0x7dfd('0x3'));var fs=require('fs');var path=require(_0x7dfd('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./openchannelQueueReport.attributes');module['exports']=function(_0x56541c,_0x1f0c59){return _0x56541c[_0x7dfd('0x5')](_0x7dfd('0x6'),attributes,{'tableName':_0x7dfd('0x7'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x7dfd('0x8')]}],'timestamps':!![]});};