Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / pause / 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 _0x26ef=['post','update','destroy','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show'];(function(_0x586212,_0x2f8e35){var _0x14855f=function(_0x1f1345){while(--_0x1f1345){_0x586212['push'](_0x586212['shift']());}};_0x14855f(++_0x2f8e35);}(_0x26ef,0x13e));var _0xf26e=function(_0x2c5807,_0x50a219){_0x2c5807=_0x2c5807-0x0;var _0x42d217=_0x26ef[_0x2c5807];return _0x42d217;};'use strict';var multer=require('multer');var util=require(_0xf26e('0x0'));var path=require(_0xf26e('0x1'));var timeout=require(_0xf26e('0x2'));var express=require(_0xf26e('0x3'));var router=express['Router']();var fs_extra=require(_0xf26e('0x4'));var auth=require(_0xf26e('0x5'));var interaction=require(_0xf26e('0x6'));var config=require('../../config/environment');var controller=require('./pause.controller');router[_0xf26e('0x7')]('/',auth[_0xf26e('0x8')](),controller[_0xf26e('0x9')]);router[_0xf26e('0x7')](_0xf26e('0xa'),auth[_0xf26e('0x8')](),controller[_0xf26e('0xb')]);router[_0xf26e('0xc')]('/',auth[_0xf26e('0x8')](),controller['create']);router['put'](_0xf26e('0xa'),auth[_0xf26e('0x8')](),controller[_0xf26e('0xd')]);router['delete'](_0xf26e('0xa'),auth[_0xf26e('0x8')](),controller[_0xf26e('0xe')]);module['exports']=router;