8aa4eacb5d54cb57981c9ace6f6a44f97cdd11d5
[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 _0x3f10=['../../config/environment','./pause.controller','get','isAuthenticated','/:id','show','post','put','delete','multer','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x17f7e0,_0x37d9e1){var _0x98c5f4=function(_0x51e278){while(--_0x51e278){_0x17f7e0['push'](_0x17f7e0['shift']());}};_0x98c5f4(++_0x37d9e1);}(_0x3f10,0xe9));var _0x03f1=function(_0x5ec47b,_0x5b8522){_0x5ec47b=_0x5ec47b-0x0;var _0x44f80d=_0x3f10[_0x5ec47b];return _0x44f80d;};'use strict';var multer=require(_0x03f1('0x0'));var util=require('util');var path=require(_0x03f1('0x1'));var timeout=require(_0x03f1('0x2'));var express=require(_0x03f1('0x3'));var router=express['Router']();var fs_extra=require(_0x03f1('0x4'));var auth=require(_0x03f1('0x5'));var interaction=require(_0x03f1('0x6'));var config=require(_0x03f1('0x7'));var controller=require(_0x03f1('0x8'));router[_0x03f1('0x9')]('/',auth[_0x03f1('0xa')](),controller['index']);router['get'](_0x03f1('0xb'),auth['isAuthenticated'](),controller[_0x03f1('0xc')]);router[_0x03f1('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x03f1('0xe')](_0x03f1('0xb'),auth[_0x03f1('0xa')](),controller['update']);router[_0x03f1('0xf')](_0x03f1('0xb'),auth[_0x03f1('0xa')](),controller['destroy']);module['exports']=router;