38814f753b62cb81512fab343e820ba18cadd3a4
[motion2.git] / server / api / network / network.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 _0x1a38=['Network','network','lodash','util','../../config/logger','api','bluebird','path','rimraf','../../config/environment','./network.attributes','exports','define'];(function(_0xd7161f,_0x2ec134){var _0x4ad71f=function(_0x8b69ed){while(--_0x8b69ed){_0xd7161f['push'](_0xd7161f['shift']());}};_0x4ad71f(++_0x2ec134);}(_0x1a38,0x12d));var _0x81a3=function(_0x3c4a7c,_0x2f4e3c){_0x3c4a7c=_0x3c4a7c-0x0;var _0xf13d1e=_0x1a38[_0x3c4a7c];return _0xf13d1e;};'use strict';var _=require(_0x81a3('0x0'));var util=require(_0x81a3('0x1'));var logger=require(_0x81a3('0x2'))(_0x81a3('0x3'));var moment=require('moment');var BPromise=require(_0x81a3('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x81a3('0x5'));var rimraf=require(_0x81a3('0x6'));var config=require(_0x81a3('0x7'));var attributes=require(_0x81a3('0x8'));module[_0x81a3('0x9')]=function(_0x30cb78,_0x1ac08c){return _0x30cb78[_0x81a3('0xa')](_0x81a3('0xb'),attributes,{'tableName':_0x81a3('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};