21720dfb7244b25eb9faec4b09995cfc73aae902
[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 _0x4030=['Actions','action','data2','data4','data5','data6','data7','GetTrigger','getTriggers','Request','name','status','Condition','AllConditions','field','operator','value','Action'];(function(_0x1e5482,_0xf428e6){var _0x3e868c=function(_0x59caf3){while(--_0x59caf3){_0x1e5482['push'](_0x1e5482['shift']());}};_0x3e868c(++_0xf428e6);}(_0x4030,0x74));var _0x0403=function(_0x4d2abc,_0x29b228){_0x4d2abc=_0x4d2abc-0x0;var _0x5c4540=_0x4030[_0x4d2abc];return _0x5c4540;};'use strict';var client=require('../client');exports[_0x0403('0x0')]=function(_0x41675f){return function(_0x32fefd){return client[_0x0403('0x1')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x0403('0x2'),'channel',_0x0403('0x3')],'include':[{'model':_0x0403('0x4'),'as':_0x0403('0x5'),'attributes':['id',_0x0403('0x6'),_0x0403('0x7'),'value']},{'model':'Condition','as':'AnyConditions','attributes':['id',_0x0403('0x6'),_0x0403('0x7'),_0x0403('0x8')]},{'model':_0x0403('0x9'),'as':_0x0403('0xa'),'attributes':['id',_0x0403('0xb'),'data1',_0x0403('0xc'),'data3',_0x0403('0xd'),_0x0403('0xe'),_0x0403('0xf'),_0x0403('0x10')]}]},'log':_0x0403('0x11')});};};