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