Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / template / template.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 _0x8016=['exports','define','Template','tools_templates','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./template.attributes'];(function(_0x482240,_0x1f67d8){var _0x4bd945=function(_0x585a33){while(--_0x585a33){_0x482240['push'](_0x482240['shift']());}};_0x4bd945(++_0x1f67d8);}(_0x8016,0x1e0));var _0x6801=function(_0x59e30d,_0x564720){_0x59e30d=_0x59e30d-0x0;var _0x33d0ce=_0x8016[_0x59e30d];return _0x33d0ce;};'use strict';var _=require(_0x6801('0x0'));var util=require(_0x6801('0x1'));var logger=require(_0x6801('0x2'))(_0x6801('0x3'));var moment=require('moment');var BPromise=require(_0x6801('0x4'));var rp=require(_0x6801('0x5'));var fs=require('fs');var path=require(_0x6801('0x6'));var rimraf=require(_0x6801('0x7'));var config=require(_0x6801('0x8'));var attributes=require(_0x6801('0x9'));module[_0x6801('0xa')]=function(_0x4a9694,_0x21f8f1){return _0x4a9694[_0x6801('0xb')](_0x6801('0xc'),attributes,{'tableName':_0x6801('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};