34955e54c2c4eb63b762d847e229d11bc0598de2
[motion2.git] / server / api / campaign / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x7939=['destroy','removeLists','removeBlackLists','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','getHoppers','/:id/hopper_histories','/:id/hopper_finals','getHopperBlacks','getBlackLists','create','post','clone','/:id/lists','addLists','/:id/blacklists','addBlackLists','put','update','delete'];(function(_0x515545,_0x39a3f7){var _0x4f4e1e=function(_0xc65bd2){while(--_0xc65bd2){_0x515545['push'](_0x515545['shift']());}};_0x4f4e1e(++_0x39a3f7);}(_0x7939,0x124));var _0x9793=function(_0x11c084,_0x1ed569){_0x11c084=_0x11c084-0x0;var _0x359bdb=_0x7939[_0x11c084];return _0x359bdb;};'use strict';var multer=require('multer');var util=require(_0x9793('0x0'));var path=require(_0x9793('0x1'));var timeout=require(_0x9793('0x2'));var express=require(_0x9793('0x3'));var router=express[_0x9793('0x4')]();var fs_extra=require(_0x9793('0x5'));var auth=require(_0x9793('0x6'));var interaction=require(_0x9793('0x7'));var config=require('../../config/environment');var controller=require('./campaign.controller');router[_0x9793('0x8')]('/',auth[_0x9793('0x9')](),controller[_0x9793('0xa')]);router[_0x9793('0x8')](_0x9793('0xb'),auth['isAuthenticated'](),controller[_0x9793('0xc')]);router[_0x9793('0x8')]('/:id/hoppers',auth[_0x9793('0x9')](),controller[_0x9793('0xd')]);router[_0x9793('0x8')](_0x9793('0xe'),auth[_0x9793('0x9')](),controller['getHopperHistories']);router[_0x9793('0x8')](_0x9793('0xf'),auth['isAuthenticated'](),controller['getHopperFinals']);router[_0x9793('0x8')]('/:id/hopper_black',auth['isAuthenticated'](),controller[_0x9793('0x10')]);router[_0x9793('0x8')]('/:id/lists',auth[_0x9793('0x9')](),controller['getLists']);router[_0x9793('0x8')]('/:id/blacklists',auth[_0x9793('0x9')](),controller[_0x9793('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0x9793('0x12')]);router[_0x9793('0x13')]('/:id/clone',auth[_0x9793('0x9')](),controller[_0x9793('0x14')]);router[_0x9793('0x13')](_0x9793('0x15'),auth[_0x9793('0x9')](),controller[_0x9793('0x16')]);router[_0x9793('0x13')](_0x9793('0x17'),auth[_0x9793('0x9')](),controller[_0x9793('0x18')]);router[_0x9793('0x19')]('/:id',auth[_0x9793('0x9')](),controller[_0x9793('0x1a')]);router[_0x9793('0x1b')](_0x9793('0xb'),auth['isAuthenticated'](),controller[_0x9793('0x1c')]);router[_0x9793('0x1b')](_0x9793('0x15'),auth['isAuthenticated'](),controller[_0x9793('0x1d')]);router['delete']('/:id/blacklists',auth[_0x9793('0x9')](),controller[_0x9793('0x1e')]);module[_0x9793('0x1f')]=router;