Built motion from commit (unavailable).|2.5.23
[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 _0x00ac=['lodash','../../config/logger','api','bluebird','request-promise','path','rimraf','./userProfileResource.attributes','exports','define','UserProfileResource','compositeIndex','resourceId','sectionId'];(function(_0x273ace,_0x3b28bc){var _0x5a5548=function(_0x2d2aaf){while(--_0x2d2aaf){_0x273ace['push'](_0x273ace['shift']());}};_0x5a5548(++_0x3b28bc);}(_0x00ac,0xee));var _0xc00a=function(_0xaa7af2,_0x289bf0){_0xaa7af2=_0xaa7af2-0x0;var _0xbf48e3=_0x00ac[_0xaa7af2];return _0xbf48e3;};'use strict';var _=require(_0xc00a('0x0'));var util=require('util');var logger=require(_0xc00a('0x1'))(_0xc00a('0x2'));var moment=require('moment');var BPromise=require(_0xc00a('0x3'));var rp=require(_0xc00a('0x4'));var fs=require('fs');var path=require(_0xc00a('0x5'));var rimraf=require(_0xc00a('0x6'));var config=require('../../config/environment');var attributes=require(_0xc00a('0x7'));module[_0xc00a('0x8')]=function(_0x1d0da5,_0x139194){return _0x1d0da5[_0xc00a('0x9')](_0xc00a('0xa'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0xc00a('0xb'),'fields':[_0xc00a('0xc'),_0xc00a('0xd')]}],'timestamps':!![]});};