fa0d84142c91bf09e4e28b3b0b1d1d26197abd6f
[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 _0x8c56=['keyType','keyContent','Fields','Tag','Tags','GetDeskAccount','getDeskAccounts','description','password','remoteUri','authType','type','serverUrl','Configurations','DeskField','Subjects','content','variableName','Variable','name','Descriptions','key'];(function(_0x5cc919,_0xa2fc68){var _0x3d5d38=function(_0x13a983){while(--_0x13a983){_0x5cc919['push'](_0x5cc919['shift']());}};_0x3d5d38(++_0xa2fc68);}(_0x8c56,0xe2));var _0x68c5=function(_0x2a53ad,_0x234135){_0x2a53ad=_0x2a53ad-0x0;var _0x31b3b6=_0x8c56[_0x2a53ad];return _0x31b3b6;};'use strict';var client=require('../../client');exports[_0x68c5('0x0')]=function(){return function(_0x2ff55d){return client['Request']('GetDeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x68c5('0x1'),'username',_0x68c5('0x2'),_0x68c5('0x3'),_0x68c5('0x4'),_0x68c5('0x5'),_0x68c5('0x6')],'include':[{'model':'DeskConfiguration','as':_0x68c5('0x7'),'attributes':['id','name'],'include':[{'model':_0x68c5('0x8'),'as':_0x68c5('0x9'),'attributes':['id',_0x68c5('0x5'),_0x68c5('0xa'),_0x68c5('0xb')],'include':[{'model':_0x68c5('0xc'),'as':_0x68c5('0xc'),'attributes':['id',_0x68c5('0xd')]}]},{'model':_0x68c5('0x8'),'as':_0x68c5('0xe'),'attributes':['id',_0x68c5('0x5'),'content',_0x68c5('0xf'),_0x68c5('0x10'),_0x68c5('0x11'),_0x68c5('0xb')],'include':[{'model':_0x68c5('0xc'),'as':_0x68c5('0xc'),'attributes':['id','name']}]},{'model':_0x68c5('0x8'),'as':_0x68c5('0x12'),'attributes':['id',_0x68c5('0x5'),'content','idField','nameField','customField',_0x68c5('0xb')],'include':[{'model':_0x68c5('0xc'),'as':_0x68c5('0xc'),'attributes':['id',_0x68c5('0xd')]}]},{'model':_0x68c5('0x13'),'as':_0x68c5('0x14'),'attributes':['id','name']}]}]},'log':_0x68c5('0x15')});};};