Built motion from commit 639a1a7f.|2.6.19
[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 _0xb027=['./template.attributes','exports','define','Template','lodash','util','../../config/logger','api','moment','rimraf','../../config/environment'];(function(_0x1aa2f0,_0x3e9718){var _0x177573=function(_0xfd78b0){while(--_0xfd78b0){_0x1aa2f0['push'](_0x1aa2f0['shift']());}};_0x177573(++_0x3e9718);}(_0xb027,0x1b1));var _0x7b02=function(_0xb827f1,_0x3c6daf){_0xb827f1=_0xb827f1-0x0;var _0x549403=_0xb027[_0xb827f1];return _0x549403;};'use strict';var _=require(_0x7b02('0x0'));var util=require(_0x7b02('0x1'));var logger=require(_0x7b02('0x2'))(_0x7b02('0x3'));var moment=require(_0x7b02('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x7b02('0x5'));var config=require(_0x7b02('0x6'));var attributes=require(_0x7b02('0x7'));module[_0x7b02('0x8')]=function(_0x5ebecb,_0x2f594d){return _0x5ebecb[_0x7b02('0x9')](_0x7b02('0xa'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};