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