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