a0715ca5c31e5fd0fce183259a0c70758afbd158
[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 _0xd2fc=['bluebird','request-promise','rimraf','../../config/environment','./plugin.attributes','exports','define','Plugin','plugins','util','api'];(function(_0x41b9e5,_0x37bc3f){var _0x18a5cd=function(_0x31c998){while(--_0x31c998){_0x41b9e5['push'](_0x41b9e5['shift']());}};_0x18a5cd(++_0x37bc3f);}(_0xd2fc,0xda));var _0xcd2f=function(_0x35106e,_0x56c84b){_0x35106e=_0x35106e-0x0;var _0x4ed2b3=_0xd2fc[_0x35106e];return _0x4ed2b3;};'use strict';var _=require('lodash');var util=require(_0xcd2f('0x0'));var logger=require('../../config/logger')(_0xcd2f('0x1'));var moment=require('moment');var BPromise=require(_0xcd2f('0x2'));var rp=require(_0xcd2f('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcd2f('0x4'));var config=require(_0xcd2f('0x5'));var attributes=require(_0xcd2f('0x6'));module[_0xcd2f('0x7')]=function(_0x272ef7,_0x3c61a1){return _0x272ef7[_0xcd2f('0x8')](_0xcd2f('0x9'),attributes,{'tableName':_0xcd2f('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};