Built motion from commit 58b0471d.|2.6.29
[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 _0x0535=['Tag','Subjects','content','variableName','Variable','Descriptions','key','keyContent','Fields','idField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations'];(function(_0x26dce1,_0x46daa4){var _0x541e9d=function(_0x39e2eb){while(--_0x39e2eb){_0x26dce1['push'](_0x26dce1['shift']());}};_0x541e9d(++_0x46daa4);}(_0x0535,0x18b));var _0x5053=function(_0xfdd6c2,_0x41bfd5){_0xfdd6c2=_0xfdd6c2-0x0;var _0x308e80=_0x0535[_0xfdd6c2];return _0x308e80;};'use strict';var client=require(_0x5053('0x0'));exports[_0x5053('0x1')]=function(){return function(_0xe5db01){return client[_0x5053('0x2')](_0x5053('0x3'),{'options':{'raw':![],'attributes':['id',_0x5053('0x4'),_0x5053('0x5'),_0x5053('0x6'),'token',_0x5053('0x7'),_0x5053('0x8'),_0x5053('0x9'),_0x5053('0xa')],'include':[{'model':_0x5053('0xb'),'as':_0x5053('0xc'),'attributes':['id',_0x5053('0x4')],'include':[{'model':_0x5053('0xd'),'attributes':['id',_0x5053('0x4')]},{'model':'ZendeskField','as':_0x5053('0xe'),'attributes':['id',_0x5053('0xa'),_0x5053('0xf'),_0x5053('0x10')],'include':[{'model':_0x5053('0x11'),'as':_0x5053('0x11'),'attributes':['id','name']}]},{'model':'ZendeskField','as':_0x5053('0x12'),'attributes':['id',_0x5053('0xa'),_0x5053('0xf'),_0x5053('0x13'),'keyType',_0x5053('0x14'),_0x5053('0x10')],'include':[{'model':_0x5053('0x11'),'as':'Variable','attributes':['id','name']}]},{'model':'ZendeskField','as':_0x5053('0x15'),'attributes':['id',_0x5053('0xa'),_0x5053('0xf'),_0x5053('0x16'),'nameField',_0x5053('0x17'),_0x5053('0x10')],'include':[{'model':_0x5053('0x11'),'as':'Variable','attributes':['id',_0x5053('0x4')]}]}]}]},'log':'GetZendeskAccount'});};};