1df32b4083fbbd9b5db6d7fddab48674c1f0305f
[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 _0x328f=['../../config/environment','get','isAuthenticated','/:id','show','post','create','put','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x4e9d3c,_0x1f4b98){var _0x2d0825=function(_0x384676){while(--_0x384676){_0x4e9d3c['push'](_0x4e9d3c['shift']());}};_0x2d0825(++_0x1f4b98);}(_0x328f,0x188));var _0xf328=function(_0x305c31,_0x466b17){_0x305c31=_0x305c31-0x0;var _0x17f39f=_0x328f[_0x305c31];return _0x17f39f;};'use strict';var multer=require('multer');var util=require(_0xf328('0x0'));var path=require(_0xf328('0x1'));var timeout=require(_0xf328('0x2'));var express=require(_0xf328('0x3'));var router=express[_0xf328('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xf328('0x5'));var interaction=require(_0xf328('0x6'));var config=require(_0xf328('0x7'));var controller=require('./pause.controller');router[_0xf328('0x8')]('/',auth[_0xf328('0x9')](),controller['index']);router[_0xf328('0x8')](_0xf328('0xa'),auth['isAuthenticated'](),controller[_0xf328('0xb')]);router[_0xf328('0xc')]('/',auth[_0xf328('0x9')](),controller[_0xf328('0xd')]);router[_0xf328('0xe')](_0xf328('0xa'),auth[_0xf328('0x9')](),controller[_0xf328('0xf')]);router[_0xf328('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xf328('0x11')]);module[_0xf328('0x12')]=router;