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