0bd7a29da7e7ae5d6e7a5d17c30e8bbe398f3e29
[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 _0x4da5=['post','/:id/clone','clone','addLists','/:id/blacklists','addBlackLists','put','/:id','update','delete','destroy','removeBlackLists','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./campaign.controller','get','isAuthenticated','index','show','/:id/hoppers','getHoppers','getHopperHistories','/:id/hopper_finals','/:id/hopper_black','/:id/lists','getBlackLists','create'];(function(_0x5e2ac7,_0x45265d){var _0x4fb946=function(_0x388b38){while(--_0x388b38){_0x5e2ac7['push'](_0x5e2ac7['shift']());}};_0x4fb946(++_0x45265d);}(_0x4da5,0xbc));var _0x54da=function(_0x49928f,_0x3346a7){_0x49928f=_0x49928f-0x0;var _0x41f74b=_0x4da5[_0x49928f];return _0x41f74b;};'use strict';var multer=require(_0x54da('0x0'));var util=require(_0x54da('0x1'));var path=require(_0x54da('0x2'));var timeout=require(_0x54da('0x3'));var express=require(_0x54da('0x4'));var router=express['Router']();var fs_extra=require(_0x54da('0x5'));var auth=require(_0x54da('0x6'));var interaction=require(_0x54da('0x7'));var config=require(_0x54da('0x8'));var controller=require(_0x54da('0x9'));router[_0x54da('0xa')]('/',auth[_0x54da('0xb')](),controller[_0x54da('0xc')]);router['get']('/:id',auth[_0x54da('0xb')](),controller[_0x54da('0xd')]);router[_0x54da('0xa')](_0x54da('0xe'),auth[_0x54da('0xb')](),controller[_0x54da('0xf')]);router[_0x54da('0xa')]('/:id/hopper_histories',auth[_0x54da('0xb')](),controller[_0x54da('0x10')]);router[_0x54da('0xa')](_0x54da('0x11'),auth[_0x54da('0xb')](),controller['getHopperFinals']);router[_0x54da('0xa')](_0x54da('0x12'),auth[_0x54da('0xb')](),controller['getHopperBlacks']);router[_0x54da('0xa')](_0x54da('0x13'),auth['isAuthenticated'](),controller['getLists']);router[_0x54da('0xa')]('/:id/blacklists',auth[_0x54da('0xb')](),controller[_0x54da('0x14')]);router['post']('/',auth[_0x54da('0xb')](),controller[_0x54da('0x15')]);router[_0x54da('0x16')](_0x54da('0x17'),auth['isAuthenticated'](),controller[_0x54da('0x18')]);router[_0x54da('0x16')](_0x54da('0x13'),auth['isAuthenticated'](),controller[_0x54da('0x19')]);router[_0x54da('0x16')](_0x54da('0x1a'),auth[_0x54da('0xb')](),controller[_0x54da('0x1b')]);router[_0x54da('0x1c')](_0x54da('0x1d'),auth[_0x54da('0xb')](),controller[_0x54da('0x1e')]);router[_0x54da('0x1f')](_0x54da('0x1d'),auth[_0x54da('0xb')](),controller[_0x54da('0x20')]);router[_0x54da('0x1f')]('/:id/lists',auth[_0x54da('0xb')](),controller['removeLists']);router[_0x54da('0x1f')](_0x54da('0x1a'),auth[_0x54da('0xb')](),controller[_0x54da('0x21')]);module[_0x54da('0x22')]=router;