Built motion from commit (unavailable).|2.4.4
[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 _0xca54=['username','remoteUri','type','DeskConfiguration','Configurations','Subjects','content','variableName','Variable','DeskField','Descriptions','keyType','keyContent','Fields','idField','nameField','customField','Tags','getDeskAccounts','Request','GetDeskAccount','name','description'];(function(_0x50fd0d,_0x42c936){var _0x511232=function(_0xa0291b){while(--_0xa0291b){_0x50fd0d['push'](_0x50fd0d['shift']());}};_0x511232(++_0x42c936);}(_0xca54,0x9c));var _0x4ca5=function(_0x361479,_0x216b83){_0x361479=_0x361479-0x0;var _0x40029c=_0xca54[_0x361479];return _0x40029c;};'use strict';var client=require('../../client');exports[_0x4ca5('0x0')]=function(){return function(_0x16e64c){return client[_0x4ca5('0x1')](_0x4ca5('0x2'),{'options':{'raw':![],'attributes':['id',_0x4ca5('0x3'),_0x4ca5('0x4'),_0x4ca5('0x5'),'password',_0x4ca5('0x6'),'authType',_0x4ca5('0x7'),'serverUrl'],'include':[{'model':_0x4ca5('0x8'),'as':_0x4ca5('0x9'),'attributes':['id',_0x4ca5('0x3')],'include':[{'model':'DeskField','as':_0x4ca5('0xa'),'attributes':['id',_0x4ca5('0x7'),_0x4ca5('0xb'),_0x4ca5('0xc')],'include':[{'model':_0x4ca5('0xd'),'as':_0x4ca5('0xd'),'attributes':['id',_0x4ca5('0x3')]}]},{'model':_0x4ca5('0xe'),'as':_0x4ca5('0xf'),'attributes':['id',_0x4ca5('0x7'),'content','key',_0x4ca5('0x10'),_0x4ca5('0x11'),_0x4ca5('0xc')],'include':[{'model':_0x4ca5('0xd'),'as':'Variable','attributes':['id',_0x4ca5('0x3')]}]},{'model':_0x4ca5('0xe'),'as':_0x4ca5('0x12'),'attributes':['id',_0x4ca5('0x7'),_0x4ca5('0xb'),_0x4ca5('0x13'),_0x4ca5('0x14'),_0x4ca5('0x15'),'variableName'],'include':[{'model':_0x4ca5('0xd'),'as':_0x4ca5('0xd'),'attributes':['id',_0x4ca5('0x3')]}]},{'model':'Tag','as':_0x4ca5('0x16'),'attributes':['id','name']}]}]},'log':_0x4ca5('0x2')});};};