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