932669578fa0736d40dfe4fe04d13f3d9682bf25
[motion2.git] / server / api / whatsappQueueReport / whatsappQueueReport.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 _0xbdbb=['exports','define','WhatsappQueueReport','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x3a32e0,_0x69a2f1){var _0x43ae59=function(_0x234f2e){while(--_0x234f2e){_0x3a32e0['push'](_0x3a32e0['shift']());}};_0x43ae59(++_0x69a2f1);}(_0xbdbb,0xc7));var _0xbbdb=function(_0x1237b1,_0x19ce6b){_0x1237b1=_0x1237b1-0x0;var _0x429a0c=_0xbdbb[_0x1237b1];return _0x429a0c;};'use strict';var _=require(_0xbbdb('0x0'));var util=require(_0xbbdb('0x1'));var logger=require(_0xbbdb('0x2'))(_0xbbdb('0x3'));var moment=require(_0xbbdb('0x4'));var BPromise=require(_0xbbdb('0x5'));var rp=require(_0xbbdb('0x6'));var fs=require('fs');var path=require(_0xbbdb('0x7'));var rimraf=require(_0xbbdb('0x8'));var config=require('../../config/environment');var attributes=require('./whatsappQueueReport.attributes');module[_0xbbdb('0x9')]=function(_0x494461,_0x58af20){return _0x494461[_0xbbdb('0xa')](_0xbbdb('0xb'),attributes,{'tableName':'report_whatsapp_queue','paranoid':![],'indexes':[{'name':_0xbbdb('0xc'),'fields':[_0xbbdb('0xc')]}],'timestamps':!![]});};