7e9edfcbd5682bb5006f71a1bd7005f4c0bc3c30
[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 _0x7502=['api','moment','bluebird','request-promise','rimraf','../../config/environment','./whatsappQueueReport.attributes','exports','define','report_whatsapp_queue','uniqueid','lodash','util'];(function(_0x40d11b,_0x217dc5){var _0x3c3e13=function(_0x12e823){while(--_0x12e823){_0x40d11b['push'](_0x40d11b['shift']());}};_0x3c3e13(++_0x217dc5);}(_0x7502,0xb4));var _0x2750=function(_0x410d21,_0x211141){_0x410d21=_0x410d21-0x0;var _0x2d8b8=_0x7502[_0x410d21];return _0x2d8b8;};'use strict';var _=require(_0x2750('0x0'));var util=require(_0x2750('0x1'));var logger=require('../../config/logger')(_0x2750('0x2'));var moment=require(_0x2750('0x3'));var BPromise=require(_0x2750('0x4'));var rp=require(_0x2750('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2750('0x6'));var config=require(_0x2750('0x7'));var attributes=require(_0x2750('0x8'));module[_0x2750('0x9')]=function(_0x277312,_0xbff98a){return _0x277312[_0x2750('0xa')]('WhatsappQueueReport',attributes,{'tableName':_0x2750('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x2750('0xc')]}],'timestamps':!![]});};