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