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