Built motion from commit 85328c08.|2.5.50
[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 _0xb2f1=['exports','define','Plugin','plugins','lodash','util','../../config/logger','api','request-promise','path','rimraf','../../config/environment','./plugin.attributes'];(function(_0x45e911,_0x517109){var _0x5df6b1=function(_0xa72468){while(--_0xa72468){_0x45e911['push'](_0x45e911['shift']());}};_0x5df6b1(++_0x517109);}(_0xb2f1,0x115));var _0x1b2f=function(_0x296c52,_0x1b48c4){_0x296c52=_0x296c52-0x0;var _0x2564e8=_0xb2f1[_0x296c52];return _0x2564e8;};'use strict';var _=require(_0x1b2f('0x0'));var util=require(_0x1b2f('0x1'));var logger=require(_0x1b2f('0x2'))(_0x1b2f('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x1b2f('0x4'));var fs=require('fs');var path=require(_0x1b2f('0x5'));var rimraf=require(_0x1b2f('0x6'));var config=require(_0x1b2f('0x7'));var attributes=require(_0x1b2f('0x8'));module[_0x1b2f('0x9')]=function(_0x7425f9,_0x37f00c){return _0x7425f9[_0x1b2f('0xa')](_0x1b2f('0xb'),attributes,{'tableName':_0x1b2f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};