Built motion from commit (unavailable).|2.5.29
[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 _0xdb4d=['Descriptions','key','keyType','keyContent','Fields','nameField','customField','Tag','Tags','../../client','GetDeskAccount','name','description','username','password','serverUrl','DeskField','Subjects','type','content','variableName','Variable'];(function(_0x4d674b,_0x176474){var _0x535a1f=function(_0xac7726){while(--_0xac7726){_0x4d674b['push'](_0x4d674b['shift']());}};_0x535a1f(++_0x176474);}(_0xdb4d,0x77));var _0xddb4=function(_0x23a290,_0x5f9ec6){_0x23a290=_0x23a290-0x0;var _0x40446a=_0xdb4d[_0x23a290];return _0x40446a;};'use strict';var client=require(_0xddb4('0x0'));exports['getDeskAccounts']=function(){return function(_0x248b8e){return client['Request'](_0xddb4('0x1'),{'options':{'raw':![],'attributes':['id',_0xddb4('0x2'),_0xddb4('0x3'),_0xddb4('0x4'),_0xddb4('0x5'),'remoteUri','authType','type',_0xddb4('0x6')],'include':[{'model':'DeskConfiguration','as':'Configurations','attributes':['id',_0xddb4('0x2')],'include':[{'model':_0xddb4('0x7'),'as':_0xddb4('0x8'),'attributes':['id',_0xddb4('0x9'),_0xddb4('0xa'),_0xddb4('0xb')],'include':[{'model':_0xddb4('0xc'),'as':_0xddb4('0xc'),'attributes':['id',_0xddb4('0x2')]}]},{'model':_0xddb4('0x7'),'as':_0xddb4('0xd'),'attributes':['id',_0xddb4('0x9'),_0xddb4('0xa'),_0xddb4('0xe'),_0xddb4('0xf'),_0xddb4('0x10'),_0xddb4('0xb')],'include':[{'model':_0xddb4('0xc'),'as':'Variable','attributes':['id',_0xddb4('0x2')]}]},{'model':'DeskField','as':_0xddb4('0x11'),'attributes':['id',_0xddb4('0x9'),_0xddb4('0xa'),'idField',_0xddb4('0x12'),_0xddb4('0x13'),_0xddb4('0xb')],'include':[{'model':'Variable','as':_0xddb4('0xc'),'attributes':['id',_0xddb4('0x2')]}]},{'model':_0xddb4('0x14'),'as':_0xddb4('0x15'),'attributes':['id',_0xddb4('0x2')]}]}]},'log':_0xddb4('0x1')});};};