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