Built motion from commit (unavailable).|2.5.12
[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 _0xe577=['getTriggers','Request','GetTrigger','status','AllConditions','field','operator','value','Condition','AnyConditions','Action','Actions','action','data3','data4','data6','../client'];(function(_0x5389b3,_0x22cd5f){var _0x307f7e=function(_0x100e3a){while(--_0x100e3a){_0x5389b3['push'](_0x5389b3['shift']());}};_0x307f7e(++_0x22cd5f);}(_0xe577,0x1ec));var _0x7e57=function(_0x4fde08,_0x463a36){_0x4fde08=_0x4fde08-0x0;var _0x12e725=_0xe577[_0x4fde08];return _0x12e725;};'use strict';var client=require(_0x7e57('0x0'));exports[_0x7e57('0x1')]=function(_0xaef537){return function(_0x491795){return client[_0x7e57('0x2')](_0x7e57('0x3'),{'options':{'raw':![],'attributes':['id','name','channel',_0x7e57('0x4')],'include':[{'model':'Condition','as':_0x7e57('0x5'),'attributes':['id',_0x7e57('0x6'),_0x7e57('0x7'),_0x7e57('0x8')]},{'model':_0x7e57('0x9'),'as':_0x7e57('0xa'),'attributes':['id',_0x7e57('0x6'),_0x7e57('0x7'),_0x7e57('0x8')]},{'model':_0x7e57('0xb'),'as':_0x7e57('0xc'),'attributes':['id',_0x7e57('0xd'),'data1','data2',_0x7e57('0xe'),_0x7e57('0xf'),'data5',_0x7e57('0x10'),'data7']}]},'log':_0x7e57('0x3')});};};