Built motion from commit 67e5df37.|2.0.68
[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 _0x2918=['isAuthenticated','show','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_finals','getHopperFinals','/:id/hopper_black','getHopperBlacks','/:id/lists','getBlackLists','post','create','/:id/clone','clone','addLists','/:id/blacklists','addBlackLists','update','delete','removeLists','exports','util','path','Router','../../config/environment','get','index','/:id'];(function(_0x374e90,_0x9daabf){var _0x485e56=function(_0x42026e){while(--_0x42026e){_0x374e90['push'](_0x374e90['shift']());}};_0x485e56(++_0x9daabf);}(_0x2918,0x1d9));var _0x8291=function(_0x28fa13,_0x16beb4){_0x28fa13=_0x28fa13-0x0;var _0x1aa8d8=_0x2918[_0x28fa13];return _0x1aa8d8;};'use strict';var multer=require('multer');var util=require(_0x8291('0x0'));var path=require(_0x8291('0x1'));var express=require('express');var router=express[_0x8291('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8291('0x3'));var controller=require('./campaign.controller');router[_0x8291('0x4')]('/',auth['isAuthenticated'](),controller[_0x8291('0x5')]);router[_0x8291('0x4')](_0x8291('0x6'),auth[_0x8291('0x7')](),controller[_0x8291('0x8')]);router[_0x8291('0x4')](_0x8291('0x9'),auth['isAuthenticated'](),controller[_0x8291('0xa')]);router['get'](_0x8291('0xb'),auth[_0x8291('0x7')](),controller[_0x8291('0xc')]);router['get'](_0x8291('0xd'),auth[_0x8291('0x7')](),controller[_0x8291('0xe')]);router['get'](_0x8291('0xf'),auth[_0x8291('0x7')](),controller[_0x8291('0x10')]);router[_0x8291('0x4')](_0x8291('0x11'),auth['isAuthenticated'](),controller['getLists']);router[_0x8291('0x4')]('/:id/blacklists',auth[_0x8291('0x7')](),controller[_0x8291('0x12')]);router[_0x8291('0x13')]('/',auth['isAuthenticated'](),controller[_0x8291('0x14')]);router[_0x8291('0x13')](_0x8291('0x15'),auth['isAuthenticated'](),controller[_0x8291('0x16')]);router['post'](_0x8291('0x11'),auth[_0x8291('0x7')](),controller[_0x8291('0x17')]);router[_0x8291('0x13')](_0x8291('0x18'),auth[_0x8291('0x7')](),controller[_0x8291('0x19')]);router['put'](_0x8291('0x6'),auth[_0x8291('0x7')](),controller[_0x8291('0x1a')]);router[_0x8291('0x1b')](_0x8291('0x6'),auth[_0x8291('0x7')](),controller['destroy']);router[_0x8291('0x1b')](_0x8291('0x11'),auth[_0x8291('0x7')](),controller[_0x8291('0x1c')]);router['delete'](_0x8291('0x18'),auth[_0x8291('0x7')](),controller['removeBlackLists']);module[_0x8291('0x1d')]=router;