Built motion from commit (unavailable).|2.5.13
[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 _0x865f=['Template','util','../../config/logger','api','bluebird','request-promise','path','rimraf','./template.attributes','define'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x865f,0x105));var _0xf865=function(_0x44a2b7,_0x50adf7){_0x44a2b7=_0x44a2b7-0x0;var _0x187ba7=_0x865f[_0x44a2b7];return _0x187ba7;};'use strict';var _=require('lodash');var util=require(_0xf865('0x0'));var logger=require(_0xf865('0x1'))(_0xf865('0x2'));var moment=require('moment');var BPromise=require(_0xf865('0x3'));var rp=require(_0xf865('0x4'));var fs=require('fs');var path=require(_0xf865('0x5'));var rimraf=require(_0xf865('0x6'));var config=require('../../config/environment');var attributes=require(_0xf865('0x7'));module['exports']=function(_0x2b1e52,_0x1238b3){return _0x2b1e52[_0xf865('0x8')](_0xf865('0x9'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};