Built motion from commit 449495f6.|2.6.27
[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 _0xd5d7=['path','rimraf','./userProfileSection.attributes','exports','define','user_profile_has_sections','compositeIndex','userProfileId','lodash','../../config/logger','bluebird','request-promise'];(function(_0x1df7b8,_0x2fe5e5){var _0x29d911=function(_0x340121){while(--_0x340121){_0x1df7b8['push'](_0x1df7b8['shift']());}};_0x29d911(++_0x2fe5e5);}(_0xd5d7,0x8c));var _0x7d5d=function(_0x4c3bf7,_0x47cbc5){_0x4c3bf7=_0x4c3bf7-0x0;var _0x26d188=_0xd5d7[_0x4c3bf7];return _0x26d188;};'use strict';var _=require(_0x7d5d('0x0'));var util=require('util');var logger=require(_0x7d5d('0x1'))('api');var moment=require('moment');var BPromise=require(_0x7d5d('0x2'));var rp=require(_0x7d5d('0x3'));var fs=require('fs');var path=require(_0x7d5d('0x4'));var rimraf=require(_0x7d5d('0x5'));var config=require('../../config/environment');var attributes=require(_0x7d5d('0x6'));module[_0x7d5d('0x7')]=function(_0x562873,_0x4b9e32){return _0x562873[_0x7d5d('0x8')]('UserProfileSection',attributes,{'tableName':_0x7d5d('0x9'),'paranoid':![],'indexes':[{'name':_0x7d5d('0xa'),'fields':['sectionId',_0x7d5d('0xb')]}],'timestamps':!![]});};