d792f9e060fdc7503219b2ba3f9ead1913079e9e
[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 _0x88e9=['GetTrigger','name','channel','status','Condition','AllConditions','operator','value','field','Action','Actions','action','data3','data4','data6','data7','getTriggers','Request'];(function(_0x31e5cb,_0x2f5adf){var _0x4170df=function(_0x31c53e){while(--_0x31c53e){_0x31e5cb['push'](_0x31e5cb['shift']());}};_0x4170df(++_0x2f5adf);}(_0x88e9,0x1e4));var _0x988e=function(_0x346610,_0x33bf69){_0x346610=_0x346610-0x0;var _0x55f160=_0x88e9[_0x346610];return _0x55f160;};'use strict';var client=require('../client');exports[_0x988e('0x0')]=function(_0x2a0e2f){return function(_0x378a8e){return client[_0x988e('0x1')](_0x988e('0x2'),{'options':{'raw':![],'attributes':['id',_0x988e('0x3'),_0x988e('0x4'),_0x988e('0x5')],'include':[{'model':_0x988e('0x6'),'as':_0x988e('0x7'),'attributes':['id','field',_0x988e('0x8'),_0x988e('0x9')]},{'model':_0x988e('0x6'),'as':'AnyConditions','attributes':['id',_0x988e('0xa'),'operator',_0x988e('0x9')]},{'model':_0x988e('0xb'),'as':_0x988e('0xc'),'attributes':['id',_0x988e('0xd'),'data1','data2',_0x988e('0xe'),_0x988e('0xf'),'data5',_0x988e('0x10'),_0x988e('0x11')]}]},'log':_0x988e('0x2')});};};