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