45901eed707777b1300be39e29b4e56a18a0470b
[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 _0xac33=['/:id','create','put','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./pause.controller','get','isAuthenticated','index'];(function(_0xbc4f9f,_0x111984){var _0x3bec7d=function(_0x2f5ed7){while(--_0x2f5ed7){_0xbc4f9f['push'](_0xbc4f9f['shift']());}};_0x3bec7d(++_0x111984);}(_0xac33,0xea));var _0x3ac3=function(_0x317725,_0x1bd734){_0x317725=_0x317725-0x0;var _0x1e08cb=_0xac33[_0x317725];return _0x1e08cb;};'use strict';var multer=require(_0x3ac3('0x0'));var util=require(_0x3ac3('0x1'));var path=require(_0x3ac3('0x2'));var timeout=require(_0x3ac3('0x3'));var express=require(_0x3ac3('0x4'));var router=express['Router']();var fs_extra=require(_0x3ac3('0x5'));var auth=require(_0x3ac3('0x6'));var interaction=require(_0x3ac3('0x7'));var config=require(_0x3ac3('0x8'));var controller=require(_0x3ac3('0x9'));router[_0x3ac3('0xa')]('/',auth[_0x3ac3('0xb')](),controller[_0x3ac3('0xc')]);router[_0x3ac3('0xa')](_0x3ac3('0xd'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x3ac3('0xb')](),controller[_0x3ac3('0xe')]);router[_0x3ac3('0xf')](_0x3ac3('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x3ac3('0x10')](_0x3ac3('0xd'),auth[_0x3ac3('0xb')](),controller[_0x3ac3('0x11')]);module[_0x3ac3('0x12')]=router;