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