a925423f33e55b0a75aeb1a63a8f44b701ed241f
[motion2.git] / server / api / cmHopperAdditionalPhone / 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 _0x1bb5=['post','put','update','exports','util','path','connect-timeout','../../components/auth/service','./cmHopperAdditionalPhone.controller','isAuthenticated','index','get','/:id','show'];(function(_0x4a0eeb,_0x5948f6){var _0x3a77be=function(_0x8d08d0){while(--_0x8d08d0){_0x4a0eeb['push'](_0x4a0eeb['shift']());}};_0x3a77be(++_0x5948f6);}(_0x1bb5,0x82));var _0x51bb=function(_0x24f5ad,_0x31ef05){_0x24f5ad=_0x24f5ad-0x0;var _0x455039=_0x1bb5[_0x24f5ad];return _0x455039;};'use strict';var multer=require('multer');var util=require(_0x51bb('0x0'));var path=require(_0x51bb('0x1'));var timeout=require(_0x51bb('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x51bb('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x51bb('0x4'));router['get']('/',auth[_0x51bb('0x5')](),controller[_0x51bb('0x6')]);router[_0x51bb('0x7')](_0x51bb('0x8'),auth[_0x51bb('0x5')](),controller[_0x51bb('0x9')]);router[_0x51bb('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x51bb('0xb')]('/:id',auth[_0x51bb('0x5')](),controller[_0x51bb('0xc')]);router['delete'](_0x51bb('0x8'),auth[_0x51bb('0x5')](),controller['destroy']);module[_0x51bb('0xd')]=router;