Built motion from commit (unavailable).|2.4.21
[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 _0xef2f=['../../config/logger','api','moment','path','rimraf','./userProfileResource.attributes','exports','define','user_profile_has_resources','compositeIndex','resourceId','lodash','util'];(function(_0x96097b,_0x6f630b){var _0x5a0bfd=function(_0x16dd53){while(--_0x16dd53){_0x96097b['push'](_0x96097b['shift']());}};_0x5a0bfd(++_0x6f630b);}(_0xef2f,0x129));var _0xfef2=function(_0x5317b5,_0x4dfd6e){_0x5317b5=_0x5317b5-0x0;var _0x3b7ce2=_0xef2f[_0x5317b5];return _0x3b7ce2;};'use strict';var _=require(_0xfef2('0x0'));var util=require(_0xfef2('0x1'));var logger=require(_0xfef2('0x2'))(_0xfef2('0x3'));var moment=require(_0xfef2('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xfef2('0x5'));var rimraf=require(_0xfef2('0x6'));var config=require('../../config/environment');var attributes=require(_0xfef2('0x7'));module[_0xfef2('0x8')]=function(_0x5757ab,_0xc49bee){return _0x5757ab[_0xfef2('0x9')]('UserProfileResource',attributes,{'tableName':_0xfef2('0xa'),'paranoid':![],'indexes':[{'name':_0xfef2('0xb'),'fields':[_0xfef2('0xc'),'sectionId']}],'timestamps':!![]});};