Built motion from commit 0900f080.|2.5.45
[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 _0x5bb2=['exports','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid','lodash','api','moment','../../config/environment','./whatsappQueueReport.attributes'];(function(_0x3e0b8f,_0x1cddeb){var _0x22f742=function(_0xacb1bc){while(--_0xacb1bc){_0x3e0b8f['push'](_0x3e0b8f['shift']());}};_0x22f742(++_0x1cddeb);}(_0x5bb2,0xb9));var _0x25bb=function(_0x104ea5,_0x77735a){_0x104ea5=_0x104ea5-0x0;var _0x2061cc=_0x5bb2[_0x104ea5];return _0x2061cc;};'use strict';var _=require(_0x25bb('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x25bb('0x1'));var moment=require(_0x25bb('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x25bb('0x3'));var attributes=require(_0x25bb('0x4'));module[_0x25bb('0x5')]=function(_0x24d569,_0x976b15){return _0x24d569[_0x25bb('0x6')](_0x25bb('0x7'),attributes,{'tableName':_0x25bb('0x8'),'paranoid':![],'indexes':[{'name':_0x25bb('0x9'),'fields':[_0x25bb('0x9')]}],'timestamps':!![]});};