adf91eb2a7a25f810b796312ae18dbe4164e5ddd
[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 _0xc359=['exports','define','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','request-promise','../../config/environment','./whatsappQueueReport.attributes'];(function(_0x221ba2,_0x79208){var _0x47d08e=function(_0xaf14ee){while(--_0xaf14ee){_0x221ba2['push'](_0x221ba2['shift']());}};_0x47d08e(++_0x79208);}(_0xc359,0x1bf));var _0x9c35=function(_0x4b6804,_0x301b24){_0x4b6804=_0x4b6804-0x0;var _0x11b4f1=_0xc359[_0x4b6804];return _0x11b4f1;};'use strict';var _=require(_0x9c35('0x0'));var util=require(_0x9c35('0x1'));var logger=require(_0x9c35('0x2'))(_0x9c35('0x3'));var moment=require(_0x9c35('0x4'));var BPromise=require(_0x9c35('0x5'));var rp=require(_0x9c35('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x9c35('0x7'));var attributes=require(_0x9c35('0x8'));module[_0x9c35('0x9')]=function(_0x1f6d32,_0x41406a){return _0x1f6d32[_0x9c35('0xa')]('WhatsappQueueReport',attributes,{'tableName':'report_whatsapp_queue','paranoid':![],'indexes':[{'name':_0x9c35('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};