Built motion from commit (unavailable).|2.5.26
[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 _0x3d27=['multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','show','post','create','put','update','delete','/:id','destroy'];(function(_0x4045f3,_0x555e1d){var _0x588eb2=function(_0x598014){while(--_0x598014){_0x4045f3['push'](_0x4045f3['shift']());}};_0x588eb2(++_0x555e1d);}(_0x3d27,0x1a0));var _0x73d2=function(_0x59145a,_0x1f60f1){_0x59145a=_0x59145a-0x0;var _0xf04d7=_0x3d27[_0x59145a];return _0xf04d7;};'use strict';var multer=require(_0x73d2('0x0'));var util=require(_0x73d2('0x1'));var path=require('path');var timeout=require(_0x73d2('0x2'));var express=require(_0x73d2('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x73d2('0x4'));var interaction=require(_0x73d2('0x5'));var config=require('../../config/environment');var controller=require('./pause.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x73d2('0x6')]('/:id',auth[_0x73d2('0x7')](),controller[_0x73d2('0x8')]);router[_0x73d2('0x9')]('/',auth['isAuthenticated'](),controller[_0x73d2('0xa')]);router[_0x73d2('0xb')]('/:id',auth[_0x73d2('0x7')](),controller[_0x73d2('0xc')]);router[_0x73d2('0xd')](_0x73d2('0xe'),auth[_0x73d2('0x7')](),controller[_0x73d2('0xf')]);module['exports']=router;