Built motion from commit c116dc8b.|2.6.30
[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 _0x2c39=['bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','lodash','util','../../config/logger','moment'];(function(_0x274820,_0xaa27c1){var _0x3918ab=function(_0x36168d){while(--_0x36168d){_0x274820['push'](_0x274820['shift']());}};_0x3918ab(++_0xaa27c1);}(_0x2c39,0xac));var _0x92c3=function(_0x4fd6d5,_0x5161e3){_0x4fd6d5=_0x4fd6d5-0x0;var _0x34ada6=_0x2c39[_0x4fd6d5];return _0x34ada6;};'use strict';var _=require(_0x92c3('0x0'));var util=require(_0x92c3('0x1'));var logger=require(_0x92c3('0x2'))('api');var moment=require(_0x92c3('0x3'));var BPromise=require(_0x92c3('0x4'));var rp=require(_0x92c3('0x5'));var fs=require('fs');var path=require(_0x92c3('0x6'));var rimraf=require(_0x92c3('0x7'));var config=require(_0x92c3('0x8'));var attributes=require(_0x92c3('0x9'));module[_0x92c3('0xa')]=function(_0x39f4c2,_0xcf71ec){return _0x39f4c2[_0x92c3('0xb')](_0x92c3('0xc'),attributes,{'tableName':_0x92c3('0xd'),'paranoid':![],'indexes':[{'name':_0x92c3('0xe'),'fields':['resourceId',_0x92c3('0xf')]}],'timestamps':!![]});};