Built motion from commit (unavailable).|2.5.11
[motion2.git] / server / api / openchannelAccount / 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 _0x87e8=['/:id/canned_answers','getAnswers','/:id/applications','/:id/interactions','getInteractions','/:id/users','getAgents','create','post','addAnswer','/:id/notify','notify','addApplications','send','put','update','removeDispositions','delete','removeAnswers','removeAgents','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./openchannelAccount.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/dispositions'];(function(_0x4fd381,_0x353a9d){var _0x4a6056=function(_0xc4133b){while(--_0xc4133b){_0x4fd381['push'](_0x4fd381['shift']());}};_0x4a6056(++_0x353a9d);}(_0x87e8,0x1ac));var _0x887e=function(_0x928b87,_0x53480a){_0x928b87=_0x928b87-0x0;var _0x1e7638=_0x87e8[_0x928b87];return _0x1e7638;};'use strict';var multer=require(_0x887e('0x0'));var util=require(_0x887e('0x1'));var path=require('path');var timeout=require(_0x887e('0x2'));var express=require(_0x887e('0x3'));var router=express[_0x887e('0x4')]();var auth=require(_0x887e('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x887e('0x6'));var controller=require(_0x887e('0x7'));router[_0x887e('0x8')]('/',auth[_0x887e('0x9')](),controller[_0x887e('0xa')]);router['get'](_0x887e('0xb'),auth[_0x887e('0x9')](),controller[_0x887e('0xc')]);router['get'](_0x887e('0xd'),auth[_0x887e('0x9')](),controller[_0x887e('0xe')]);router[_0x887e('0x8')](_0x887e('0xf'),auth['isAuthenticated'](),controller['getDispositions']);router['get'](_0x887e('0x10'),auth[_0x887e('0x9')](),controller[_0x887e('0x11')]);router[_0x887e('0x8')](_0x887e('0x12'),auth[_0x887e('0x9')](),controller['getApplications']);router['get'](_0x887e('0x13'),auth['isAuthenticated'](),controller[_0x887e('0x14')]);router[_0x887e('0x8')](_0x887e('0x15'),auth[_0x887e('0x9')](),controller[_0x887e('0x16')]);router['post']('/',auth[_0x887e('0x9')](),controller[_0x887e('0x17')]);router[_0x887e('0x18')](_0x887e('0xf'),auth['isAuthenticated'](),controller['addDisposition']);router['post'](_0x887e('0x10'),auth[_0x887e('0x9')](),controller[_0x887e('0x19')]);router['post'](_0x887e('0x1a'),controller[_0x887e('0x1b')]);router['post'](_0x887e('0x12'),auth[_0x887e('0x9')](),controller[_0x887e('0x1c')]);router[_0x887e('0x18')](_0x887e('0x15'),auth[_0x887e('0x9')](),controller['addAgents']);router[_0x887e('0x18')]('/:id/send',auth[_0x887e('0x9')](),controller[_0x887e('0x1d')]);router[_0x887e('0x1e')](_0x887e('0xd'),auth['isAuthenticated'](),controller[_0x887e('0x1f')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);router['delete']('/:id/dispositions',auth[_0x887e('0x9')](),controller[_0x887e('0x20')]);router[_0x887e('0x21')]('/:id/canned_answers',auth[_0x887e('0x9')](),controller[_0x887e('0x22')]);router[_0x887e('0x21')](_0x887e('0x15'),auth['isAuthenticated'](),controller[_0x887e('0x23')]);module[_0x887e('0x24')]=router;