e1909137e7af8fae5c24d673962501c307352807
[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 _0xd0a3=['Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','username','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','variableName','Variable','Descriptions','content','key','Tag'];(function(_0x155177,_0x593299){var _0x203f5f=function(_0xe58d6){while(--_0xe58d6){_0x155177['push'](_0x155177['shift']());}};_0x203f5f(++_0x593299);}(_0xd0a3,0xd3));var _0x3d0a=function(_0x2acb00,_0x488792){_0x2acb00=_0x2acb00-0x0;var _0x291f3f=_0xd0a3[_0x2acb00];return _0x291f3f;};'use strict';var client=require(_0x3d0a('0x0'));exports[_0x3d0a('0x1')]=function(){return function(_0x457541){return client[_0x3d0a('0x2')](_0x3d0a('0x3'),{'options':{'raw':![],'attributes':['id',_0x3d0a('0x4'),'description',_0x3d0a('0x5'),'password',_0x3d0a('0x6'),_0x3d0a('0x7'),_0x3d0a('0x8'),_0x3d0a('0x9')],'include':[{'model':_0x3d0a('0xa'),'as':_0x3d0a('0xb'),'attributes':['id','name'],'include':[{'model':_0x3d0a('0xc'),'as':_0x3d0a('0xd'),'attributes':['id','type','content',_0x3d0a('0xe')],'include':[{'model':'Variable','as':_0x3d0a('0xf'),'attributes':['id','name']}]},{'model':'DeskField','as':_0x3d0a('0x10'),'attributes':['id','type',_0x3d0a('0x11'),_0x3d0a('0x12'),'keyType','keyContent',_0x3d0a('0xe')],'include':[{'model':_0x3d0a('0xf'),'as':_0x3d0a('0xf'),'attributes':['id',_0x3d0a('0x4')]}]},{'model':_0x3d0a('0xc'),'as':'Fields','attributes':['id','type',_0x3d0a('0x11'),'idField','nameField','customField',_0x3d0a('0xe')],'include':[{'model':'Variable','as':_0x3d0a('0xf'),'attributes':['id',_0x3d0a('0x4')]}]},{'model':_0x3d0a('0x13'),'as':_0x3d0a('0x14'),'attributes':['id',_0x3d0a('0x4')]}]}]},'log':'GetDeskAccount'});};};