Built motion from commit 4c281f94.|2.6.31
[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 _0x63f1=['index','/:id','show','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_black','getHopperBlacks','/:id/lists','getLists','getBlackLists','post','clone','/:id/blacklists','put','destroy','delete','removeBlackLists','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./campaign.controller','get','isAuthenticated'];(function(_0x3c81e1,_0xab14e8){var _0xca5e75=function(_0x3d69e5){while(--_0x3d69e5){_0x3c81e1['push'](_0x3c81e1['shift']());}};_0xca5e75(++_0xab14e8);}(_0x63f1,0x71));var _0x163f=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x63f1[_0x59ee6f];return _0x4c0979;};'use strict';var multer=require(_0x163f('0x0'));var util=require(_0x163f('0x1'));var path=require(_0x163f('0x2'));var timeout=require(_0x163f('0x3'));var express=require(_0x163f('0x4'));var router=express[_0x163f('0x5')]();var fs_extra=require(_0x163f('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x163f('0x7'));var config=require('../../config/environment');var controller=require(_0x163f('0x8'));router[_0x163f('0x9')]('/',auth[_0x163f('0xa')](),controller[_0x163f('0xb')]);router[_0x163f('0x9')](_0x163f('0xc'),auth[_0x163f('0xa')](),controller[_0x163f('0xd')]);router[_0x163f('0x9')](_0x163f('0xe'),auth[_0x163f('0xa')](),controller[_0x163f('0xf')]);router[_0x163f('0x9')](_0x163f('0x10'),auth[_0x163f('0xa')](),controller[_0x163f('0x11')]);router[_0x163f('0x9')]('/:id/hopper_finals',auth[_0x163f('0xa')](),controller['getHopperFinals']);router[_0x163f('0x9')](_0x163f('0x12'),auth[_0x163f('0xa')](),controller[_0x163f('0x13')]);router[_0x163f('0x9')](_0x163f('0x14'),auth['isAuthenticated'](),controller[_0x163f('0x15')]);router[_0x163f('0x9')]('/:id/blacklists',auth['isAuthenticated'](),controller[_0x163f('0x16')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x163f('0x17')]('/:id/clone',auth[_0x163f('0xa')](),controller[_0x163f('0x18')]);router[_0x163f('0x17')](_0x163f('0x14'),auth[_0x163f('0xa')](),controller['addLists']);router['post'](_0x163f('0x19'),auth[_0x163f('0xa')](),controller['addBlackLists']);router[_0x163f('0x1a')](_0x163f('0xc'),auth[_0x163f('0xa')](),controller['update']);router['delete'](_0x163f('0xc'),auth[_0x163f('0xa')](),controller[_0x163f('0x1b')]);router[_0x163f('0x1c')](_0x163f('0x14'),auth['isAuthenticated'](),controller['removeLists']);router['delete'](_0x163f('0x19'),auth[_0x163f('0xa')](),controller[_0x163f('0x1d')]);module[_0x163f('0x1e')]=router;