Built motion from commit 9d0783e6.|2.6.13
[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 _0xd928=['bluebird','path','rimraf','../../config/environment','exports','define','Plugin','util','api'];(function(_0x59bcb1,_0x5a4b6c){var _0x4a737f=function(_0x546a49){while(--_0x546a49){_0x59bcb1['push'](_0x59bcb1['shift']());}};_0x4a737f(++_0x5a4b6c);}(_0xd928,0x85));var _0x8d92=function(_0x4677fd,_0x584959){_0x4677fd=_0x4677fd-0x0;var _0x19f482=_0xd928[_0x4677fd];return _0x19f482;};'use strict';var _=require('lodash');var util=require(_0x8d92('0x0'));var logger=require('../../config/logger')(_0x8d92('0x1'));var moment=require('moment');var BPromise=require(_0x8d92('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8d92('0x3'));var rimraf=require(_0x8d92('0x4'));var config=require(_0x8d92('0x5'));var attributes=require('./plugin.attributes');module[_0x8d92('0x6')]=function(_0x19e050,_0x2b42eb){return _0x19e050[_0x8d92('0x7')](_0x8d92('0x8'),attributes,{'tableName':'plugins','paranoid':![],'indexes':[],'timestamps':!![]});};