Built motion from commit 9d1906d1.|2.5.40
[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 _0x99b2=['rimraf','../../config/environment','exports','report_whatsapp_queue','uniqueid','lodash','util','../../config/logger','moment','bluebird','request-promise','path'];(function(_0x22f7ff,_0x44f50c){var _0x28fae4=function(_0x2f1227){while(--_0x2f1227){_0x22f7ff['push'](_0x22f7ff['shift']());}};_0x28fae4(++_0x44f50c);}(_0x99b2,0xa1));var _0x299b=function(_0x1e405c,_0x2704a3){_0x1e405c=_0x1e405c-0x0;var _0x4953a2=_0x99b2[_0x1e405c];return _0x4953a2;};'use strict';var _=require(_0x299b('0x0'));var util=require(_0x299b('0x1'));var logger=require(_0x299b('0x2'))('api');var moment=require(_0x299b('0x3'));var BPromise=require(_0x299b('0x4'));var rp=require(_0x299b('0x5'));var fs=require('fs');var path=require(_0x299b('0x6'));var rimraf=require(_0x299b('0x7'));var config=require(_0x299b('0x8'));var attributes=require('./whatsappQueueReport.attributes');module[_0x299b('0x9')]=function(_0x372cd1,_0x2dec4c){return _0x372cd1['define']('WhatsappQueueReport',attributes,{'tableName':_0x299b('0xa'),'paranoid':![],'indexes':[{'name':_0x299b('0xb'),'fields':[_0x299b('0xb')]}],'timestamps':!![]});};