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