Built motion from commit (unavailable).|2.5.21
[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 _0x138b=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./pause.controller','isAuthenticated','index','/:id','show','create','put','update','destroy','multer','path'];(function(_0x219fa0,_0x18b239){var _0xc603fb=function(_0x3371ad){while(--_0x3371ad){_0x219fa0['push'](_0x219fa0['shift']());}};_0xc603fb(++_0x18b239);}(_0x138b,0x130));var _0xb138=function(_0x5bc6f4,_0x4d11e0){_0x5bc6f4=_0x5bc6f4-0x0;var _0x578ea6=_0x138b[_0x5bc6f4];return _0x578ea6;};'use strict';var multer=require(_0xb138('0x0'));var util=require('util');var path=require(_0xb138('0x1'));var timeout=require(_0xb138('0x2'));var express=require(_0xb138('0x3'));var router=express[_0xb138('0x4')]();var auth=require(_0xb138('0x5'));var interaction=require(_0xb138('0x6'));var config=require(_0xb138('0x7'));var controller=require(_0xb138('0x8'));router['get']('/',auth[_0xb138('0x9')](),controller[_0xb138('0xa')]);router['get'](_0xb138('0xb'),auth[_0xb138('0x9')](),controller[_0xb138('0xc')]);router['post']('/',auth[_0xb138('0x9')](),controller[_0xb138('0xd')]);router[_0xb138('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xb138('0xf')]);router['delete'](_0xb138('0xb'),auth[_0xb138('0x9')](),controller[_0xb138('0x10')]);module['exports']=router;