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