Built motion from commit 9d0783e6.|2.6.13
[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 _0xbbf6=['path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./cmHopperAdditionalPhone.controller','get','isAuthenticated','index','show','post','create','/:id','delete','destroy','exports','multer'];(function(_0x497fbb,_0x6e07b3){var _0x896437=function(_0x51a661){while(--_0x51a661){_0x497fbb['push'](_0x497fbb['shift']());}};_0x896437(++_0x6e07b3);}(_0xbbf6,0x143));var _0x6bbf=function(_0x16daa0,_0x592ec6){_0x16daa0=_0x16daa0-0x0;var _0x4d2a45=_0xbbf6[_0x16daa0];return _0x4d2a45;};'use strict';var multer=require(_0x6bbf('0x0'));var util=require('util');var path=require(_0x6bbf('0x1'));var timeout=require(_0x6bbf('0x2'));var express=require(_0x6bbf('0x3'));var router=express[_0x6bbf('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x6bbf('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x6bbf('0x6'));var controller=require(_0x6bbf('0x7'));router[_0x6bbf('0x8')]('/',auth[_0x6bbf('0x9')](),controller[_0x6bbf('0xa')]);router[_0x6bbf('0x8')]('/:id',auth[_0x6bbf('0x9')](),controller[_0x6bbf('0xb')]);router[_0x6bbf('0xc')]('/',auth['isAuthenticated'](),controller[_0x6bbf('0xd')]);router['put'](_0x6bbf('0xe'),auth[_0x6bbf('0x9')](),controller['update']);router[_0x6bbf('0xf')]('/:id',auth[_0x6bbf('0x9')](),controller[_0x6bbf('0x10')]);module[_0x6bbf('0x11')]=router;