782ec9580e9001a18964b6309c25047f4d0f72a6
[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 _0x883f=['rimraf','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','sectionId','lodash','util','api','moment','path'];(function(_0x46fdbb,_0x217295){var _0x219d7e=function(_0x1350b8){while(--_0x1350b8){_0x46fdbb['push'](_0x46fdbb['shift']());}};_0x219d7e(++_0x217295);}(_0x883f,0x70));var _0xf883=function(_0x5f5497,_0x50803a){_0x5f5497=_0x5f5497-0x0;var _0x10e943=_0x883f[_0x5f5497];return _0x10e943;};'use strict';var _=require(_0xf883('0x0'));var util=require(_0xf883('0x1'));var logger=require('../../config/logger')(_0xf883('0x2'));var moment=require(_0xf883('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xf883('0x4'));var rimraf=require(_0xf883('0x5'));var config=require(_0xf883('0x6'));var attributes=require(_0xf883('0x7'));module[_0xf883('0x8')]=function(_0x5cf014,_0x50ba99){return _0x5cf014[_0xf883('0x9')](_0xf883('0xa'),attributes,{'tableName':_0xf883('0xb'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':['resourceId',_0xf883('0xc')]}],'timestamps':!![]});};