Built motion from commit (unavailable).|2.0.77
[motion2.git] / server / api / plugin / plugin.model.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 _0x3d19=['moment','bluebird','exports','Plugin','plugins','lodash','util','api'];(function(_0x135c35,_0x5c0739){var _0x1f5f03=function(_0x4d9b02){while(--_0x4d9b02){_0x135c35['push'](_0x135c35['shift']());}};_0x1f5f03(++_0x5c0739);}(_0x3d19,0x175));var _0x93d1=function(_0x334841,_0x2bbc4c){_0x334841=_0x334841-0x0;var _0x5beb4b=_0x3d19[_0x334841];return _0x5beb4b;};'use strict';var _=require(_0x93d1('0x0'));var util=require(_0x93d1('0x1'));var logger=require('../../config/logger')(_0x93d1('0x2'));var moment=require(_0x93d1('0x3'));var BPromise=require(_0x93d1('0x4'));var rp=require('request-promise');var attributes=require('./plugin.attributes');module[_0x93d1('0x5')]=function(_0x9fbcb,_0x443429){return _0x9fbcb['define'](_0x93d1('0x6'),attributes,{'tableName':_0x93d1('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};