Built motion from commit 9d7072cc.|2.5.39
[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 _0xb3ba=['keyContent','variableName','getZendeskAccounts','Request','GetZendeskAccount','name','token','remoteUri','authType','type','ZendeskConfiguration','Tag','ZendeskField','Subjects','content','Variable','Descriptions'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0xb3ba,0x1cd));var _0xab3b=function(_0x51a226,_0x5e1c1e){_0x51a226=_0x51a226-0x0;var _0x3380b6=_0xb3ba[_0x51a226];return _0x3380b6;};'use strict';var client=require('../../client');exports[_0xab3b('0x0')]=function(){return function(_0xe0b5a3){return client[_0xab3b('0x1')](_0xab3b('0x2'),{'options':{'raw':![],'attributes':['id',_0xab3b('0x3'),'username','password',_0xab3b('0x4'),_0xab3b('0x5'),_0xab3b('0x6'),'serverUrl',_0xab3b('0x7')],'include':[{'model':_0xab3b('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0xab3b('0x9'),'attributes':['id','name']},{'model':_0xab3b('0xa'),'as':_0xab3b('0xb'),'attributes':['id','type',_0xab3b('0xc'),'variableName'],'include':[{'model':'Variable','as':_0xab3b('0xd'),'attributes':['id',_0xab3b('0x3')]}]},{'model':_0xab3b('0xa'),'as':_0xab3b('0xe'),'attributes':['id',_0xab3b('0x7'),_0xab3b('0xc'),'key','keyType',_0xab3b('0xf'),_0xab3b('0x10')],'include':[{'model':_0xab3b('0xd'),'as':_0xab3b('0xd'),'attributes':['id',_0xab3b('0x3')]}]},{'model':'ZendeskField','as':'Fields','attributes':['id','type','content','idField','nameField','customField',_0xab3b('0x10')],'include':[{'model':_0xab3b('0xd'),'as':_0xab3b('0xd'),'attributes':['id','name']}]}]}]},'log':'GetZendeskAccount'});};};