Built motion from commit (unavailable).|2.4.20
[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 _0x5324=['../../config/environment','./userProfileResource.attributes','exports','define','resourceId','sectionId','util','../../config/logger','api','bluebird','path','rimraf'];(function(_0x56fd18,_0x395a37){var _0x4c76f0=function(_0x6baf4a){while(--_0x6baf4a){_0x56fd18['push'](_0x56fd18['shift']());}};_0x4c76f0(++_0x395a37);}(_0x5324,0x192));var _0x4532=function(_0x4ddc7b,_0xa13ed8){_0x4ddc7b=_0x4ddc7b-0x0;var _0x2ac651=_0x5324[_0x4ddc7b];return _0x2ac651;};'use strict';var _=require('lodash');var util=require(_0x4532('0x0'));var logger=require(_0x4532('0x1'))(_0x4532('0x2'));var moment=require('moment');var BPromise=require(_0x4532('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4532('0x4'));var rimraf=require(_0x4532('0x5'));var config=require(_0x4532('0x6'));var attributes=require(_0x4532('0x7'));module[_0x4532('0x8')]=function(_0x38608f,_0x5d7d52){return _0x38608f[_0x4532('0x9')]('UserProfileResource',attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x4532('0xa'),_0x4532('0xb')]}],'timestamps':!![]});};