f3eda01ff30e0475961478fad4982a2208566705
[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 _0xabe7=['UserProfileSection','user_profile_has_sections','compositeIndex','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment','exports','define'];(function(_0xc7679b,_0x2511a2){var _0x4e8f0b=function(_0x166401){while(--_0x166401){_0xc7679b['push'](_0xc7679b['shift']());}};_0x4e8f0b(++_0x2511a2);}(_0xabe7,0x1b0));var _0x7abe=function(_0x5c5932,_0x39bcb8){_0x5c5932=_0x5c5932-0x0;var _0x3c778d=_0xabe7[_0x5c5932];return _0x3c778d;};'use strict';var _=require(_0x7abe('0x0'));var util=require(_0x7abe('0x1'));var logger=require(_0x7abe('0x2'))('api');var moment=require(_0x7abe('0x3'));var BPromise=require(_0x7abe('0x4'));var rp=require(_0x7abe('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7abe('0x6'));var config=require(_0x7abe('0x7'));var attributes=require('./userProfileSection.attributes');module[_0x7abe('0x8')]=function(_0x2ed698,_0x56d6ae){return _0x2ed698[_0x7abe('0x9')](_0x7abe('0xa'),attributes,{'tableName':_0x7abe('0xb'),'paranoid':![],'indexes':[{'name':_0x7abe('0xc'),'fields':['sectionId','userProfileId']}],'timestamps':!![]});};