Built motion from commit 9d1906d1.|2.5.40
[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 _0x04f7=['api','moment','bluebird','request-promise','rimraf','define','Plugin','plugins','lodash','../../config/logger'];(function(_0x214d22,_0x52349d){var _0x454ba4=function(_0x59ba73){while(--_0x59ba73){_0x214d22['push'](_0x214d22['shift']());}};_0x454ba4(++_0x52349d);}(_0x04f7,0x1f2));var _0x704f=function(_0x2ffd07,_0x37f789){_0x2ffd07=_0x2ffd07-0x0;var _0x176598=_0x04f7[_0x2ffd07];return _0x176598;};'use strict';var _=require(_0x704f('0x0'));var util=require('util');var logger=require(_0x704f('0x1'))(_0x704f('0x2'));var moment=require(_0x704f('0x3'));var BPromise=require(_0x704f('0x4'));var rp=require(_0x704f('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x704f('0x6'));var config=require('../../config/environment');var attributes=require('./plugin.attributes');module['exports']=function(_0x1d17f7,_0x32bf45){return _0x1d17f7[_0x704f('0x7')](_0x704f('0x8'),attributes,{'tableName':_0x704f('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};