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