4650c3f57355ed0c37d55694cd2d6e5a2e9c2412
[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 _0x689b=['exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./pause.controller','isAuthenticated','index','show','create','put','/:id','update','destroy'];(function(_0xdea41a,_0x552987){var _0x15d0d8=function(_0x1e0d0b){while(--_0x1e0d0b){_0xdea41a['push'](_0xdea41a['shift']());}};_0x15d0d8(++_0x552987);}(_0x689b,0xeb));var _0xb689=function(_0x27696b,_0x1a1997){_0x27696b=_0x27696b-0x0;var _0x3df86d=_0x689b[_0x27696b];return _0x3df86d;};'use strict';var multer=require(_0xb689('0x0'));var util=require(_0xb689('0x1'));var path=require(_0xb689('0x2'));var timeout=require(_0xb689('0x3'));var express=require(_0xb689('0x4'));var router=express[_0xb689('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xb689('0x6'));var config=require(_0xb689('0x7'));var controller=require(_0xb689('0x8'));router['get']('/',auth[_0xb689('0x9')](),controller[_0xb689('0xa')]);router['get']('/:id',auth[_0xb689('0x9')](),controller[_0xb689('0xb')]);router['post']('/',auth[_0xb689('0x9')](),controller[_0xb689('0xc')]);router[_0xb689('0xd')](_0xb689('0xe'),auth[_0xb689('0x9')](),controller[_0xb689('0xf')]);router['delete'](_0xb689('0xe'),auth['isAuthenticated'](),controller[_0xb689('0x10')]);module[_0xb689('0x11')]=router;