4c05c006b89b53635c1ceff9a07297d121abc348
[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 _0x390a=['../../components/auth/service','../../components/interaction/service','./cmHopperFinal.controller','get','isAuthenticated','/describe','/:id','show','countContactsQueueCampaignHopperFinal','/campaign/countAttributes/:id','countContactsIvrCampaignHopperFinal','post','moveContactsQueueCampaignHopperFinal','moveContactsIvrCampaignHopperFinal','/checkContactHopper','update','exports','multer','util','path','connect-timeout','Router','fs-extra'];(function(_0x1ee3d4,_0x38f6f2){var _0x1bd4e7=function(_0x17cec9){while(--_0x17cec9){_0x1ee3d4['push'](_0x1ee3d4['shift']());}};_0x1bd4e7(++_0x38f6f2);}(_0x390a,0xc9));var _0xa390=function(_0x5e3b42,_0x37748f){_0x5e3b42=_0x5e3b42-0x0;var _0x19c964=_0x390a[_0x5e3b42];return _0x19c964;};'use strict';var multer=require(_0xa390('0x0'));var util=require(_0xa390('0x1'));var path=require(_0xa390('0x2'));var timeout=require(_0xa390('0x3'));var express=require('express');var router=express[_0xa390('0x4')]();var fs_extra=require(_0xa390('0x5'));var auth=require(_0xa390('0x6'));var interaction=require(_0xa390('0x7'));var config=require('../../config/environment');var controller=require(_0xa390('0x8'));router[_0xa390('0x9')]('/',auth[_0xa390('0xa')](),controller['index']);router[_0xa390('0x9')](_0xa390('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0xa390('0x9')](_0xa390('0xc'),auth[_0xa390('0xa')](),controller[_0xa390('0xd')]);router[_0xa390('0x9')]('/voice/queue/countAttributes/:id',auth['isAuthenticated'](),controller[_0xa390('0xe')]);router[_0xa390('0x9')](_0xa390('0xf'),auth['isAuthenticated'](),controller[_0xa390('0x10')]);router[_0xa390('0x11')]('/voice/queue/moveContacts/:id',auth[_0xa390('0xa')](),controller[_0xa390('0x12')]);router['post']('/voice/campaign/moveContacts/:id',auth[_0xa390('0xa')](),controller[_0xa390('0x13')]);router['post'](_0xa390('0x14'),auth['isAuthenticated'](),controller['checkContactHopper']);router['put'](_0xa390('0xc'),auth['isAuthenticated'](),controller[_0xa390('0x15')]);module[_0xa390('0x16')]=router;