Built motion from commit da617fac.|2.6.6
[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 _0xc793=['getDeskAccounts','Request','GetDeskAccount','name','description','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','variableName','Variable','content','key','keyType','keyContent','Tag','Tags','../../client'];(function(_0x3ef99c,_0x1b8a38){var _0x567c85=function(_0x55d1d5){while(--_0x55d1d5){_0x3ef99c['push'](_0x3ef99c['shift']());}};_0x567c85(++_0x1b8a38);}(_0xc793,0x8f));var _0x3c79=function(_0x13451f,_0xb3ed7e){_0x13451f=_0x13451f-0x0;var _0x5a9df7=_0xc793[_0x13451f];return _0x5a9df7;};'use strict';var client=require(_0x3c79('0x0'));exports[_0x3c79('0x1')]=function(){return function(_0x25f472){return client[_0x3c79('0x2')](_0x3c79('0x3'),{'options':{'raw':![],'attributes':['id',_0x3c79('0x4'),_0x3c79('0x5'),_0x3c79('0x6'),_0x3c79('0x7'),_0x3c79('0x8'),_0x3c79('0x9'),_0x3c79('0xa'),_0x3c79('0xb')],'include':[{'model':_0x3c79('0xc'),'as':_0x3c79('0xd'),'attributes':['id',_0x3c79('0x4')],'include':[{'model':_0x3c79('0xe'),'as':_0x3c79('0xf'),'attributes':['id',_0x3c79('0xa'),'content',_0x3c79('0x10')],'include':[{'model':_0x3c79('0x11'),'as':_0x3c79('0x11'),'attributes':['id',_0x3c79('0x4')]}]},{'model':'DeskField','as':'Descriptions','attributes':['id',_0x3c79('0xa'),_0x3c79('0x12'),_0x3c79('0x13'),_0x3c79('0x14'),_0x3c79('0x15'),'variableName'],'include':[{'model':_0x3c79('0x11'),'as':'Variable','attributes':['id',_0x3c79('0x4')]}]},{'model':_0x3c79('0xe'),'as':'Fields','attributes':['id',_0x3c79('0xa'),_0x3c79('0x12'),'idField','nameField','customField','variableName'],'include':[{'model':'Variable','as':_0x3c79('0x11'),'attributes':['id',_0x3c79('0x4')]}]},{'model':_0x3c79('0x16'),'as':_0x3c79('0x17'),'attributes':['id','name']}]}]},'log':_0x3c79('0x3')});};};