Built motion from commit fe909640.|2.6.8
[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 _0x6da1=['express','Router','../../components/auth/service','../../components/interaction/service','./cmHopperAdditionalPhone.controller','get','isAuthenticated','/:id','show','post','create','update','delete','destroy','exports','util','connect-timeout'];(function(_0x5b080e,_0x47a0bd){var _0x176b1a=function(_0x32ba3d){while(--_0x32ba3d){_0x5b080e['push'](_0x5b080e['shift']());}};_0x176b1a(++_0x47a0bd);}(_0x6da1,0x1b8));var _0x16da=function(_0x320b8e,_0x1da3fe){_0x320b8e=_0x320b8e-0x0;var _0x55a10a=_0x6da1[_0x320b8e];return _0x55a10a;};'use strict';var multer=require('multer');var util=require(_0x16da('0x0'));var path=require('path');var timeout=require(_0x16da('0x1'));var express=require(_0x16da('0x2'));var router=express[_0x16da('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x16da('0x4'));var interaction=require(_0x16da('0x5'));var config=require('../../config/environment');var controller=require(_0x16da('0x6'));router[_0x16da('0x7')]('/',auth[_0x16da('0x8')](),controller['index']);router['get'](_0x16da('0x9'),auth[_0x16da('0x8')](),controller[_0x16da('0xa')]);router[_0x16da('0xb')]('/',auth['isAuthenticated'](),controller[_0x16da('0xc')]);router['put'](_0x16da('0x9'),auth[_0x16da('0x8')](),controller[_0x16da('0xd')]);router[_0x16da('0xe')](_0x16da('0x9'),auth[_0x16da('0x8')](),controller[_0x16da('0xf')]);module[_0x16da('0x10')]=router;