2ceff117977746cd4845d0112036f3c94fad200b
[motion2.git] / server / api / trunk / trunk.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 _0xfebc=['moment','request-promise','../../config/environment','./trunk.attributes','exports','define','tools_trunks','lodash','util','../../config/logger','api'];(function(_0x5a73f2,_0x1667ae){var _0x3765be=function(_0x50286e){while(--_0x50286e){_0x5a73f2['push'](_0x5a73f2['shift']());}};_0x3765be(++_0x1667ae);}(_0xfebc,0x1ca));var _0xcfeb=function(_0xd1ce83,_0x4199ec){_0xd1ce83=_0xd1ce83-0x0;var _0x51aabb=_0xfebc[_0xd1ce83];return _0x51aabb;};'use strict';var _=require(_0xcfeb('0x0'));var util=require(_0xcfeb('0x1'));var logger=require(_0xcfeb('0x2'))(_0xcfeb('0x3'));var moment=require(_0xcfeb('0x4'));var BPromise=require('bluebird');var rp=require(_0xcfeb('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xcfeb('0x6'));var attributes=require(_0xcfeb('0x7'));module[_0xcfeb('0x8')]=function(_0x5058c7,_0x519112){return _0x5058c7[_0xcfeb('0x9')]('Trunk',attributes,{'tableName':_0xcfeb('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};