Built motion from commit (unavailable).|2.5.21
[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 _0xefc9=['../client','getTriggers','Request','GetTrigger','channel','status','AllConditions','field','operator','value','AnyConditions','Action','Actions','action','data3','data4','data6','data7'];(function(_0x599e60,_0x5b6519){var _0x468e19=function(_0xcdfd97){while(--_0xcdfd97){_0x599e60['push'](_0x599e60['shift']());}};_0x468e19(++_0x5b6519);}(_0xefc9,0xb4));var _0x9efc=function(_0x607b61,_0xa6f0db){_0x607b61=_0x607b61-0x0;var _0x4b4e99=_0xefc9[_0x607b61];return _0x4b4e99;};'use strict';var client=require(_0x9efc('0x0'));exports[_0x9efc('0x1')]=function(_0x56728e){return function(_0x457a10){return client[_0x9efc('0x2')](_0x9efc('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x9efc('0x4'),_0x9efc('0x5')],'include':[{'model':'Condition','as':_0x9efc('0x6'),'attributes':['id',_0x9efc('0x7'),_0x9efc('0x8'),_0x9efc('0x9')]},{'model':'Condition','as':_0x9efc('0xa'),'attributes':['id',_0x9efc('0x7'),_0x9efc('0x8'),'value']},{'model':_0x9efc('0xb'),'as':_0x9efc('0xc'),'attributes':['id',_0x9efc('0xd'),'data1','data2',_0x9efc('0xe'),_0x9efc('0xf'),'data5',_0x9efc('0x10'),_0x9efc('0x11')]}]},'log':'GetTrigger'});};};