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