d4e18c26a1ae1274ab1f3e398fadbfe579c16701
[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 _0xab60=['../../config/environment','./plugin.attributes','exports','define','Plugin','plugins','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0x4b9f0e,_0x449c4d){var _0x5c54a8=function(_0x8c0a23){while(--_0x8c0a23){_0x4b9f0e['push'](_0x4b9f0e['shift']());}};_0x5c54a8(++_0x449c4d);}(_0xab60,0xea));var _0x0ab6=function(_0x14538d,_0x527062){_0x14538d=_0x14538d-0x0;var _0x32d601=_0xab60[_0x14538d];return _0x32d601;};'use strict';var _=require(_0x0ab6('0x0'));var util=require(_0x0ab6('0x1'));var logger=require(_0x0ab6('0x2'))(_0x0ab6('0x3'));var moment=require(_0x0ab6('0x4'));var BPromise=require('bluebird');var rp=require(_0x0ab6('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x0ab6('0x6'));var attributes=require(_0x0ab6('0x7'));module[_0x0ab6('0x8')]=function(_0x2914a0,_0x8122ee){return _0x2914a0[_0x0ab6('0x9')](_0x0ab6('0xa'),attributes,{'tableName':_0x0ab6('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};