c5457ec9af96f21675017128f533102ab1ca7ba3
[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 _0x7bcb=['action','data1','data2','data3','data5','data6','data7','../client','getTriggers','Request','channel','status','AllConditions','value','Condition','AnyConditions','Actions'];(function(_0x481bf7,_0x437f69){var _0x461787=function(_0xb3bc9d){while(--_0xb3bc9d){_0x481bf7['push'](_0x481bf7['shift']());}};_0x461787(++_0x437f69);}(_0x7bcb,0x117));var _0xb7bc=function(_0x283802,_0x29807b){_0x283802=_0x283802-0x0;var _0x3104b3=_0x7bcb[_0x283802];return _0x3104b3;};'use strict';var client=require(_0xb7bc('0x0'));exports[_0xb7bc('0x1')]=function(_0x4040e3){return function(_0x3a79c5){return client[_0xb7bc('0x2')]('GetTrigger',{'options':{'raw':![],'attributes':['id','name',_0xb7bc('0x3'),_0xb7bc('0x4')],'include':[{'model':'Condition','as':_0xb7bc('0x5'),'attributes':['id','field','operator',_0xb7bc('0x6')]},{'model':_0xb7bc('0x7'),'as':_0xb7bc('0x8'),'attributes':['id','field','operator',_0xb7bc('0x6')]},{'model':'Action','as':_0xb7bc('0x9'),'attributes':['id',_0xb7bc('0xa'),_0xb7bc('0xb'),_0xb7bc('0xc'),_0xb7bc('0xd'),'data4',_0xb7bc('0xe'),_0xb7bc('0xf'),_0xb7bc('0x10')]}]},'log':'GetTrigger'});};};