Built motion from commit (unavailable).|2.5.4
[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 _0x377c=['getHopperFinals','getHopperBlacks','getLists','/:id/blacklists','getBlackLists','create','/:id/clone','clone','/:id/lists','addLists','post','addBlackLists','put','delete','destroy','exports','multer','util','express','Router','../../components/auth/service','../../config/environment','./campaign.controller','get','index','/:id','isAuthenticated','show','getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_finals'];(function(_0x4243a3,_0x447337){var _0x1b2a33=function(_0x6a8200){while(--_0x6a8200){_0x4243a3['push'](_0x4243a3['shift']());}};_0x1b2a33(++_0x447337);}(_0x377c,0xb0));var _0xc377=function(_0x21cefb,_0x12aa66){_0x21cefb=_0x21cefb-0x0;var _0x1a7dc6=_0x377c[_0x21cefb];return _0x1a7dc6;};'use strict';var multer=require(_0xc377('0x0'));var util=require(_0xc377('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xc377('0x2'));var router=express[_0xc377('0x3')]();var auth=require(_0xc377('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xc377('0x5'));var controller=require(_0xc377('0x6'));router[_0xc377('0x7')]('/',auth['isAuthenticated'](),controller[_0xc377('0x8')]);router[_0xc377('0x7')](_0xc377('0x9'),auth[_0xc377('0xa')](),controller[_0xc377('0xb')]);router[_0xc377('0x7')]('/:id/hoppers',auth[_0xc377('0xa')](),controller[_0xc377('0xc')]);router[_0xc377('0x7')](_0xc377('0xd'),auth['isAuthenticated'](),controller[_0xc377('0xe')]);router['get'](_0xc377('0xf'),auth[_0xc377('0xa')](),controller[_0xc377('0x10')]);router['get']('/:id/hopper_black',auth[_0xc377('0xa')](),controller[_0xc377('0x11')]);router[_0xc377('0x7')]('/:id/lists',auth['isAuthenticated'](),controller[_0xc377('0x12')]);router[_0xc377('0x7')](_0xc377('0x13'),auth[_0xc377('0xa')](),controller[_0xc377('0x14')]);router['post']('/',auth[_0xc377('0xa')](),controller[_0xc377('0x15')]);router['post'](_0xc377('0x16'),auth[_0xc377('0xa')](),controller[_0xc377('0x17')]);router['post'](_0xc377('0x18'),auth['isAuthenticated'](),controller[_0xc377('0x19')]);router[_0xc377('0x1a')](_0xc377('0x13'),auth[_0xc377('0xa')](),controller[_0xc377('0x1b')]);router[_0xc377('0x1c')]('/:id',auth[_0xc377('0xa')](),controller['update']);router[_0xc377('0x1d')](_0xc377('0x9'),auth['isAuthenticated'](),controller[_0xc377('0x1e')]);router[_0xc377('0x1d')]('/:id/lists',auth['isAuthenticated'](),controller['removeLists']);router[_0xc377('0x1d')](_0xc377('0x13'),auth['isAuthenticated'](),controller['removeBlackLists']);module[_0xc377('0x1f')]=router;