054d60ff2603a8be82ebdc7bcdf8112a0d62e3d5
[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 _0xbec0=['authType','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','Variable','Descriptions','content','key','variableName','Fields','nameField','customField','Tag','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username','password','remoteUri'];(function(_0x2872d7,_0x20249b){var _0x301a9c=function(_0x5e35d8){while(--_0x5e35d8){_0x2872d7['push'](_0x2872d7['shift']());}};_0x301a9c(++_0x20249b);}(_0xbec0,0xf1));var _0x0bec=function(_0x47cdd5,_0x58aae2){_0x47cdd5=_0x47cdd5-0x0;var _0x51f1c8=_0xbec0[_0x47cdd5];return _0x51f1c8;};'use strict';var client=require(_0x0bec('0x0'));exports[_0x0bec('0x1')]=function(){return function(_0xf86d2b){return client[_0x0bec('0x2')](_0x0bec('0x3'),{'options':{'raw':![],'attributes':['id',_0x0bec('0x4'),_0x0bec('0x5'),_0x0bec('0x6'),_0x0bec('0x7'),_0x0bec('0x8'),_0x0bec('0x9'),_0x0bec('0xa'),_0x0bec('0xb')],'include':[{'model':_0x0bec('0xc'),'as':_0x0bec('0xd'),'attributes':['id',_0x0bec('0x4')],'include':[{'model':_0x0bec('0xe'),'as':_0x0bec('0xf'),'attributes':['id',_0x0bec('0xa'),'content','variableName'],'include':[{'model':_0x0bec('0x10'),'as':_0x0bec('0x10'),'attributes':['id',_0x0bec('0x4')]}]},{'model':_0x0bec('0xe'),'as':_0x0bec('0x11'),'attributes':['id',_0x0bec('0xa'),_0x0bec('0x12'),_0x0bec('0x13'),'keyType','keyContent',_0x0bec('0x14')],'include':[{'model':'Variable','as':_0x0bec('0x10'),'attributes':['id',_0x0bec('0x4')]}]},{'model':'DeskField','as':_0x0bec('0x15'),'attributes':['id','type','content','idField',_0x0bec('0x16'),_0x0bec('0x17'),_0x0bec('0x14')],'include':[{'model':'Variable','as':_0x0bec('0x10'),'attributes':['id','name']}]},{'model':_0x0bec('0x18'),'as':'Tags','attributes':['id','name']}]}]},'log':'GetDeskAccount'});};};