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