Built motion from commit da617fac.|2.6.6
[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 _0x8191=['exports','define','report_whatsapp_queue','uniqueid','lodash','util','../../config/logger','api','moment','path','rimraf'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0x8191,0x1a6));var _0x1819=function(_0x51b661,_0x566ef8){_0x51b661=_0x51b661-0x0;var _0x5d1971=_0x8191[_0x51b661];return _0x5d1971;};'use strict';var _=require(_0x1819('0x0'));var util=require(_0x1819('0x1'));var logger=require(_0x1819('0x2'))(_0x1819('0x3'));var moment=require(_0x1819('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x1819('0x5'));var rimraf=require(_0x1819('0x6'));var config=require('../../config/environment');var attributes=require('./whatsappQueueReport.attributes');module[_0x1819('0x7')]=function(_0x1b287a,_0x488419){return _0x1b287a[_0x1819('0x8')]('WhatsappQueueReport',attributes,{'tableName':_0x1819('0x9'),'paranoid':![],'indexes':[{'name':_0x1819('0xa'),'fields':[_0x1819('0xa')]}],'timestamps':!![]});};