Built motion from commit (unavailable).|2.5.22
[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 _0x388f=['lodash','util','../../config/logger','api','moment','request-promise','rimraf','./userProfileResource.attributes','exports','define','user_profile_has_resources','resourceId','sectionId'];(function(_0x590851,_0x496bee){var _0x3b0115=function(_0x5140cc){while(--_0x5140cc){_0x590851['push'](_0x590851['shift']());}};_0x3b0115(++_0x496bee);}(_0x388f,0x179));var _0xf388=function(_0x4b0290,_0x188c34){_0x4b0290=_0x4b0290-0x0;var _0x4bd9f4=_0x388f[_0x4b0290];return _0x4bd9f4;};'use strict';var _=require(_0xf388('0x0'));var util=require(_0xf388('0x1'));var logger=require(_0xf388('0x2'))(_0xf388('0x3'));var moment=require(_0xf388('0x4'));var BPromise=require('bluebird');var rp=require(_0xf388('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xf388('0x6'));var config=require('../../config/environment');var attributes=require(_0xf388('0x7'));module[_0xf388('0x8')]=function(_0x5124cf,_0x377385){return _0x5124cf[_0xf388('0x9')]('UserProfileResource',attributes,{'tableName':_0xf388('0xa'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0xf388('0xb'),_0xf388('0xc')]}],'timestamps':!![]});};