1861d9fce2a1b68fac2569ee5298f3c27c67f9e4
[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 _0x8994=['Subjects','content','ZendeskField','Descriptions','key','keyType','keyContent','Variable','nameField','customField','../../client','getZendeskAccounts','Request','name','username','token','remoteUri','serverUrl','type','ZendeskConfiguration','Configurations'];(function(_0x308da8,_0x13d916){var _0x13c979=function(_0x1d130f){while(--_0x1d130f){_0x308da8['push'](_0x308da8['shift']());}};_0x13c979(++_0x13d916);}(_0x8994,0x16f));var _0x4899=function(_0x166742,_0x55520c){_0x166742=_0x166742-0x0;var _0xb7814a=_0x8994[_0x166742];return _0xb7814a;};'use strict';var client=require(_0x4899('0x0'));exports[_0x4899('0x1')]=function(){return function(_0x22fb58){return client[_0x4899('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x4899('0x3'),_0x4899('0x4'),'password',_0x4899('0x5'),_0x4899('0x6'),'authType',_0x4899('0x7'),_0x4899('0x8')],'include':[{'model':_0x4899('0x9'),'as':_0x4899('0xa'),'attributes':['id',_0x4899('0x3')],'include':[{'model':'Tag','attributes':['id',_0x4899('0x3')]},{'model':'ZendeskField','as':_0x4899('0xb'),'attributes':['id',_0x4899('0x8'),_0x4899('0xc'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x4899('0x3')]}]},{'model':_0x4899('0xd'),'as':_0x4899('0xe'),'attributes':['id',_0x4899('0x8'),'content',_0x4899('0xf'),_0x4899('0x10'),_0x4899('0x11'),'variableName'],'include':[{'model':_0x4899('0x12'),'as':_0x4899('0x12'),'attributes':['id',_0x4899('0x3')]}]},{'model':_0x4899('0xd'),'as':'Fields','attributes':['id',_0x4899('0x8'),_0x4899('0xc'),'idField',_0x4899('0x13'),_0x4899('0x14'),'variableName'],'include':[{'model':_0x4899('0x12'),'as':'Variable','attributes':['id',_0x4899('0x3')]}]}]}]},'log':'GetZendeskAccount'});};};