5716eae08789c3e2e301e3c6973eeba1164b9a90
[motion2.git] / server / api / license / license.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 _0x6a01=['api','request-promise','path','../../config/environment','./license.attributes','exports','define','License','license','lodash','util'];(function(_0x37d0d6,_0x12eafb){var _0x149e2e=function(_0x190aa9){while(--_0x190aa9){_0x37d0d6['push'](_0x37d0d6['shift']());}};_0x149e2e(++_0x12eafb);}(_0x6a01,0x132));var _0x16a0=function(_0x33c090,_0x184b69){_0x33c090=_0x33c090-0x0;var _0x4081df=_0x6a01[_0x33c090];return _0x4081df;};'use strict';var _=require(_0x16a0('0x0'));var util=require(_0x16a0('0x1'));var logger=require('../../config/logger')(_0x16a0('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x16a0('0x3'));var fs=require('fs');var path=require(_0x16a0('0x4'));var rimraf=require('rimraf');var config=require(_0x16a0('0x5'));var attributes=require(_0x16a0('0x6'));module[_0x16a0('0x7')]=function(_0x188f09,_0x704a57){return _0x188f09[_0x16a0('0x8')](_0x16a0('0x9'),attributes,{'tableName':_0x16a0('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};