Built motion from commit 47436d59.|2.6.7
[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 _0x4426=['keyType','keyContent','variableName','DeskField','Fields','idField','nameField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','username','password','remoteUri','type','serverUrl','Configurations','Subjects','content','Variable','Descriptions','key'];(function(_0x571c8b,_0x334306){var _0x1a1cc4=function(_0x5dd412){while(--_0x5dd412){_0x571c8b['push'](_0x571c8b['shift']());}};_0x1a1cc4(++_0x334306);}(_0x4426,0x1de));var _0x6442=function(_0x3b8bf8,_0x59e09f){_0x3b8bf8=_0x3b8bf8-0x0;var _0x481a4a=_0x4426[_0x3b8bf8];return _0x481a4a;};'use strict';var client=require(_0x6442('0x0'));exports[_0x6442('0x1')]=function(){return function(_0x4d1583){return client[_0x6442('0x2')](_0x6442('0x3'),{'options':{'raw':![],'attributes':['id',_0x6442('0x4'),'description',_0x6442('0x5'),_0x6442('0x6'),_0x6442('0x7'),'authType',_0x6442('0x8'),_0x6442('0x9')],'include':[{'model':'DeskConfiguration','as':_0x6442('0xa'),'attributes':['id','name'],'include':[{'model':'DeskField','as':_0x6442('0xb'),'attributes':['id','type',_0x6442('0xc'),'variableName'],'include':[{'model':_0x6442('0xd'),'as':_0x6442('0xd'),'attributes':['id',_0x6442('0x4')]}]},{'model':'DeskField','as':_0x6442('0xe'),'attributes':['id',_0x6442('0x8'),'content',_0x6442('0xf'),_0x6442('0x10'),_0x6442('0x11'),_0x6442('0x12')],'include':[{'model':_0x6442('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x6442('0x13'),'as':_0x6442('0x14'),'attributes':['id',_0x6442('0x8'),'content',_0x6442('0x15'),_0x6442('0x16'),_0x6442('0x17'),_0x6442('0x12')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x6442('0x4')]}]},{'model':_0x6442('0x18'),'as':_0x6442('0x19'),'attributes':['id',_0x6442('0x4')]}]}]},'log':_0x6442('0x3')});};};