95f65227e0c5cc635d3cd9f88bae19bf0dd7321b
[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 _0x8f09=['get','isAuthenticated','/:id','update','delete','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./pause.controller'];(function(_0x29b762,_0x24fa32){var _0x3af2af=function(_0x30a4fd){while(--_0x30a4fd){_0x29b762['push'](_0x29b762['shift']());}};_0x3af2af(++_0x24fa32);}(_0x8f09,0x19c));var _0x98f0=function(_0x3c60f2,_0x3ad2fa){_0x3c60f2=_0x3c60f2-0x0;var _0x2aff17=_0x8f09[_0x3c60f2];return _0x2aff17;};'use strict';var multer=require(_0x98f0('0x0'));var util=require(_0x98f0('0x1'));var path=require('path');var timeout=require(_0x98f0('0x2'));var express=require(_0x98f0('0x3'));var router=express['Router']();var fs_extra=require(_0x98f0('0x4'));var auth=require(_0x98f0('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x98f0('0x6'));var controller=require(_0x98f0('0x7'));router[_0x98f0('0x8')]('/',auth[_0x98f0('0x9')](),controller['index']);router[_0x98f0('0x8')](_0x98f0('0xa'),auth[_0x98f0('0x9')](),controller['show']);router['post']('/',auth[_0x98f0('0x9')](),controller['create']);router['put'](_0x98f0('0xa'),auth[_0x98f0('0x9')](),controller[_0x98f0('0xb')]);router[_0x98f0('0xc')](_0x98f0('0xa'),auth[_0x98f0('0x9')](),controller[_0x98f0('0xd')]);module[_0x98f0('0xe')]=router;