b61ea39767d733f198f7bd9f009e2daa117944ae
[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 _0xcd96=['fs-extra','../../components/interaction/service','../../config/environment','./pause.controller','get','isAuthenticated','show','post','create','put','delete','/:id','exports','util','path','connect-timeout','express','Router'];(function(_0x18cd5b,_0x10240b){var _0x5eaa52=function(_0x2bccad){while(--_0x2bccad){_0x18cd5b['push'](_0x18cd5b['shift']());}};_0x5eaa52(++_0x10240b);}(_0xcd96,0x1e1));var _0x6cd9=function(_0x5eb22e,_0x27cbac){_0x5eb22e=_0x5eb22e-0x0;var _0x27fed5=_0xcd96[_0x5eb22e];return _0x27fed5;};'use strict';var multer=require('multer');var util=require(_0x6cd9('0x0'));var path=require(_0x6cd9('0x1'));var timeout=require(_0x6cd9('0x2'));var express=require(_0x6cd9('0x3'));var router=express[_0x6cd9('0x4')]();var fs_extra=require(_0x6cd9('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x6cd9('0x6'));var config=require(_0x6cd9('0x7'));var controller=require(_0x6cd9('0x8'));router[_0x6cd9('0x9')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/:id',auth[_0x6cd9('0xa')](),controller[_0x6cd9('0xb')]);router[_0x6cd9('0xc')]('/',auth[_0x6cd9('0xa')](),controller[_0x6cd9('0xd')]);router[_0x6cd9('0xe')]('/:id',auth[_0x6cd9('0xa')](),controller['update']);router[_0x6cd9('0xf')](_0x6cd9('0x10'),auth[_0x6cd9('0xa')](),controller['destroy']);module[_0x6cd9('0x11')]=router;