040d5db0e113725df3e3e06c74e8935d6f2483e6
[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 _0xf011=['moment','bluebird','request-promise','../../config/environment','./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','util','../../config/logger','api'];(function(_0x288377,_0x5c3b04){var _0x12be42=function(_0x4bc48d){while(--_0x4bc48d){_0x288377['push'](_0x288377['shift']());}};_0x12be42(++_0x5c3b04);}(_0xf011,0x1ae));var _0x1f01=function(_0x485503,_0x3cbfd1){_0x485503=_0x485503-0x0;var _0x2d2085=_0xf011[_0x485503];return _0x2d2085;};'use strict';var _=require(_0x1f01('0x0'));var util=require(_0x1f01('0x1'));var logger=require(_0x1f01('0x2'))(_0x1f01('0x3'));var moment=require(_0x1f01('0x4'));var BPromise=require(_0x1f01('0x5'));var rp=require(_0x1f01('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x1f01('0x7'));var attributes=require(_0x1f01('0x8'));module[_0x1f01('0x9')]=function(_0x3f2aa0,_0x23dafa){return _0x3f2aa0[_0x1f01('0xa')](_0x1f01('0xb'),attributes,{'tableName':_0x1f01('0xc'),'paranoid':![],'indexes':[{'name':_0x1f01('0xd'),'fields':[_0x1f01('0xd')]}],'timestamps':!![]});};