3aae4bfee7d674f9134d5bac5d2d1d19b1455ab5
[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 _0x63ce=['define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','exports'];(function(_0x237546,_0xa81b26){var _0x233e29=function(_0x728aa4){while(--_0x728aa4){_0x237546['push'](_0x237546['shift']());}};_0x233e29(++_0xa81b26);}(_0x63ce,0x79));var _0xe63c=function(_0x2714ec,_0x36daa4){_0x2714ec=_0x2714ec-0x0;var _0x2608e5=_0x63ce[_0x2714ec];return _0x2608e5;};'use strict';var _=require(_0xe63c('0x0'));var util=require('util');var logger=require(_0xe63c('0x1'))(_0xe63c('0x2'));var moment=require(_0xe63c('0x3'));var BPromise=require(_0xe63c('0x4'));var rp=require(_0xe63c('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe63c('0x6'));var config=require(_0xe63c('0x7'));var attributes=require('./whatsappQueueReport.attributes');module[_0xe63c('0x8')]=function(_0x5dce4a,_0x3bb23e){return _0x5dce4a[_0xe63c('0x9')](_0xe63c('0xa'),attributes,{'tableName':_0xe63c('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xe63c('0xc')]}],'timestamps':!![]});};