150ffe69da12a1b564b1c504e4a8c497d277d2c0
[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 _0x25b6=['ChatQueueReport','report_chat_queue','uniqueid','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x25b6,0x148));var _0x625b=function(_0x2867d8,_0xef3ee0){_0x2867d8=_0x2867d8-0x0;var _0x3b8176=_0x25b6[_0x2867d8];return _0x3b8176;};'use strict';var _=require(_0x625b('0x0'));var util=require(_0x625b('0x1'));var logger=require(_0x625b('0x2'))(_0x625b('0x3'));var moment=require('moment');var BPromise=require(_0x625b('0x4'));var rp=require(_0x625b('0x5'));var fs=require('fs');var path=require(_0x625b('0x6'));var rimraf=require(_0x625b('0x7'));var config=require(_0x625b('0x8'));var attributes=require('./chatQueueReport.attributes');module[_0x625b('0x9')]=function(_0xd6cee7,_0x5f5782){return _0xd6cee7['define'](_0x625b('0xa'),attributes,{'tableName':_0x625b('0xb'),'paranoid':![],'indexes':[{'name':_0x625b('0xc'),'fields':[_0x625b('0xc')]}],'timestamps':!![]});};