fb87a5ead8664c19e2b87fcc76295bb1f37ec5db
[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 _0xa48b=['index','/:id','post','create','put','update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../config/environment','get','isAuthenticated'];(function(_0x4a8227,_0x27ab19){var _0x403b2c=function(_0x6e793d){while(--_0x6e793d){_0x4a8227['push'](_0x4a8227['shift']());}};_0x403b2c(++_0x27ab19);}(_0xa48b,0x80));var _0xba48=function(_0x17dd99,_0x2c5acd){_0x17dd99=_0x17dd99-0x0;var _0x4ecea1=_0xa48b[_0x17dd99];return _0x4ecea1;};'use strict';var multer=require(_0xba48('0x0'));var util=require(_0xba48('0x1'));var path=require(_0xba48('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xba48('0x3')]();var auth=require(_0xba48('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xba48('0x5'));var controller=require('./pause.controller');router[_0xba48('0x6')]('/',auth[_0xba48('0x7')](),controller[_0xba48('0x8')]);router[_0xba48('0x6')](_0xba48('0x9'),auth[_0xba48('0x7')](),controller['show']);router[_0xba48('0xa')]('/',auth[_0xba48('0x7')](),controller[_0xba48('0xb')]);router[_0xba48('0xc')](_0xba48('0x9'),auth['isAuthenticated'](),controller[_0xba48('0xd')]);router[_0xba48('0xe')](_0xba48('0x9'),auth[_0xba48('0x7')](),controller[_0xba48('0xf')]);module[_0xba48('0x10')]=router;