5ccba0d0a3c3b84a14b48fb052fc0eaff9b096b7
[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 _0xbac2=['util','connect-timeout','express','fs-extra','../../components/interaction/service','./pause.controller','get','isAuthenticated','show','post','/:id','update','delete','destroy','exports','multer'];(function(_0x4b6a01,_0x386039){var _0xc374a3=function(_0x49791b){while(--_0x49791b){_0x4b6a01['push'](_0x4b6a01['shift']());}};_0xc374a3(++_0x386039);}(_0xbac2,0x17f));var _0x2bac=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0xbac2[_0x432682];return _0x463d05;};'use strict';var multer=require(_0x2bac('0x0'));var util=require(_0x2bac('0x1'));var path=require('path');var timeout=require(_0x2bac('0x2'));var express=require(_0x2bac('0x3'));var router=express['Router']();var fs_extra=require(_0x2bac('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x2bac('0x5'));var config=require('../../config/environment');var controller=require(_0x2bac('0x6'));router[_0x2bac('0x7')]('/',auth[_0x2bac('0x8')](),controller['index']);router[_0x2bac('0x7')]('/:id',auth[_0x2bac('0x8')](),controller[_0x2bac('0x9')]);router[_0x2bac('0xa')]('/',auth[_0x2bac('0x8')](),controller['create']);router['put'](_0x2bac('0xb'),auth['isAuthenticated'](),controller[_0x2bac('0xc')]);router[_0x2bac('0xd')](_0x2bac('0xb'),auth[_0x2bac('0x8')](),controller[_0x2bac('0xe')]);module[_0x2bac('0xf')]=router;