518af1c7a32790daa0386af24c740c437d4fb316
[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 _0x6ffb=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','api'];(function(_0x5e5421,_0x498c0f){var _0x5b1883=function(_0x46e4d4){while(--_0x46e4d4){_0x5e5421['push'](_0x5e5421['shift']());}};_0x5b1883(++_0x498c0f);}(_0x6ffb,0xb4));var _0xb6ff=function(_0x2d70b5,_0x27a4f3){_0x2d70b5=_0x2d70b5-0x0;var _0x505efa=_0x6ffb[_0x2d70b5];return _0x505efa;};'use strict';var _=require(_0xb6ff('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xb6ff('0x1'));var moment=require(_0xb6ff('0x2'));var BPromise=require(_0xb6ff('0x3'));var rp=require(_0xb6ff('0x4'));var fs=require('fs');var path=require(_0xb6ff('0x5'));var rimraf=require(_0xb6ff('0x6'));var config=require(_0xb6ff('0x7'));var attributes=require(_0xb6ff('0x8'));module[_0xb6ff('0x9')]=function(_0x3be2d4,_0x30d1f3){return _0x3be2d4[_0xb6ff('0xa')](_0xb6ff('0xb'),attributes,{'tableName':_0xb6ff('0xc'),'paranoid':![],'indexes':[{'name':_0xb6ff('0xd'),'fields':[_0xb6ff('0xd')]}],'timestamps':!![]});};