Built motion from commit da617fac.|2.6.6
[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 _0xf253=['rimraf','../../config/environment','./license.attributes','exports','define','License','license','api','moment','bluebird','request-promise','path'];(function(_0x1bb7d1,_0x4afbef){var _0x4d0861=function(_0x363fd5){while(--_0x363fd5){_0x1bb7d1['push'](_0x1bb7d1['shift']());}};_0x4d0861(++_0x4afbef);}(_0xf253,0xdf));var _0x3f25=function(_0x131604,_0x475a68){_0x131604=_0x131604-0x0;var _0x4a2aea=_0xf253[_0x131604];return _0x4a2aea;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x3f25('0x0'));var moment=require(_0x3f25('0x1'));var BPromise=require(_0x3f25('0x2'));var rp=require(_0x3f25('0x3'));var fs=require('fs');var path=require(_0x3f25('0x4'));var rimraf=require(_0x3f25('0x5'));var config=require(_0x3f25('0x6'));var attributes=require(_0x3f25('0x7'));module[_0x3f25('0x8')]=function(_0x3e9876,_0x240cd0){return _0x3e9876[_0x3f25('0x9')](_0x3f25('0xa'),attributes,{'tableName':_0x3f25('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};