Built motion from commit f7863d46.|2.5.41
[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 _0xe1f6=['bluebird','request-promise','path','exports','define','report_whatsapp_queue','uniqueid'];(function(_0x5b6414,_0x214cc5){var _0x1179e3=function(_0x424246){while(--_0x424246){_0x5b6414['push'](_0x5b6414['shift']());}};_0x1179e3(++_0x214cc5);}(_0xe1f6,0x134));var _0x6e1f=function(_0x3e9fdb,_0x40622){_0x3e9fdb=_0x3e9fdb-0x0;var _0xf847c4=_0xe1f6[_0x3e9fdb];return _0xf847c4;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x6e1f('0x0'));var rp=require(_0x6e1f('0x1'));var fs=require('fs');var path=require(_0x6e1f('0x2'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./whatsappQueueReport.attributes');module[_0x6e1f('0x3')]=function(_0x528463,_0x520189){return _0x528463[_0x6e1f('0x4')]('WhatsappQueueReport',attributes,{'tableName':_0x6e1f('0x5'),'paranoid':![],'indexes':[{'name':_0x6e1f('0x6'),'fields':[_0x6e1f('0x6')]}],'timestamps':!![]});};