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