0f2be838d5d51bf24e27a5daca9c50f78be6f633
[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 _0x3b2d=['isAuthenticated','update','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./pause.controller','get','index','show','post','put'];(function(_0x5ab550,_0x1a7b38){var _0x19479a=function(_0x4c4fb8){while(--_0x4c4fb8){_0x5ab550['push'](_0x5ab550['shift']());}};_0x19479a(++_0x1a7b38);}(_0x3b2d,0x9c));var _0xd3b2=function(_0xf98ab6,_0x346616){_0xf98ab6=_0xf98ab6-0x0;var _0x184de2=_0x3b2d[_0xf98ab6];return _0x184de2;};'use strict';var multer=require(_0xd3b2('0x0'));var util=require(_0xd3b2('0x1'));var path=require(_0xd3b2('0x2'));var timeout=require(_0xd3b2('0x3'));var express=require(_0xd3b2('0x4'));var router=express['Router']();var fs_extra=require(_0xd3b2('0x5'));var auth=require(_0xd3b2('0x6'));var interaction=require(_0xd3b2('0x7'));var config=require(_0xd3b2('0x8'));var controller=require(_0xd3b2('0x9'));router[_0xd3b2('0xa')]('/',auth['isAuthenticated'](),controller[_0xd3b2('0xb')]);router[_0xd3b2('0xa')]('/:id',auth['isAuthenticated'](),controller[_0xd3b2('0xc')]);router[_0xd3b2('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0xd3b2('0xe')]('/:id',auth[_0xd3b2('0xf')](),controller[_0xd3b2('0x10')]);router['delete']('/:id',auth[_0xd3b2('0xf')](),controller[_0xd3b2('0x11')]);module[_0xd3b2('0x12')]=router;