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