f8a73266718047579ff22bd7332ceb69b4e73f9e
[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 _0x06e6=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./pause.controller','get','index','isAuthenticated','show','post','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x500419,_0x549162){var _0x241c1a=function(_0x3bea1a){while(--_0x3bea1a){_0x500419['push'](_0x500419['shift']());}};_0x241c1a(++_0x549162);}(_0x06e6,0xb0));var _0x606e=function(_0x63a96d,_0x200b67){_0x63a96d=_0x63a96d-0x0;var _0x4604b7=_0x06e6[_0x63a96d];return _0x4604b7;};'use strict';var multer=require(_0x606e('0x0'));var util=require(_0x606e('0x1'));var path=require(_0x606e('0x2'));var timeout=require(_0x606e('0x3'));var express=require(_0x606e('0x4'));var router=express[_0x606e('0x5')]();var fs_extra=require(_0x606e('0x6'));var auth=require(_0x606e('0x7'));var interaction=require(_0x606e('0x8'));var config=require('../../config/environment');var controller=require(_0x606e('0x9'));router[_0x606e('0xa')]('/',auth['isAuthenticated'](),controller[_0x606e('0xb')]);router[_0x606e('0xa')]('/:id',auth[_0x606e('0xc')](),controller[_0x606e('0xd')]);router[_0x606e('0xe')]('/',auth[_0x606e('0xc')](),controller['create']);router['put'](_0x606e('0xf'),auth['isAuthenticated'](),controller[_0x606e('0x10')]);router[_0x606e('0x11')](_0x606e('0xf'),auth[_0x606e('0xc')](),controller[_0x606e('0x12')]);module[_0x606e('0x13')]=router;