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 _0x012f=['moment','bluebird','request-promise','path','../../config/environment','./chatQueueReport.attributes','exports','ChatQueueReport','lodash'];(function(_0xa03dd,_0x428bab){var _0x2f1e1f=function(_0x3b40e3){while(--_0x3b40e3){_0xa03dd['push'](_0xa03dd['shift']());}};_0x2f1e1f(++_0x428bab);}(_0x012f,0x86));var _0xf012=function(_0x3f582b,_0xebfae6){_0x3f582b=_0x3f582b-0x0;var _0x2290db=_0x012f[_0x3f582b];return _0x2290db;};'use strict';var _=require(_0xf012('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xf012('0x1'));var BPromise=require(_0xf012('0x2'));var rp=require(_0xf012('0x3'));var fs=require('fs');var path=require(_0xf012('0x4'));var rimraf=require('rimraf');var config=require(_0xf012('0x5'));var attributes=require(_0xf012('0x6'));module[_0xf012('0x7')]=function(_0x4e5d19,_0x2110b7){return _0x4e5d19['define'](_0xf012('0x8'),attributes,{'tableName':'report_chat_queue','paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};