Built motion from commit b0a9a629.|2.6.33
[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 _0xcb87=['util','api','request-promise','path','rimraf','../../config/environment','define','user_profile_has_resources','compositeIndex','resourceId','sectionId','lodash'];(function(_0xa148b7,_0x2f3eb2){var _0x51efd3=function(_0x34bcec){while(--_0x34bcec){_0xa148b7['push'](_0xa148b7['shift']());}};_0x51efd3(++_0x2f3eb2);}(_0xcb87,0x8f));var _0x7cb8=function(_0x478414,_0xcf142d){_0x478414=_0x478414-0x0;var _0x5eb6b9=_0xcb87[_0x478414];return _0x5eb6b9;};'use strict';var _=require(_0x7cb8('0x0'));var util=require(_0x7cb8('0x1'));var logger=require('../../config/logger')(_0x7cb8('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x7cb8('0x3'));var fs=require('fs');var path=require(_0x7cb8('0x4'));var rimraf=require(_0x7cb8('0x5'));var config=require(_0x7cb8('0x6'));var attributes=require('./userProfileResource.attributes');module['exports']=function(_0x5bae8d,_0x1a91c8){return _0x5bae8d[_0x7cb8('0x7')]('UserProfileResource',attributes,{'tableName':_0x7cb8('0x8'),'paranoid':![],'indexes':[{'name':_0x7cb8('0x9'),'fields':[_0x7cb8('0xa'),_0x7cb8('0xb')]}],'timestamps':!![]});};