Built motion from commit da24aabd.|2.6.20
[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 _0x85b9=['bluebird','path','exports','define','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','util','../../config/logger','api','moment'];(function(_0x1aa444,_0x4d6b5f){var _0xb36b20=function(_0x29eb0f){while(--_0x29eb0f){_0x1aa444['push'](_0x1aa444['shift']());}};_0xb36b20(++_0x4d6b5f);}(_0x85b9,0xbe));var _0x985b=function(_0x26f702,_0x3919bf){_0x26f702=_0x26f702-0x0;var _0x11417d=_0x85b9[_0x26f702];return _0x11417d;};'use strict';var _=require(_0x985b('0x0'));var util=require(_0x985b('0x1'));var logger=require(_0x985b('0x2'))(_0x985b('0x3'));var moment=require(_0x985b('0x4'));var BPromise=require(_0x985b('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x985b('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./userProfileSection.attributes');module[_0x985b('0x7')]=function(_0x5b17d5,_0x5878ab){return _0x5b17d5[_0x985b('0x8')]('UserProfileSection',attributes,{'tableName':_0x985b('0x9'),'paranoid':![],'indexes':[{'name':_0x985b('0xa'),'fields':[_0x985b('0xb'),_0x985b('0xc')]}],'timestamps':!![]});};