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