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