Built motion from commit (unavailable).|2.5.16
[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 _0xffcf=['util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes','exports','UserProfileResource','user_profile_has_resources','resourceId','sectionId'];(function(_0x2f8cb4,_0x2f5a62){var _0x1a550e=function(_0x3a16c5){while(--_0x3a16c5){_0x2f8cb4['push'](_0x2f8cb4['shift']());}};_0x1a550e(++_0x2f5a62);}(_0xffcf,0x14a));var _0xfffc=function(_0x99868f,_0xbdb8e7){_0x99868f=_0x99868f-0x0;var _0x27a71b=_0xffcf[_0x99868f];return _0x27a71b;};'use strict';var _=require('lodash');var util=require(_0xfffc('0x0'));var logger=require(_0xfffc('0x1'))(_0xfffc('0x2'));var moment=require(_0xfffc('0x3'));var BPromise=require(_0xfffc('0x4'));var rp=require(_0xfffc('0x5'));var fs=require('fs');var path=require(_0xfffc('0x6'));var rimraf=require(_0xfffc('0x7'));var config=require(_0xfffc('0x8'));var attributes=require(_0xfffc('0x9'));module[_0xfffc('0xa')]=function(_0x2a0a5d,_0x81237e){return _0x2a0a5d['define'](_0xfffc('0xb'),attributes,{'tableName':_0xfffc('0xc'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0xfffc('0xd'),_0xfffc('0xe')]}],'timestamps':!![]});};