Built motion from commit 9d0783e6.|2.6.13
[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 _0x2d8c=['define','report_whatsapp_queue','uniqueid','util','moment','path','rimraf','../../config/environment'];(function(_0x4bfeda,_0x107bea){var _0x1b1b38=function(_0x129b3c){while(--_0x129b3c){_0x4bfeda['push'](_0x4bfeda['shift']());}};_0x1b1b38(++_0x107bea);}(_0x2d8c,0x18b));var _0xc2d8=function(_0x3cf4d3,_0x48065e){_0x3cf4d3=_0x3cf4d3-0x0;var _0x4e547b=_0x2d8c[_0x3cf4d3];return _0x4e547b;};'use strict';var _=require('lodash');var util=require(_0xc2d8('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xc2d8('0x1'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xc2d8('0x2'));var rimraf=require(_0xc2d8('0x3'));var config=require(_0xc2d8('0x4'));var attributes=require('./whatsappQueueReport.attributes');module['exports']=function(_0x21f893,_0x3b598a){return _0x21f893[_0xc2d8('0x5')]('WhatsappQueueReport',attributes,{'tableName':_0xc2d8('0x6'),'paranoid':![],'indexes':[{'name':_0xc2d8('0x7'),'fields':[_0xc2d8('0x7')]}],'timestamps':!![]});};