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