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