Built motion from commit b0a9a629.|2.6.33
[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 _0xb16b=['express','Router','fs-extra','../../components/auth/service','../../config/environment','./campaign.controller','get','isAuthenticated','index','/:id','show','/:id/hoppers','getHoppers','/:id/hopper_finals','getHopperFinals','/:id/lists','/:id/blacklists','getBlackLists','post','clone','addBlackLists','put','update','delete','destroy','exports','multer','util','path'];(function(_0x5201a7,_0x21f8bf){var _0x435d26=function(_0x167779){while(--_0x167779){_0x5201a7['push'](_0x5201a7['shift']());}};_0x435d26(++_0x21f8bf);}(_0xb16b,0x1ea));var _0xbb16=function(_0x537586,_0x28fa71){_0x537586=_0x537586-0x0;var _0x5545a8=_0xb16b[_0x537586];return _0x5545a8;};'use strict';var multer=require(_0xbb16('0x0'));var util=require(_0xbb16('0x1'));var path=require(_0xbb16('0x2'));var timeout=require('connect-timeout');var express=require(_0xbb16('0x3'));var router=express[_0xbb16('0x4')]();var fs_extra=require(_0xbb16('0x5'));var auth=require(_0xbb16('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xbb16('0x7'));var controller=require(_0xbb16('0x8'));router[_0xbb16('0x9')]('/',auth[_0xbb16('0xa')](),controller[_0xbb16('0xb')]);router['get'](_0xbb16('0xc'),auth[_0xbb16('0xa')](),controller[_0xbb16('0xd')]);router['get'](_0xbb16('0xe'),auth[_0xbb16('0xa')](),controller[_0xbb16('0xf')]);router[_0xbb16('0x9')]('/:id/hopper_histories',auth['isAuthenticated'](),controller['getHopperHistories']);router[_0xbb16('0x9')](_0xbb16('0x10'),auth['isAuthenticated'](),controller[_0xbb16('0x11')]);router['get']('/:id/hopper_black',auth[_0xbb16('0xa')](),controller['getHopperBlacks']);router[_0xbb16('0x9')](_0xbb16('0x12'),auth[_0xbb16('0xa')](),controller['getLists']);router[_0xbb16('0x9')](_0xbb16('0x13'),auth[_0xbb16('0xa')](),controller[_0xbb16('0x14')]);router[_0xbb16('0x15')]('/',auth[_0xbb16('0xa')](),controller['create']);router[_0xbb16('0x15')]('/:id/clone',auth['isAuthenticated'](),controller[_0xbb16('0x16')]);router[_0xbb16('0x15')](_0xbb16('0x12'),auth[_0xbb16('0xa')](),controller['addLists']);router[_0xbb16('0x15')](_0xbb16('0x13'),auth['isAuthenticated'](),controller[_0xbb16('0x17')]);router[_0xbb16('0x18')](_0xbb16('0xc'),auth[_0xbb16('0xa')](),controller[_0xbb16('0x19')]);router[_0xbb16('0x1a')](_0xbb16('0xc'),auth[_0xbb16('0xa')](),controller[_0xbb16('0x1b')]);router[_0xbb16('0x1a')](_0xbb16('0x12'),auth[_0xbb16('0xa')](),controller['removeLists']);router['delete']('/:id/blacklists',auth[_0xbb16('0xa')](),controller['removeBlackLists']);module[_0xbb16('0x1c')]=router;