11f0e7f005c143eb7c65eba1af0bc055a11f049a
[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 _0xba0e=['path','rimraf','../../config/environment','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x248db2,_0x1a0bd7){var _0xf80c5d=function(_0x4941ab){while(--_0x4941ab){_0x248db2['push'](_0x248db2['shift']());}};_0xf80c5d(++_0x1a0bd7);}(_0xba0e,0x1ab));var _0xeba0=function(_0x450ca6,_0xbbf162){_0x450ca6=_0x450ca6-0x0;var _0x286a84=_0xba0e[_0x450ca6];return _0x286a84;};'use strict';var _=require(_0xeba0('0x0'));var util=require(_0xeba0('0x1'));var logger=require(_0xeba0('0x2'))(_0xeba0('0x3'));var moment=require(_0xeba0('0x4'));var BPromise=require(_0xeba0('0x5'));var rp=require(_0xeba0('0x6'));var fs=require('fs');var path=require(_0xeba0('0x7'));var rimraf=require(_0xeba0('0x8'));var config=require(_0xeba0('0x9'));var attributes=require('./whatsappQueueReport.attributes');module['exports']=function(_0x1f7a4a,_0x26b3c1){return _0x1f7a4a[_0xeba0('0xa')](_0xeba0('0xb'),attributes,{'tableName':_0xeba0('0xc'),'paranoid':![],'indexes':[{'name':_0xeba0('0xd'),'fields':[_0xeba0('0xd')]}],'timestamps':!![]});};