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 _0xe933=['rimraf','../../config/environment','exports','define','ChatQueueReport','report_chat_queue','util','../../config/logger','api','bluebird','request-promise','path'];(function(_0x1034bb,_0x4e20b3){var _0x453fdb=function(_0x455356){while(--_0x455356){_0x1034bb['push'](_0x1034bb['shift']());}};_0x453fdb(++_0x4e20b3);}(_0xe933,0xea));var _0x3e93=function(_0x819464,_0x46fc91){_0x819464=_0x819464-0x0;var _0x49dcc0=_0xe933[_0x819464];return _0x49dcc0;};'use strict';var _=require('lodash');var util=require(_0x3e93('0x0'));var logger=require(_0x3e93('0x1'))(_0x3e93('0x2'));var moment=require('moment');var BPromise=require(_0x3e93('0x3'));var rp=require(_0x3e93('0x4'));var fs=require('fs');var path=require(_0x3e93('0x5'));var rimraf=require(_0x3e93('0x6'));var config=require(_0x3e93('0x7'));var attributes=require('./chatQueueReport.attributes');module[_0x3e93('0x8')]=function(_0x4fd459,_0x37f842){return _0x4fd459[_0x3e93('0x9')](_0x3e93('0xa'),attributes,{'tableName':_0x3e93('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};