f83fa4453b988a6e8821f720d2a0483581d8de4d
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0xc3b6=['Request','GetDeskAccount','name','description','username','remoteUri','authType','type','serverUrl','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','Fields','idField','nameField','customField','../../client','getDeskAccounts'];(function(_0x4d7dfa,_0x240260){var _0x9636f1=function(_0x2f771a){while(--_0x2f771a){_0x4d7dfa['push'](_0x4d7dfa['shift']());}};_0x9636f1(++_0x240260);}(_0xc3b6,0x140));var _0x6c3b=function(_0x11ce46,_0x177a85){_0x11ce46=_0x11ce46-0x0;var _0x368a1e=_0xc3b6[_0x11ce46];return _0x368a1e;};'use strict';var client=require(_0x6c3b('0x0'));exports[_0x6c3b('0x1')]=function(){return function(_0x3cc34){return client[_0x6c3b('0x2')](_0x6c3b('0x3'),{'options':{'raw':![],'attributes':['id',_0x6c3b('0x4'),_0x6c3b('0x5'),_0x6c3b('0x6'),'password',_0x6c3b('0x7'),_0x6c3b('0x8'),_0x6c3b('0x9'),_0x6c3b('0xa')],'include':[{'model':'DeskConfiguration','as':'Configurations','attributes':['id',_0x6c3b('0x4')],'include':[{'model':_0x6c3b('0xb'),'as':_0x6c3b('0xc'),'attributes':['id',_0x6c3b('0x9'),_0x6c3b('0xd'),_0x6c3b('0xe')],'include':[{'model':'Variable','as':_0x6c3b('0xf'),'attributes':['id',_0x6c3b('0x4')]}]},{'model':_0x6c3b('0xb'),'as':_0x6c3b('0x10'),'attributes':['id',_0x6c3b('0x9'),_0x6c3b('0xd'),_0x6c3b('0x11'),_0x6c3b('0x12'),'keyContent',_0x6c3b('0xe')],'include':[{'model':_0x6c3b('0xf'),'as':'Variable','attributes':['id',_0x6c3b('0x4')]}]},{'model':'DeskField','as':_0x6c3b('0x13'),'attributes':['id',_0x6c3b('0x9'),_0x6c3b('0xd'),_0x6c3b('0x14'),_0x6c3b('0x15'),_0x6c3b('0x16'),'variableName'],'include':[{'model':_0x6c3b('0xf'),'as':_0x6c3b('0xf'),'attributes':['id',_0x6c3b('0x4')]}]},{'model':'Tag','as':'Tags','attributes':['id',_0x6c3b('0x4')]}]}]},'log':_0x6c3b('0x3')});};};