05a869fb38fa644ffa3b266621ad5f3efe1fdd95
[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 _0x80c6=['api','moment','bluebird','path','rimraf','exports','define','uniqueid','lodash','util'];(function(_0x210d7f,_0x2abe4f){var _0x42d687=function(_0x46b2ae){while(--_0x46b2ae){_0x210d7f['push'](_0x210d7f['shift']());}};_0x42d687(++_0x2abe4f);}(_0x80c6,0x76));var _0x680c=function(_0x126a29,_0x260c22){_0x126a29=_0x126a29-0x0;var _0x2e3ecd=_0x80c6[_0x126a29];return _0x2e3ecd;};'use strict';var _=require(_0x680c('0x0'));var util=require(_0x680c('0x1'));var logger=require('../../config/logger')(_0x680c('0x2'));var moment=require(_0x680c('0x3'));var BPromise=require(_0x680c('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x680c('0x5'));var rimraf=require(_0x680c('0x6'));var config=require('../../config/environment');var attributes=require('./whatsappQueueReport.attributes');module[_0x680c('0x7')]=function(_0x16daa1,_0x1e6f94){return _0x16daa1[_0x680c('0x8')]('WhatsappQueueReport',attributes,{'tableName':'report_whatsapp_queue','paranoid':![],'indexes':[{'name':_0x680c('0x9'),'fields':['uniqueid']}],'timestamps':!![]});};