Built motion from commit dbf3a7e2.|2.6.30
[motion2.git] / server / api / whatsappQueueReport / index.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 _0x932d=['util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','show','post','create','put','/:id','update','delete','exports','multer'];(function(_0xe78015,_0xd60f5d){var _0x3fa910=function(_0x180c14){while(--_0x180c14){_0xe78015['push'](_0xe78015['shift']());}};_0x3fa910(++_0xd60f5d);}(_0x932d,0x103));var _0xd932=function(_0x4bdae7,_0x4897d5){_0x4bdae7=_0x4bdae7-0x0;var _0x1fc5db=_0x932d[_0x4bdae7];return _0x1fc5db;};'use strict';var multer=require(_0xd932('0x0'));var util=require(_0xd932('0x1'));var path=require('path');var timeout=require(_0xd932('0x2'));var express=require(_0xd932('0x3'));var router=express[_0xd932('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xd932('0x5'));var interaction=require(_0xd932('0x6'));var config=require(_0xd932('0x7'));var controller=require('./whatsappQueueReport.controller');router[_0xd932('0x8')]('/',auth[_0xd932('0x9')](),controller[_0xd932('0xa')]);router[_0xd932('0x8')](_0xd932('0xb'),auth[_0xd932('0x9')](),controller['describe']);router['get']('/:id',auth['isAuthenticated'](),controller[_0xd932('0xc')]);router[_0xd932('0xd')]('/',auth[_0xd932('0x9')](),controller[_0xd932('0xe')]);router[_0xd932('0xf')](_0xd932('0x10'),auth['isAuthenticated'](),controller[_0xd932('0x11')]);router[_0xd932('0x12')](_0xd932('0x10'),auth['isAuthenticated'](),controller['destroy']);module[_0xd932('0x13')]=router;