0757c90905b0f0c6f6b1959bece16b0bce2442fa
[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 _0xa064=['./whatsappQueueReport.attributes','exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','util','api','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x1d2b04,_0x152281){var _0x277f00=function(_0x5dc54a){while(--_0x5dc54a){_0x1d2b04['push'](_0x1d2b04['shift']());}};_0x277f00(++_0x152281);}(_0xa064,0x11e));var _0x4a06=function(_0x2ae15f,_0x3e1860){_0x2ae15f=_0x2ae15f-0x0;var _0x42a3d3=_0xa064[_0x2ae15f];return _0x42a3d3;};'use strict';var _=require(_0x4a06('0x0'));var util=require(_0x4a06('0x1'));var logger=require('../../config/logger')(_0x4a06('0x2'));var moment=require(_0x4a06('0x3'));var BPromise=require(_0x4a06('0x4'));var rp=require(_0x4a06('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4a06('0x6'));var config=require(_0x4a06('0x7'));var attributes=require(_0x4a06('0x8'));module[_0x4a06('0x9')]=function(_0x3214f5,_0x109b8e){return _0x3214f5[_0x4a06('0xa')](_0x4a06('0xb'),attributes,{'tableName':_0x4a06('0xc'),'paranoid':![],'indexes':[{'name':_0x4a06('0xd'),'fields':[_0x4a06('0xd')]}],'timestamps':!![]});};