Built motion from commit 10af8726.|2.6.34
[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 _0x23f2=['ZendeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','customField','../../client','getZendeskAccounts','GetZendeskAccount','username','password','remoteUri','type','ZendeskConfiguration','name'];(function(_0x54e7c4,_0x410aee){var _0x5ec221=function(_0x8ace32){while(--_0x8ace32){_0x54e7c4['push'](_0x54e7c4['shift']());}};_0x5ec221(++_0x410aee);}(_0x23f2,0xc9));var _0x223f=function(_0x26624a,_0x544361){_0x26624a=_0x26624a-0x0;var _0x46e09b=_0x23f2[_0x26624a];return _0x46e09b;};'use strict';var client=require(_0x223f('0x0'));exports[_0x223f('0x1')]=function(){return function(_0x26cff1){return client['Request'](_0x223f('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x223f('0x3'),_0x223f('0x4'),'token',_0x223f('0x5'),'authType','serverUrl',_0x223f('0x6')],'include':[{'model':_0x223f('0x7'),'as':'Configurations','attributes':['id',_0x223f('0x8')],'include':[{'model':'Tag','attributes':['id',_0x223f('0x8')]},{'model':_0x223f('0x9'),'as':_0x223f('0xa'),'attributes':['id',_0x223f('0x6'),_0x223f('0xb'),_0x223f('0xc')],'include':[{'model':_0x223f('0xd'),'as':_0x223f('0xd'),'attributes':['id',_0x223f('0x8')]}]},{'model':_0x223f('0x9'),'as':_0x223f('0xe'),'attributes':['id','type',_0x223f('0xb'),_0x223f('0xf'),_0x223f('0x10'),_0x223f('0x11'),'variableName'],'include':[{'model':_0x223f('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':'ZendeskField','as':_0x223f('0x12'),'attributes':['id',_0x223f('0x6'),_0x223f('0xb'),_0x223f('0x13'),'nameField',_0x223f('0x14'),_0x223f('0xc')],'include':[{'model':_0x223f('0xd'),'as':'Variable','attributes':['id','name']}]}]}]},'log':'GetZendeskAccount'});};};