0e7c340edb1c01c99860c72fa681144ab2fee4e0
[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 _0xab50=['Descriptions','keyType','keyContent','Variable','Fields','idField','nameField','customField','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','name','DeskField','Subjects','content','variableName'];(function(_0x233eff,_0x5eb686){var _0x556011=function(_0x3d58dd){while(--_0x3d58dd){_0x233eff['push'](_0x233eff['shift']());}};_0x556011(++_0x5eb686);}(_0xab50,0xf3));var _0x0ab5=function(_0x176182,_0x5c2518){_0x176182=_0x176182-0x0;var _0x6f42a3=_0xab50[_0x176182];return _0x6f42a3;};'use strict';var client=require(_0x0ab5('0x0'));exports[_0x0ab5('0x1')]=function(){return function(_0x3caf30){return client[_0x0ab5('0x2')](_0x0ab5('0x3'),{'options':{'raw':![],'attributes':['id','name','description',_0x0ab5('0x4'),_0x0ab5('0x5'),_0x0ab5('0x6'),_0x0ab5('0x7'),_0x0ab5('0x8'),_0x0ab5('0x9')],'include':[{'model':_0x0ab5('0xa'),'as':_0x0ab5('0xb'),'attributes':['id',_0x0ab5('0xc')],'include':[{'model':_0x0ab5('0xd'),'as':_0x0ab5('0xe'),'attributes':['id','type',_0x0ab5('0xf'),_0x0ab5('0x10')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x0ab5('0xc')]}]},{'model':_0x0ab5('0xd'),'as':_0x0ab5('0x11'),'attributes':['id',_0x0ab5('0x8'),_0x0ab5('0xf'),'key',_0x0ab5('0x12'),_0x0ab5('0x13'),_0x0ab5('0x10')],'include':[{'model':_0x0ab5('0x14'),'as':_0x0ab5('0x14'),'attributes':['id',_0x0ab5('0xc')]}]},{'model':_0x0ab5('0xd'),'as':_0x0ab5('0x15'),'attributes':['id',_0x0ab5('0x8'),_0x0ab5('0xf'),_0x0ab5('0x16'),_0x0ab5('0x17'),_0x0ab5('0x18'),_0x0ab5('0x10')],'include':[{'model':_0x0ab5('0x14'),'as':_0x0ab5('0x14'),'attributes':['id',_0x0ab5('0xc')]}]},{'model':'Tag','as':_0x0ab5('0x19'),'attributes':['id','name']}]}]},'log':_0x0ab5('0x3')});};};