c0aff408860943df101bf9719c1f3eada1e64a16
[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 _0xe08d=['request-promise','path','./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x2ba484,_0x5e99d0){var _0x35dcae=function(_0x5f5c5d){while(--_0x5f5c5d){_0x2ba484['push'](_0x2ba484['shift']());}};_0x35dcae(++_0x5e99d0);}(_0xe08d,0x14a));var _0xde08=function(_0x2a5e41,_0x69e2be){_0x2a5e41=_0x2a5e41-0x0;var _0x24357b=_0xe08d[_0x2a5e41];return _0x24357b;};'use strict';var _=require(_0xde08('0x0'));var util=require(_0xde08('0x1'));var logger=require(_0xde08('0x2'))(_0xde08('0x3'));var moment=require(_0xde08('0x4'));var BPromise=require(_0xde08('0x5'));var rp=require(_0xde08('0x6'));var fs=require('fs');var path=require(_0xde08('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xde08('0x8'));module[_0xde08('0x9')]=function(_0x4d8501,_0x204aa9){return _0x4d8501[_0xde08('0xa')](_0xde08('0xb'),attributes,{'tableName':_0xde08('0xc'),'paranoid':![],'indexes':[{'name':_0xde08('0xd'),'fields':[_0xde08('0xd')]}],'timestamps':!![]});};