Built motion from commit 56b8093a.|2.6.29
[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(_0x2d7867,_0x9db5fd){var _0x13d030=function(_0x2a6637){while(--_0x2a6637){_0x2d7867['push'](_0x2d7867['shift']());}};_0x13d030(++_0x9db5fd);}(_0xb2f1,0x115));var _0x1b2f=function(_0x471833,_0x1e5706){_0x471833=_0x471833-0x0;var _0x20cdf4=_0xb2f1[_0x471833];return _0x20cdf4;};'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':!![]});};