ed8e457810698d0e1ef830a80d1a5ca5c98e6ff1
[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 _0x4de6=['name','channel','status','Condition','operator','value','field','Action','Actions','data2','data3','data4','data6','data7','GetTrigger','../client','getTriggers'];(function(_0x139a3c,_0x4fc883){var _0x2b375b=function(_0x525dbf){while(--_0x525dbf){_0x139a3c['push'](_0x139a3c['shift']());}};_0x2b375b(++_0x4fc883);}(_0x4de6,0x130));var _0x64de=function(_0x167343,_0x9771f3){_0x167343=_0x167343-0x0;var _0x17e001=_0x4de6[_0x167343];return _0x17e001;};'use strict';var client=require(_0x64de('0x0'));exports[_0x64de('0x1')]=function(_0x5582c7){return function(_0x3f3b17){return client['Request']('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x64de('0x2'),_0x64de('0x3'),_0x64de('0x4')],'include':[{'model':_0x64de('0x5'),'as':'AllConditions','attributes':['id','field',_0x64de('0x6'),_0x64de('0x7')]},{'model':_0x64de('0x5'),'as':'AnyConditions','attributes':['id',_0x64de('0x8'),_0x64de('0x6'),_0x64de('0x7')]},{'model':_0x64de('0x9'),'as':_0x64de('0xa'),'attributes':['id','action','data1',_0x64de('0xb'),_0x64de('0xc'),_0x64de('0xd'),'data5',_0x64de('0xe'),_0x64de('0xf')]}]},'log':_0x64de('0x10')});};};