e32805da37b9ba22c6461b1901ef91493e2704f0
[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 _0xb612=['update','delete','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','create','put'];(function(_0x1aba66,_0x22227e){var _0xbb212=function(_0x2a9d65){while(--_0x2a9d65){_0x1aba66['push'](_0x1aba66['shift']());}};_0xbb212(++_0x22227e);}(_0xb612,0x1a7));var _0x2b61=function(_0xb54ffa,_0x31d47f){_0xb54ffa=_0xb54ffa-0x0;var _0x5294a0=_0xb612[_0xb54ffa];return _0x5294a0;};'use strict';var multer=require('multer');var util=require(_0x2b61('0x0'));var path=require(_0x2b61('0x1'));var timeout=require(_0x2b61('0x2'));var express=require(_0x2b61('0x3'));var router=express[_0x2b61('0x4')]();var fs_extra=require(_0x2b61('0x5'));var auth=require(_0x2b61('0x6'));var interaction=require(_0x2b61('0x7'));var config=require(_0x2b61('0x8'));var controller=require('./pause.controller');router[_0x2b61('0x9')]('/',auth['isAuthenticated'](),controller[_0x2b61('0xa')]);router[_0x2b61('0x9')](_0x2b61('0xb'),auth[_0x2b61('0xc')](),controller[_0x2b61('0xd')]);router[_0x2b61('0xe')]('/',auth['isAuthenticated'](),controller[_0x2b61('0xf')]);router[_0x2b61('0x10')](_0x2b61('0xb'),auth[_0x2b61('0xc')](),controller[_0x2b61('0x11')]);router[_0x2b61('0x12')]('/:id',auth[_0x2b61('0xc')](),controller['destroy']);module[_0x2b61('0x13')]=router;