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