Built motion from commit 47436d59.|2.6.7
[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 _0xae85=['Actions','action','data2','data3','data4','../client','getTriggers','Request','GetTrigger','name','channel','status','Condition','AllConditions','field','operator','value','AnyConditions'];(function(_0x1ba6d9,_0x4f4cdf){var _0xfd54c7=function(_0x540ae2){while(--_0x540ae2){_0x1ba6d9['push'](_0x1ba6d9['shift']());}};_0xfd54c7(++_0x4f4cdf);}(_0xae85,0x71));var _0x5ae8=function(_0x4c9258,_0x4952b0){_0x4c9258=_0x4c9258-0x0;var _0x36db50=_0xae85[_0x4c9258];return _0x36db50;};'use strict';var client=require(_0x5ae8('0x0'));exports[_0x5ae8('0x1')]=function(_0x355cc4){return function(_0x1eeaf5){return client[_0x5ae8('0x2')](_0x5ae8('0x3'),{'options':{'raw':![],'attributes':['id',_0x5ae8('0x4'),_0x5ae8('0x5'),_0x5ae8('0x6')],'include':[{'model':_0x5ae8('0x7'),'as':_0x5ae8('0x8'),'attributes':['id',_0x5ae8('0x9'),_0x5ae8('0xa'),_0x5ae8('0xb')]},{'model':_0x5ae8('0x7'),'as':_0x5ae8('0xc'),'attributes':['id','field','operator','value']},{'model':'Action','as':_0x5ae8('0xd'),'attributes':['id',_0x5ae8('0xe'),'data1',_0x5ae8('0xf'),_0x5ae8('0x10'),_0x5ae8('0x11'),'data5','data6','data7']}]},'log':_0x5ae8('0x3')});};};