Built motion from commit da617fac.|2.6.6
[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 _0x5bf2=['../../config/logger','api','moment','request-promise','rimraf','../../config/environment','./plugin.attributes','exports','define','Plugin','plugins','lodash','util'];(function(_0x2d7f0e,_0x3e6fbd){var _0x110b07=function(_0x557b00){while(--_0x557b00){_0x2d7f0e['push'](_0x2d7f0e['shift']());}};_0x110b07(++_0x3e6fbd);}(_0x5bf2,0x129));var _0x25bf=function(_0xe0efa5,_0x28d42c){_0xe0efa5=_0xe0efa5-0x0;var _0x3ce13a=_0x5bf2[_0xe0efa5];return _0x3ce13a;};'use strict';var _=require(_0x25bf('0x0'));var util=require(_0x25bf('0x1'));var logger=require(_0x25bf('0x2'))(_0x25bf('0x3'));var moment=require(_0x25bf('0x4'));var BPromise=require('bluebird');var rp=require(_0x25bf('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x25bf('0x6'));var config=require(_0x25bf('0x7'));var attributes=require(_0x25bf('0x8'));module[_0x25bf('0x9')]=function(_0x1c73da,_0x1ac4e2){return _0x1c73da[_0x25bf('0xa')](_0x25bf('0xb'),attributes,{'tableName':_0x25bf('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};