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