Built motion from commit (unavailable).|2.5.16
[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 _0xac81=['Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','Configurations','ZendeskField','Subjects','content','Variable','key','keyType','Fields','idField','nameField','variableName','getZendeskAccounts'];(function(_0x1a41d1,_0x52e994){var _0x492d60=function(_0x39e8d2){while(--_0x39e8d2){_0x1a41d1['push'](_0x1a41d1['shift']());}};_0x492d60(++_0x52e994);}(_0xac81,0x15f));var _0x1ac8=function(_0xd79b6f,_0x301289){_0xd79b6f=_0xd79b6f-0x0;var _0x58a7d2=_0xac81[_0xd79b6f];return _0x58a7d2;};'use strict';var client=require('../../client');exports[_0x1ac8('0x0')]=function(){return function(_0x3cb18e){return client[_0x1ac8('0x1')](_0x1ac8('0x2'),{'options':{'raw':![],'attributes':['id',_0x1ac8('0x3'),_0x1ac8('0x4'),_0x1ac8('0x5'),_0x1ac8('0x6'),_0x1ac8('0x7'),_0x1ac8('0x8'),_0x1ac8('0x9'),_0x1ac8('0xa')],'include':[{'model':'ZendeskConfiguration','as':_0x1ac8('0xb'),'attributes':['id',_0x1ac8('0x3')],'include':[{'model':'Tag','attributes':['id',_0x1ac8('0x3')]},{'model':_0x1ac8('0xc'),'as':_0x1ac8('0xd'),'attributes':['id','type',_0x1ac8('0xe'),'variableName'],'include':[{'model':_0x1ac8('0xf'),'as':_0x1ac8('0xf'),'attributes':['id',_0x1ac8('0x3')]}]},{'model':'ZendeskField','as':'Descriptions','attributes':['id','type',_0x1ac8('0xe'),_0x1ac8('0x10'),_0x1ac8('0x11'),'keyContent','variableName'],'include':[{'model':'Variable','as':_0x1ac8('0xf'),'attributes':['id',_0x1ac8('0x3')]}]},{'model':_0x1ac8('0xc'),'as':_0x1ac8('0x12'),'attributes':['id','type',_0x1ac8('0xe'),_0x1ac8('0x13'),_0x1ac8('0x14'),'customField',_0x1ac8('0x15')],'include':[{'model':_0x1ac8('0xf'),'as':_0x1ac8('0xf'),'attributes':['id',_0x1ac8('0x3')]}]}]}]},'log':'GetZendeskAccount'});};};