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