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