af477e48ffb090352a846a905e327441d4bcb80f
[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 _0xaf11=['get','isAuthenticated','index','/:id','show','create','put','update','delete','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopperAdditionalPhone.controller'];(function(_0x3f2302,_0x3c3363){var _0x55fed4=function(_0x14d32e){while(--_0x14d32e){_0x3f2302['push'](_0x3f2302['shift']());}};_0x55fed4(++_0x3c3363);}(_0xaf11,0xfa));var _0x1af1=function(_0x41f38a,_0x5c78da){_0x41f38a=_0x41f38a-0x0;var _0xab5811=_0xaf11[_0x41f38a];return _0xab5811;};'use strict';var multer=require(_0x1af1('0x0'));var util=require(_0x1af1('0x1'));var path=require(_0x1af1('0x2'));var timeout=require(_0x1af1('0x3'));var express=require('express');var router=express[_0x1af1('0x4')]();var fs_extra=require(_0x1af1('0x5'));var auth=require(_0x1af1('0x6'));var interaction=require(_0x1af1('0x7'));var config=require(_0x1af1('0x8'));var controller=require(_0x1af1('0x9'));router[_0x1af1('0xa')]('/',auth[_0x1af1('0xb')](),controller[_0x1af1('0xc')]);router[_0x1af1('0xa')](_0x1af1('0xd'),auth[_0x1af1('0xb')](),controller[_0x1af1('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x1af1('0xf')]);router[_0x1af1('0x10')](_0x1af1('0xd'),auth['isAuthenticated'](),controller[_0x1af1('0x11')]);router[_0x1af1('0x12')](_0x1af1('0xd'),auth[_0x1af1('0xb')](),controller['destroy']);module[_0x1af1('0x13')]=router;