Built motion from commit d5e4af8c.|2.6.23
[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 _0xdfbb=['GetZendeskAccount','password','remoteUri','authType','serverUrl','type','Configurations','Tag','name','ZendeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','../../client','Request'];(function(_0xa1b201,_0x48ed43){var _0x48ea40=function(_0x7cc619){while(--_0x7cc619){_0xa1b201['push'](_0xa1b201['shift']());}};_0x48ea40(++_0x48ed43);}(_0xdfbb,0x148));var _0xbdfb=function(_0x5b262d,_0x27ad12){_0x5b262d=_0x5b262d-0x0;var _0x238a1b=_0xdfbb[_0x5b262d];return _0x238a1b;};'use strict';var client=require(_0xbdfb('0x0'));exports['getZendeskAccounts']=function(){return function(_0x11def9){return client[_0xbdfb('0x1')](_0xbdfb('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0xbdfb('0x3'),'token',_0xbdfb('0x4'),_0xbdfb('0x5'),_0xbdfb('0x6'),_0xbdfb('0x7')],'include':[{'model':'ZendeskConfiguration','as':_0xbdfb('0x8'),'attributes':['id','name'],'include':[{'model':_0xbdfb('0x9'),'attributes':['id',_0xbdfb('0xa')]},{'model':_0xbdfb('0xb'),'as':_0xbdfb('0xc'),'attributes':['id','type',_0xbdfb('0xd'),_0xbdfb('0xe')],'include':[{'model':_0xbdfb('0xf'),'as':_0xbdfb('0xf'),'attributes':['id','name']}]},{'model':'ZendeskField','as':_0xbdfb('0x10'),'attributes':['id','type',_0xbdfb('0xd'),_0xbdfb('0x11'),_0xbdfb('0x12'),_0xbdfb('0x13'),_0xbdfb('0xe')],'include':[{'model':'Variable','as':_0xbdfb('0xf'),'attributes':['id',_0xbdfb('0xa')]}]},{'model':_0xbdfb('0xb'),'as':_0xbdfb('0x14'),'attributes':['id',_0xbdfb('0x7'),_0xbdfb('0xd'),_0xbdfb('0x15'),'nameField','customField',_0xbdfb('0xe')],'include':[{'model':_0xbdfb('0xf'),'as':_0xbdfb('0xf'),'attributes':['id','name']}]}]}]},'log':'GetZendeskAccount'});};};