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