e535ac97d7ddafcca4685f2adc3d5fcfb9ff31d1
[motion2.git] / server / api / cmHopperFinal / 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 _0xc59a=['multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopperFinal.controller','get','isAuthenticated','index','/describe','describe','show','countContactsIvrCampaignHopperFinal','post','moveContactsQueueCampaignHopperFinal','moveContactsIvrCampaignHopperFinal','/checkContactHopper','checkContactHopper','/:id','exports'];(function(_0x8e0075,_0x401880){var _0x376d13=function(_0x1e99d3){while(--_0x1e99d3){_0x8e0075['push'](_0x8e0075['shift']());}};_0x376d13(++_0x401880);}(_0xc59a,0xb8));var _0xac59=function(_0x5db0f7,_0x5e5893){_0x5db0f7=_0x5db0f7-0x0;var _0x56afaa=_0xc59a[_0x5db0f7];return _0x56afaa;};'use strict';var multer=require(_0xac59('0x0'));var util=require(_0xac59('0x1'));var path=require(_0xac59('0x2'));var timeout=require('connect-timeout');var express=require(_0xac59('0x3'));var router=express[_0xac59('0x4')]();var auth=require(_0xac59('0x5'));var interaction=require(_0xac59('0x6'));var config=require(_0xac59('0x7'));var controller=require(_0xac59('0x8'));router[_0xac59('0x9')]('/',auth[_0xac59('0xa')](),controller[_0xac59('0xb')]);router[_0xac59('0x9')](_0xac59('0xc'),auth[_0xac59('0xa')](),controller[_0xac59('0xd')]);router[_0xac59('0x9')]('/:id',auth['isAuthenticated'](),controller[_0xac59('0xe')]);router[_0xac59('0x9')]('/voice/queue/countAttributes/:id',auth[_0xac59('0xa')](),controller['countContactsQueueCampaignHopperFinal']);router[_0xac59('0x9')]('/campaign/countAttributes/:id',auth[_0xac59('0xa')](),controller[_0xac59('0xf')]);router[_0xac59('0x10')]('/voice/queue/moveContacts/:id',auth[_0xac59('0xa')](),controller[_0xac59('0x11')]);router[_0xac59('0x10')]('/voice/campaign/moveContacts/:id',auth[_0xac59('0xa')](),controller[_0xac59('0x12')]);router['post'](_0xac59('0x13'),auth['isAuthenticated'](),controller[_0xac59('0x14')]);router['put'](_0xac59('0x15'),auth['isAuthenticated'](),controller['update']);module[_0xac59('0x16')]=router;