Built motion from commit (unavailable).|2.5.18
[motion2.git] / server / api / cannedAnswer / 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 _0xd61d=['destroy','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./cannedAnswer.controller','isAuthenticated','index','/:id','show','create','put','update','delete'];(function(_0x12319e,_0xad7fdb){var _0x5b6d74=function(_0x39caaf){while(--_0x39caaf){_0x12319e['push'](_0x12319e['shift']());}};_0x5b6d74(++_0xad7fdb);}(_0xd61d,0x100));var _0xdd61=function(_0x4c4eae,_0x3b9885){_0x4c4eae=_0x4c4eae-0x0;var _0xd4372d=_0xd61d[_0x4c4eae];return _0xd4372d;};'use strict';var multer=require('multer');var util=require(_0xdd61('0x0'));var path=require(_0xdd61('0x1'));var timeout=require(_0xdd61('0x2'));var express=require(_0xdd61('0x3'));var router=express[_0xdd61('0x4')]();var auth=require(_0xdd61('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xdd61('0x6'));var controller=require(_0xdd61('0x7'));router['get']('/',auth[_0xdd61('0x8')](),controller[_0xdd61('0x9')]);router['get'](_0xdd61('0xa'),auth[_0xdd61('0x8')](),controller[_0xdd61('0xb')]);router['post']('/',auth[_0xdd61('0x8')](),controller[_0xdd61('0xc')]);router[_0xdd61('0xd')](_0xdd61('0xa'),auth[_0xdd61('0x8')](),controller[_0xdd61('0xe')]);router[_0xdd61('0xf')](_0xdd61('0xa'),auth['isAuthenticated'](),controller[_0xdd61('0x10')]);module['exports']=router;