Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / services / ami / rpc / trigger.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 _0x29f8=['getTriggers','Request','name','channel','status','Condition','AllConditions','operator','value','Action','action','data5','data6','data7','GetTrigger','../client'];(function(_0x2d24e2,_0x38c3af){var _0x330f61=function(_0x15c233){while(--_0x15c233){_0x2d24e2['push'](_0x2d24e2['shift']());}};_0x330f61(++_0x38c3af);}(_0x29f8,0x19f));var _0x829f=function(_0x18cd5b,_0x10240b){_0x18cd5b=_0x18cd5b-0x0;var _0x5eaa52=_0x29f8[_0x18cd5b];return _0x5eaa52;};'use strict';var client=require(_0x829f('0x0'));exports[_0x829f('0x1')]=function(_0x281635){return function(_0x4e954b){return client[_0x829f('0x2')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x829f('0x3'),_0x829f('0x4'),_0x829f('0x5')],'include':[{'model':_0x829f('0x6'),'as':_0x829f('0x7'),'attributes':['id','field',_0x829f('0x8'),_0x829f('0x9')]},{'model':'Condition','as':'AnyConditions','attributes':['id','field',_0x829f('0x8'),_0x829f('0x9')]},{'model':_0x829f('0xa'),'as':'Actions','attributes':['id',_0x829f('0xb'),'data1','data2','data3','data4',_0x829f('0xc'),_0x829f('0xd'),_0x829f('0xe')]}]},'log':_0x829f('0xf')});};};