42d094c3ab88ff04fc84812ff97ff3b02ed9d89a
[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 _0x605f=['put','/:id','update','delete','removeAnswers','removeAgents','exports','multer','util','path','express','Router','fs-extra','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','show','/:id/dispositions','/:id/canned_answers','getAnswers','getApplications','/:id/interactions','getInteractions','/:id/users','getAgents','create','addAnswer','post','/:id/notify','addApplications','/:id/send'];(function(_0x5c7480,_0x7f6a2c){var _0x4e7718=function(_0x2e8f1a){while(--_0x2e8f1a){_0x5c7480['push'](_0x5c7480['shift']());}};_0x4e7718(++_0x7f6a2c);}(_0x605f,0x15b));var _0xf605=function(_0x2ff35b,_0x384d6e){_0x2ff35b=_0x2ff35b-0x0;var _0x293bc3=_0x605f[_0x2ff35b];return _0x293bc3;};'use strict';var multer=require(_0xf605('0x0'));var util=require(_0xf605('0x1'));var path=require(_0xf605('0x2'));var timeout=require('connect-timeout');var express=require(_0xf605('0x3'));var router=express[_0xf605('0x4')]();var fs_extra=require(_0xf605('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf605('0x6'));var config=require('../../config/environment');var controller=require('./openchannelAccount.controller');router[_0xf605('0x7')]('/',auth[_0xf605('0x8')](),controller[_0xf605('0x9')]);router[_0xf605('0x7')](_0xf605('0xa'),auth[_0xf605('0x8')](),controller[_0xf605('0xb')]);router[_0xf605('0x7')]('/:id',auth[_0xf605('0x8')](),controller[_0xf605('0xc')]);router[_0xf605('0x7')](_0xf605('0xd'),auth[_0xf605('0x8')](),controller['getDispositions']);router[_0xf605('0x7')](_0xf605('0xe'),auth['isAuthenticated'](),controller[_0xf605('0xf')]);router[_0xf605('0x7')]('/:id/applications',auth[_0xf605('0x8')](),controller[_0xf605('0x10')]);router[_0xf605('0x7')](_0xf605('0x11'),auth['isAuthenticated'](),controller[_0xf605('0x12')]);router['get'](_0xf605('0x13'),auth[_0xf605('0x8')](),controller[_0xf605('0x14')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf605('0x15')]);router['post'](_0xf605('0xd'),auth[_0xf605('0x8')](),controller['addDisposition']);router['post'](_0xf605('0xe'),auth[_0xf605('0x8')](),controller[_0xf605('0x16')]);router[_0xf605('0x17')](_0xf605('0x18'),controller['notify']);router[_0xf605('0x17')]('/:id/applications',auth[_0xf605('0x8')](),controller[_0xf605('0x19')]);router[_0xf605('0x17')](_0xf605('0x13'),auth[_0xf605('0x8')](),controller['addAgents']);router[_0xf605('0x17')](_0xf605('0x1a'),auth[_0xf605('0x8')](),controller['send']);router[_0xf605('0x1b')](_0xf605('0x1c'),auth['isAuthenticated'](),controller[_0xf605('0x1d')]);router[_0xf605('0x1e')](_0xf605('0x1c'),auth['isAuthenticated'](),controller['destroy']);router[_0xf605('0x1e')](_0xf605('0xd'),auth[_0xf605('0x8')](),controller['removeDispositions']);router[_0xf605('0x1e')](_0xf605('0xe'),auth['isAuthenticated'](),controller[_0xf605('0x1f')]);router[_0xf605('0x1e')]('/:id/users',auth['isAuthenticated'](),controller[_0xf605('0x20')]);module[_0xf605('0x21')]=router;