3d56be0c2bbcd7a0f3e19b756d55269cdbe43d4d
[motion2.git] / server / api / chatQueueReport / chatQueueReport.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 _0x9138=['uniqueid','lodash','util','../../config/logger','api','moment','request-promise','rimraf','../../config/environment','exports','define','report_chat_queue'];(function(_0x104d0f,_0x2a3703){var _0x366299=function(_0x29afe7){while(--_0x29afe7){_0x104d0f['push'](_0x104d0f['shift']());}};_0x366299(++_0x2a3703);}(_0x9138,0xfd));var _0x8913=function(_0x324012,_0x23f45f){_0x324012=_0x324012-0x0;var _0x435cf2=_0x9138[_0x324012];return _0x435cf2;};'use strict';var _=require(_0x8913('0x0'));var util=require(_0x8913('0x1'));var logger=require(_0x8913('0x2'))(_0x8913('0x3'));var moment=require(_0x8913('0x4'));var BPromise=require('bluebird');var rp=require(_0x8913('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x8913('0x6'));var config=require(_0x8913('0x7'));var attributes=require('./chatQueueReport.attributes');module[_0x8913('0x8')]=function(_0x3eaf8e,_0x23f228){return _0x3eaf8e[_0x8913('0x9')]('ChatQueueReport',attributes,{'tableName':_0x8913('0xa'),'paranoid':![],'indexes':[{'name':_0x8913('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};