82a78f7aceb2fb366e49582cbb58e492f965671a
[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 _0x8a08=['../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash'];(function(_0x313c96,_0x3cee6e){var _0x522f53=function(_0x8961e){while(--_0x8961e){_0x313c96['push'](_0x313c96['shift']());}};_0x522f53(++_0x3cee6e);}(_0x8a08,0xb5));var _0x88a0=function(_0x5b575e,_0x295783){_0x5b575e=_0x5b575e-0x0;var _0x162ec8=_0x8a08[_0x5b575e];return _0x162ec8;};'use strict';var _=require(_0x88a0('0x0'));var util=require('util');var logger=require(_0x88a0('0x1'))('api');var moment=require(_0x88a0('0x2'));var BPromise=require(_0x88a0('0x3'));var rp=require(_0x88a0('0x4'));var fs=require('fs');var path=require(_0x88a0('0x5'));var rimraf=require(_0x88a0('0x6'));var config=require(_0x88a0('0x7'));var attributes=require(_0x88a0('0x8'));module[_0x88a0('0x9')]=function(_0x41868d,_0x239f11){return _0x41868d[_0x88a0('0xa')](_0x88a0('0xb'),attributes,{'tableName':_0x88a0('0xc'),'paranoid':![],'indexes':[{'name':_0x88a0('0xd'),'fields':[_0x88a0('0xd')]}],'timestamps':!![]});};