186208bd1b9013a405ef80dbfbbe9c48e4735485
[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 _0x7510=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./pause.controller','get','index','/:id','show','isAuthenticated','put','delete','destroy','exports','util','path'];(function(_0x8c3330,_0x286d60){var _0x2fc128=function(_0x269c87){while(--_0x269c87){_0x8c3330['push'](_0x8c3330['shift']());}};_0x2fc128(++_0x286d60);}(_0x7510,0x18a));var _0x0751=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x7510[_0x501510];return _0x1e6ee5;};'use strict';var multer=require('multer');var util=require(_0x0751('0x0'));var path=require(_0x0751('0x1'));var timeout=require(_0x0751('0x2'));var express=require(_0x0751('0x3'));var router=express[_0x0751('0x4')]();var fs_extra=require(_0x0751('0x5'));var auth=require(_0x0751('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x0751('0x7'));var controller=require(_0x0751('0x8'));router[_0x0751('0x9')]('/',auth['isAuthenticated'](),controller[_0x0751('0xa')]);router[_0x0751('0x9')](_0x0751('0xb'),auth['isAuthenticated'](),controller[_0x0751('0xc')]);router['post']('/',auth[_0x0751('0xd')](),controller['create']);router[_0x0751('0xe')](_0x0751('0xb'),auth[_0x0751('0xd')](),controller['update']);router[_0x0751('0xf')](_0x0751('0xb'),auth[_0x0751('0xd')](),controller[_0x0751('0x10')]);module[_0x0751('0x11')]=router;