Built motion from commit (unavailable).|2.5.4
[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 _0xbc7c=['destroy','../../components/auth/service','../../components/interaction/service','./pause.controller','get','/:id','post','create','put','isAuthenticated'];(function(_0x466326,_0x254adc){var _0x54ed19=function(_0x55295f){while(--_0x55295f){_0x466326['push'](_0x466326['shift']());}};_0x54ed19(++_0x254adc);}(_0xbc7c,0x155));var _0xcbc7=function(_0xd4e6b4,_0x14394e){_0xd4e6b4=_0xd4e6b4-0x0;var _0x63f282=_0xbc7c[_0xd4e6b4];return _0x63f282;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0xcbc7('0x0'));var interaction=require(_0xcbc7('0x1'));var config=require('../../config/environment');var controller=require(_0xcbc7('0x2'));router[_0xcbc7('0x3')]('/',auth['isAuthenticated'](),controller['index']);router[_0xcbc7('0x3')](_0xcbc7('0x4'),auth['isAuthenticated'](),controller['show']);router[_0xcbc7('0x5')]('/',auth['isAuthenticated'](),controller[_0xcbc7('0x6')]);router[_0xcbc7('0x7')]('/:id',auth[_0xcbc7('0x8')](),controller['update']);router['delete'](_0xcbc7('0x4'),auth[_0xcbc7('0x8')](),controller[_0xcbc7('0x9')]);module['exports']=router;