4b51d2d581824e7f384a036b0a4fa9265c3b81d5
[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 _0xb97e=['show','post','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated'];(function(_0x50f6e5,_0x151ccb){var _0x5988c5=function(_0x490a93){while(--_0x490a93){_0x50f6e5['push'](_0x50f6e5['shift']());}};_0x5988c5(++_0x151ccb);}(_0xb97e,0xb2));var _0xeb97=function(_0x126558,_0x143c9a){_0x126558=_0x126558-0x0;var _0x1f6d14=_0xb97e[_0x126558];return _0x1f6d14;};'use strict';var multer=require(_0xeb97('0x0'));var util=require(_0xeb97('0x1'));var path=require('path');var timeout=require(_0xeb97('0x2'));var express=require(_0xeb97('0x3'));var router=express[_0xeb97('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xeb97('0x5'));var interaction=require(_0xeb97('0x6'));var config=require(_0xeb97('0x7'));var controller=require('./pause.controller');router[_0xeb97('0x8')]('/',auth['isAuthenticated'](),controller[_0xeb97('0x9')]);router[_0xeb97('0x8')](_0xeb97('0xa'),auth[_0xeb97('0xb')](),controller[_0xeb97('0xc')]);router[_0xeb97('0xd')]('/',auth[_0xeb97('0xb')](),controller['create']);router[_0xeb97('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xeb97('0xf')]);router[_0xeb97('0x10')](_0xeb97('0xa'),auth['isAuthenticated'](),controller[_0xeb97('0x11')]);module[_0xeb97('0x12')]=router;