Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / api / cmContactHasPhone / 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 _0x0e23=['fs-extra','../../config/environment','get','isAuthenticated','index','/:id','show','create','put','delete','exports','multer','util','express','Router'];(function(_0x54f423,_0x5795f5){var _0x240e23=function(_0x575cfc){while(--_0x575cfc){_0x54f423['push'](_0x54f423['shift']());}};_0x240e23(++_0x5795f5);}(_0x0e23,0x10a));var _0x30e2=function(_0x3bcad6,_0x238b8c){_0x3bcad6=_0x3bcad6-0x0;var _0x61523=_0x0e23[_0x3bcad6];return _0x61523;};'use strict';var multer=require(_0x30e2('0x0'));var util=require(_0x30e2('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x30e2('0x2'));var router=express[_0x30e2('0x3')]();var fs_extra=require(_0x30e2('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x30e2('0x5'));var controller=require('./cmContactHasPhone.controller');router[_0x30e2('0x6')]('/',auth[_0x30e2('0x7')](),controller[_0x30e2('0x8')]);router['get'](_0x30e2('0x9'),auth[_0x30e2('0x7')](),controller[_0x30e2('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x30e2('0xb')]);router[_0x30e2('0xc')](_0x30e2('0x9'),auth[_0x30e2('0x7')](),controller['update']);router[_0x30e2('0xd')]('/:id',auth[_0x30e2('0x7')](),controller['destroy']);module[_0x30e2('0xe')]=router;