3169ab1f527b62dd05b5a14702f7a9b5ffff7803
[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 _0xd5d7=['type','ZendeskConfiguration','Configurations','ZendeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','remoteUri','authType','serverUrl'];(function(_0x37e3bc,_0x151a0e){var _0x50936a=function(_0x258579){while(--_0x258579){_0x37e3bc['push'](_0x37e3bc['shift']());}};_0x50936a(++_0x151a0e);}(_0xd5d7,0xc6));var _0x7d5d=function(_0x63f01a,_0x341073){_0x63f01a=_0x63f01a-0x0;var _0xeb68ee=_0xd5d7[_0x63f01a];return _0xeb68ee;};'use strict';var client=require(_0x7d5d('0x0'));exports[_0x7d5d('0x1')]=function(){return function(_0x1e108f){return client[_0x7d5d('0x2')](_0x7d5d('0x3'),{'options':{'raw':![],'attributes':['id',_0x7d5d('0x4'),_0x7d5d('0x5'),_0x7d5d('0x6'),'token',_0x7d5d('0x7'),_0x7d5d('0x8'),_0x7d5d('0x9'),_0x7d5d('0xa')],'include':[{'model':_0x7d5d('0xb'),'as':_0x7d5d('0xc'),'attributes':['id','name'],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0x7d5d('0xd'),'as':_0x7d5d('0xe'),'attributes':['id','type',_0x7d5d('0xf'),_0x7d5d('0x10')],'include':[{'model':_0x7d5d('0x11'),'as':_0x7d5d('0x11'),'attributes':['id',_0x7d5d('0x4')]}]},{'model':_0x7d5d('0xd'),'as':_0x7d5d('0x12'),'attributes':['id',_0x7d5d('0xa'),'content',_0x7d5d('0x13'),_0x7d5d('0x14'),_0x7d5d('0x15'),_0x7d5d('0x10')],'include':[{'model':'Variable','as':_0x7d5d('0x11'),'attributes':['id','name']}]},{'model':'ZendeskField','as':_0x7d5d('0x16'),'attributes':['id',_0x7d5d('0xa'),_0x7d5d('0xf'),_0x7d5d('0x17'),_0x7d5d('0x18'),_0x7d5d('0x19'),_0x7d5d('0x10')],'include':[{'model':_0x7d5d('0x11'),'as':_0x7d5d('0x11'),'attributes':['id',_0x7d5d('0x4')]}]}]}]},'log':_0x7d5d('0x3')});};};