Built motion from commit fe909640.|2.6.8
[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 _0xebf5=['Variable','Descriptions','type','key','keyContent','Fields','nameField','customField','GetVtigerAccount','../../client','getVtigerAccounts','Request','description','username','accessKey','VtigerConfiguration','Configurations','name','VtigerField','Subjects','content','variableName'];(function(_0x49c3b9,_0x57a36a){var _0x376c8d=function(_0x1cda43){while(--_0x1cda43){_0x49c3b9['push'](_0x49c3b9['shift']());}};_0x376c8d(++_0x57a36a);}(_0xebf5,0x1ab));var _0x5ebf=function(_0x167307,_0x5a60ae){_0x167307=_0x167307-0x0;var _0x550140=_0xebf5[_0x167307];return _0x550140;};'use strict';var client=require(_0x5ebf('0x0'));exports[_0x5ebf('0x1')]=function(){return function(_0x12491c){return client[_0x5ebf('0x2')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id','name',_0x5ebf('0x3'),_0x5ebf('0x4'),_0x5ebf('0x5'),'remoteUri','serverUrl'],'include':[{'model':_0x5ebf('0x6'),'as':_0x5ebf('0x7'),'attributes':['id',_0x5ebf('0x8')],'include':[{'model':_0x5ebf('0x9'),'as':_0x5ebf('0xa'),'attributes':['id','type',_0x5ebf('0xb'),_0x5ebf('0xc')],'include':[{'model':_0x5ebf('0xd'),'as':_0x5ebf('0xd'),'attributes':['id',_0x5ebf('0x8')]}]},{'model':_0x5ebf('0x9'),'as':_0x5ebf('0xe'),'attributes':['id',_0x5ebf('0xf'),'content',_0x5ebf('0x10'),'keyType',_0x5ebf('0x11'),_0x5ebf('0xc')],'include':[{'model':_0x5ebf('0xd'),'as':_0x5ebf('0xd'),'attributes':['id',_0x5ebf('0x8')]}]},{'model':'VtigerField','as':_0x5ebf('0x12'),'attributes':['id',_0x5ebf('0xf'),'content','idField',_0x5ebf('0x13'),_0x5ebf('0x14'),'variableName'],'include':[{'model':_0x5ebf('0xd'),'as':_0x5ebf('0xd'),'attributes':['id',_0x5ebf('0x8')]}]}]}]},'log':_0x5ebf('0x15')});};};