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 _0xa7cf=['getHopperHistories','/:id/hopper_finals','getHopperFinals','/:id/hopper_black','/:id/lists','getLists','/:id/blacklists','getBlackLists','post','create','/:id/clone','addLists','addBlackLists','/:id','update','delete','removeBlackLists','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./campaign.controller','get','isAuthenticated','index','/:id/hoppers','getHoppers'];(function(_0x59fb16,_0x45c22a){var _0x774d8e=function(_0x12400a){while(--_0x12400a){_0x59fb16['push'](_0x59fb16['shift']());}};_0x774d8e(++_0x45c22a);}(_0xa7cf,0xf9));var _0xfa7c=function(_0x12d951,_0x249808){_0x12d951=_0x12d951-0x0;var _0x44de17=_0xa7cf[_0x12d951];return _0x44de17;};'use strict';var multer=require(_0xfa7c('0x0'));var util=require(_0xfa7c('0x1'));var path=require(_0xfa7c('0x2'));var timeout=require(_0xfa7c('0x3'));var express=require(_0xfa7c('0x4'));var router=express[_0xfa7c('0x5')]();var fs_extra=require(_0xfa7c('0x6'));var auth=require(_0xfa7c('0x7'));var interaction=require(_0xfa7c('0x8'));var config=require('../../config/environment');var controller=require(_0xfa7c('0x9'));router[_0xfa7c('0xa')]('/',auth[_0xfa7c('0xb')](),controller[_0xfa7c('0xc')]);router[_0xfa7c('0xa')]('/:id',auth[_0xfa7c('0xb')](),controller['show']);router[_0xfa7c('0xa')](_0xfa7c('0xd'),auth['isAuthenticated'](),controller[_0xfa7c('0xe')]);router[_0xfa7c('0xa')]('/:id/hopper_histories',auth['isAuthenticated'](),controller[_0xfa7c('0xf')]);router[_0xfa7c('0xa')](_0xfa7c('0x10'),auth[_0xfa7c('0xb')](),controller[_0xfa7c('0x11')]);router[_0xfa7c('0xa')](_0xfa7c('0x12'),auth[_0xfa7c('0xb')](),controller['getHopperBlacks']);router[_0xfa7c('0xa')](_0xfa7c('0x13'),auth[_0xfa7c('0xb')](),controller[_0xfa7c('0x14')]);router['get'](_0xfa7c('0x15'),auth[_0xfa7c('0xb')](),controller[_0xfa7c('0x16')]);router[_0xfa7c('0x17')]('/',auth[_0xfa7c('0xb')](),controller[_0xfa7c('0x18')]);router[_0xfa7c('0x17')](_0xfa7c('0x19'),auth[_0xfa7c('0xb')](),controller['clone']);router['post']('/:id/lists',auth[_0xfa7c('0xb')](),controller[_0xfa7c('0x1a')]);router[_0xfa7c('0x17')](_0xfa7c('0x15'),auth['isAuthenticated'](),controller[_0xfa7c('0x1b')]);router['put'](_0xfa7c('0x1c'),auth[_0xfa7c('0xb')](),controller[_0xfa7c('0x1d')]);router[_0xfa7c('0x1e')](_0xfa7c('0x1c'),auth['isAuthenticated'](),controller['destroy']);router['delete'](_0xfa7c('0x13'),auth['isAuthenticated'](),controller['removeLists']);router['delete']('/:id/blacklists',auth['isAuthenticated'](),controller[_0xfa7c('0x1f')]);module[_0xfa7c('0x20')]=router;