Built motion from commit (unavailable).|2.3.1
[motion2.git] / server / api / userProfileResource / userProfileResource.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 _0x38db=['../../config/logger','request-promise','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','sectionId','lodash'];(function(_0x1e7159,_0x15e3ed){var _0x2e0dd8=function(_0x7b088f){while(--_0x7b088f){_0x1e7159['push'](_0x1e7159['shift']());}};_0x2e0dd8(++_0x15e3ed);}(_0x38db,0x1cb));var _0xb38d=function(_0x4b1305,_0x548ac3){_0x4b1305=_0x4b1305-0x0;var _0x12d9f9=_0x38db[_0x4b1305];return _0x12d9f9;};'use strict';var _=require(_0xb38d('0x0'));var util=require('util');var logger=require(_0xb38d('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xb38d('0x2'));var attributes=require('./userProfileResource.attributes');module[_0xb38d('0x3')]=function(_0x447f81,_0x45257a){return _0x447f81[_0xb38d('0x4')](_0xb38d('0x5'),attributes,{'tableName':_0xb38d('0x6'),'paranoid':![],'indexes':[{'name':_0xb38d('0x7'),'fields':[_0xb38d('0x8'),_0xb38d('0x9')]}],'timestamps':!![]});};