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