Built motion from commit 616d3211.|2.6.4
[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 _0xd95d=['path','../../config/environment','./whatsappQueueReport.attributes','exports','define','report_whatsapp_queue','uniqueid','lodash','../../config/logger','api','moment','bluebird'];(function(_0x225857,_0x79425e){var _0xb93852=function(_0x3cd68b){while(--_0x3cd68b){_0x225857['push'](_0x225857['shift']());}};_0xb93852(++_0x79425e);}(_0xd95d,0x1db));var _0xdd95=function(_0x315c3c,_0x70a19c){_0x315c3c=_0x315c3c-0x0;var _0x529bda=_0xd95d[_0x315c3c];return _0x529bda;};'use strict';var _=require(_0xdd95('0x0'));var util=require('util');var logger=require(_0xdd95('0x1'))(_0xdd95('0x2'));var moment=require(_0xdd95('0x3'));var BPromise=require(_0xdd95('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdd95('0x5'));var rimraf=require('rimraf');var config=require(_0xdd95('0x6'));var attributes=require(_0xdd95('0x7'));module[_0xdd95('0x8')]=function(_0x27d40f,_0x46f675){return _0x27d40f[_0xdd95('0x9')]('WhatsappQueueReport',attributes,{'tableName':_0xdd95('0xa'),'paranoid':![],'indexes':[{'name':_0xdd95('0xb'),'fields':[_0xdd95('0xb')]}],'timestamps':!![]});};