a014f7077a7f0152d0d5541b6f989694dbbd961a
[motion2.git] / server / api / userProfileSection / userProfileSection.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 _0x551b=['./userProfileSection.attributes','exports','define','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x547add,_0x387042){var _0x2ed1f3=function(_0x3bbb4d){while(--_0x3bbb4d){_0x547add['push'](_0x547add['shift']());}};_0x2ed1f3(++_0x387042);}(_0x551b,0x66));var _0xb551=function(_0x264d4d,_0x118fb5){_0x264d4d=_0x264d4d-0x0;var _0xc917e2=_0x551b[_0x264d4d];return _0xc917e2;};'use strict';var _=require('lodash');var util=require(_0xb551('0x0'));var logger=require(_0xb551('0x1'))(_0xb551('0x2'));var moment=require(_0xb551('0x3'));var BPromise=require(_0xb551('0x4'));var rp=require(_0xb551('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb551('0x6'));var config=require(_0xb551('0x7'));var attributes=require(_0xb551('0x8'));module[_0xb551('0x9')]=function(_0x5267c9,_0x49ea19){return _0x5267c9[_0xb551('0xa')]('UserProfileSection',attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':'compositeIndex','fields':['sectionId','userProfileId']}],'timestamps':!![]});};