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