16a92d8f58bd6687787e01e29e06c09c61d259a0
[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 _0xfb2a=['resourceId','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./userProfileResource.attributes','exports','compositeIndex'];(function(_0x1699e9,_0x1f2652){var _0x14b104=function(_0x319079){while(--_0x319079){_0x1699e9['push'](_0x1699e9['shift']());}};_0x14b104(++_0x1f2652);}(_0xfb2a,0x1a1));var _0xafb2=function(_0x138adb,_0x193fee){_0x138adb=_0x138adb-0x0;var _0x1b27f2=_0xfb2a[_0x138adb];return _0x1b27f2;};'use strict';var _=require(_0xafb2('0x0'));var util=require(_0xafb2('0x1'));var logger=require(_0xafb2('0x2'))(_0xafb2('0x3'));var moment=require(_0xafb2('0x4'));var BPromise=require(_0xafb2('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xafb2('0x6'));var rimraf=require(_0xafb2('0x7'));var config=require(_0xafb2('0x8'));var attributes=require(_0xafb2('0x9'));module[_0xafb2('0xa')]=function(_0x3943ed,_0x2b833f){return _0x3943ed['define']('UserProfileResource',attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0xafb2('0xb'),'fields':[_0xafb2('0xc'),'sectionId']}],'timestamps':!![]});};