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