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