Built motion from commit 08fb8613.|2.6.31
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0x9931=['nameField','customField','GetZendeskAccount','../../client','getZendeskAccounts','Request','username','token','remoteUri','authType','serverUrl','ZendeskConfiguration','Configurations','name','Tag','ZendeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','idField'];(function(_0x4d9deb,_0xaae061){var _0x1766d0=function(_0x2b5342){while(--_0x2b5342){_0x4d9deb['push'](_0x4d9deb['shift']());}};_0x1766d0(++_0xaae061);}(_0x9931,0x1ac));var _0x1993=function(_0x2a2e4c,_0xe8bb83){_0x2a2e4c=_0x2a2e4c-0x0;var _0x4dc088=_0x9931[_0x2a2e4c];return _0x4dc088;};'use strict';var client=require(_0x1993('0x0'));exports[_0x1993('0x1')]=function(){return function(_0x460137){return client[_0x1993('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x1993('0x3'),'password',_0x1993('0x4'),_0x1993('0x5'),_0x1993('0x6'),_0x1993('0x7'),'type'],'include':[{'model':_0x1993('0x8'),'as':_0x1993('0x9'),'attributes':['id',_0x1993('0xa')],'include':[{'model':_0x1993('0xb'),'attributes':['id',_0x1993('0xa')]},{'model':_0x1993('0xc'),'as':_0x1993('0xd'),'attributes':['id',_0x1993('0xe'),_0x1993('0xf'),_0x1993('0x10')],'include':[{'model':'Variable','as':_0x1993('0x11'),'attributes':['id',_0x1993('0xa')]}]},{'model':_0x1993('0xc'),'as':_0x1993('0x12'),'attributes':['id',_0x1993('0xe'),'content',_0x1993('0x13'),_0x1993('0x14'),'keyContent',_0x1993('0x10')],'include':[{'model':_0x1993('0x11'),'as':'Variable','attributes':['id',_0x1993('0xa')]}]},{'model':'ZendeskField','as':'Fields','attributes':['id',_0x1993('0xe'),_0x1993('0xf'),_0x1993('0x15'),_0x1993('0x16'),_0x1993('0x17'),_0x1993('0x10')],'include':[{'model':_0x1993('0x11'),'as':_0x1993('0x11'),'attributes':['id',_0x1993('0xa')]}]}]}]},'log':_0x1993('0x18')});};};