7211b5fe7700884140ea2d4481a5ba1659d2c580
[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 _0xf603=['define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x1848f5,_0x22e5ed){var _0x2ac030=function(_0x380dd9){while(--_0x380dd9){_0x1848f5['push'](_0x1848f5['shift']());}};_0x2ac030(++_0x22e5ed);}(_0xf603,0x6c));var _0x3f60=function(_0x222068,_0x3e784b){_0x222068=_0x222068-0x0;var _0x4e6e47=_0xf603[_0x222068];return _0x4e6e47;};'use strict';var _=require(_0x3f60('0x0'));var util=require('util');var logger=require(_0x3f60('0x1'))(_0x3f60('0x2'));var moment=require(_0x3f60('0x3'));var BPromise=require(_0x3f60('0x4'));var rp=require(_0x3f60('0x5'));var fs=require('fs');var path=require(_0x3f60('0x6'));var rimraf=require(_0x3f60('0x7'));var config=require(_0x3f60('0x8'));var attributes=require('./whatsappQueueReport.attributes');module['exports']=function(_0x1f9cc4,_0x193d21){return _0x1f9cc4[_0x3f60('0x9')](_0x3f60('0xa'),attributes,{'tableName':_0x3f60('0xb'),'paranoid':![],'indexes':[{'name':_0x3f60('0xc'),'fields':[_0x3f60('0xc')]}],'timestamps':!![]});};