Built motion from commit 43538d75.|2.5.35
[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 _0xf8f3=['password','authType','type','serverUrl','DeskConfiguration','Configurations','Subjects','content','variableName','Variable','DeskField','Descriptions','key','keyContent','idField','nameField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name'];(function(_0x408e38,_0x23cda8){var _0x426b0e=function(_0x8f2898){while(--_0x8f2898){_0x408e38['push'](_0x408e38['shift']());}};_0x426b0e(++_0x23cda8);}(_0xf8f3,0x8b));var _0x3f8f=function(_0xfa4d0a,_0x2314e3){_0xfa4d0a=_0xfa4d0a-0x0;var _0x84b6ce=_0xf8f3[_0xfa4d0a];return _0x84b6ce;};'use strict';var client=require(_0x3f8f('0x0'));exports[_0x3f8f('0x1')]=function(){return function(_0x5a8662){return client[_0x3f8f('0x2')](_0x3f8f('0x3'),{'options':{'raw':![],'attributes':['id',_0x3f8f('0x4'),'description','username',_0x3f8f('0x5'),'remoteUri',_0x3f8f('0x6'),_0x3f8f('0x7'),_0x3f8f('0x8')],'include':[{'model':_0x3f8f('0x9'),'as':_0x3f8f('0xa'),'attributes':['id',_0x3f8f('0x4')],'include':[{'model':'DeskField','as':_0x3f8f('0xb'),'attributes':['id','type',_0x3f8f('0xc'),_0x3f8f('0xd')],'include':[{'model':'Variable','as':_0x3f8f('0xe'),'attributes':['id','name']}]},{'model':_0x3f8f('0xf'),'as':_0x3f8f('0x10'),'attributes':['id',_0x3f8f('0x7'),_0x3f8f('0xc'),_0x3f8f('0x11'),'keyType',_0x3f8f('0x12'),_0x3f8f('0xd')],'include':[{'model':_0x3f8f('0xe'),'as':_0x3f8f('0xe'),'attributes':['id','name']}]},{'model':'DeskField','as':'Fields','attributes':['id',_0x3f8f('0x7'),_0x3f8f('0xc'),_0x3f8f('0x13'),_0x3f8f('0x14'),_0x3f8f('0x15'),_0x3f8f('0xd')],'include':[{'model':_0x3f8f('0xe'),'as':_0x3f8f('0xe'),'attributes':['id','name']}]},{'model':_0x3f8f('0x16'),'as':_0x3f8f('0x17'),'attributes':['id','name']}]}]},'log':_0x3f8f('0x3')});};};