573873bd559a8a7ce86a7916450bc39e174d7ea8
[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 _0x74a8=['define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./whatsappQueueReport.attributes','exports'];(function(_0x11ad95,_0x28bd1d){var _0x384454=function(_0x49d427){while(--_0x49d427){_0x11ad95['push'](_0x11ad95['shift']());}};_0x384454(++_0x28bd1d);}(_0x74a8,0xf2));var _0x874a=function(_0x3e535d,_0xe1db33){_0x3e535d=_0x3e535d-0x0;var _0x2f95c6=_0x74a8[_0x3e535d];return _0x2f95c6;};'use strict';var _=require(_0x874a('0x0'));var util=require('util');var logger=require(_0x874a('0x1'))(_0x874a('0x2'));var moment=require(_0x874a('0x3'));var BPromise=require(_0x874a('0x4'));var rp=require(_0x874a('0x5'));var fs=require('fs');var path=require(_0x874a('0x6'));var rimraf=require(_0x874a('0x7'));var config=require('../../config/environment');var attributes=require(_0x874a('0x8'));module[_0x874a('0x9')]=function(_0x15620e,_0x13f58c){return _0x15620e[_0x874a('0xa')](_0x874a('0xb'),attributes,{'tableName':_0x874a('0xc'),'paranoid':![],'indexes':[{'name':_0x874a('0xd'),'fields':[_0x874a('0xd')]}],'timestamps':!![]});};