Built motion from commit (unavailable).|2.5.22
[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 _0x6ed6=['rimraf','../../config/environment','define','lodash','util','api','moment','bluebird'];(function(_0x51ab83,_0x2721b9){var _0x14b6de=function(_0x243483){while(--_0x243483){_0x51ab83['push'](_0x51ab83['shift']());}};_0x14b6de(++_0x2721b9);}(_0x6ed6,0x1d3));var _0x66ed=function(_0x49f2a1,_0x2623e0){_0x49f2a1=_0x49f2a1-0x0;var _0x1d0ad3=_0x6ed6[_0x49f2a1];return _0x1d0ad3;};'use strict';var _=require(_0x66ed('0x0'));var util=require(_0x66ed('0x1'));var logger=require('../../config/logger')(_0x66ed('0x2'));var moment=require(_0x66ed('0x3'));var BPromise=require(_0x66ed('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x66ed('0x5'));var config=require(_0x66ed('0x6'));var attributes=require('./template.attributes');module['exports']=function(_0x3235cb,_0x49f5fe){return _0x3235cb[_0x66ed('0x7')]('Template',attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};