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