Built motion from commit 746c7d2a.|2.5.35
[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 _0x889a=['rimraf','../../config/environment','exports','define','Template','lodash','util','api','moment','bluebird'];(function(_0x3afee9,_0x59b038){var _0x15951d=function(_0x255df7){while(--_0x255df7){_0x3afee9['push'](_0x3afee9['shift']());}};_0x15951d(++_0x59b038);}(_0x889a,0x127));var _0xa889=function(_0xf0e2ef,_0x4ca0ff){_0xf0e2ef=_0xf0e2ef-0x0;var _0x59491d=_0x889a[_0xf0e2ef];return _0x59491d;};'use strict';var _=require(_0xa889('0x0'));var util=require(_0xa889('0x1'));var logger=require('../../config/logger')(_0xa889('0x2'));var moment=require(_0xa889('0x3'));var BPromise=require(_0xa889('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xa889('0x5'));var config=require(_0xa889('0x6'));var attributes=require('./template.attributes');module[_0xa889('0x7')]=function(_0x1066e9,_0xd90d2){return _0x1066e9[_0xa889('0x8')](_0xa889('0x9'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};