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