Built motion from commit da617fac.|2.6.6
[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 _0x8245=['define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports'];(function(_0x266033,_0x40acbd){var _0x3d856a=function(_0x20e512){while(--_0x20e512){_0x266033['push'](_0x266033['shift']());}};_0x3d856a(++_0x40acbd);}(_0x8245,0x127));var _0x5824=function(_0x48f5e9,_0x3d1963){_0x48f5e9=_0x48f5e9-0x0;var _0x481616=_0x8245[_0x48f5e9];return _0x481616;};'use strict';var _=require(_0x5824('0x0'));var util=require('util');var logger=require(_0x5824('0x1'))(_0x5824('0x2'));var moment=require(_0x5824('0x3'));var BPromise=require(_0x5824('0x4'));var rp=require(_0x5824('0x5'));var fs=require('fs');var path=require(_0x5824('0x6'));var rimraf=require(_0x5824('0x7'));var config=require(_0x5824('0x8'));var attributes=require(_0x5824('0x9'));module[_0x5824('0xa')]=function(_0x58c2de,_0x2d92e9){return _0x58c2de[_0x5824('0xb')](_0x5824('0xc'),attributes,{'tableName':_0x5824('0xd'),'paranoid':![],'indexes':[{'name':_0x5824('0xe'),'fields':[_0x5824('0xf'),_0x5824('0x10')]}],'timestamps':!![]});};