Built motion from commit (unavailable).|2.5.9
[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 _0xb6c4=['lodash','util','../../config/logger','moment','bluebird','path','../../config/environment','define','WhatsappQueueReport','report_whatsapp_queue','uniqueid'];(function(_0x1008c9,_0x555ac9){var _0x349649=function(_0x27ff0d){while(--_0x27ff0d){_0x1008c9['push'](_0x1008c9['shift']());}};_0x349649(++_0x555ac9);}(_0xb6c4,0x16b));var _0x4b6c=function(_0x3e3525,_0x122667){_0x3e3525=_0x3e3525-0x0;var _0x353e0c=_0xb6c4[_0x3e3525];return _0x353e0c;};'use strict';var _=require(_0x4b6c('0x0'));var util=require(_0x4b6c('0x1'));var logger=require(_0x4b6c('0x2'))('api');var moment=require(_0x4b6c('0x3'));var BPromise=require(_0x4b6c('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4b6c('0x5'));var rimraf=require('rimraf');var config=require(_0x4b6c('0x6'));var attributes=require('./whatsappQueueReport.attributes');module['exports']=function(_0x447940,_0x310eaf){return _0x447940[_0x4b6c('0x7')](_0x4b6c('0x8'),attributes,{'tableName':_0x4b6c('0x9'),'paranoid':![],'indexes':[{'name':_0x4b6c('0xa'),'fields':['uniqueid']}],'timestamps':!![]});};