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