ba99c3622d8b5d8c308c8a38b979b4c0ecffa2fa
[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 _0x8c53=['util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./pause.controller','get','isAuthenticated','index','/:id','show','post','create','delete','exports'];(function(_0x486f9c,_0x31c956){var _0x95037d=function(_0x53f27b){while(--_0x53f27b){_0x486f9c['push'](_0x486f9c['shift']());}};_0x95037d(++_0x31c956);}(_0x8c53,0x88));var _0x38c5=function(_0x8774d0,_0x5989f9){_0x8774d0=_0x8774d0-0x0;var _0x27ebed=_0x8c53[_0x8774d0];return _0x27ebed;};'use strict';var multer=require('multer');var util=require(_0x38c5('0x0'));var path=require(_0x38c5('0x1'));var timeout=require('connect-timeout');var express=require(_0x38c5('0x2'));var router=express['Router']();var fs_extra=require(_0x38c5('0x3'));var auth=require(_0x38c5('0x4'));var interaction=require(_0x38c5('0x5'));var config=require(_0x38c5('0x6'));var controller=require(_0x38c5('0x7'));router[_0x38c5('0x8')]('/',auth[_0x38c5('0x9')](),controller[_0x38c5('0xa')]);router[_0x38c5('0x8')](_0x38c5('0xb'),auth[_0x38c5('0x9')](),controller[_0x38c5('0xc')]);router[_0x38c5('0xd')]('/',auth[_0x38c5('0x9')](),controller[_0x38c5('0xe')]);router['put'](_0x38c5('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x38c5('0xf')](_0x38c5('0xb'),auth[_0x38c5('0x9')](),controller['destroy']);module[_0x38c5('0x10')]=router;