69d45a86822a73192b8d478ed62a52ca27e17605
[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 _0x02df=['resourceId','sectionId','util','api','moment','bluebird','path','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex'];(function(_0x5b3cbf,_0x5b3cf2){var _0x4e1aba=function(_0x5600e1){while(--_0x5600e1){_0x5b3cbf['push'](_0x5b3cbf['shift']());}};_0x4e1aba(++_0x5b3cf2);}(_0x02df,0xaa));var _0xf02d=function(_0x28e2cf,_0xc2d7ee){_0x28e2cf=_0x28e2cf-0x0;var _0x1b9b44=_0x02df[_0x28e2cf];return _0x1b9b44;};'use strict';var _=require('lodash');var util=require(_0xf02d('0x0'));var logger=require('../../config/logger')(_0xf02d('0x1'));var moment=require(_0xf02d('0x2'));var BPromise=require(_0xf02d('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf02d('0x4'));var rimraf=require('rimraf');var config=require(_0xf02d('0x5'));var attributes=require(_0xf02d('0x6'));module[_0xf02d('0x7')]=function(_0x35b72e,_0x6d98e8){return _0x35b72e[_0xf02d('0x8')](_0xf02d('0x9'),attributes,{'tableName':_0xf02d('0xa'),'paranoid':![],'indexes':[{'name':_0xf02d('0xb'),'fields':[_0xf02d('0xc'),_0xf02d('0xd')]}],'timestamps':!![]});};