6ae79df39371434d33afe658fb74fe628602e000
[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 _0xb60b=['util','../../config/logger','api','moment','bluebird','request-promise','path','exports','define','Trunk','lodash'];(function(_0x585276,_0x553f5a){var _0x4a7181=function(_0x26f87d){while(--_0x26f87d){_0x585276['push'](_0x585276['shift']());}};_0x4a7181(++_0x553f5a);}(_0xb60b,0xd0));var _0xbb60=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0xb60b[_0x42cae2];return _0x5f256f;};'use strict';var _=require(_0xbb60('0x0'));var util=require(_0xbb60('0x1'));var logger=require(_0xbb60('0x2'))(_0xbb60('0x3'));var moment=require(_0xbb60('0x4'));var BPromise=require(_0xbb60('0x5'));var rp=require(_0xbb60('0x6'));var fs=require('fs');var path=require(_0xbb60('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./trunk.attributes');module[_0xbb60('0x8')]=function(_0x27c15c,_0x440393){return _0x27c15c[_0xbb60('0x9')](_0xbb60('0xa'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});};