41e86033c23b0212c9e7b440f6f9a0eab54a2117
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x2875=['customField','getVtigerAccounts','GetVtigerAccount','name','description','username','accessKey','remoteUri','VtigerConfiguration','Configurations','VtigerField','Subjects','content','variableName','Variable','Descriptions','type','key','keyType','keyContent','Fields','nameField'];(function(_0x22f50d,_0x5ac63c){var _0x29947c=function(_0x2b4709){while(--_0x2b4709){_0x22f50d['push'](_0x22f50d['shift']());}};_0x29947c(++_0x5ac63c);}(_0x2875,0x6f));var _0x5287=function(_0x1a974c,_0x3c8740){_0x1a974c=_0x1a974c-0x0;var _0x7c9971=_0x2875[_0x1a974c];return _0x7c9971;};'use strict';var client=require('../../client');exports[_0x5287('0x0')]=function(){return function(_0x41a980){return client['Request'](_0x5287('0x1'),{'options':{'raw':![],'attributes':['id',_0x5287('0x2'),_0x5287('0x3'),_0x5287('0x4'),_0x5287('0x5'),_0x5287('0x6'),'serverUrl'],'include':[{'model':_0x5287('0x7'),'as':_0x5287('0x8'),'attributes':['id','name'],'include':[{'model':_0x5287('0x9'),'as':_0x5287('0xa'),'attributes':['id','type',_0x5287('0xb'),_0x5287('0xc')],'include':[{'model':_0x5287('0xd'),'as':_0x5287('0xd'),'attributes':['id',_0x5287('0x2')]}]},{'model':'VtigerField','as':_0x5287('0xe'),'attributes':['id',_0x5287('0xf'),_0x5287('0xb'),_0x5287('0x10'),_0x5287('0x11'),_0x5287('0x12'),_0x5287('0xc')],'include':[{'model':_0x5287('0xd'),'as':_0x5287('0xd'),'attributes':['id','name']}]},{'model':_0x5287('0x9'),'as':_0x5287('0x13'),'attributes':['id',_0x5287('0xf'),_0x5287('0xb'),'idField',_0x5287('0x14'),_0x5287('0x15'),_0x5287('0xc')],'include':[{'model':'Variable','as':_0x5287('0xd'),'attributes':['id',_0x5287('0x2')]}]}]}]},'log':_0x5287('0x1')});};};