1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xef44=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','create','put','update','destroy','exports','multer','connect-timeout','express'];(function(_0x419015,_0x2d4bc2){var _0x25670e=function(_0x20cfd5){while(--_0x20cfd5){_0x419015['push'](_0x419015['shift']());}};_0x25670e(++_0x2d4bc2);}(_0xef44,0x74));var _0x4ef4=function(_0x5e4886,_0x15ce6e){_0x5e4886=_0x5e4886-0x0;var _0x1bb9f6=_0xef44[_0x5e4886];return _0x1bb9f6;};'use strict';var multer=require(_0x4ef4('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x4ef4('0x1'));var express=require(_0x4ef4('0x2'));var router=express[_0x4ef4('0x3')]();var fs_extra=require(_0x4ef4('0x4'));var auth=require(_0x4ef4('0x5'));var interaction=require(_0x4ef4('0x6'));var config=require('../../config/environment');var controller=require('./pause.controller');router[_0x4ef4('0x7')]('/',auth[_0x4ef4('0x8')](),controller[_0x4ef4('0x9')]);router[_0x4ef4('0x7')](_0x4ef4('0xa'),auth[_0x4ef4('0x8')](),controller[_0x4ef4('0xb')]);router['post']('/',auth[_0x4ef4('0x8')](),controller[_0x4ef4('0xc')]);router[_0x4ef4('0xd')](_0x4ef4('0xa'),auth['isAuthenticated'](),controller[_0x4ef4('0xe')]);router['delete'](_0x4ef4('0xa'),auth[_0x4ef4('0x8')](),controller[_0x4ef4('0xf')]);module[_0x4ef4('0x10')]=router;