78d3fd8aafa29429bfb9220aacdbed6e61baf514
[motion2.git] / server / api / pause / 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 _0xe0b0=['isAuthenticated','index','get','/:id','post','put','update','destroy','exports','util','path','Router','../../config/environment'];(function(_0x53a7a8,_0xed2bff){var _0x555f71=function(_0x48e696){while(--_0x48e696){_0x53a7a8['push'](_0x53a7a8['shift']());}};_0x555f71(++_0xed2bff);}(_0xe0b0,0x14e));var _0x0e0b=function(_0x24d920,_0x397122){_0x24d920=_0x24d920-0x0;var _0x1ef779=_0xe0b0[_0x24d920];return _0x1ef779;};'use strict';var multer=require('multer');var util=require(_0x0e0b('0x0'));var path=require(_0x0e0b('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0e0b('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x0e0b('0x3'));var controller=require('./pause.controller');router['get']('/',auth[_0x0e0b('0x4')](),controller[_0x0e0b('0x5')]);router[_0x0e0b('0x6')](_0x0e0b('0x7'),auth[_0x0e0b('0x4')](),controller['show']);router[_0x0e0b('0x8')]('/',auth['isAuthenticated'](),controller['create']);router[_0x0e0b('0x9')](_0x0e0b('0x7'),auth['isAuthenticated'](),controller[_0x0e0b('0xa')]);router['delete'](_0x0e0b('0x7'),auth[_0x0e0b('0x4')](),controller[_0x0e0b('0xb')]);module[_0x0e0b('0xc')]=router;